Changeset 1143062
- Timestamp:
- 04/23/2015 09:33:43 AM (11 years ago)
- Location:
- smart-image-loader/trunk
- Files:
-
- 2 edited
-
plugin.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smart-image-loader/trunk/plugin.php
r1030214 r1143062 4 4 Plugin URI: https://wordpress.org/plugins/smart-image-loader 5 5 Description: Load images visible at page load ('above the fold') first for a fast page loading impression. Optional lazy loading for images 'below the fold'. 6 Version: 0.4. 06 Version: 0.4.1 7 7 Text Domain: smart-image-loader 8 8 Author: Bayer und Preuss … … 119 119 lazy_load_at: <?= get_option('sil-lazy-load-at', '0') ?>, 120 120 fade: <?= get_option('sil-fade', 'false') ? 'true' : 'false' ?>, 121 placeholder: <?= '"' . get_option('sil-placeholder', 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7') . '"' ?> 121 placeholder: <?= '"' . get_option('sil-placeholder', 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7') . '"' ?>, 122 loader: <?= get_option('sil-loader', 'true') ? 'true' : 'false' ?> 122 123 }; 123 124 </script> … … 131 132 <noscript> 132 133 <style type="text/css"> 133 img[data-sil] 134 { display: none; } 134 img[data-sil] { display: none; } 135 135 </style> 136 136 </noscript> 137 137 <?php 138 139 if ( get_option('sil-loader') ) { 140 ?> 141 <style type="text/css"> 142 img[data-sil] 143 { 144 background-image: url('/wp-content/plugins/smart-image-loader/loading.gif'); 145 background-repeat: no-repeat; 146 background-position: center center; 147 } 148 </style> 149 <?php 150 } 138 151 }add_action('wp_head', 'sil_noscript'); 139 152 … … 168 181 add_option( 'sil-fade', 'false'); 169 182 add_option( 'sil-placeholder', 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'); 183 add_option( 'sil-loader', 'true'); 170 184 }add_action( 'admin_menu', 'add_sil_options' ); 171 185 … … 185 199 register_setting( 'sil-settings-group', 'sil-fade' ); 186 200 register_setting( 'sil-settings-group', 'sil-placeholder' ); 201 register_setting( 'sil-settings-group', 'sil-loader' ); 187 202 }add_action( 'admin_menu', 'register_sil_settings' ); 188 203 … … 190 205 add_filter( 'the_content', 'get_wrapped_html' ); 191 206 192 193 -
smart-image-loader/trunk/readme.txt
r1030214 r1143062 4 4 Tags: performance, speed, lazy loading, image, above the fold 5 5 Requires at least: 3.8.3 6 Tested up to: 4. 07 Stable tag: 0.4. 06 Tested up to: 4.2 7 Stable tag: 0.4.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 35 35 == Changelog == 36 37 = 0.4.1 = 38 * fixed visible detection 39 * test with Wordpress 4.2 40 36 41 37 42 = 0.4.0 =
Note: See TracChangeset
for help on using the changeset viewer.