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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/themes/glaza/metaboxes/panel_post.php
<?php
/**
 * @return array
 *  title tagline
 */
if ( ! function_exists( 'glaza_meta_post_tagline' ) ) {
	function glaza_meta_post_tagline() {
		return array(
			'id'         => 'glaza_meta_section_single_post_subtitle',
			'title'      => esc_html__( 'TITLE TAGLINE OPTION', 'glaza' ),
			'post_types' => array( 'post' ),
			'priority'   => 'high',
			'context'    => 'top',
			'fields'     => array(
				array(
					'id'   => 'glaza_meta_tagline',
					'name' => esc_html__( 'Title Tagline', 'glaza' ),
					'desc' => esc_html__( 'input a tagline title for this post, this will display under the single post title.', 'glaza' ),
					'type' => 'text',
					'std'  => ''
				),
			),
		);
	}
}


/**
 * @return array
 * post gallery config
 */
if ( ! function_exists( 'glaza_meta_post_gallery' ) ) {
	function glaza_meta_post_gallery() {
		return array(
			'id'         => 'glaza_meta_gallery_options',
			'title'      => esc_html__( 'GALLERY OPTIONS', 'glaza' ),
			'post_types' => array( 'post' ),
			'priority'   => 'high',
			'context'    => 'top',
			'fields'     => array(
				array(
					'id'   => 'glaza_meta_gallery_data',
					'name' => esc_html__( 'Upload Gallery', 'glaza' ),
					'desc' => esc_html__( 'upload your images for this gallery.', 'glaza' ),
					'type' => 'image_advanced',
					'std'  => '',
				),
				array(
					'id'      => 'glaza_meta_gallery_layout',
					'name'    => esc_html__( 'Gallery Layout', 'glaza' ),
					'desc'    => esc_html__( 'select a layout for this gallery post, this option will override default settings in theme options.', 'glaza' ),
					'type'    => 'select',
					'options' => array(
						'default' => esc_html__( 'Default From Theme Options', 'glaza' ),
						'list'    => esc_html__( 'List Images', 'glaza' ),
						'slide'   => esc_html__( 'Slider Image', 'glaza' )
					),
					'std'     => 'default',
				)
			)
		);
	}
}


/**
 * @return array
 * single post video config
 */
if ( ! function_exists( 'glaza_meta_post_video' ) ) {
	function glaza_meta_post_video() {
		return array(
			'id'         => 'glaza_meta_video_options',
			'title'      => esc_html__( 'VIDEO OPTIONS', 'glaza' ),
			'post_types' => array( 'post' ),
			'priority'   => 'high',
			'context'    => 'top',
			'fields'     => array(
				array(
					'id'   => 'glaza_meta_video_url',
					'name' => esc_html__( 'Video URL', 'glaza' ),
					'desc' => esc_html__( 'input your video link, support: Youtube, Vimeo, DailyMotion', 'glaza' ),
					'type' => 'text',
				),
				array(
					'id'   => 'glaza_meta_video_embed',
					'name' => esc_html__( 'Iframe Embed Code', 'glaza' ),
					'desc' => esc_html__( 'input iframe embed code if WordPress cannot support your video URL.', 'glaza' ),
					'type' => 'textarea',
				),
				array(
					'id'   => 'glaza_meta_video_self_hosted',
					'name' => esc_html__( 'Self-Hosted Video', 'glaza' ),
					'desc' => esc_html__( 'upload your video file, support: mp4, m4v, webm, ogv, wmv, flv files.', 'glaza' ),
					'type' => 'file_advanced',
				),
				array(
					'id'      => 'glaza_meta_video_autoplay',
					'type'    => 'select',
					'name'    => esc_html__( 'Autoplay Video', 'glaza' ),
					'desc'    => esc_html__( 'enable or disable autoplay video for this post.', 'glaza' ),
					'options' => array(
						'default' => esc_html__( 'Default from Theme Options', 'glaza' ),
						'1'       => esc_html__( 'Enable', 'glaza' ),
						'2'       => esc_html__( 'Disable', 'glaza' ),
					),
					'std'     => 'default'
				),
			)
		);
	}
}

/**
 * @return array
 * post audio config
 */
if ( ! function_exists( 'glaza_meta_post_audio' ) ) {
	function glaza_meta_post_audio() {
		return array(
			'id'         => 'glaza_meta_audio_options',
			'title'      => esc_html__( 'AUDIO OPTIONS', 'glaza' ),
			'post_types' => array( 'post' ),
			'priority'   => 'high',
			'context'    => 'top',
			'fields'     => array(
				array(
					'id'   => 'glaza_meta_audio_url',
					'name' => esc_html__( 'Audio URL', 'glaza' ),
					'desc' => esc_html__( 'input your audio URL, support: SoundCloud, MixCloud', 'glaza' ),
					'type' => 'text',
				),
				array(
					'id'   => 'glaza_meta_audio_embed',
					'name' => esc_html__( 'Iframe Embed Code', 'glaza' ),
					'desc' => esc_html__( 'input iframe embed code if WordPress cannot support your audio URL.', 'glaza' ),
					'type' => 'textarea',
				),
				array(
					'id'   => 'glaza_meta_audio_self_hosted',
					'name' => esc_html__( 'Self-Hosted Audio', 'glaza' ),
					'desc' => esc_html__( 'upload your audio file, support: mp3, ogg, wma, m4a, wav files.', 'glaza' ),
					'type' => 'file_advanced',
				)
			)
		);
	}
}

/**
 * @return array
 *  shop the post
 */
if ( ! function_exists( 'glaza_meta_post_shop' ) ) {
	function glaza_meta_post_shop() {
		return array(
			'id'         => 'glaza_meta_shop_section',
			'title'      => esc_html__( 'SHOP THE POST OPTIONS', 'glaza' ),
			'post_types' => array( 'post' ),
			'priority'   => 'high',
			'context'    => 'normal',
			'fields'     => array(
				array(
					'id'    => 'glaza_meta_shop_enable',
					'name'  => esc_html__( 'Enable Shop The Post Section', 'glaza' ),
					'class' => 'ruby-shop-checkbox',
					'type'  => 'checkbox',
					'desc'  => esc_html__( 'enable or disable the shop the post feature for this post.', 'glaza' ),
					'std'   => 0,
				),
				array(
					'id'   => 'glaza_meta_shop_embed',
					'name' => esc_html__( 'Embed Code:', 'glaza' ),
					'desc' => esc_html__( 'input the shop the post widget embed code if you use the 3rd shop the post widget. This option will be prioritized than others options, Leave blank if you want to use Woocommerce products', 'glaza' ),
					'type' => 'textarea',
					'rows' => 10,
					'std'  => ''
				),
				array(
					'id'          => 'glaza_meta_shop_product',
					'name'        => esc_html__( 'or Product IDs:', 'glaza' ),
					'desc'        => esc_html__( 'input product IDs. separated product tag ids by comma.', 'glaza' ),
					'placeholder' => esc_html__( '07,11,13', 'glaza' ),
					'type'        => 'text',
					'std'         => ''
				),
				//filter
				array(
					'id'      => 'glaza_meta_shop_filter',
					'name'    => esc_html__( 'or Filters:', 'glaza' ),
					'desc'    => esc_html__( 'select a filter type for shop the post section.', 'glaza' ),
					'type'    => 'select',
					'options' => array(
						'last'      => esc_html__( 'Latest Products', 'glaza' ),
						'featured'  => esc_html__( 'Featured Products', 'glaza' ),
						'sale'      => esc_html__( 'Sale Products', 'glaza' ),
						'best_sale' => esc_html__( 'Best Selling Products', 'glaza' ),
						'rated'     => esc_html__( 'Top Rated Products', 'glaza' ),
					),
					'std'     => 'last'
				),
				array(
					'id'          => 'glaza_meta_shop_cat',
					'name'        => esc_html__( 'Product Categories IDs:', 'glaza' ),
					'desc'        => esc_html__( 'input product category IDs. separated product tag ids by comma.', 'glaza' ),
					'placeholder' => esc_html__( '07,11,13', 'glaza' ),
					'type'        => 'text',
					'std'         => ''
				),
				array(
					'id'   => 'glaza_meta_shop_total',
					'name' => esc_html__( 'Total Products:', 'glaza' ),
					'desc' => esc_html__( 'input a of products to show at once.', 'glaza' ),
					'type' => 'text',
					'std'  => ''
				),
				array(
					'id'      => 'glaza_meta_shop_layout',
					'name'    => esc_html__( 'Layout:', 'glaza' ),
					'desc'    => esc_html__( 'select a layout for shop the post section.', 'glaza' ),
					'type'    => 'select',
					'options' => array(
						'default'  => esc_html__( 'Default From Theme Options', 'glaza' ),
						'4'        => esc_html__( 'Grid 4 columns', 'glaza' ),
						'5'        => esc_html__( 'Grid 5 columns', 'glaza' ),
						'carousel' => esc_html__( 'Carousel Slider', 'glaza' )
					),
					'std'     => 'default'
				),
				array(
					'id'      => 'glaza_meta_shop_style',
					'name'    => esc_html__( 'Style:', 'glaza' ),
					'desc'    => esc_html__( 'select a style for shop the post section.', 'glaza' ),
					'type'    => 'select',
					'options' => array(
						'default' => esc_html__( 'Default From Theme Options', 'glaza' ),
						'dark'    => esc_html__( 'Dark', 'glaza' ),
						'light'   => esc_html__( 'Light', 'glaza' ),
					),
					'std'     => 'default'
				),
				array(
					'id'      => 'glaza_meta_shop_position',
					'name'    => esc_html__( 'Position:', 'glaza' ),
					'desc'    => esc_html__( 'select a position for shop the post section', 'glaza' ),
					'type'    => 'select',
					'options' => array(
						'default' => esc_html__( 'Default From Theme Options', 'glaza' ),
						'top'     => esc_html__( 'Top of Content', 'glaza' ),
						'bottom'  => esc_html__( 'Bottom of Content', 'glaza' )
					),
					'std'     => 'default'
				),

			),
		);
	}
}


/**
 * @return array
 * single post config
 */
if ( ! function_exists( 'glaza_meta_post_options' ) ) {
	function glaza_meta_post_options() {
		return array(
			'id'         => 'glaza_meta_section_single_post_options',
			'title'      => esc_html__( 'GENERAL OPTIONS', 'glaza' ),
			'post_types' => array( 'post' ),
			'priority'   => 'high',
			'context'    => 'normal',
			'fields'     => array(
				array(
					'name'        => esc_html__( 'Primary Category', 'glaza' ),
					'id'          => 'glaza_meta_primary_cat',
					'type'        => 'taxonomy_advanced',
					'taxonomy'    => 'category',
					'placeholder' => esc_html__( 'Select a Primary Category', 'glaza' ),
					'desc'        => esc_html__( 'It is useful in case this post has a lot of categories and you want to display only one in listings.', 'glaza' ),
					'field_type'  => 'select',
					'std'         => ''
				),
				array(
					'id'    => 'glaza_meta_feat_credit',
					'name'  => esc_html__( 'Featured Credit Text', 'glaza' ),
					'desc'  => esc_html__( 'input a credit text for the featured image, leave blank if you want to use caption.', 'glaza' ),
					'type'  => 'text',
					'class' => 'input-medium',
					'std'   => ''
				),
				//layout option
				array(
					'id'      => 'glaza_meta_layout',
					'type'    => 'image_select',
					'name'    => esc_html__( 'Single Layout', 'glaza' ),
					'desc'    => esc_html__( 'select a layout for this post, this option will override default settings in theme options.', 'glaza' ),
					'options' => glaza_config_meta_single_post_layout(),
					'std'     => 'default'
				),
				array(
					'id'      => 'glaza_meta_feat_size',
					'type'    => 'select',
					'name'    => esc_html__( 'Featured Image Size', 'glaza' ),
					'desc'    => esc_html__( 'select the quality for this featured image, this option will override default settings in theme options.', 'glaza' ),
					'options' => array(
						'default' => esc_html__( 'Default From Theme Options', 'glaza' ),
						'full'    => esc_html__( 'Full Size', 'glaza' ),
						'crop'    => esc_html__( 'Crop Size', 'glaza' )
					),
					'std'     => 'default'
				),
				array(
					'id'      => 'glaza_meta_single_top',
					'type'    => 'select',
					'name'    => esc_html__( 'Top Content Section', 'glaza' ),
					'desc'    => esc_html__( 'Enable or disable the top content section section for this post.', 'glaza' ),
					'options' => array(
						'enable'  => esc_html__( 'Enable', 'glaza' ),
						'disable' => esc_html__( 'Disable', 'glaza' )
					),
					'std'     => 'enable'
				),
				array(
					'id'      => 'glaza_meta_single_bottom',
					'type'    => 'select',
					'name'    => esc_html__( 'Bottom Content Section', 'glaza' ),
					'desc'    => esc_html__( 'Enable or disable the bottom content section section for this post.', 'glaza' ),
					'options' => array(
						'enable'  => esc_html__( 'Enable', 'glaza' ),
						'disable' => esc_html__( 'Disable', 'glaza' )
					),
					'std'     => 'enable'
				),
			),
		);
	}
}

/**
 * @return array
 * single post source config
 */
if ( ! function_exists( 'glaza_meta_post_source' ) ) {
	function glaza_meta_post_source() {
		return array(
			'id'         => 'glaza_metabox_post_source_options',
			'title'      => esc_attr__( 'SOURCE/VIA OPTIONS', 'glaza' ),
			'post_types' => array( 'post' ),
			'priority'   => 'low',
			'context'    => 'side',
			'fields'     => array(
				array(
					'id'    => 'glaza_meta_source_name',
					'name'  => esc_attr__( 'Source Name', 'glaza' ),
					'desc'  => esc_attr__( 'input a source name for this post, it will display at the bottom of post content.', 'glaza' ),
					'type'  => 'text',
					'class' => 'input-medium',
					'std'   => ''
				),
				array(
					'id'    => 'glaza_meta_source_url',
					'name'  => esc_attr__( 'Source URL', 'glaza' ),
					'desc'  => esc_attr__( 'input a source URL for this post.', 'glaza' ),
					'type'  => 'text',
					'class' => 'input-medium',
					'std'   => ''
				),
				array(
					'id'    => 'glaza_meta_via_name',
					'name'  => esc_attr__( 'Via Name', 'glaza' ),
					'desc'  => esc_attr__( 'input a via name for this post, it will display at the bottom of post content.', 'glaza' ),
					'type'  => 'text',
					'class' => 'input-medium',
					'std'   => ''
				),
				array(
					'id'    => 'glaza_meta_via_url',
					'name'  => esc_attr__( 'via URL', 'glaza' ),
					'desc'  => esc_attr__( 'input a via URL for this post.', 'glaza' ),
					'type'  => 'text',
					'class' => 'input-medium',
					'std'   => ''
				)
			)
		);
	}
}


/**
 * @return array
 * single post review config
 */
if ( ! function_exists( 'glaza_meta_post_review' ) ) {
	function glaza_meta_post_review() {
		return array(
			'id'         => 'glaza_meta_review_options',
			'title'      => esc_html__( 'REVIEW OPTIONS', 'glaza' ),
			'post_types' => array( 'post' ),
			'priority'   => 'high',
			'context'    => 'normal',
			'fields'     => array(
				array(
					'name'  => esc_html__( 'Review Product', 'glaza' ),
					'id'    => 'glaza_meta_review_enable',
					'class' => 'ruby-review-checkbox',
					'type'  => 'checkbox',
					'desc'  => esc_html__( 'enable or disable the review feature for this post.', 'glaza' ),
					'std'   => 0,
				),
				array(
					'name'     => esc_html__( 'Review Box Position', 'glaza' ),
					'id'       => 'glaza_meta_review_position',
					'type'     => 'image_select',
					'multiple' => false,
					'desc'     => esc_html__( 'Review Box Position', 'glaza' ),
					'options'  => glaza_config_meta_review_position(),
					'std'      => 'default'
				),
				array(
					'name' => esc_html__( 'Criteria 1 Description', 'glaza' ),
					'id'   => 'glaza_cd1',
					'type' => 'text',
				),
				array(
					'name'       => esc_html__( 'Criteria 1 Score', 'glaza' ),
					'id'         => 'glaza_cs1',
					'type'       => 'slider',
					'js_options' => array(
						'min'  => 0,
						'max'  => 10,
						'step' => .1,
					),
				),
				array(
					'name' => esc_html__( 'Criteria 2 Description', 'glaza' ),
					'id'   => 'glaza_cd2',
					'type' => 'text',
				),
				array(
					'name'       => esc_html__( 'Criteria 2 Score', 'glaza' ),
					'id'         => 'glaza_cs2',
					'type'       => 'slider',
					'js_options' => array(
						'min'  => 0,
						'max'  => 10,
						'step' => .1,
					),
				),
				array(
					'name' => esc_html__( 'Criteria 3 Description', 'glaza' ),
					'id'   => 'glaza_cd3',
					'type' => 'text',
				),
				array(
					'name'       => esc_html__( 'Criteria 3 Score', 'glaza' ),
					'id'         => 'glaza_cs3',
					'type'       => 'slider',
					'js_options' => array(
						'min'  => 0,
						'max'  => 10,
						'step' => .1,
					),
				),
				array(
					'name' => esc_html__( 'Criteria 4 Description', 'glaza' ),
					'id'   => 'glaza_cd4',
					'type' => 'text',
				),
				array(
					'name'       => esc_html__( 'Criteria 4 Score', 'glaza' ),
					'id'         => 'glaza_cs4',
					'type'       => 'slider',
					'js_options' => array(
						'min'  => 0,
						'max'  => 10,
						'step' => .1,
					),
				),
				array(
					'name' => esc_html__( 'Criteria 5 Description', 'glaza' ),
					'id'   => 'glaza_cd5',
					'type' => 'text',
				),
				array(
					'name'       => esc_html__( 'Criteria 5 Score', 'glaza' ),
					'id'         => 'glaza_cs5',
					'type'       => 'slider',
					'js_options' => array(
						'min'  => 0,
						'max'  => 10,
						'step' => .1,
					),
				),
				array(
					'name' => esc_html__( 'Criteria 6 Description', 'glaza' ),
					'id'   => 'glaza_cd6',
					'type' => 'text',
				),
				array(
					'name'       => esc_html__( 'Criteria 6 Score', 'glaza' ),
					'id'         => 'glaza_cs6',
					'type'       => 'slider',
					'js_options' => array(
						'min'  => 0,
						'max'  => 10,
						'step' => .1,
					),
				),
				array(
					'name'  => esc_html__( 'Average Score', 'glaza' ),
					'id'    => 'glaza_as',
					'class' => 'ruby-average-score input-medium',
					'type'  => 'text',
				),
				array(
					'id'    => 'glaza_review_pros',
					'name'  => esc_html__( 'Pros Summary Section', 'glaza' ),
					'class' => 'field-review-summary input-medium',
					'desc'  => esc_html__( 'input pros summary for this review, separated by "/" example: positive 1/positive 2/positive 3', 'glaza' ),
					'type'  => 'textarea',
				),
				array(
					'id'    => 'glaza_review_cons',
					'name'  => esc_html__( 'Cons Summary Section', 'glaza' ),
					'desc'  => esc_html__( 'input cons summary for this review, separated by "/" example: negative 1/negative 2/negative 3', 'glaza' ),
					'class' => 'field-review-summary input-medium',
					'type'  => 'textarea',
				),
				array(
					'id'    => 'glaza_review_summary',
					'name'  => esc_html__( 'Product Summary Section', 'glaza' ),
					'class' => 'field-review-summary input-medium',
					'type'  => 'textarea',
				),
			)
		);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit