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_category.php
<?php
/**
 * @return bool
 * taxonomy config
 */
if ( ! function_exists( 'glaza_register_taxonomy_category' ) ) {
	function glaza_register_taxonomy_category() {

		if ( ! class_exists( 'RW_Taxonomy_Meta' ) ) {
			return false;
		}

		$sections = array();

		$sections[] = array(
			'title'      => esc_html__( 'LAYOUT OPTIONS', 'glaza' ),
			'taxonomies' => array( 'category' ),
			'id'         => 'glaza_taxonomy_cat_options',
			'fields'     => array(
				array(
					'name'    => esc_html__( 'Layout', 'glaza' ),
					'id'      => 'cat_layout',
					'desc'    => esc_html__( 'select a layout for this category.', 'glaza' ),
					'type'    => 'select',
					'options' => array(
						'default'   => esc_html__( 'Default from Theme Options', 'glaza' ),
						'classic'   => esc_html__( 'Classic', 'glaza' ),
						'classic-2' => esc_html__( 'Classic (without sidebar)', 'glaza' ),
						'list'      => esc_html__( 'List', 'glaza' ),
						'grid-1'    => esc_html__( 'Grid 1', 'glaza' ),
						'grid-2'    => esc_html__( 'Grid 2', 'glaza' )
					),
					'std'     => 'default',
				),
				array(
					'name' => esc_html__( 'Number Of Posts', 'glaza' ),
					'id'   => 'cat_posts_per_page',
					'desc' => esc_html__( 'select number of posts for this category. Leave blank or set 0 if you want to use settings of theme options.', 'glaza' ),
					'type' => 'text',
					'std'  => '',
				),
				array(
					'name' => esc_html__( 'Meta Info Color', 'glaza' ),
					'id'   => 'cat_color',
					'desc' => esc_html__( 'select a color for meta category meta info to display in the post listing.', 'glaza' ),
					'type' => 'color',
					'std'  => '',
				)
			)
		);

		$sections[] = array(
			'title'      => esc_html__( 'HEADER OPTIONS', 'glaza' ),
			'taxonomies' => array( 'category' ),
			'id'         => 'glaza_taxonomy_cat_header',
			'fields'     => array(
				array(
					'name' => esc_html__( 'Header Background', 'glaza' ),
					'id'   => 'cat_header_bg',
					'desc' => esc_html__( 'Upload header background image for this category.', 'glaza' ),
					'type' => 'image'
				),
				array(
					'name'    => esc_html__( 'Header Text Style', 'glaza' ),
					'id'      => 'cat_header_text_style',
					'desc'    => esc_html__( 'Select category header text color for this category if you set background image.', 'glaza' ),
					'type'    => 'select',
					'options' => array(
						'dark'  => esc_html__( 'Dark', 'glaza' ),
						'light' => esc_html__( 'Light', 'glaza' )
					),
					'std'     => 'dark',
				)
			)
		);

		$sections[] = array(
			'title'      => esc_html__( 'PAGINATION OPTIONS', 'glaza' ),
			'taxonomies' => array( 'category' ),
			'id'         => 'glaza_taxonomy_cat_pagination',
			'fields'     => array(
				array(
					'name'    => esc_html__( 'Pagination Style', 'glaza' ),
					'id'      => 'cat_pagination',
					'desc'    => esc_html__( 'Select pagination style for this category.', 'glaza' ),
					'type'    => 'select',
					'options' => array(
						'default'  => esc_html__( 'Default from Theme Options', 'glaza' ),
						'number'   => esc_html__( 'Numeric', 'glaza' ),
						'simple'   => esc_html__( 'Simple', 'glaza' ),
						'loadmore' => esc_html__( 'Load More', 'glaza' ),
						'infinite' => esc_html__( 'Infinite Scroll', 'glaza' ),
					),
					'std'     => 'default',
				)
			)
		);

		$sections[] = array(
			'title'      => esc_html__( 'SIDEBAR OPTIONS', 'glaza' ),
			'taxonomies' => array( 'category' ),
			'id'         => 'glaza_taxonomy_cat_sidebar',
			'fields'     => array(
				array(
					'name'    => esc_html__( 'Sidebar Name', 'glaza' ),
					'id'      => 'cat_sidebar_name',
					'desc'    => esc_html__( 'Select a sidebar for this category.', 'glaza' ),
					'type'    => 'select',
					'options' => glaza_config_sidebar_name( true ),
					'std'     => 'glaza_default_from_theme_options',
				),
				array(
					'name'    => esc_html__( 'Sidebar Position', 'glaza' ),
					'id'      => 'cat_sidebar_position',
					'desc'    => esc_html__( 'Select sidebar position for this category.', 'glaza' ),
					'type'    => 'select',
					'options' => array(
						'default' => esc_html__( 'Default from Theme Options', 'glaza' ),
						'right'   => esc_html__( 'Right', 'glaza' ),
						'left'    => esc_html__( 'Left', 'glaza' ),
						'none'    => esc_html__( 'None', 'glaza' ),
					),
					'std'     => 'default',
				),
			),
		);

		foreach ( $sections as $section ) {
			new RW_Taxonomy_Meta( $section );
		}
	}
}

add_action( 'admin_init', 'glaza_register_taxonomy_category' );

Youez - 2016 - github.com/yon3zu
LinuXploit