* Smush upgrade page class: Upgrade extends Abstract_Page.
* @package Smush\App\Pages
namespace Smush\App\Pages;
use Smush\App\Abstract_Page;
if ( ! defined( 'WPINC' ) ) {
class Upgrade extends Abstract_Page {
public function render() {
<div class="<?php echo $this->settings->get( 'accessible_colors' ) ? 'sui-wrap sui-color-accessible' : 'sui-wrap'; ?>">
<?php $this->render_inner_content(); ?>
public function on_load() {
wp_enqueue_script( 'smush-sui', WP_SMUSH_URL . 'app/assets/js/smush-sui.min.js', array( 'jquery' ), WP_SHARED_UI_VERSION, true );
wp_enqueue_script( 'smush-wistia', '//fast.wistia.com/assets/external/E-v1.js', array(), WP_SMUSH_VERSION, true );
wp_enqueue_style( 'smush-admin', WP_SMUSH_URL . 'app/assets/css/smush-admin.min.css', array(), WP_SMUSH_VERSION );
* Common hooks for all screens.
public function add_action_hooks() {
add_filter( 'admin_body_class', array( $this, 'smush_body_classes' ) );