GRAYBYTE WORDPRESS FILE MANAGER3600

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/wp-smushit/app/pages/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/wp-smushit/app/pages//class-upgrade.php
<?php
/**
 * Smush upgrade page class: Upgrade extends Abstract_Page.
 *
 * @since 3.2.3
 * @package Smush\App\Pages
 */

namespace Smush\App\Pages;

use Smush\App\Abstract_Page;

if ( ! defined( 'WPINC' ) ) {
	die;
}

/**
 * Class Upgrade
 */
class Upgrade extends Abstract_Page {
	/**
	 * Parent slug.
	 */
	private $parent_slug;

	public function __construct( $slug, $title, $parent_slug = false, $is_upsell_link = false ) {
		parent::__construct( $slug, $title, $parent_slug, false, $is_upsell_link );

		if ( $is_upsell_link ) {
			$this->parent_slug = $parent_slug;
			add_action( 'admin_head', array( $this, 'adjust_upsell_submenu' ) );
		}
	}

	public function adjust_upsell_submenu() {
		$submenu_selector = "#toplevel_page_{$this->parent_slug} li:last-child a";
		?>
		<style>
			<?php echo esc_html( $submenu_selector ); ?> {
				background-color: #8d00b1 !important;
				color: #fff !important;
				font-weight: 500 !important;
				white-space: nowrap;
			}
		</style>
		<script>
			window.addEventListener( 'load', function() {
				document.querySelector( '<?php echo esc_html( $submenu_selector ); ?>' ).target="_blank";
			} );
		</script>
		<?php
	}

	/**
	 * Render the 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(); ?>
		</div>
		<?php
	}

	/**
	 * Render inner content.
	 */
	public function render_inner_content() {
		$this->view( 'smush-upgrade-page' );
	}

	/**
	 * On load actions.
	 */
	public function on_load() {
		add_action(
			'admin_enqueue_scripts',
			function() {
				wp_enqueue_script( 'smush-sui', WP_SMUSH_URL . 'app/assets/js/smush-sui.min.js', array( 'jquery', 'clipboard' ), 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' ) );
	}

}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:34
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:34
giriqfky / giriqfky
0644
class-bulk.php
24.237 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
class-cdn.php
4.004 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
class-dashboard.php
10.061 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
class-directory.php
5.106 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
class-integrations.php
2.195 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
class-lazy.php
1.431 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
class-next-gen.php
7.291 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
class-nextgen.php
3.659 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
class-settings.php
6.97 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
class-tutorials.php
1.345 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
class-upgrade.php
2.165 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF