|
Server : LiteSpeed System : Linux premium152.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : idesfsze ( 1473) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/idesfsze/pandaexpressketo.com/wp-content/themes/jnews/class/Customizer/ |
<?php
/**
* @author : Jegtheme
*/
namespace JNews\Customizer;
/**
* Class Theme JNews Customizer
*/
class SingleOption extends CustomizerOptionAbstract {
public function set_option() {
$this->set_panel();
$this->set_section();
}
public function single_post_tag() {
return [
'redirect' => 'single_post_tag',
'refresh' => false,
];
}
public function set_panel() {
$this->customizer->add_panel( [
'id' => 'jnews_single_post_panel',
'title' => esc_html__( 'JNews : Single Post Option', 'jnews' ),
'description' => esc_html__( 'JNews Single Post Option', 'jnews' ),
'priority' => $this->id,
] );
}
public function set_section() {
$this->add_lazy_section( 'jnews_single_breadcrumb_section', esc_html__( 'Breadcrumb Setting', 'jnews' ), 'jnews_single_post_panel' );
$this->add_lazy_section( 'jnews_single_post_section', esc_html__( 'Single Post Option', 'jnews' ), 'jnews_single_post_panel' );
$this->add_lazy_section( 'jnews_single_related_section', esc_html__( 'Related Post Option', 'jnews' ), 'jnews_single_post_panel', [ 'jnews_single_post_section' ] );
$this->add_lazy_section( 'jnews_single_comment_section', esc_html__( 'Comment Setting', 'jnews' ), 'jnews_single_post_panel' );
$this->add_lazy_section( 'jnews_single_mobile_truncate_section', esc_html__( 'Mobile Truncate', 'jnews' ), 'jnews_single_post_panel' );
$this->add_lazy_section( 'jnews_single_video_following_section', esc_html__( 'Following Video', 'jnews' ), 'jnews_single_post_panel' );
}
}