Changeset 483690
- Timestamp:
- 01/03/2012 01:10:06 AM (14 years ago)
- Location:
- featured-posts-grid/branches/dev
- Files:
-
- 4 edited
-
featured-posts-grid-admin.php (modified) (2 diffs)
-
featured-posts-grid.php (modified) (4 diffs)
-
fpg-generate-output.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
featured-posts-grid/branches/dev/featured-posts-grid-admin.php
r477430 r483690 143 143 $fpg_scroll_interval = get_option('fpg_scroll_interval'); 144 144 $fpg_rollover = get_option('fpg_rollover'); 145 146 $fpg_enable_static_caching = get_option('fpg_enable_static_caching'); 145 147 ?> 146 148 … … 201 203 <?php if($fpg_date_display == 1){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?> 202 204 <input type="checkbox" name="fpg_date_display" value="true" <?php echo $checked; ?>><?php _e(" Post Date"); ?> 205 <br /> 206 207 </fieldset> 208 </td> 209 </tr> 210 211 <tr valign="top"> 212 <th scope="row">Performance Options</th> 213 <td> 214 <fieldset> 215 <legend class="hidden">Performance</legend> 216 217 <?php if($fpg_enable_static_caching == 1){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?> 218 <input type="checkbox" name="fpg_enable_static_caching" value="true" <?php echo $checked; ?>><?php _e(" Cache CSS and JS files (Experimental. Disable if plugin does not function correctly."); ?> 203 219 <br /> 204 220 -
featured-posts-grid/branches/dev/featured-posts-grid.php
r479885 r483690 177 177 'fpg_autoscroll' => '0', 178 178 'fpg_scroll_interval' => '7000', 179 'fpg_rollover' => '0' 179 'fpg_rollover' => '0', 180 181 'fpg_enable_static_caching' => '0' 180 182 ); 181 183 … … 192 194 } 193 195 194 ob_start(); 195 196 include(WP_PLUGIN_DIR.'/featured-posts-grid/js/fpg.js.php'); 197 198 $file_contents = ob_get_contents(); 199 $file_path = WP_PLUGIN_DIR.'/featured-posts-grid/js/fpg.js'; 200 $ret_val = file_put_contents($file_path, $file_contents); 201 202 ob_end_clean(); 203 204 ob_start(); 205 206 include(WP_PLUGIN_DIR.'/featured-posts-grid/css/fpg.css.php'); 207 208 $file_contents = ob_get_contents(); 209 $file_path = WP_PLUGIN_DIR.'/featured-posts-grid/css/fpg.css'; 210 $ret_val = file_put_contents($file_path, $file_contents); 211 212 ob_end_clean(); 196 if (get_option('fpg_enable_static_caching') == '1') 197 { 198 ob_start(); 199 200 include(WP_PLUGIN_DIR.'/featured-posts-grid/js/fpg.js.php'); 201 202 $file_contents = ob_get_contents(); 203 $file_path = WP_PLUGIN_DIR.'/featured-posts-grid/js/fpg.js'; 204 $ret_val = file_put_contents($file_path, $file_contents); 205 206 ob_end_clean(); 207 208 ob_start(); 209 210 include(WP_PLUGIN_DIR.'/featured-posts-grid/css/fpg.css.php'); 211 212 $file_contents = ob_get_contents(); 213 $file_path = WP_PLUGIN_DIR.'/featured-posts-grid/css/fpg.css'; 214 $ret_val = file_put_contents($file_path, $file_contents); 215 216 ob_end_clean(); 217 } 213 218 } 214 219 … … 250 255 wp_enqueue_style('fpg-style', WP_PLUGIN_URL.'/featured-posts-grid/css/featured-posts-grid.css'); 251 256 252 if ( file_exists(WP_PLUGIN_DIR.'/featured-posts-grid/css/fpg.css'))257 if (get_option('fpg_enable_static_caching') == '1' && file_exists(WP_PLUGIN_DIR.'/featured-posts-grid/css/fpg.css')) 253 258 { 254 259 wp_enqueue_style('fpg-style-dynamic', WP_PLUGIN_URL.'/featured-posts-grid/css/fpg.css'); … … 266 271 wp_enqueue_script('jquery'); 267 272 268 if( file_exists(WP_PLUGIN_DIR.'/featured-posts-grid/js/fpg.js'))273 if(get_option('fpg_enable_static_caching') == '1' && file_exists(WP_PLUGIN_DIR.'/featured-posts-grid/js/fpg.js')) 269 274 { 270 275 wp_enqueue_script('fpg-js-dynamic', WP_PLUGIN_URL.'/featured-posts-grid/js/fpg.js'); -
featured-posts-grid/branches/dev/fpg-generate-output.php
r477430 r483690 141 141 'fpg_images_width_fit', 142 142 'fpg_autoscroll', 143 'fpg_rollover' 143 'fpg_rollover', 144 'fpg_enable_static_caching' 144 145 ); 145 146 … … 157 158 <?php 158 159 159 fpg_generate_js(); 160 fpg_generate_css(); 160 if (get_option('fpg_enable_static_caching') == '1') 161 { 162 fpg_generate_js(); 163 fpg_generate_css(); 164 } 161 165 } 162 166 else -
featured-posts-grid/branches/dev/readme.txt
r479887 r483690 97 97 = 1.7 = 98 98 * Corrected issue with plugin appearing on post/page templates. 99 * Made caching to static CSS and JS files optional. Some users have reported issues with this feature. 99 100 100 101 = 1.6 = … … 131 132 = 1.7 = 132 133 * Corrected issue with plugin appearing on post/page templates. 134 * Made caching to static CSS and JS files optional. Some users have reported issues with this feature.
Note: See TracChangeset
for help on using the changeset viewer.