Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/confenda.com/wp-content/themes/the-conference/inc/customizer/panels/layout/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/confenda.com/wp-content/themes/the-conference/inc/customizer/panels/layout/blog.php
<?php
/**
 * Home Page Layout Settings
 *
 * @package The Conference
 */

function the_conference_customize_register_layout_blog( $wp_customize ) {
    
    /** Blog Page Layout Settings */
    $wp_customize->add_section(
        'blog_layout',
        array(
            'title'    => __( 'Blog Page Layout', 'the-conference' ),
            'priority' => 40,
            'panel'    => 'layout_settings',
        )
    );
    
    /** Page Sidebar layout */
    $wp_customize->add_setting( 
        'blog_page_layout', 
        array(
            'default'           => 'classic-view',
            'sanitize_callback' => 'the_conference_sanitize_radio'
        ) 
    );
    
    $wp_customize->add_control(
		new The_Conference_Radio_Image_Control(
			$wp_customize,
			'blog_page_layout',
			array(
				'section'	  => 'blog_layout',
				'label'		  => __( 'Blog Page Layout', 'the-conference' ),
				'description' => __( 'Choose the blog page layout for your site.', 'the-conference' ),
				'choices'	  => array(
                    'classic-view' => get_template_directory_uri() . '/images/blog/classic.jpg',
                    'list-view'    => get_template_directory_uri() . '/images/blog/listing.jpg',
				)
			)
		)
	);
    
}
add_action( 'customize_register', 'the_conference_customize_register_layout_blog' );

ZeroDay Forums Mini