@@ -1947,6 +1947,45 @@ class="sui-form-control"
19471947
19481948 </div>
19491949
1950+ <div class="sui-box-settings-row <?php echo ( ! is_premium () ? 'sui-disabled ' : '' ); ?> ">
1951+ <div class="sui-box-settings-col-1">
1952+ <span class="sui-settings-label"><?php esc_html_e ( 'LCP Optimization ' , 'powered-cache ' ); ?>
1953+ <?php if ( ! is_premium () ) : ?>
1954+ <span class="sui-tag sui-tag-pro"><?php esc_html_e ( 'Premium ' , 'powered-cache ' ); ?> </span>
1955+ <?php endif ; ?>
1956+ </span>
1957+ <span class="sui-description"></span>
1958+ </div>
1959+
1960+ <div class="sui-box-settings-col-2">
1961+ <div class="sui-form-field">
1962+ <label for="enable_lcp_optimization" class="sui-toggle">
1963+ <input
1964+ type="checkbox"
1965+ id="enable_lcp_optimization"
1966+ name="enable_lcp_optimization"
1967+ value="1"
1968+ aria-labelledby="enable_lcp_optimization_label"
1969+ aria-describedby="enable_lcp_optimization_description"
1970+ <?php checked ( $ settings ['enable_lcp_optimization ' ], 1 ); ?>
1971+ >
1972+ <span class="sui-toggle-slider" aria-hidden="true"></span>
1973+ <span id="enable_lcp_optimization_label" class="sui-toggle-label">
1974+ <?php esc_html_e ( 'Enable Automatic LCP Optimization ' , 'powered-cache ' ); ?>
1975+ </span>
1976+ <span id="enable_lcp_optimization_description" class="sui-description">
1977+ <?php esc_html_e ( 'Automatically detect and preload the Largest Contentful Paint (LCP) image to improve page loading experience. ' , 'powered-cache ' ); ?>
1978+ <a href="<?php echo esc_url ( get_doc_url ( '/lcp-optimization/ ' ) ); ?> " target="_blank" rel="noopener noreferrer">
1979+ <?php esc_html_e ( 'Learn more ' , 'powered-cache ' ); ?>
1980+ </a>
1981+ </span>
1982+ </label>
1983+ </div>
1984+ </div>
1985+
1986+ </div>
1987+
1988+
19501989 <div class="sui-box-settings-row <?php echo ( ! is_premium () ? 'sui-disabled ' : '' ); ?> ">
19511990 <div class="sui-box-settings-col-1">
19521991 <span class="sui-settings-label"><?php esc_html_e ( 'Prefetch links ' , 'powered-cache ' ); ?>
0 commit comments