403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.222
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www2/wp-content/themes/glaza/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/themes/glaza/functions.php
<?php
//theme version
define( 'GLAZA_THEME_VERSION', '2.0' );

require get_theme_file_path( '/backend/plugins.php' );

if ( class_exists( 'glaza_shortcodes' ) ) {
	require get_theme_file_path( '/backend/tinymce_action.php' );
}
require get_theme_file_path( '/includes/configs.php' );
require get_theme_file_path( '/theme_options/config.php' );
require get_theme_file_path( '/metaboxes/config.php' );
require get_theme_file_path( '/includes/action.php' );
require get_theme_file_path( '/includes/menu.php' );
require get_theme_file_path( '/includes/sidebar.php' );
require get_theme_file_path( '/includes/core.php' );
require get_theme_file_path( '/includes/query.php' );
require get_theme_file_path( '/includes/quick_filter.php' );
require get_theme_file_path( '/includes/ajax.php' );
if ( class_exists( 'WooCommerce' ) ) {
	require get_theme_file_path( '/includes/wc.php' );
}
require get_theme_file_path( '/includes/translation.php' );
require get_theme_file_path( '/includes/single_post.php' );
require get_theme_file_path( '/includes/page.php' );
require get_theme_file_path( '/includes/dynamic_style.php' );
add_action( 'after_setup_theme', 'glaza_theme_setup', 10 );
add_action( 'after_setup_theme', 'glaza_add_image_size', 20 );

//theme setup
if ( ! function_exists( 'glaza_theme_setup' ) ) {
	function glaza_theme_setup() {

		if ( ! isset( $GLOBALS['content_width'] ) ) {
			$GLOBALS['content_width'] = 1170;
		}

		add_theme_support( 'automatic-feed-links' );
		add_theme_support( 'title-tag' );
		add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );
		add_theme_support( 'post-formats', array( 'gallery', 'video', 'audio' ) );
		add_theme_support( 'post-thumbnails' );

		add_theme_support( 'woocommerce', array(
			'gallery_thumbnail_image_width' => 110,
			'thumbnail_image_width'         => 400,
			'single_image_width'            => 800,
		) );

		add_theme_support( 'wc-product-gallery-zoom' );
		add_theme_support( 'wc-product-gallery-lightbox' );
		add_theme_support( 'wc-product-gallery-slider' );

		register_nav_menus( array(
			'glaza_menu_main'      => esc_html__( 'Main Navigation', 'glaza' ),
			'glaza_menu_offcanvas' => esc_html__( 'Off-Canvas Navigation', 'glaza' ),
			'glaza_menu_footer'    => esc_html__( 'Footer Navigation', 'glaza' )
		) );

		load_theme_textdomain( 'glaza', get_template_directory() . '/languages' );
		add_editor_style( array( 'assets/css/editor-style.css', glaza_font_urls() ) );
	}
}

//registering theme thumbnails
if ( ! function_exists( 'glaza_add_image_size' ) ) {
	function glaza_add_image_size() {
		add_image_size( 'glaza_crop_1200x0', 1200, 0, array( 'center', 'top' ) );
		add_image_size( 'glaza_crop_800x0', 800, 0, array( 'center', 'top' ) );
		add_image_size( 'glaza_crop_600x600', 600, 600, array( 'center', 'top' ) );
		add_image_size( 'glaza_crop_400x540', 400, 540, array( 'center', 'top' ) );
		add_image_size( 'glaza_crop_400x480', 400, 480, array( 'center', 'top' ) );
		add_image_size( 'glaza_crop_200x200', 200, 200, array( 'center', 'top' ) );
	}
}

//default fonts
if ( ! function_exists( 'glaza_font_urls' ) ) {
	function glaza_font_urls() {

		$fonts_url       = '';
		$font_cormorant  = _x( 'on', 'Cormorant font: on or off', 'glaza' );
		$font_montserrat = _x( 'on', 'Montserrat font: on or off', 'glaza' );

		if ( 'off' !== $font_cormorant || 'off' !== $font_montserrat ) {
			$font_families = array();

			if ( 'off' !== $font_cormorant ) {
				$font_families[] = 'Cormorant:300,300i,400,400i,500,500i,600,600i,700,700i';
			}

			if ( 'off' !== $font_montserrat ) {
				$font_families[] = 'Montserrat:300,400,400i,500,600,700';
			}

			$params = array(
				'family' => urlencode( implode( '|', $font_families ) ),
				'subset' => urlencode( 'latin,latin-ext' ),
			);

			$fonts_url = add_query_arg( $params, 'https://fonts.googleapis.com/css' );

		}

		return $fonts_url;
	}
}

//add default fonts
if ( ! class_exists( 'ReduxFramework' ) && ! function_exists( 'glaza_add_default_font' ) ) {
	function glaza_add_default_font() {
		wp_enqueue_style( 'google-font-Montserrat-ptserif', esc_url_raw( glaza_font_urls() ), array(), null, 'all' );
	}

	add_action( 'wp_enqueue_scripts', 'glaza_add_default_font' );
}

/**
 * register script
 */
if ( ! function_exists( 'glaza_register_script_frontend' ) ) {
	function glaza_register_script_frontend() {

		wp_deregister_style( 'yith-wcwl-font-awesome' );
		wp_enqueue_style( 'simple-line-icons', get_theme_file_uri( '/assets/css/simple-line-icons.css' ), array(), 'v2.4.0', 'all' );
		wp_enqueue_style( 'font-awesome', get_theme_file_uri( '/assets/css/font-awesome.css' ), array(), 'v4.7.0', 'all' );
		if ( is_rtl() ) {
			wp_enqueue_style( 'font-awesome-rtl', get_template_directory_uri() . '/assets/css/font-awesome-rtl.css', array(), 'v1.0', 'all' );
		}
		wp_enqueue_style( 'glaza-main', get_theme_file_uri( '/assets/css/main.css' ), array(
			'simple-line-icons',
			'font-awesome',
		), GLAZA_THEME_VERSION, 'all' );
		wp_enqueue_style( 'glaza-responsive', get_theme_file_uri( '/assets/css/responsive.css' ), array( 'glaza-main' ), GLAZA_THEME_VERSION, 'all' );

		if ( class_exists( 'WooCommerce' ) ) {
			wp_register_style( 'glaza-wc', get_template_directory_uri() . '/assets/css/woocommerce.css', array(
				'simple-line-icons',
				'font-awesome'
			), GLAZA_THEME_VERSION, 'all' );
			wp_enqueue_style( 'glaza-wc' );
		}

		wp_enqueue_style( 'glaza-style', get_stylesheet_uri() );

		//scripts
		wp_enqueue_script( 'html5', get_theme_file_uri( '/assets/js/html5shiv.min.js' ), array(), '3.7.3' );
		wp_script_add_data( 'html5', 'conditional', 'lt IE 9' );
		wp_enqueue_script( 'imagesloaded', get_theme_file_uri( '/assets/js/imagesloaded.min.js' ), array( 'jquery' ), 'v4.1.4', true );
		wp_enqueue_script( 'jquery-magnific-popup', get_theme_file_uri( '/assets/js/jquery.magnific-popup.min.js' ), array( 'jquery' ), 'v1.1.0', true );
		wp_enqueue_script( 'slick', get_theme_file_uri( '/assets/js/slick.min.js' ), array( 'jquery' ), 'v1.8.1', true );
		wp_enqueue_script( 'ruby-sticky-sidebar', get_theme_file_uri( '/assets/js/sticky-sidebar.min.js' ), array( 'jquery' ), 'v1.7', true );
		wp_enqueue_script( 'jquery-tipsy', get_theme_file_uri( '/assets/js/jquery.tipsy.min.js' ), array( 'jquery' ), 'v1.0', true );
		wp_enqueue_script( 'jquery-sticky', get_theme_file_uri( '/assets/js/jquery.sticky.min.js' ), array( 'jquery' ), 'v1.0.3', true );
		wp_enqueue_script( 'jquery-waypoints', get_theme_file_uri( '/assets/js/jquery.waypoints.min.js' ), array( 'jquery' ), 'v3.1.1', true );
		wp_enqueue_script( 'jquery-uitotop', get_theme_file_uri( '/assets/js/jquery.ui.totop.min.js' ), array( 'jquery' ), 'v1.2', true );
		wp_enqueue_script( 'jquery-fitvids', get_theme_file_uri( '/assets/js/jquery.fitvids.min.js' ), array( 'jquery' ), 'v1.1', true );

		wp_enqueue_script( 'glaza-global', get_theme_file_uri( '/assets/js/global.js' ), array(
			'jquery',
			'jquery-waypoints',
			'imagesloaded',
			'slick',
			'jquery-magnific-popup',
			'ruby-sticky-sidebar',
			'jquery-tipsy',
			'jquery-sticky',
			'jquery-uitotop',
			'jquery-fitvids'

		), GLAZA_THEME_VERSION, true );
		wp_localize_script( 'glaza-global', 'glaza_params', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );

		if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
			wp_enqueue_script( 'comment-reply' );
		}
	}
}

if ( ! is_admin() ) {
	add_action( 'wp_enqueue_scripts', 'glaza_register_script_frontend', 10 );
}


if ( ! function_exists( 'glaza_register_script_backend' ) ) {
	function glaza_register_script_backend( $hook ) {
		wp_register_style( 'glaza_style_admin', get_theme_file_uri( '/assets/css/admin.css' ), array(), GLAZA_THEME_VERSION, 'all' );
		wp_enqueue_style( 'glaza_style_admin' );

		if ( $hook == 'post.php' || $hook == 'post-new.php' ) {
			wp_register_script( 'glaza_script_admin', get_theme_file_uri( '/assets/js/admin.js' ), array( 'jquery' ), GLAZA_THEME_VERSION, true );
			wp_enqueue_script( 'glaza_script_admin' );
		}
	}
};

if ( is_admin() ) {
	add_action( 'admin_enqueue_scripts', 'glaza_register_script_backend' );
}

//load files
require get_theme_file_path( '/templates/parts.php' );
require get_theme_file_path( '/templates/block.php' );
require get_theme_file_path( '/templates/socials.php' );
require get_theme_file_path( '/templates/post.php' );
require get_theme_file_path( '/templates/shop.php' );
require get_theme_file_path( '/templates/single.php' );
require get_theme_file_path( '/templates/blog.php' );
require get_theme_file_path( '/templates/page.php' );
require get_theme_file_path( '/templates/layouts/fw-slider-1.php' );
require get_theme_file_path( '/templates/layouts/fw-slider-2.php' );
require get_theme_file_path( '/templates/layouts/fw-slider-3.php' );
require get_theme_file_path( '/templates/layouts/fw-classic.php' );
require get_theme_file_path( '/templates/layouts/fw-list.php' );
require get_theme_file_path( '/templates/layouts/fw-grid-1.php' );
require get_theme_file_path( '/templates/layouts/fw-grid-2.php' );
require get_theme_file_path( '/templates/layouts/hs-grid-1.php' );
require get_theme_file_path( '/templates/layouts/hs-grid-2.php' );
require get_theme_file_path( '/templates/layouts/hs-list.php' );
require get_theme_file_path( '/templates/layouts/widget-post.php' );
require get_theme_file_path( '/templates/layouts/mega.php' );
require get_theme_file_path( '/templates/layouts/module-slider.php' );
require get_theme_file_path( '/templates/layouts/module-classic.php' );
require get_theme_file_path( '/templates/layouts/module-list.php' );
require get_theme_file_path( '/templates/layouts/module-grid.php' );


Youez - 2016 - github.com/yon3zu
LinuXploit