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/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/themes/glaza/includes/core.php
<?php
/**-------------------------------------------------------------------------------------------------------------------------
 * @param $option_name
 *
 * @return string
 * get theme options
 */
if ( ! function_exists( 'glaza_get_option' ) ) {
	function glaza_get_option( $option_name ) {

		if ( ! isset ( $GLOBALS['glaza_theme_options'] ) || empty( $GLOBALS['glaza_theme_options'] ) ) {
			$GLOBALS['glaza_theme_options'] = glaza_default_option_values();
		}

		if ( empty( $GLOBALS['glaza_theme_options'][ $option_name ] ) ) {
			return false;
		} else {
			return $GLOBALS['glaza_theme_options'][ $option_name ];
		}
	}
}


/**
 * @param $context
 *
 * @return string
 * schema markup
 */
if ( ! function_exists( 'glaza_schema_markup' ) ) {
	function glaza_schema_markup( $context ) {

		$str      = '';
		$data     = array();
		$protocol = 'http';

		if ( is_ssl() ) {
			$protocol = 'https';
		}

		switch ( $context ) {
			case 'body' :
				$data['itemscope'] = true;
				$data['itemtype']  = $protocol . '://schema.org/WebPage';
				break;

			case 'article' :
				$data['itemscope'] = true;
				$data['itemtype']  = $protocol . '://schema.org/Article';
				break;

			case 'review' :
				$data['itemscope'] = true;
				$data['itemtype']  = $protocol . '://schema.org/Review';
				break;

			case 'sidebar':
				$data['role']      = 'complementary';
				$data['itemscope'] = true;
				$data['itemtype']  = $protocol . '://schema.org/WPSideBar';
				break;

			case 'logo' :
				$data['itemscope'] = true;
				$data['itemtype']  = $protocol . '://schema.org/Organization';
				break;
		};

		if ( empty( $data ) ) {
			return false;
		}

		foreach ( $data as $k => $v ) {
			if ( true === $v ) {
				$str .= ' ' . $k . ' ';
			} else {
				$str .= ' ' . $k . '="' . $v . '" ';
			}
		}

		return $str;
	}
}

/**
 * @param $name
 *
 * @return mixed
 * string to name
 */
if ( ! function_exists( 'glaza_name_to_id' ) ) {
	function glaza_name_to_id( $name ) {

		$name = strtolower( strip_tags( $name ) );
		$id   = str_replace( array(
			' ',
			',',
			'.',
			'"',
			"'",
			'/',
			"\\",
			'+',
			'=',
			')',
			'(',
			'*',
			'&',
			'^',
			'%',
			'$',
			'#',
			'@',
			'!',
			'~',
			'`',
			'<',
			'>',
			'?',
			'[',
			']',
			'{',
			'}',
			'|',
			':',
		), '', $name );

		return $id;
	}
}


/**
 * @return array
 * social profiles - web
 */
if ( ! function_exists( 'glaza_social_profile_web' ) ) {
	function glaza_social_profile_web() {

		$data               = array();
		$data['facebook']   = glaza_get_option( 'social_facebook' );
		$data['twitter']    = glaza_get_option( 'social_twitter' );
		$data['googleplus'] = glaza_get_option( 'social_googleplus' );
		$data['instagram']  = glaza_get_option( 'social_instagram' );
		$data['pinterest']  = glaza_get_option( 'social_pinterest' );
		$data['linkedin']   = glaza_get_option( 'social_linkedin' );
		$data['tumblr']     = glaza_get_option( 'social_tumblr' );
		$data['flickr']     = glaza_get_option( 'social_flickr' );
		$data['skype']      = glaza_get_option( 'social_skype' );
		$data['snapchat']   = glaza_get_option( 'social_snapchat' );
		$data['myspace']    = glaza_get_option( 'social_myspace' );
		$data['youtube']    = glaza_get_option( 'social_youtube' );
		$data['bloglovin']  = glaza_get_option( 'social_bloglovin' );
		$data['digg']       = glaza_get_option( 'social_digg' );
		$data['dribbble']   = glaza_get_option( 'social_dribbble' );
		$data['soundcloud'] = glaza_get_option( 'social_soundcloud' );
		$data['vimeo']      = glaza_get_option( 'social_vimeo' );
		$data['reddit']     = glaza_get_option( 'social_reddit' );
		$data['vkontakte']  = glaza_get_option( 'social_vk' );
		$data['whatsapp']   = glaza_get_option( 'social_whatsapp' );
		$data['rss']        = glaza_get_option( 'social_rss' );

		return $data;
	}
}


/**
 * @param string $author_id
 *
 * @return array
 * users - social profiles
 */
if ( ! function_exists( 'glaza_social_profile_user' ) ) {
	function glaza_social_profile_user( $author_id = '' ) {

		if ( empty( $author_id ) ) {
			return false;
		}

		$data               = array();
		$data['website']    = get_the_author_meta( 'user_url', $author_id );
		$data['facebook']   = get_the_author_meta( 'facebook', $author_id );
		$data['twitter']    = get_the_author_meta( 'twitter', $author_id );
		$data['googleplus'] = get_the_author_meta( 'googleplus', $author_id );
		$data['instagram']  = get_the_author_meta( 'instagram', $author_id );
		$data['pinterest']  = get_the_author_meta( 'pinterest', $author_id );
		$data['linkedin']   = get_the_author_meta( 'linkedin', $author_id );
		$data['tumblr']     = get_the_author_meta( 'tumblr', $author_id );
		$data['flickr']     = get_the_author_meta( 'flickr', $author_id );
		$data['skype']      = get_the_author_meta( 'skype', $author_id );
		$data['snapchat']   = get_the_author_meta( 'snapchat', $author_id );
		$data['myspace']    = get_the_author_meta( 'myspace', $author_id );
		$data['youtube']    = get_the_author_meta( 'youtube', $author_id );
		$data['bloglovin']  = get_the_author_meta( 'bloglovin', $author_id );
		$data['digg']       = get_the_author_meta( 'digg', $author_id );
		$data['dribbble']   = get_the_author_meta( 'dribbble', $author_id );
		$data['soundcloud'] = get_the_author_meta( 'soundcloud', $author_id );
		$data['vimeo']      = get_the_author_meta( 'vimeo', $author_id );
		$data['reddit']     = get_the_author_meta( 'reddit', $author_id );
		$data['vkontakte']  = get_the_author_meta( 'vkontakte', $author_id );
		$data['whatsapp']   = get_the_author_meta( 'whatsapp', $author_id );
		$data['rss']        = get_the_author_meta( 'rss', $author_id );

		return $data;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit