GRAYBYTE WORDPRESS FILE MANAGER3875

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
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/nioscentre.in/wp-content/plugins/elementskit-lite/modules/onepage-scroll/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/nioscentre.in/wp-content/plugins/elementskit-lite/modules/onepage-scroll//init.php
<?php
namespace ElementsKit_Lite\Modules\Onepage_Scroll;

defined( 'ABSPATH' ) || exit;

class Init {
	private $dir;
	private $url;

	public function __construct() {

		// get current directory path
		$this->dir = dirname( __FILE__ ) . '/';

		// get current module's url
		$this->url = \ElementsKit_Lite::plugin_url() . 'modules/onepage-scroll/';
		
		// enqueue styles and scripts
		add_action( 'elementor/frontend/after_enqueue_styles', array( $this, 'load_styles' ) );
		add_action( 'elementor/frontend/before_enqueue_scripts', array( $this, 'load_scripts' ) );
		add_action( 'elementor/frontend/before_enqueue_scripts', array( $this, 'editor_scripts' ) );

		// include all necessary files
		$this->include_files();

		// calling the sticky controls
		new \Elementor\ElementsKit_Extend_Onepage_Scroll();

		if ( \ElementsKit_Lite::package_type() === 'pro' ) :
			new \Elementor\ElementsKit_Pro_Extend_Onepage_Scroll();
		endif;
	}
	
	public function include_files() {
		include $this->dir . 'extend-controls.php';
		include $this->dir . 'extend-controls-pro.php';
	}

	public function load_styles() {
		if ( self::get_page_data_setting( 'ekit_onepagescroll' ) ) :
			wp_enqueue_style( 'one-page-scroll', $this->url . 'assets/css/one-page-scroll.min.css', array(), \ElementsKit_Lite::version() );
		endif;
	}

	public function load_scripts() {
		if ( self::get_page_data_setting( 'ekit_onepagescroll' ) ) :
			wp_enqueue_script( 'one-page-scroll', $this->url . 'assets/js/one-page-scroll.js', array( 'jquery', 'elementor-frontend' ), \ElementsKit_Lite::version(), true );
		endif;
	}

	public function editor_scripts() {
		// todo: has some conflicts with dependency.
		// wp_enqueue_script( 'ekit-onepage-scroll-editor', $this->url . 'assets/js/editor.js', ['jquery', 'elementor-editor', 'elementor-frontend'], \ElementsKit_Lite::version(), true );
	}

	public static function get_settings_model() {
		$post_id = get_the_ID();
		$page_settings_manager = \Elementor\Core\Settings\Manager::get_settings_managers( 'page' );
		return $page_settings_manager->get_model( $post_id );
	}

	public static function get_page_data_setting( $id ) {
		$page_settings = self::get_settings_model()->get_data('settings');
		return isset($page_settings[$id]) ? $page_settings[$id] : false;
	}

	public static function get_page_setting( $id ) {
		$settings_model = self::get_settings_model();
		return $settings_model->get_settings( $id );
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 25 2025 08:35:10
giriqfky / giriqfky
0755
assets
--
June 25 2025 08:35:10
giriqfky / giriqfky
0755
nav-styles
--
June 25 2025 08:35:10
giriqfky / giriqfky
0755
extend-controls-pro.php
8.067 KB
January 17 2023 10:06:26
giriqfky / giriqfky
0644
extend-controls.php
5.992 KB
April 15 2024 17:15:42
giriqfky / giriqfky
0644
init.php
2.374 KB
November 05 2023 14:39:58
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF