| @@ -344,9 +344,9 @@ | ||
| 344 | 344 | |
| 345 | 345 | <section class="quickwebp-card" id="quickwebp-tools"> |
| 346 | 346 | <div class="quickwebp-card-head"> |
| 347 | 347 | <h2><?php esc_html_e( 'Other tools', 'quickwebp' ); ?></h2> |
| 348 | - <p><?php esc_html_e( 'Fine tune file naming, paste behavior, and backend image library.', 'quickwebp' ); ?></p> | |
| 348 | + <p><?php esc_html_e( 'Fine tune file naming, paste behavior, and local image processing.', 'quickwebp' ); ?></p> | |
| 349 | 349 | </div> |
| 350 | 350 | <div class="quickwebp-card-body"> |
| 351 | 351 | <table class="form-table"> |
| 352 | 352 | <?php $this->render_component( array( |
| @@ -390,8 +390,20 @@ | ||
| 390 | 390 | 'label' => __( 'Enable/disable paste picture directly (beta)', 'quickwebp' ), |
| 391 | 391 | 'default' => quickwebp_settings_default( 'quickwebp_settings_paste_image' ), |
| 392 | 392 | 'description' => __( 'With this feature you can paste directly your picture in WordPress media.', 'quickwebp' ), |
| 393 | 393 | ) ); ?> |
| 394 | + | |
| 395 | + <?php $this->render_component( array( | |
| 396 | + 'type' => 'toggle', | |
| 397 | + 'name' => 'quickwebp_settings_debug_mode', | |
| 398 | + 'label' => __( 'Enable/disable debug mode', 'quickwebp' ), | |
| 399 | + 'default' => quickwebp_settings_default( 'quickwebp_settings_debug_mode' ), | |
| 400 | + 'description' => sprintf( | |
| 401 | + /* translators: %s: debug log path. */ | |
| 402 | + __( 'Write detailed optimization logs to %s.', 'quickwebp' ), | |
| 403 | + quickwebp_get_debug_log_path() | |
| 404 | + ), | |
| 405 | + ) ); ?> | |
| 394 | 406 | </table> |
| 395 | 407 | </div> |
| 396 | 408 | </section> |
| 397 | 409 | |
| @@ -606,9 +618,9 @@ | ||
| 606 | 618 | </div> |
| 607 | 619 | |
| 608 | 620 | <div class="quickwebp__pro-popup__content__body__bottom"> |
| 609 | 621 | <div class="quickwebp__pro-popup__content__body__bottom__upgrade"> |
| 610 | - <a href="<?php echo esc_url( quickwebp_get_pro_url( 'settings-upgrade-popup' ) ); ?>" class="quickwebp__pro-popup__content__body__bottom__upgrade__link"> | |
| 622 | + <a href="<?php echo esc_url( quickwebp_get_pro_url( 'settings-upgrade-popup' ) ); ?>" class="quickwebp__pro-popup__content__body__bottom__upgrade__link" target="_blank"> | |
| 611 | 623 | <span class="quickwebp__pro-popup__content__body__bottom__upgrade__link__icon"> |
| 612 | 624 | <?php echo wp_kses( file_get_contents( QUICKWEBP_PLUGIN_PATH . 'public/assets/svg/crown.svg' ), quickwebp_allowed_tags_for_svg_files() ); ?> |
| 613 | 625 | </span> |
| 614 | 626 | <?php esc_html_e( 'Upgrade to QuickWebP Pro', 'quickwebp' ); ?> |