Skip to content

Commit

Permalink
[GUI] Corrected desc
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-hai committed Oct 17, 2017
1 parent 43c6a41 commit 60e8813
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion litespeed-cache/admin/tpl/setting/settings_cdn.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
) ; ?>
</div>
<div class="litespeed-desc">
<?php echo __( 'Load jQuery from a remote CDN service instead of local to speed up loading.', 'litespeed-cache' ) ; ?>
<?php echo __( 'Improve page load time by loading jQuery from a remote CDN service instead of locally.', 'litespeed-cache' ) ; ?>
</div>
</td>
</tr>
Expand Down
13 changes: 6 additions & 7 deletions litespeed-cache/admin/tpl/setting/settings_media.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
<td>
<?php $this->build_textarea2( LiteSpeed_Cache_Config::ITEM_MEDIA_LAZY_IMG_EXC ) ; ?>
<div class="litespeed-desc">
<?php echo __( 'Listed items will not be lazy loaded.', 'litespeed-cache' ) ; ?>
<?php echo __( 'Listed images will not be lazy loaded.', 'litespeed-cache' ) ; ?>
<?php echo __( 'Both full URLs and partial strings can be used.', 'litespeed-cache' ) ; ?>
<?php echo __('One per line.', 'litespeed-cache'); ?>
<br /><font class="litespeed-success">
<?php echo __('API:', 'litespeed-cache'); ?>
<?php echo sprintf( __( 'Filter %s is supported.', 'litespeed-cache' ), '<code>litespeed_cache_media_lazy_img_excludes</code>' ) ; ?>
<?php echo sprintf( __( 'The elements with attribute %s in html code will be excluded.', 'litespeed-cache' ), '<code>data-no-lazy="1"</code>' ) ; ?>
<?php echo sprintf( __( 'Elements with attribute %s in html code will be excluded.', 'litespeed-cache' ), '<code>data-no-lazy="1"</code>' ) ; ?>
</font>
</div>
</td>
Expand All @@ -39,11 +39,10 @@
<td>
<?php $this->build_input( LiteSpeed_Cache_Config::OPID_MEDIA_IMG_LAZY_PLACEHOLDER, 'litespeed-input-long' ) ; ?>
<div class="litespeed-desc">
<?php echo __( 'Specify an base64 image as images placeholder before they finish loading.', 'litespeed-cache' ) ; ?>
<br /><?php echo sprintf( __( 'You can also use a constant %1$s in %2$s to predefine it.', 'litespeed-cache' ), '<code>LITESPEED_PLACEHOLDER</code>', '<code>wp-config.php</code>' ) ; ?>
<br /><?php echo __('The setting here has higher priority than the constant.', 'litespeed-cache') ; ?>
<br /><?php echo sprintf( __( 'By default a gray image placeholder %s will show.', 'litespeed-cache' ), '<code>data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs=</code>' ) ; ?>
<br /><?php echo sprintf( __( 'For example, you can use %s for a transparent placeholder.', 'litespeed-cache' ), '<code>data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7</code>' ) ; ?>
<?php echo __( 'Specify a base64 image to be used as a placeholder while other images finish loading.', 'litespeed-cache' ) ; ?>
<br /><?php echo sprintf( __( 'This can be predefined in %2$s as well using constant %1$s, with this setting taking priority.', 'litespeed-cache' ), '<code>LITESPEED_PLACEHOLDER</code>', '<code>wp-config.php</code>' ) ; ?>
<br /><?php echo sprintf( __( 'By default a gray image placeholder %s will be used.', 'litespeed-cache' ), '<code>data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs=</code>' ) ; ?>
<br /><?php echo sprintf( __( 'For example, %s can be used for a transparent placeholder.', 'litespeed-cache' ), '<code>data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7</code>' ) ; ?>
</div>
</td>
</tr>
Expand Down
13 changes: 6 additions & 7 deletions litespeed-cache/admin/tpl/setting/settings_optimize.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<br /><font class="litespeed-success">
<?php echo __('API:', 'litespeed-cache'); ?>
<?php echo sprintf( __( 'Filter %s is supported.', 'litespeed-cache' ), '<code>litespeed_cache_optimize_css_excludes</code>' ) ; ?>
<?php echo sprintf( __( 'The elements with attribute %s in html code will be excluded.', 'litespeed-cache' ), '<code>data-no-optimize="1"</code>' ) ; ?>
<?php echo sprintf( __( 'Elements with attribute %s in html code will be excluded.', 'litespeed-cache' ), '<code>data-no-optimize="1"</code>' ) ; ?>
</font>
</div>
</td>
Expand Down Expand Up @@ -106,7 +106,7 @@
<br /><font class="litespeed-success">
<?php echo __('API:', 'litespeed-cache'); ?>
<?php echo sprintf( __( 'Filter %s is supported.', 'litespeed-cache' ), '<code>litespeed_cache_optimize_js_excludes</code>' ) ; ?>
<?php echo sprintf( __( 'The elements with attribute %s in html code will be excluded.', 'litespeed-cache' ), '<code>data-no-optimize="1"</code>' ) ; ?>
<?php echo sprintf( __( 'Elements with attribute %s in html code will be excluded.', 'litespeed-cache' ), '<code>data-no-optimize="1"</code>' ) ; ?>
</font>
</div>
</td>
Expand Down Expand Up @@ -164,7 +164,7 @@
<?php echo __( 'This can improve your speed score in services like Pingdom, GTmetrix and PageSpeed.', 'litespeed-cache' ) ; ?>
<br /><font class="litespeed-success">
<?php echo __('API:', 'litespeed-cache'); ?>
<?php echo sprintf( __( 'The elements with attribute %s in html code will be excluded.', 'litespeed-cache' ), '<code>data-no-async="1"</code>' ) ; ?>
<?php echo sprintf( __( 'Elements with attribute %s in html code will be excluded.', 'litespeed-cache' ), '<code>data-no-async="1"</code>' ) ; ?>
</font>
</div>
</td>
Expand Down Expand Up @@ -202,7 +202,7 @@
<br /><font class="litespeed-success">
<?php echo __('API:', 'litespeed-cache'); ?>
<?php echo sprintf( __( 'Filter %s is supported.', 'litespeed-cache' ), '<code>litespeed_optm_js_defer_exc</code>' ) ; ?>
<?php echo sprintf( __( 'The elements with attribute %s in html code will be excluded.', 'litespeed-cache' ), '<code>data-no-defer="1"</code>' ) ; ?>
<?php echo sprintf( __( 'Elements with attribute %s in html code will be excluded.', 'litespeed-cache' ), '<code>data-no-defer="1"</code>' ) ; ?>
</font>
</div>
</td>
Expand Down Expand Up @@ -237,9 +237,8 @@
<td>
<?php $this->build_switch( LiteSpeed_Cache_Config::OPID_OPTM_EXC_JQUERY ) ; ?>
<div class="litespeed-desc">
<?php echo __( 'Prevent jQuery from any optimization.', 'litespeed-cache' ) ; ?>
<?php echo sprintf( __( 'To improve compatibility with inline JS, this is suggested to be %s.', 'litespeed-cache' ), __( 'ON', 'litespeed-cache' ) ) ; ?>
<font class="litespeed-warning">
<?php echo sprintf( __( 'Improve compatibility with inline JS by preventing jQuery optimization. (Recommended Setting: %s)', 'litespeed-cache' ), __( 'ON', 'litespeed-cache' ) ) ; ?>
<br /><font class="litespeed-warning">
<?php echo __('NOTE:', 'litespeed-cache'); ?>
<?php echo sprintf( __( 'If there is any JS error related to %1$s when enabled %2$s, please try this option.', 'litespeed-cache' ), 'jQuery', __( 'JS Combine', 'litespeed-cache' ) ) ; ?>
</font>
Expand Down

0 comments on commit 60e8813

Please sign in to comment.