array( 'icon' => '', 'title' => esc_html__('Settings', 'wp-asset-clean-up'), 'page' => 'wpassetcleanup_settings' ), 'admin.php?page=wpassetcleanup_assets_manager' => array( 'icon' => '', 'title' => esc_html__('CSS & JS Manager', 'wp-asset-clean-up'), 'page' => 'wpassetcleanup_assets_manager', ), 'admin.php?page=wpassetcleanup_plugins_manager' => array( 'icon' => '', 'title' => esc_html__('Plugins Manager', 'wp-asset-clean-up'), 'page' => 'wpassetcleanup_plugins_manager', ), 'admin.php?page=wpassetcleanup_bulk_unloads' => array( 'icon' => '', 'title' => esc_html__('Bulk Changes', 'wp-asset-clean-up'), 'page' => 'wpassetcleanup_bulk_unloads' ), 'admin.php?page=wpassetcleanup_overview' => array( 'icon' => '', 'title' => esc_html__('Overview', 'wp-asset-clean-up'), 'page' => 'wpassetcleanup_overview' ), 'admin.php?page=wpassetcleanup_tools' => array( 'icon' => '', 'title' => esc_html__('Tools', 'wp-asset-clean-up'), 'page' => 'wpassetcleanup_tools' ), 'admin.php?page=wpassetcleanup_license' => array( 'icon' => '', 'title' => esc_html__('License', 'wp-asset-clean-up'), 'page' => 'wpassetcleanup_license' ), 'admin.php?page=wpassetcleanup_get_help' => array( 'icon' => '', 'title' => esc_html__('Help', 'wp-asset-clean-up'), 'page' => 'wpassetcleanup_get_help' ), // [wpacu_lite] 'admin.php?page=wpassetcleanup_go_pro' => array( 'icon' => '', 'title' => __('Go Pro', 'wp-asset-clean-up'), 'page' => 'wpassetcleanup_go_pro', 'target' => '_blank' ) // [/wpacu_lite] ); global $current_screen; $wpacuCurrentPage = isset($data['page']) ? $data['page'] : false; if (! $wpacuCurrentPage) { $wpacuCurrentPage = str_replace( array(str_replace(' ', '-', strtolower(WPACU_PLUGIN_TITLE)) . '_page_', 'toplevel_page_'), '', $current_screen->base ); } $wpacuDefaultPageUrl = esc_url(admin_url(Misc::arrayKeyFirst($wpacuTopAreaLinks))); $goBackToCurrentUrl = '&_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ); $isSettingsCurrentPage = ($wpacuCurrentPage !== WPACU_PLUGIN_ID . '_settings'); ?>
LITE
v
: | settings['test_mode']) { echo 'ON '; echo '* settings only apply to you (logged-in admin)'; } else { echo 'OFF '; echo '* settings apply to any visitor'; } if ($isSettingsCurrentPage) { ?>