Changeset 483689
- Timestamp:
- 01/03/2012 01:09:43 AM (14 years ago)
- Location:
- featured-posts-scroll/branches/varsize
- Files:
-
- 4 edited
-
featured-posts-scroll-admin.php (modified) (2 diffs)
-
featured-posts-scroll.php (modified) (4 diffs)
-
fps-generate-output.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
featured-posts-scroll/branches/varsize/featured-posts-scroll-admin.php
r476975 r483689 129 129 $post_image_height_stretch = get_option('fps_image_height_stretch'); 130 130 $post_image_width_stretch = get_option('fps_image_width_stretch'); 131 132 $fps_enable_static_caching = get_option('fps_enable_static_caching'); 131 133 ?> 132 134 … … 192 194 </td> 193 195 </tr> 196 197 198 <tr valign="top"> 199 <th scope="row">Performance Options</th> 200 <td> 201 <fieldset> 202 <legend class="hidden">Performance</legend> 203 204 <?php if($fps_enable_static_caching == 1){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?> 205 <input type="checkbox" name="fps_enable_static_caching" value="true" <?php echo $checked; ?>><?php _e(" Cache CSS and JS files (Experimental. Disable if plugin does not function correctly."); ?> 206 <br /> 207 208 </fieldset> 209 </td> 210 </tr> 211 194 212 195 213 <tr valign="top"> -
featured-posts-scroll/branches/varsize/featured-posts-scroll.php
r479884 r483689 138 138 'fps_image_width_noscale' => '0', 139 139 'fps_image_height_stretch' => '1', 140 'fps_image_width_stretch' => '1' 140 'fps_image_width_stretch' => '1', 141 142 'fps_enable_static_caching' => '0' 141 143 ); 142 144 … … 153 155 } 154 156 155 // Attempt to generate static JS file. 156 ob_start(); 157 158 include(WP_PLUGIN_DIR.'/featured-posts-scroll/js/fps.js.php'); 159 160 $file_contents = ob_get_contents(); 161 $file_path = WP_PLUGIN_DIR.'/featured-posts-scroll/js/fps.js'; 162 $ret_val = file_put_contents($file_path, $file_contents); 163 164 ob_end_clean(); 165 166 // Attempt to generate static CSS file. 167 ob_start(); 168 169 include(WP_PLUGIN_DIR.'/featured-posts-scroll/css/fps.css.php'); 170 171 $file_contents = ob_get_contents(); 172 $file_path = WP_PLUGIN_DIR.'/featured-posts-scroll/css/fps.css'; 173 $ret_val = file_put_contents($file_path, $file_contents); 174 175 ob_end_clean(); 157 if (get_option('fps_enable_static_caching') == '1') 158 { 159 // Attempt to generate static JS file. 160 ob_start(); 161 162 include(WP_PLUGIN_DIR.'/featured-posts-scroll/js/fps.js.php'); 163 164 $file_contents = ob_get_contents(); 165 $file_path = WP_PLUGIN_DIR.'/featured-posts-scroll/js/fps.js'; 166 $ret_val = file_put_contents($file_path, $file_contents); 167 168 ob_end_clean(); 169 170 // Attempt to generate static CSS file. 171 ob_start(); 172 173 include(WP_PLUGIN_DIR.'/featured-posts-scroll/css/fps.css.php'); 174 175 $file_contents = ob_get_contents(); 176 $file_path = WP_PLUGIN_DIR.'/featured-posts-scroll/css/fps.css'; 177 $ret_val = file_put_contents($file_path, $file_contents); 178 179 ob_end_clean(); 180 } 176 181 } 177 182 … … 213 218 wp_enqueue_style('fps-style', WP_PLUGIN_URL.'/featured-posts-scroll/css/featuredposts.css'); 214 219 215 if ( file_exists(WP_PLUGIN_DIR.'/featured-posts-scroll/css/fps.css'))220 if (get_option('fps_enable_static_caching') == '1' && file_exists(WP_PLUGIN_DIR.'/featured-posts-scroll/css/fps.css')) 216 221 { 217 222 wp_enqueue_style('fps-style-dynamic', WP_PLUGIN_URL.'/featured-posts-scroll/css/fps.css'); … … 229 234 wp_enqueue_script('jquery'); 230 235 231 if( file_exists(WP_PLUGIN_DIR.'/featured-posts-scroll/js/fps.js'))236 if(get_option('fps_enable_static_caching') == '1' && file_exists(WP_PLUGIN_DIR.'/featured-posts-scroll/js/fps.js')) 232 237 { 233 238 wp_enqueue_script('fps-js-dynamic', WP_PLUGIN_URL.'/featured-posts-scroll/js/fps.js'); -
featured-posts-scroll/branches/varsize/fps-generate-output.php
r476975 r483689 125 125 'fps_image_width_noscale', 126 126 'fps_image_height_stretch', 127 'fps_image_width_stretch' 127 'fps_image_width_stretch', 128 'fps_enable_static_caching' 128 129 129 130 ); … … 143 144 <?php 144 145 145 fps_generate_js(); 146 fps_generate_css(); 146 if (get_option('fps_enable_static_caching') == '1') 147 { 148 fps_generate_js(); 149 fps_generate_css(); 150 } 147 151 } 148 152 else -
featured-posts-scroll/branches/varsize/readme.txt
r479888 r483689 81 81 For any configuration, the image should be split into four evenly sized quadrants. The top row is left/right arrows as they normally appear and the bottom row are the arrows as they appear when hovered over. The left column should be arrows pointing left, and the right column should be arrows pointing right. 82 82 83 = I'm getting an error: "Call to undefined function has_post_thumbnail()", and I can't add a "Featured Image" to my posts. = 84 This issue is typically caused by templates that don't enable post thumbnails. If your template's functions.php file does not contain this, you must add it: 85 86 <code>add_theme_support( 'post-thumbnails' );</code> 87 83 88 = I have the "Display Excerpts" option selected, but I'm not seeing anything = 84 89 The plugin will currently only display manually entered excerpts. Automatically generated excerpts will not be displayed. … … 99 104 = 1.25 = 100 105 * Corrected issue with plugin appearing on post/page templates. 106 * Made caching to static CSS and JS files optional. Some users have reported issues with this feature. 101 107 102 108 = 1.24 = … … 198 204 = 1.25 = 199 205 * Corrected issue with plugin appearing on post/page templates. 206 * 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.