Skip to content

Commit 8c9de99

Browse files
chore: added learn more
1 parent 142f63b commit 8c9de99

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assets/src/dashboard/parts/connected/settings/Lazyload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const Lazyload = ({ settings, setSettings, setCanSave }) => {
170170
<>
171171
<ToggleControl
172172
label={options_strings.toggle_lazyload}
173-
help={options_strings.lazyload_desc}
173+
help={() => <p dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.options_strings.lazyload_desc } } />}
174174
checked={isLazyLoadEnabled}
175175
disabled={isLoading}
176176
className={classnames({
@@ -186,7 +186,7 @@ const Lazyload = ({ settings, setSettings, setCanSave }) => {
186186
<>
187187
<ToggleControl
188188
label={options_strings.toggle_lazyload}
189-
help={options_strings.lazyload_desc}
189+
help={() => <p dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.options_strings.lazyload_desc } } />}
190190
checked={isLazyLoadEnabled}
191191
disabled={isLoading}
192192
className={classnames({

inc/admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ private function get_dashboard_strings() {
19621962
'high_q_title' => __( 'High', 'optimole-wp' ),
19631963
'image_1_label' => __( 'Original', 'optimole-wp' ),
19641964
'image_2_label' => __( 'Optimized', 'optimole-wp' ),
1965-
'lazyload_desc' => __( 'Images load only when they\'re about to enter the viewport', 'optimole-wp' ),
1965+
'lazyload_desc' => sprintf( /* translators: 1 is the starting anchor tag, 2 is the ending anchor tag */ __( 'Images load only when they\'re about to enter the viewport. %1$sLearn more%2$s', 'optimole-wp' ), '<a class="inline-block text-purple-gray underline" target=”_blank” href="https://docs.optimole.com/article/1948-bypass-lazy-load-for-first-images">', '</a>' ),
19661966
'filter_length_error' => __( 'The filter should be at least 3 characters long.', 'optimole-wp' ),
19671967
'scale_desc' => __( 'Automatically resize the images based on device and viewport', 'optimole-wp' ),
19681968
'low_q_title' => __( 'Low', 'optimole-wp' ),

0 commit comments

Comments
 (0)