HEX
Server: Apache
System: Linux nc-ph-4101.simplemoneygoals.com 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64
User: dailygoldindex (1004)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/dailygoldindex/public_html/wp-content/themes/jnews/class/Customizer/ArchiveOption.php
<?php
/**
 * @author : Jegtheme
 */

namespace JNews\Customizer;

/**
 * Class Theme JNews Customizer
 */
class ArchiveOption extends CustomizerOptionAbstract {
	public function set_option() {
		$this->set_panel();
		$this->set_section();
	}

	public function set_panel() {
		/** panel */
		$this->customizer->add_panel( [
			'id'          => 'jnews_archive',
			'title'       => esc_html__( 'JNews : Other Template', 'jnews' ),
			'description' => esc_html__( 'JNews template for archive, search and author.', 'jnews' ),
			'priority'    => $this->id,
		] );
	}

	public function set_section() {
		$this->add_lazy_section( 'jnews_archive_index_section', esc_html__( 'Index Template', 'jnews' ), 'jnews_archive' );
		$this->add_lazy_section( 'jnews_archive_global_section', esc_html__( 'Archive Template', 'jnews' ), 'jnews_archive' );
		$this->add_lazy_section( 'jnews_archive_search_section', esc_html__( 'Search Template', 'jnews' ), 'jnews_archive' );
		$this->add_lazy_section( 'jnews_archive_author_section', esc_html__( 'Author Template', 'jnews' ), 'jnews_archive' );
		$this->add_lazy_section( 'jnews_archive_attachment_section', esc_html__( 'Attachment Template', 'jnews' ), 'jnews_archive' );
		$this->add_lazy_section( 'jnews_archive_notfound_section', esc_html__( '404 (Not Found) Template', 'jnews' ), 'jnews_archive' );

		if ( function_exists( 'is_woocommerce' ) ) {
			$this->add_lazy_section( 'jnews_archive_woocommerce_section', esc_html__( 'WooCommerce Template', 'jnews' ), 'jnews_archive' );
		}

		if ( function_exists( 'is_bbpress' ) ) {
			$this->add_lazy_section( 'jnews_archive_bbpress_section', esc_html__( 'BBPress Template', 'jnews' ), 'jnews_archive' );
		}
	}
}