<?php
/**
 * Page Templates Options
 *
 * @package Pawfect
 */

// Prevent direct access
if (!defined('ABSPATH')) {
    exit;
}

if (!class_exists('Pawfect_Options_Page_Templates')):

    class Pawfect_Options_Page_Templates extends pawfect_Customize_Base_Option
    {

        public function elements()
        {

            return array(

                // Page Templates Settings Heading
                'pawfect_page_templates_heading' => array(
                    'setting' => array(),
                    'control' => array(
                        'type'     => 'heading',
                        'priority' => 1,
                        'label'    => esc_html__('Page Templates Settings', 'pawfect'),
                        'section'  => 'pawfect_page_templates_section',
                    ),
                ),

                // Blog Grid Template Card Style
                'pawfect_blog_grid_card_style' => array(
                    'setting' => array(
                        'default' => 'modern',
                        'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_radio'),
                    ),
                    'control' => array(
                        'type'        => 'radio',
                        'priority'    => 5,
                        'label'       => esc_html__('Blog Grid Template - Card Style', 'pawfect'),
                        'description' => esc_html__('Choose the card style for Blog Grid page template.', 'pawfect'),
                        'section'     => 'pawfect_page_templates_section',
                        'choices'     => array(
                            'modern'  => esc_html__('Modern (Rounded with glow effects)', 'pawfect'),
                            'classic' => esc_html__('Classic (Traditional style)', 'pawfect'),
                        ),
                    ),
                ),

                // Blog Left Sidebar Template Card Style
                'pawfect_blog_left_sidebar_card_style' => array(
                    'setting' => array(
                        'default' => 'classic',
                        'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_radio'),
                    ),
                    'control' => array(
                        'type'        => 'radio',
                        'priority'    => 10,
                        'label'       => esc_html__('Blog Left Sidebar Template - Card Style', 'pawfect'),
                        'description' => esc_html__('Choose the card style for Blog Left Sidebar page template.', 'pawfect'),
                        'section'     => 'pawfect_page_templates_section',
                        'choices'     => array(
                            'modern'  => esc_html__('Modern (Rounded with glow effects)', 'pawfect'),
                            'classic' => esc_html__('Classic (Traditional style)', 'pawfect'),
                        ),
                    ),
                ),

                // Blog Right Sidebar Template Card Style
                'pawfect_blog_right_sidebar_card_style' => array(
                    'setting' => array(
                        'default' => 'classic',
                        'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_radio'),
                    ),
                    'control' => array(
                        'type'        => 'radio',
                        'priority'    => 15,
                        'label'       => esc_html__('Blog Right Sidebar Template - Card Style', 'pawfect'),
                        'description' => esc_html__('Choose the card style for Blog Right Sidebar page template.', 'pawfect'),
                        'section'     => 'pawfect_page_templates_section',
                        'choices'     => array(
                            'modern'  => esc_html__('Modern (Rounded with glow effects)', 'pawfect'),
                            'classic' => esc_html__('Classic (Traditional style)', 'pawfect'),
                        ),
                    ),
                ),

                // Blog Left Sidebar Template Layout Style
                'pawfect_blog_left_sidebar_layout_style' => array(
                    'setting' => array(
                        'default' => 'grid',
                        'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_radio'),
                    ),
                    'control' => array(
                        'type'        => 'radio',
                        'priority'    => 20,
                        'label'       => esc_html__('Blog Left Sidebar Template - Layout Style', 'pawfect'),
                        'description' => esc_html__('Choose the layout style for Blog Left Sidebar page template.', 'pawfect'),
                        'section'     => 'pawfect_page_templates_section',
                        'choices'     => array(
                            'grid' => esc_html__('Grid Layout', 'pawfect'),
                            'list' => esc_html__('List Layout', 'pawfect'),
                        ),
                    ),
                ),

                // Blog Right Sidebar Template Layout Style
                'pawfect_blog_right_sidebar_layout_style' => array(
                    'setting' => array(
                        'default' => 'grid',
                        'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_radio'),
                    ),
                    'control' => array(
                        'type'        => 'radio',
                        'priority'    => 25,
                        'label'       => esc_html__('Blog Right Sidebar Template - Layout Style', 'pawfect'),
                        'description' => esc_html__('Choose the layout style for Blog Right Sidebar page template.', 'pawfect'),
                        'section'     => 'pawfect_page_templates_section',
                        'choices'     => array(
                            'grid' => esc_html__('Grid Layout', 'pawfect'),
                            'list' => esc_html__('List Layout', 'pawfect'),
                        ),
                    ),
                ),

                // Divider
                'pawfect_page_templates_divider' => array(
                    'setting' => array(),
                    'control' => array(
                        'type'     => 'divider',
                        'priority' => 30,
                        'section'  => 'pawfect_page_templates_section',
                    ),
                ),

                // Note
                'pawfect_page_templates_note' => array(
                    'setting' => array(),
                    'control' => array(
                        'type'        => 'note',
                        'priority'    => 35,
                        'label'       => esc_html__('Note', 'pawfect'),
                        'description' => esc_html__('These settings only apply to pages using the specific page templates. Archive pages and regular blog pages use the settings from the Blog section.', 'pawfect'),
                        'section'     => 'pawfect_page_templates_section',
                    ),
                ),

            );
        }
    }

    new Pawfect_Options_Page_Templates();

endif;
