HEX
Server: LiteSpeed
System: Linux standart103.isimtescil.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: byildiz (11197)
PHP: 8.2.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/byildiz.com.tr/httpdocs/wp-content/plugins/lumex-plugin/elementor/functions.php
<?php
/**
 *  Lumex Elementor Layout Builder
 *
 * @package Lumex
 * @since 1.0
 */

// We check if the Elementor plugin has been installed / activated.

if( !in_array( 'elementor/elementor.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) return;

class Lumex_Elementor_Widget {

	private static $instance = null;

	/**
	 * @since 1.0
	 */
	public static function get_instance() {
	    if ( ! self::$instance )
	       self::$instance = new self;
	    return self::$instance;
	}

	/**
	 * @since 1.0
	 */
	public function init(){
		add_action( 'elementor/widgets/register', array( $this, 'lumex_elementor_register_widgets' ) );

		add_action('elementor/frontend/after_register_styles', array($this, 'lumex_elementor_frontend_styles'), 10);

		add_action('elementor/frontend/after_register_scripts', array($this, 'lumex_elementor_frontend_scripts'), 10);

		add_action( 'elementor/elements/categories_registered', array( $this, 'lumex_elementor_widgets_category' ) );
	}

	/**
	 * @since 1.0
	 */
	public function lumex_elementor_register_widgets() {
		//Require all PHP helpers functions in the /elementor/widgets/helper directory
		require_once plugin_dir_path( __FILE__ ) . 'widgets/helper/buttons.php';
		require_once plugin_dir_path( __FILE__ ) . 'widgets/helper/title.php';
		require_once plugin_dir_path( __FILE__ ) . 'widgets/helper/avatars.php';
		require_once plugin_dir_path( __FILE__ ) . 'widgets/helper/counters.php';
		require_once plugin_dir_path( __FILE__ ) . 'widgets/helper/bg-image.php';

		//Require all PHP files in the /elementor/widgets directory
		foreach( glob( plugin_dir_path( __FILE__ ) . "widgets/*.php" ) as $file ) {
		    require $file;
		}
	}

	/**
	 * @since 1.0
	 */
	public function lumex_elementor_frontend_scripts() {
		wp_enqueue_script( 'lumex-plugin-frontend-widget-scripts',  plugin_dir_url( __FILE__ ) . 'assets/js/front-end-widget.js', array('jquery'), false, true);
	}

	/**
	 * @since 1.0
	 */
	public function lumex_elementor_frontend_styles() {
		wp_enqueue_style( 'lumex-plugin-frontend-widget-style', plugin_dir_url( __FILE__ ) . 'assets/css/style.css', null, 1.0 );
	}

	/**
	 * @since 1.0
	 */
	public function lumex_elementor_widgets_category( $elements_manager ) {
		$elements_manager->add_category(
			'lumex-category',
			[
				'title' => esc_html__( 'Lumex', 'lumex-plugin' ),
				'icon' => 'fa fa-plug',
			]
		);
	}
}

Lumex_Elementor_Widget::get_instance()->init();

function lumex_get_footer_menu( $menu_name = '', $class = 'mil-footer-menu' ) {

	$output = '';

	$output = wp_nav_menu( array(
		'menu'		=> $menu_name,
		'container' => '',
		'menu_class' => $class
	) );

	return $output;
}

function lumex_get_popup_menu( $menu_name = '' ) {

	$output = '';

	if ( has_nav_menu( 'primary' ) ) :
		$output = wp_nav_menu( array(
			'theme_location' => 'primary',
			'menu' => $menu_name,
			'container' => '',
			'menu_class' => 'mil-main-menu-list',
			'walker' => new Lumex_Topmenu_Walker(),
		) );
	endif;

	return $output;
}

function lumex_get_list_menu( $menu_name = '' ) {

	$output = '';

	$output = wp_nav_menu( array(
		'menu'		=> $menu_name,
		'container' => 'nav',
		'menu_class' => 'mil-menu-list',
	) );

	return $output;
}