403Webshell
Server IP : 192.64.112.168  /  Your IP : 3.22.27.222
Web Server : Apache
System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64
User : expressoneac ( 1128)
PHP Version : 8.0.30
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/expressoneac/www/wp-content/themes/woodmart/inc/modules/header-builder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/expressoneac/www/wp-content/themes/woodmart/inc/modules/header-builder//Elements.php
<?php if ( ! defined('WOODMART_THEME_DIR')) exit('No direct script access allowed');

/**
 * ------------------------------------------------------------------------------------------------
 * Include all elements classes and create their objects. AJAX handlers.
 * ------------------------------------------------------------------------------------------------
 */

if( ! class_exists( 'WOODMART_HB_Elements' ) ) {
	class WOODMART_HB_Elements {

		public $elements = array(
			'Root',
			'Row',
			'Column',
			'Logo',
			'Mainmenu',
			'Menu',
			'Burger',
			'Cart',
			'Wishlist',
			'Compare',
			'Search',
			'Mobilesearch',
			'Account',
			'Categories',
			'Divider',
			'Space',
			'Text',
			'HTMLBlock',
			'Button',
			'Infobox',
			'Social',
			'Stickynavigation',
		);

		public $elements_classes = array();

		public function __construct() {
			$this->_init();
		}

		private function _init() {
			add_action('init', array($this, 'include_files'));
			add_action('init', array($this, 'ajax_actions'));
		}

		public function include_files() {
			if ( defined( 'WPML_PLUGIN_BASENAME' ) ) {
				$this->elements[] = 'Languages';
			}

			require_once WOODMART_HB_DIR . 'elements/abstract/Element.php';

			foreach ($this->elements as $class) {
				$path = WOODMART_HB_DIR . 'elements/' . $class . '.php';

				if( file_exists( $path ) ) {
					require_once $path;
					$class_name = 'WOODMART_HB_' . $class;
					$this->elements_classes[ $class ] = new $class_name();
				}
			}
		}

		public function ajax_actions() {
			add_action( 'wp_ajax_woodmart_get_builder_elements', array($this, 'get_elements_ajax') );
		}

		public function get_elements_ajax() {
			check_ajax_referer( 'woodmart-get-builder-elements-nonce', 'security' );

			$elements = array();

			foreach ($this->elements_classes as $el => $class) {
				$args = $class->get_args();
				if( $args['addable'] ) $elements[] = $class->get_args();
			}

			echo json_encode($elements);

			wp_die();
		}
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit