403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.46
Web Server : Apache
System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : infrafs ( 43850)
PHP Version : 8.2.29
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/infrafs/www/wp-content/themes/trackstore/framework/modules/sidearea/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/infrafs/www/wp-content/themes/trackstore/framework/modules/sidearea//functions.php
<?php
if ( ! function_exists( 'trackstore_elated_register_side_area_sidebar' ) ) {
	/**
	 * Register side area sidebar
	 */
	function trackstore_elated_register_side_area_sidebar() {
		register_sidebar(
			array(
				'id'            => 'sidearea',
				'name'          => esc_html__( 'Side Area', 'trackstore' ),
				'description'   => esc_html__( 'Side Area', 'trackstore' ),
				'before_widget' => '<div id="%1$s" class="widget eltd-sidearea %2$s">',
				'after_widget'  => '</div>',
				'before_title'  => '<div class="eltd-widget-title-holder"><h4 class="eltd-widget-title">',
				'after_title'   => '</h4></div>'
			)
		);
	}
	
	add_action( 'widgets_init', 'trackstore_elated_register_side_area_sidebar' );
}

if ( ! function_exists( 'trackstore_elated_side_menu_body_class' ) ) {
	/**
	 * Function that adds body classes for different side menu styles
	 *
	 * @param $classes array original array of body classes
	 *
	 * @return array modified array of classes
	 */
	function trackstore_elated_side_menu_body_class( $classes ) {
		
		if ( is_active_widget( false, false, 'eltd_side_area_opener' ) ) {
			
			$classes[] = 'eltd-side-menu-slide-from-right';
		}
		
		return $classes;
	}
	
	add_filter( 'body_class', 'trackstore_elated_side_menu_body_class' );
}

if ( ! function_exists( 'trackstore_elated_get_side_area' ) ) {
	/**
	 * Loads side area HTML
	 */
	function trackstore_elated_get_side_area() {
		
		if ( is_active_widget( false, false, 'eltd_side_area_opener' ) ) {
			
			trackstore_elated_get_module_template_part( 'templates/sidearea', 'sidearea' );
		}
	}
	
	add_action( 'trackstore_elated_after_body_tag', 'trackstore_elated_get_side_area', 10 );
}

Youez - 2016 - github.com/yon3zu
LinuXploit