403Webshell
Server IP : 192.64.118.117  /  Your IP : 18.216.130.198
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/www/wp-content/themes/TESSERACT/inc/sections/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/www/wp-content/themes/TESSERACT/inc/sections/blog.php
<?php
/*  
 * section BLOG
 */					 			
			
   	$wp_customize->add_section( 'tesseract_blog' , array(
    	'title'      		=> __('Blog Post Options', 'tesseract'),
    	'priority'   		=> 1,
		'panel' 			=> 'tesseract_layout'
	) );						
			
		$wp_customize->add_setting( 'tesseract_blog_content', array(
				'sanitize_callback' => 'tesseract_blog_sanitize_content',
				'default'			=> 'excerpt'				
		) );
		
			$wp_customize->add_control(
				new WP_Customize_Control(
					$wp_customize,
					'tesseract_blog_content_control',
					array(
						'label'          => __( 'Choose the article content type', 'tesseract' ),
						'section'        => 'tesseract_blog',
						'settings'       => 'tesseract_blog_content',
						'type'           => 'radio',
						'choices'        => array(
							'excerpt'  	=> 'Excerpt',
							'content' 	=> 'Full Content'
						),
						'priority' 		 => 1										
					)
				)
			);
			
	$wp_customize->add_setting( 'tesseract_blog_post_layout', array(
				'sanitize_callback' => 'tesseract_sanitize_select_blog_post_layout_types',
				'default' 			=> 'sidebar-left'
		) );

			$wp_customize->add_control(
				new WP_Customize_Control(
					$wp_customize,
					'tesseract_blog_post_layout_control',
					array(
						'label'         => __( 'Choose a layout type for the Blog Post page', 'tesseract' ),
						'section'       => 'tesseract_blog',
						'settings'      => 'tesseract_blog_post_layout',
						'type'          => 'select',
						'default'       => 'sidebar-left',
						'choices'		=> array(
							'sidebar-left'  	=> 	'Left Sidebar',
							'sidebar-right'  	=> 	'Right Sidebar',
							'fullwidth'			=>  'Full Width'
						),
						'priority' 		=> 2
					)
				)
			);
			
	/*	$wp_customize->add_setting( 'tesseract_blog_display_featimg', array(
				'sanitize_callback' => 'tesseract_sanitize_checkbox',
				'default'			=> 0				
		) );
		
			$wp_customize->add_control(
				new WP_Customize_Control(
					$wp_customize,
					'tesseract_blog_display_featimg_control',
					array(
						'label'          => __( 'Display posts\' featured image on the blog page', 'tesseract' ),
						'section'        => 'tesseract_blog',
						'settings'       => 'tesseract_blog_display_featimg',
						'type'           => 'checkbox',
						'priority' 		 => 3	
					)
				)
			);	
			
		$wp_customize->add_setting( 'tesseract_blog_featimg_pos', array(
			'sanitize_callback' => 'tesseract_blog_sanitize_featimg_pos',
			'default' 			=> 'above'
		) );
		
			$wp_customize->add_control(
				new WP_Customize_Control(
					$wp_customize,
					'tesseract_blog_featimg_pos_control',
					array(
						'label'          => __( 'Choose the featured image position', 'tesseract' ),
						'section'        => 'tesseract_blog',
						'settings'       => 'tesseract_blog_featimg_pos',
						'type'           => 'radio',
						'choices'        => array(
							'above'  	=> 'Above the post title',
							'below' 	=> 'Below the post title'
						),
						'priority' 		 => 4,
						'active_callback' 	=> 'tesseract_blog_featimg_sizes_enable'										
					)
				)
			);				
	
		$wp_customize->add_setting( 'tesseract_blog_featimg_size', array(
			'sanitize_callback' => 'tesseract_blog_sanitize_featimg_size',
			'default' 			=> 'default'
		) );
		
			$wp_customize->add_control(
				new WP_Customize_Control(
					$wp_customize,
					'tesseract_blog_featimg_size_control',
					array(
						'label'          => __( 'Choose the featured image ratio', 'tesseract' ),
						'section'        => 'tesseract_blog',
						'settings'       => 'tesseract_blog_featimg_size',
						'type'           => 'radio',
						'choices'        => array(
							'default'  	=> '1:1 (Default width/height ratio)',
							'tv' 		=> '4:3',
							'hdtv' 		=> '16:9',
							'theater1' 	=> '1.85:1',
							'theater2' 	=> '2.35:1',
							'pixel' 	=> 'I use my own pixel value'
						),
						'priority' 		 => 5,
						'active_callback' 	=> 'tesseract_blog_featimg_sizes_enable'										
					)
				)
			);	
			
		$wp_customize->add_setting( 'tesseract_blog_featimg_px_size', array(
			'sanitize_callback' => 'absint'
		) );
		
			$wp_customize->add_control(
				new WP_Customize_Control(
					$wp_customize,
					'tesseract_blog_featimg_px_size_control',
					array(
						'label'          => __( 'Featured image height in pixels', 'tesseract' ),
						'section'        => 'tesseract_blog',
						'settings'       => 'tesseract_blog_featimg_px_size',
						'type'           => 'text',
						'priority' 		 => 6,
						'active_callback' 	=> 'tesseract_blog_featimg_px_size_enable'										
					)
				)
			);						
				*/

Youez - 2016 - github.com/yon3zu
LinuXploit