Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,84 @@
<div class="ls-view-title"><?php echo __( 'Advanced Settings', 'thrive-cb' ); ?></div>
<div class="ls-advanced-settings-wrapper">
<p class="ls-advanced-setting-info">
<?php echo __( 'These optimization settings apply to WordPress core or 3rd party assets and may affect 3rd party plugin or theme functionality. Please make sure to thoroughly test your website after activating them.', 'thrive-cb' ); ?>
</p>
<?php if ( class_exists( '\TCB\Lightspeed\Gutenberg', false ) ): ?>
<div class="ls-advanced-gutenberg-settings">
<p class="ls-advanced-setting-disable-gutenberg">
<?php echo __( 'Disable loading Gutenberg scripts and styles on content where we can detect that it\'s not being used', 'thrive-cb' ); ?>
</p>
<div class="ls-option-item">
<input type="checkbox"
id="ls-disable-gutenberg-lp-checkbox"
data-key="<?php echo \TCB\Lightspeed\Gutenberg::DISABLE_GUTENBERG_LP; ?>"
class="noUi-target noUi-ltr noUi-horizontal noUi-background ls-advanced-setting-input"
<#= <?php echo TCB\Lightspeed\Gutenberg::DISABLE_GUTENBERG_LP ?> ? 'checked': '' #>>
<label for="ls-disable-gutenberg-lp-checkbox">
<?php echo __( 'Disable on Thrive Landing Pages', 'thrive-cb' ); ?>
</label>
</div>
<?php if ( tve_dash_is_ttb_active() ): ?>
<div class="ls-option-item">
<input type="checkbox"
id="ls-disable-gutenberg-content-checkbox"
data-key="<?php echo \TCB\Lightspeed\Gutenberg::DISABLE_GUTENBERG; ?>"
class="noUi-target noUi-ltr noUi-horizontal noUi-background ls-advanced-setting-input"
<#= <?php echo TCB\Lightspeed\Gutenberg::DISABLE_GUTENBERG ?> ? 'checked': '' #>>
<label for="ls-disable-gutenberg-content-checkbox">
<?php echo __( 'Disable on all content that uses a Thrive Theme Builder template', 'thrive-cb' ); ?>
</label>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ( \TCB\Integrations\WooCommerce\Main::active() ): ?>
<div class="ls-advanced-woocommerce-settings">
<p class="ls-advanced-setting-disable-woocommerce">
<?php echo __( 'Disable loading WooCommerce scripts and styles on content where we can detect that it\'s not being used', 'thrive-cb' ); ?>
</p>
<div class="ls-option-item">
<input type="checkbox"
id="ls-disable-woocommerce-lp-checkbox"
data-key="<?php echo \TCB\Lightspeed\Woocommerce::DISABLE_WOOCOMMERCE_LP; ?>"
class="noUi-target noUi-ltr noUi-horizontal noUi-background ls-advanced-setting-input"
<#= <?php echo TCB\Lightspeed\Woocommerce::DISABLE_WOOCOMMERCE_LP ?> ? 'checked': '' #>>
<label for="ls-disable-woocommerce-lp-checkbox">
<?php echo __( 'Disable on Thrive Landing Pages', 'thrive-cb' ); ?>
</label>
</div>
<?php if ( tve_dash_is_ttb_active() ): ?>
<div class="ls-option-item">
<input type="checkbox"
id="ls-disable-woocommerce-content-checkbox"
data-key="<?php echo \TCB\Lightspeed\Woocommerce::DISABLE_WOOCOMMERCE; ?>"
class="noUi-target noUi-ltr noUi-horizontal noUi-background ls-advanced-setting-input"
<#= <?php echo TCB\Lightspeed\Woocommerce::DISABLE_WOOCOMMERCE ?> ? 'checked': '' #> >
<label for="ls-disable-woocommerce-content-checkbox">
<?php echo __( 'Disable on all content that uses a Thrive Theme Builder template', 'thrive-cb' ); ?>
</label>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="ls-advanced-emoji-settings">
<p class="ls-advanced-setting-disable-emoji">
<?php echo __( 'Disable emojis', 'thrive-cb' ); ?>
</p>
<div class="ls-option-item">
<input type="checkbox"
id="ls-disable-emoji-lp-checkbox"
data-key="<?php echo \TCB\Lightspeed\Emoji::DISABLE_EMOJI; ?>"
class="noUi-target noUi-ltr noUi-horizontal noUi-background ls-advanced-setting-input"
<#= <?php echo TCB\Lightspeed\Emoji::DISABLE_EMOJI ?> ? 'checked': '' #>>
<label for="ls-disable-emoji-lp-checkbox">
<?php echo __( 'Prevent WordPress from automatically loading emojis in your pages.', 'thrive-cb' ); ?>
</label>
</div>
</div>
<a class="ls-save-advanced-settings tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green" style="width:300px;"><?php echo __( 'Save', 'thrive-cb' ); ?> </a>
<div class="page-content" style="width:300px; ">
<div class="progress-bar-wrapper" style="display: none;"></div>
</div>
</div>

View File

@@ -0,0 +1,46 @@
<div class="ls-view-title"><?php echo __( 'Font Settings', 'thrive-cb' ); ?></div>
<div class="ls-fonts-wrapper">
<div class="ls-option-item<#= canOptimizeFonts ? '' : ' ls-disabled-item' #>">
<input type="checkbox"
id="ls-enable-optimization-checkbox"
data-key="<?php echo \TCB\Lightspeed\Fonts::ENABLE_FONTS_OPTIMIZATION; ?>"
class="noUi-target noUi-ltr noUi-horizontal noUi-background ls-setting-input" <#= <?php echo TCB\Lightspeed\Fonts::ENABLE_FONTS_OPTIMIZATION ?> ? 'checked': '' #>>
<label for="ls-enable-optimization-checkbox">
<?php echo __( 'Enable Google Fonts Optimization', 'thrive-cb' ); ?>
</label>
<p class="ls-setting-info">
<?php echo __( 'Improves Google Fonts performance and combines multiple font requests for better Core Web Vital results.', 'thrive-cb' ); ?>
<a target="_blank" href="http://help.thrivethemes.com/en/articles/5448042-configuring-the-font-settings-in-project-lightspeed#h_31067c257a"><?php echo __( 'Learn more', 'thrive-cb' ); ?></a>
</p>
</div>
<div class="ls-option-item<#= canLoadFontsAsync ? '' : ' ls-disabled-item' #>">
<input type="checkbox"
id="ls-enable-async-fonts-checkbox"
data-key="<?php echo \TCB\Lightspeed\Fonts::ENABLE_ASYNC_FONTS_LOAD; ?>"
class="noUi-target noUi-ltr noUi-horizontal noUi-background ls-setting-input" <#= <?php echo TCB\Lightspeed\Fonts::ENABLE_ASYNC_FONTS_LOAD ?> ? 'checked': '' #>>
<label for="ls-enable-async-fonts-checkbox">
<?php echo __( 'Load Google Fonts Asynchronously', 'thrive-cb' ); ?>
</label>
<p class="ls-setting-info">
<?php echo __( 'Tells the browser to preload Google Fonts in the background, this can improve Core Web Vitals in some cases.', 'thrive-cb' ); ?>
<a target="_blank" href="http://help.thrivethemes.com/en/articles/5448042-configuring-the-font-settings-in-project-lightspeed#h_31067c257a/"><?php echo __( 'Learn more', 'thrive-cb' ); ?></a>
</p>
</div>
<div class="ls-option-item">
<input type="checkbox"
id="ls-disable-google-fonts-checkbox"
data-key="<?php echo \TCB\Lightspeed\Fonts::DISABLE_GOOGLE_FONTS; ?>"
class="noUi-target noUi-ltr noUi-horizontal noUi-background ls-setting-input" <#= <?php echo TCB\Lightspeed\Fonts::DISABLE_GOOGLE_FONTS ?> ? 'checked': '' #>>
<label for="ls-disable-google-fonts-checkbox">
<?php echo __( 'Disable all Google Fonts loaded by Thrive on your website.', 'thrive-cb' ); ?>
</label>
<p class="ls-setting-info">
<?php echo __( 'Prevent any Google font from loading in a page.', 'thrive-cb' ); ?>
<a target="_blank" href="http://help.thrivethemes.com/en/articles/5448042-configuring-the-font-settings-in-project-lightspeed#h_ac726f97ee">
<?php echo __( 'Learn more', 'thrive-cb' ); ?>
</a>
</p>
</div>
</div>

View File

@@ -0,0 +1,9 @@
<ul id="ls-menu-container"></ul>
<div>
<div id="ls-view-container"></div>
<div class="ls-footer">
<a href="<?php echo admin_url( 'admin.php?page=tve_dash_section' ); ?>" class="tvd-waves-effect tvd-waves-light tvd-btn-small tvd-btn-gray">
<?php echo __( 'Back To Dashboard', 'thrive-cb' ); ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<li class="ls-menu-item<#= url.includes(currentRoute) ? ' active':'' #>">
<a href="<#= url #>"><#= label #></a>
</li>

View File

@@ -0,0 +1,15 @@
<div class="ls-optimization-wrapper">
<div class="page-content grey">
<div class="page-title"><?php echo __( 'Site Analysis Results', 'thrive-cb' ); ?></div>
<div class="page-text-wrapper">
<span class="big-icon success"></span>
<div class="text-title green-color">
<?php echo __( 'All assets on your site are optimized to the latest version', 'thrive-cb' ); ?>
</div>
</div>
<button class="lightspeed-button grey lightspeed-force-optimize">
<?php echo __( 'Rerun asset optimization', 'thrive-cb' ); ?>
</button>
</div>
<div class="page-footer"></div>
</div>

View File

@@ -0,0 +1,68 @@
<div class="ls-optimization-wrapper">
<div class="page-content ">
<svg id="lightspeed-icon" width="70" height="68" viewBox="0 0 70 68">
<g fill="none" fill-rule="evenodd">
<g>
<g>
<path d="M1.247 1.217H69.421V64.521H1.247z" transform="translate(-728 -189) translate(728 189)"/>
<path fill="#2A5082" fill-rule="nonzero" d="M68.39 0C69.279 0 70 .819 70 1.826v62.087c0 1.007-.722 1.826-1.61 1.826h-2.042l-.001-1.218h2.436V1.218H1.217v63.305l2.435-.001v1.218H1.61C.722 65.74 0 64.92 0 63.913V1.826C0 .82.722 0 1.61 0z" transform="translate(-728 -189) translate(728 189)"/>
<path stroke="#2A5082" stroke-width="1.2" d="M63.913 45.652V14.174c0-1.105-.895-2-2-2H8.087c-1.105 0-2 .895-2 2v31.478h0" transform="translate(-728 -189) translate(728 189)"/>
<path fill="#A3D4FF" stroke="#2A5082" stroke-width="1.2" d="M35.03 34.087c15.968 0 28.912 12.945 28.912 28.913 0 .717-.026 1.427-.077 2.13H54.7c.075-.7.113-1.41.113-2.13 0-10.926-8.857-19.783-19.783-19.783-10.925 0-19.782 8.857-19.782 19.783 0 .72.038 1.43.113 2.13H6.194c-.052-.703-.078-1.413-.078-2.13 0-15.968 12.945-28.913 28.913-28.913z" transform="translate(-728 -189) translate(728 189)"/>
<path fill="#2A5082" fill-rule="nonzero" d="M6.61 3.652c.624 0 1.13.507 1.13 1.131 0 .625-.506 1.131-1.13 1.131-.625 0-1.132-.506-1.132-1.13 0-.625.507-1.132 1.131-1.132zm4.976 0c.624 0 1.13.507 1.13 1.131 0 .625-.506 1.131-1.13 1.131-.625 0-1.131-.506-1.131-1.13 0-.625.506-1.132 1.13-1.132zm4.976 0c.625 0 1.131.507 1.131 1.131 0 .625-.506 1.131-1.13 1.131-.625 0-1.132-.506-1.132-1.13 0-.625.507-1.132 1.131-1.132zM5.508 7.913H64.551V9.13H5.508z"
transform="translate(-728 -189) translate(728 189)"/>
<g fill="#2A5082" fill-rule="nonzero">
<g>
<path d="M0 3.652H45.652V4.869H0zM0 0H45.652V1.217H0z" transform="translate(-728 -189) translate(728 189) translate(12.174 19.478)"/>
</g>
</g>
<path fill="#2A5082" fill-rule="nonzero" d="M52.348 4.261H64.52199999999999V5.478H52.348z" transform="translate(-728 -189) translate(728 189)"/>
<g stroke="#2A5082" stroke-linecap="round" stroke-width="1.5">
<path d="M2.243 14.923L2.763 19.159" transform="translate(-728 -189) translate(728 189) translate(9.16 34.391) scale(-1 1) rotate(70 0 13.466)"/>
<path d="M10.732 4.714L13.361 8.196" transform="translate(-728 -189) translate(728 189) translate(9.16 34.391) scale(-1 1) rotate(70 0 -10.75)"/>
<path d="M23.57 1.704L27.563 3.157" transform="translate(-728 -189) translate(728 189) translate(9.16 34.391) scale(-1 1) rotate(70 0 -34.083)"/>
<path d="M37.381 6.55L41.271 5.692" transform="translate(-728 -189) translate(728 189) translate(9.16 34.391) scale(-1 1) rotate(70 0 -50.042)"/>
<path d="M47.83 17.797L50.841 15.136" transform="translate(-728 -189) translate(728 189) translate(9.16 34.391) scale(-1 1) rotate(70 0 -53.992)"/>
</g>
<g fill="#2A5082" fill-rule="nonzero">
<path d="M.162.08c8.85.854 15.664 8.314 15.664 17.268 0 .254-.005.508-.016.76l-.02.379-1.199-.385c.012-.335.018-.586.018-.754 0-8.242-6.21-15.124-14.317-16.03L.162.081z" transform="translate(-728 -189) translate(728 189) translate(36.522 45.894)"/>
<path d="M11.285 10.968c.751 1.506 1.232 3.136 1.414 4.828l.033.34-1.243-.206c.02.019-.066-.4-.259-1.257-.289-1.285-.578-2.196-.892-2.866l-.046-.095.993-.744z" transform="translate(-728 -189) translate(728 189) translate(36.522 45.894)"/>
</g>
<g stroke="#2A5082" stroke-width="1.2" transform="translate(-728 -189) translate(728 189) translate(28.638 50.522)">
<path d="M9.267 18.085c2.417-.002 4.626-2.212 4.627-4.628.002-2.415-2.861-12.24-3.837-12.24-.975 0-5.044 9.403-5.181 11.977-.137 2.574 1.974 4.892 4.391 4.89z" transform="rotate(45 9.382 9.651)"/>
<circle cx="6.391" cy="12.478" r="2.13"/>
</g>
<path fill="#2A5082" fill-rule="nonzero"
d="M7.344 62.08l2.43.15v.85l-2.43-.042v-.959zm55.35-.442l.028.89-2.436.11-.032-.83 2.44-.17zM7.606 59.047l2.44.365-.086.635-2.44-.366.086-.634zm54.777-.45l.092.621-2.418.38-.091-.62 2.417-.38zM8.205 56.055l2.375.59-.147.592-2.376-.592.148-.59zm53.538-.432l.164.586-2.387.665-.163-.586 2.386-.665zM9.138 53.154l2.302.843-.21.572-2.302-.843.21-.572zm51.62-.433l.224.566-2.277.901-.224-.566 2.277-.9zm-48.88-4.937l2.046 1.316-.33.512-2.045-1.316.329-.512zm46.023-.415l.337.507-2.031 1.352-.338-.506 2.032-1.353zM13.7 45.31l1.901 1.544-.384.472-1.9-1.543.383-.473zm42.36-.365l.387.469-1.896 1.568-.388-.47 1.896-1.567zM15.78 43.066l1.707 1.769-.438.423-1.707-1.769.438-.423zm38.151-.345l.442.419-1.702 1.797-.441-.42 1.701-1.796zm-35.825-1.644L19.622 43l-.477.377-1.516-1.923.478-.377zm33.471-.307l.485.368-1.484 1.955-.485-.368 1.484-1.955zm-28.293-2.857l1.06 2.19-.548.265-1.06-2.19.548-.265zm23.06-.201l.554.254-1.018 2.217-.553-.254 1.018-2.217zm-20.244-.95l.816 2.313-.574.202-.816-2.312.574-.203zm17.41-.132l.579.191-.765 2.311-.578-.191.765-2.31zm-14.473-.692l.556 2.392-.593.138-.556-2.392.593-.138zm11.524-.084l.596.125-.503 2.391-.595-.125.502-2.391zm-8.436-.398l.327 2.44-.673.072-.327-2.44.673-.072zm5.457-.034l.723.058-.277 2.424-.723-.058.277-2.424z"
transform="translate(-728 -189) translate(728 189)"/>
</g>
</g>
</g>
</svg>
<div class="page-title"><?php echo __( 'Optimize assets for a blazing fast site', 'thrive-cb' ); ?></div>
<div class="page-text-wrapper">
<div class="text-title blue-color"><?php echo __( 'Asset optimization is vital for a fast site.', 'thrive-cb' ); ?></div>
<div class="text-main">
<div class="text-paragraph">
<?php echo __( 'This optimization tool ensure that assets such as javascript and CSS files are only loaded on pieces content where theyre actually used.', 'thrive-cb' ); ?>
</div>
<div class="text-paragraph">
<?php echo __( 'Your site must be analyzed first to find which assets can be optimized. Please note that site analysis may take 1-2 minutes depending on the size of your site', 'thrive-cb' ); ?>
</div>
<a target="_blank" class="link-text" href="https://help.thrivethemes.com/en/articles/5295426-what-is-the-asset-optimization-tool-how-does-it-work">
<?php echo __( 'Learn more about this tool ' ); ?>
</a>
</div>
</div>
<div class="page-button-wrapper white">
<div class="button-description bold">
<?php echo __( 'Click the button below to get started', 'thrive-cb' ); ?>
</div>
<button class="lightspeed-button blue-color lightspeed-analyze">
<span class="analyze-icon"></span>
<?php echo __( 'Analyze this site', 'thrive-cb' ); ?>
</button>
</div>
</div>
<div class="page-footer"></div>
</div>

View File

@@ -0,0 +1,5 @@
<div class="text-paragraph failed-item">
<span><#= index #></span>
<strong><#= group #></strong>
<span><#= name #></span>
</div>

View File

@@ -0,0 +1,43 @@
<div class="ls-optimization-wrapper">
<div class="page-content grey">
<div class="page-title">
<?php echo __( 'Asset optimization finished!', 'thrive-cb' ); ?>
<div class="page-subtitle"><#= optimizationTime #></div>
</div>
<div class="page-text-wrapper">
<div class="optimization-results-wrapper">
<div class="optimization-result">
<div class="result-wrapper success">
<span class="big-icon success"></span>
<div class="result-description">
<div class="number"><#= optimizedItems #></div>
<div class="description"><?php echo __( 'optimized assets', 'thrive-cb' ); ?></div>
</div>
</div>
</div>
<# if(failedItems > 0) { #>
<div class="optimization-result">
<div class="result-wrapper fail">
<span class="big-icon fail"></span>
<div class="result-description">
<div class="number"><#= failedItems #></div>
<div class="description"><?php echo __( 'failed to optimize*', 'thrive-cb' ); ?></div>
</div>
</div>
<button class="link-text show-failed"><?php echo __( '*View entire failed list', 'thrive-cb' ); ?></button>
</div>
<# } #>
</div>
<div class="failed-items"></div>
<div class="page-button-wrapper">
<div class="divider"></div>
<div class="button-description normal">
<?php echo __( 'Return to the control panel to enable optimized asset loading on your site', 'thrive-cb' ); ?>
</div>
<button class="lightspeed-button blue-color go-to-home">
<?php echo __( 'Go to control panel', 'thrive-cb' ); ?>
</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,12 @@
<div class="text-paragraph <#= status === 'running' ? 'optimizing':'' #>">
<# if(status === 'optimized') { #>
<span class="small-icon success"></span>
<# } else if(status === 'running') { #>
<span class="spinner is-active"></span>
<# } else if(status === 'fail') { #>
<span class="small-icon fail"></span>
<# } else { #>
<span class="waiting"></span>
<# } #>
<#= items.where( {optimized: true} ).length #> of <#= items.length #>&nbsp;<strong><#= label #></strong>&nbsp;have been optimized.
</div>

View File

@@ -0,0 +1,25 @@
<div class="ls-optimization-wrapper">
<div class="page-content grey">
<div class="page-title"><?php echo __( "Your assets aren't fully optimized", 'thrive-cb' ); ?></div>
<div class="page-text-wrapper">
<span class="big-icon warning"></span>
<div class="text-title red-color"><?php echo __( 'None of your assets are optimized. ', 'thrive-cb' ); ?></div>
<div class="text-main">
<div class="text-paragraph">
<?php echo __( 'Click the button below to migrate to the latest version for additional performance benefits. Once complete, you can disable and enable site optimizations at any time with a single click', 'thrive-cb' ); ?>
</div>
</div>
</div>
<button class="lightspeed-button blue-color lightspeed-optimize">
<?php echo __( 'Optimize my site', 'thrive-cb' ); ?>
</button>
<div class="page-footnote-wrapper">
<div class="footnote-text">
<?php echo __( 'Please note that optimization may take some time to complete depending on the size of your site. Youll see a live update of migration occurring. You can leave it running in the background and come back at any point to see progress.', 'thrive-cb' ); ?>
</div>
<a class="link-text" target="_blank" href="https://help.thrivethemes.com/en/articles/5295426-what-is-the-asset-optimization-tool-how-does-it-work">
<?php echo __( 'Learn more about the migration process', 'thrive-cb' ); ?>
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,23 @@
<div class="ls-optimization-wrapper">
<div class="page-content grey">
<div class="page-title"><?php echo __( "Some of your site assets aren't fully optimized", 'thrive-cb' ); ?></div>
<div class="page-text-wrapper">
<span class="big-icon continue"></span>
<div class="text-title blue-color">
<?php echo sprintf( __( '%s of %s items have been updated to the latest version.', 'thrive-cb' ),
'<#= optimizedItems #>',
'<#= totalItems #>'
); ?>
</div>
<div class="text-main">
<div class="text-paragraph">
<?php echo __( 'Click the button below to continue until your site is fully optimized.', 'thrive-cb' ); ?>
</div>
</div>
</div>
<button class="lightspeed-button blue-color lightspeed-optimize">
<?php echo __( 'Continue optimization', 'thrive-cb' ); ?>
</button>
</div>
<div class="page-footer"></div>
</div>

View File

@@ -0,0 +1,31 @@
<div class="ls-optimization-wrapper">
<div class="page-header">
<?php echo __( 'Please note this optimization tool will run in the background.<b> Please dont close the page</b> while it is running. If the migration fails before completing then you can rerun the tool and it will automatically continue from where it got to previously', 'thrive-cb' ); ?>
</div>
<div class="page-content white">
<div class="page-title"><?php echo __( 'Asset Optimization in Progress …', 'thrive-cb' ); ?></div>
<div class="page-text-wrapper">
<div class="text-main align-left">
<div class="text-paragraph mt-0 mb-5">
<span class="small-icon estimated-time-icon"></span>
<?php echo sprintf( __( 'Estimated time to completion:&nbsp<b>%s</b>', 'thrive-cb' ), '<span class="optimization-time"> ~ </span>' ); ?>
</div>
<div class="text-paragraph mt-0 mb-5">
<span class="small-icon success"></span>
<?php echo sprintf( __( '<b>%s of %s items</b>&nbsphave been updated to the latest version', 'thrive-cb' ), '<span class="optimized-items"> ~ </span>', '<span class="total-items"> ~ </span>' ); ?>
</div>
<div class="text-paragraph mt-0 red-color failed-optimization-wrapper">
<span class="small-icon fail"></span>
<?php echo sprintf( __( '<b>%s items</b>&nbspfailed to update', 'thrive-cb' ), '<span class="optimization-failed-items"> ~ </span>' ); ?>
</div>
</div>
</div>
<div class="currently-optimizing">
<?php echo __( 'Currently optimizing: ', 'thrive-cb' ); ?><span class="item-in-progress"></span>
</div>
<div class="progress-bar-wrapper"></div>
</div>
<div class="groups-to-optimize"></div>
</div>

View File

@@ -0,0 +1,16 @@
<div class="tvd-switch">
<div class="label-text">
<div class="text">
<?php echo __( 'Display optimized assets on the front end of your site ', 'thrive-cb' ); ?>
</div>
<span class="info-icon"></span>
<div class="info-tooltip" style="display:none">
<?php echo __( 'After your optimized code has been prepared, you can enable or disable it in one click with this toggle. When disabled, your website will fall back to loading the assets it did before optimization. You may need to analyze your site again before enabling.', 'thrive-cb' ); ?>
</div>
</div>
<label>
<input type="checkbox" class="tvd-toggle-input toggle-lightspeed" <#= isEnabled ? 'checked': '' #>>
<span class="tvd-lever"></span>
</label>
</div>

View File

@@ -0,0 +1,4 @@
<div class="progress-bar">
<div class="progress-bar-percentage"><#= progress #>%</div>
<div class="progress-bar-value" style="width: <#= progress #>%;"></div>
</div>