![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/anfangola.com/wp-content/plugins/wp-smushit/app/common/ |
<?php /** * Footer meta box, common to one or more modules. * * @since 3.2.0 * @package WP_Smush * * @var \Smush\App\Abstract_Page $this */ use Smush\Core\CDN\CDN_Helper; if ( ! defined( 'WPINC' ) ) { die; } $current_tab = $this->get_slug(); $button_msg = 'smush-bulk' === $current_tab ? '' : __( 'Saving changes...', 'wp-smushit' ); $button_text = __( 'Save changes', 'wp-smushit' ); /** * Filter to enable/disable submit button in integration settings. * * @param bool $show_submit Should show submit? */ $enabled = 'smush-integrations' === $current_tab ? apply_filters( 'wp_smush_integration_show_submit', false ) : true; if ( 'smush-cdn' === $current_tab && ! CDN_Helper::get_instance()->is_cdn_active() ) { $button_text = __( 'Save & Activate', 'wp-smushit' ); $button_msg = __( 'Activating CDN...', 'wp-smushit' ); } ?> <div class="sui-actions-right"> <?php if ( 'smush-integrations' === $current_tab || 'smush-bulk' === $current_tab ) : ?> <span class="sui-field-prefix"> <?php esc_html_e( 'Smush will automatically check for any images that need re-smushing.', 'wp-smushit' ); ?> </span> <?php endif; ?> <button type="submit" class="sui-button sui-button-blue" id="save-settings-button" aria-live="polite" <?php disabled( $enabled, false ); ?>> <span class="sui-button-text-default sui-loading-text"> <span class="sui-icon-save" aria-hidden="true"></span> <?php echo esc_html( $button_text ); ?> </span> <?php if ( ! empty( $button_msg ) ) : ?> <span class="sui-button-text-onload"> <span class="sui-icon-loader sui-loading" aria-hidden="true"></span> <?php echo esc_html( $button_msg ); ?> </span> <?php else : ?> <span class="sui-icon-loader sui-loading" aria-hidden="true"></span> <?php endif; ?> </button> </div>