<?php
/**
 * Includes panel, section and controls ids and parameters
 * 
 * @since 1.0.0
 * @package One Newspaper
*/

if( ! class_exists( 'One_Newspaper_Customizer_List' ) ) :
    class One_Newspaper_Customizer_List {
        /**
         * Returns panels array
         * 
         * @since 1.0.0
         */
        public function get_panels( $id = '' ) {
            $panels_array = [
                'global_panel'    =>  [
                    'title' =>  __( 'Global', 'one-newspaper' ),
                    'priority'  => 6
                ],
                'colors_panel'    =>  [
                    'title' =>  __( 'Colors', 'one-newspaper' ),
                    'priority'  => 20
                ],
                'frontpage_panel'    =>  [
                    'title' =>  __( 'Frontpage Sections', 'one-newspaper' ),
                    'priority'  =>  80
                ],
                'archive_panel'    =>  [
                    'title' =>  __( 'Blog / Archives', 'one-newspaper' ),
                    'priority'  =>  80
                ],
                'single_section_panel'    =>  [
                    'title' =>  __( 'Single Post', 'one-newspaper' ),
                    'priority'  =>  80
                ],
                'page_setting_panel'    =>  [
                    'title' =>  __( 'Page Settings', 'one-newspaper' ),
                    'priority'  =>  80
                ]
            ];
            return ( $id ? $panels_array[ $id ] : $panels_array );
        }

        /**
         * Returns sections array
         * 
         * @since 1.0.0
         */
        public function get_sections( $id = '' ) {
            $sections_array =  [
                'about_section' => [
                    'title' => esc_html__( 'About Theme', 'one-newspaper' ),
                    'priority'  => 1
                ],
                'header_builder_section' => [
                    'title' => esc_html__( 'Header Builder', 'one-newspaper' ),
                    'active_callback'   =>  function(){ return false; }
                ],
                'footer_builder_section' => [
                    'title' => esc_html__( 'Footer Builder', 'one-newspaper' ),
                    'active_callback'   =>  function(){ return false; }
                ],
                'header_builder_section_settings' => [
                    'title' => esc_html__( 'Header Builder', 'one-newspaper' ),
                    'priority'  => 70
                ],
                'footer_builder_section_settings' => [
                    'title' => esc_html__( 'Footer Builder', 'one-newspaper' ),
                    'priority'  => 80
                ],
                'seo_misc_section' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'SEO / Misc', 'one-newspaper' ),
                ],
                'preloader_section' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'Preloader', 'one-newspaper' ),
                ],
                'widget_styles_section' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'Widget Styles', 'one-newspaper' ),
                ],
                'website_layout_section' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'Website Layout', 'one-newspaper' ),
                ],
                'sidebar_options_section' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'Sidebar Options', 'one-newspaper' ),
                ],
                'animation_section' => [
                    'title' => esc_html__( 'Animation / Hover Effects', 'one-newspaper' ),
                    'panel' => 'global_panel'
                ],
                'social_icons_section' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'Social Icons', 'one-newspaper' ),
                ],
                'footer_social_icons_section' => [
                    'title' => esc_html__( 'Social Icons', 'one-newspaper' ),
                ],
                'buttons_section' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'Buttons', 'one-newspaper' ),
                ],
                'global_icon_pickers' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'Icon Pickers', 'one-newspaper' ),
                ],
                'breadcrumb_options_section' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'Breadcrumb Options', 'one-newspaper' ),
                ],
                'stt_options_section' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'Scroll To Top', 'one-newspaper' ),
                ],
                'global_icon_pickers' => [
                    'panel' => 'global_panel',
                    'title' => esc_html__( 'Icon Pickers', 'one-newspaper' ),
                ],
                'advertisement_section' => [
                    'title' =>  esc_html__( 'Advertisement', 'one-newspaper' ),
                    'priority'  =>  29
                ],
                'typography_section' => [
                    'title' => esc_html__( 'Typography', 'one-newspaper' ),
                    'priority'  => 30
                ],
                'theme_presets_section' => [
                    'panel' =>  'colors_panel',
                    'title' =>  esc_html__( 'Theme Colors / Presets', 'one-newspaper' ),
                ],
                'category_colors_section' => [
                    'panel' => 'colors_panel',
                    'title' => esc_html__( 'Category Colors', 'one-newspaper' ),
                ],
                'tag_colors_section' => [
                    'title' => esc_html__( 'Tag Colors', 'one-newspaper' ),
                    'panel' => 'colors_panel',
                ],
                'date_time_section' => [
                    'title' =>  esc_html__( 'Date / Time', 'one-newspaper' )
                ],
                'random_news_section' => [
                    'title' =>  esc_html__( 'Random News', 'one-newspaper' )
                ],
                'header_menu_options_section' => [
                    'title' =>  esc_html__( 'Menu Options', 'one-newspaper' )
                ],
                'footer_menu_options_section' => [
                    'title' =>  esc_html__( 'Menu Options', 'one-newspaper' )
                ],
                'header_live_search_section' => [
                    'title' =>  esc_html__( 'Search', 'one-newspaper' )
                ],
                'header_newsletter_section' => [
                    'title' =>  esc_html__( 'Newsletter / Subscribe Button', 'one-newspaper' )
                ],
                'custom_button_section' => [
                    'title' =>  esc_html__( 'Custom Button', 'one-newspaper' )
                ],
                'theme_mode_section' => [
                    'title' =>  esc_html__( 'Theme Mode', 'one-newspaper' )
                ],
                'canvas_menu_section' => [
                    'title' =>  esc_html__( 'Off canvas', 'one-newspaper' )
                ],
                'header_advertisement_banner_section' => [
                    'title' =>  esc_html__( 'Advertisement Banner', 'one-newspaper' )
                ],
                'sticky_posts_section' => [
                    'title' =>  esc_html__( 'Sticky Posts', 'one-newspaper' ),
                    'priority'  => 70
                ],
                'ticker_news_section' => [
                    'title' =>  esc_html__( 'Ticker News', 'one-newspaper' ),
                ],
                'main_banner_section' => [
                    'title' =>  esc_html__( 'Main Banner', 'one-newspaper' ),
                    'panel' =>  'frontpage_panel'
                ],
                'archive_general_section' => [
                    'panel'  =>  'archive_panel',
                    'title' =>  esc_html__( 'General Settings', 'one-newspaper' ),
                ],
                'pagination_settings_section' => [
                    'panel'  =>  'archive_panel',
                    'title' =>  esc_html__( 'Pagination Settings', 'one-newspaper' ),
                ],
                'single_general_settings' => [
                    'panel' =>  'single_section_panel',
                    'title' =>  esc_html__( 'General Settings', 'one-newspaper' ),
                ],
                'single_related_posts_section' => [
                    'panel' =>  'single_section_panel',
                    'title' =>  esc_html__( 'Related Posts', 'one-newspaper' )
                ],
                'page_settings_section' => [
                    'panel' =>  'page_setting_panel',
                    'title' =>  esc_html__( 'Page Settings', 'one-newspaper' )
                ],
                '404_section' => [
                    'panel' =>  'page_setting_panel',
                    'title' =>  esc_html__( '404 Page', 'one-newspaper' )
                ],
                'search_page_settings' => [
                    'panel' =>  'page_setting_panel',
                    'title' =>  esc_html__( 'Search Page', 'one-newspaper' )
                ],
                /* Header builder row settings section */
                'header_first_row' => [
                    'title' => esc_html__( 'Header First Row', 'one-newspaper' )
                ],
                'header_second_row' => [
                    'title' => esc_html__( 'Header Second Row', 'one-newspaper' )
                ],
                'header_third_row' => [
                    'title' => esc_html__( 'Header Third Row', 'one-newspaper' )
                ],
                /* Footer builder row settings section */
                'footer_first_row' => [
                    'title' => esc_html__( 'Footer First Row', 'one-newspaper' )
                ],
                'footer_second_row' => [
                    'title' => esc_html__( 'Footer Second Row', 'one-newspaper' )
                ],
                'footer_third_row' => [
                    'title' => esc_html__( 'Footer Third Row', 'one-newspaper' )
                ],
                'footer_logo' => [
                    'title' => esc_html__( 'Footer Logo Settings', 'one-newspaper' )
                ],
                'footer_copyright' => [
                    'title' => esc_html__( 'Footer Copyright', 'one-newspaper' )
                ],
                'mobile_canvas_section' => [
                    'title' => esc_html__( 'Mobile Canvas', 'one-newspaper' )
                ],
                'secondary_menu_options' => [
                    'title' => esc_html__( 'Menu Options', 'one-newspaper' )
                ],
                'web_stories_section'    =>  [
                    'title' =>  esc_html__( 'Web Stories', 'one-newspaper' ),
                    'panel' =>  'frontpage_panel'
                ],
                'full_width_section'    =>  [
                    'title' =>  esc_html__( 'Full Width', 'one-newspaper' ),
                    'panel' =>  'frontpage_panel'
                ],
                'leftc_rights_section'  =>  [
                    'title' =>  esc_html__( 'Left Content - Right Sidebar', 'one-newspaper' ),
                    'panel' =>  'frontpage_panel'
                ],
                'lefts_rightc_section'  =>  [
                    'title' =>  esc_html__( 'Left Sidebar - Right Content', 'one-newspaper' ),
                    'panel' =>  'frontpage_panel'
                ],
                'bottom_full_width_section' =>  [
                    'title' =>  esc_html__( 'Bottom Full Width', 'one-newspaper' ),
                    'panel' =>  'frontpage_panel'
                ],
                'two_column_section'    =>  [
                    'title' =>  esc_html__( 'Two Column Section', 'one-newspaper' ),
                    'panel' =>  'frontpage_panel'
                ],
                'front_sections_reorder_section'  =>  [
                    'title' =>  esc_html__( 'Reorder Sections', 'one-newspaper' ),
                    'panel' =>  'frontpage_panel'
                ],
            ];
            return ( $id ? $sections_array[ $id ] : $sections_array );
        }

        /**
         * Returns typography array
         * 
         * @since 1.0.0
         */
        public function get_typography( $id = '' ) {
            $default = [
                'fields'    =>  [ 'font_family', 'font_weight', 'font_size', 'line_height', 'letter_spacing', 'text_transform', 'text_decoration' ],
                'transport' =>  'postMessage',
                'label' =>  esc_html__( 'Typography', 'one-newspaper' ),
            ];
            $control_array = [
                'site_title_typo'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Site Title Typography', 'one-newspaper' ),
                ]),
                'site_tagline_typo' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Site Description Typography', 'one-newspaper' ),
                    'bottom_separator'  =>  true
                ]),
                'date_time_typography' =>  $this->get_params( $default, []),
                'random_news_typography' =>  $this->get_params( $default, []),
                'header_newsletter_typography' =>  $this->get_params( $default, []),
                'header_menu_typo'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Main Menu Typography', 'one-newspaper' ),
                ]),
                'header_sub_menu_typo'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Sub Menu Typography', 'one-newspaper' )
                ]),
                'global_button_typo'    =>  $this->get_params( $default, [
                    'bottom_separator'  =>  true
                ]),
                'footer_title_typography'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Block Title Typo', 'one-newspaper' ),
                ]),
                'footer_text_typography'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Text Typo', 'one-newspaper' )
                ]),
                'bottom_footer_text_typography' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Text Typo', 'one-newspaper' ),
                ]),
                'footer_menu_typography'  =>  $this->get_params( $default, []),
                'global_category_typography'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Category Typo', 'one-newspaper' ),
                ]),
                'sticky_posts_label_typography'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Label', 'one-newspaper' ),
                ]),
                'sticky_posts_title_typography'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Post Title', 'one-newspaper' ),
                ]),
                'secondary_menu_typo'  =>  $this->get_params( $default, []),
                'site_block_title_typo'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Block Title', 'one-newspaper' ),
                ]),
                'site_post_title_typo'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Post Title', 'one-newspaper' ),
                ]),
                'site_post_meta_typo'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Post Meta', 'one-newspaper' ),
                ]),
                'site_post_content_typo'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Post Content', 'one-newspaper' ),
                ]),
                'custom_button_text_typo'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Text Typo', 'one-newspaper' ),
                ]),
                'single_post_title_typo'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Post Title', 'one-newspaper' )
                ]),
                'single_post_meta_typo' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Post Meta', 'one-newspaper' )
                ]),
                'single_post_content_typo'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Post Content', 'one-newspaper' )
                ]),
                'web_stories_preview_count_typo'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Preview count', 'one-newspaper' ),
                ]),
                'web_stories_preview_title_typo'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Preview title', 'one-newspaper' ),
                ]),
                'web_stories_title_typo'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Title', 'one-newspaper' ),
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_typography()

        /**
         * Returns Box shadow array
         * 
         * @since 1.0.0
         */
        public function get_box_shadow( $id = '' ) {
            $default = [
                'label' => esc_html__( 'Box Shadow', 'one-newspaper' ),
                'transport' =>  'postMessage'
            ];
            $control_array = [
                'website_box_shadow'    =>  $this->get_params( $default, [
                    'active_callback'   =>   function( $control ){
                        return ( $control->manager->get_setting( 'website_layout' )->value() == 'boxed--layout' );
                    }
                ]),
                'widgets_styles_image_box_shadow'   =>  $this->get_params( $default, [])
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Returns checkbox array
         * 
         * @since 1.0.0
         */
        public function get_checkbox( $id = '' ) {
            $default = [
                'type'  =>  'checkbox',
                'transport' =>  'postMessage'
            ];
            $control_array = [
                'blogdescription_option'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Display site description', 'one-newspaper' ),
                    'priority'  =>  40
                ])
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Returns toggle array
         * 
         * @since 1.0.0
         */
        public function get_toggle( $id = '' ) {
            $default = [];
            $control_array = [
                'sticky_posts_option'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Show Sticky Posts', 'one-newspaper' ),
                ]),
                'site_schema_ready' =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Make website schema ready', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'disable_admin_notices'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Disabled the theme admin notices', 'one-newspaper' ),
                    'description'	      => esc_html__( 'This will hide all the notices or any message shown by the theme like review notices, change log notices', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'preloader_option'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Enable site preloader', 'one-newspaper' )
                ]),      
                'single_post_related_posts_option'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Show related articles', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Returns simple toggle array
         * 
         * @since 1.0.0
         */
        public function get_simple_toggle( $id = '' ) {
            $default = [];
            $control_array = [
                'header_buiilder_header_sticky' => $this->get_params( $default, [
                    'label' => esc_html__( 'Enable Header Section Sticky', 'one-newspaper' )
                ]),
                'header_first_row_header_sticky' => $this->get_params( $default, [
                    'label' => esc_html__( 'Enable Header Sticky in 1st row', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ){
                        return $control->manager->get_control( 'header_buiilder_header_sticky' )->value();
                    },
                    'transport' =>  'postMessage'
                ]),
                'header_second_row_header_sticky' => $this->get_params( $default, [
                    'label' => esc_html__( 'Enable Header Sticky in 2nd row', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ){
                        return $control->manager->get_control( 'header_buiilder_header_sticky' )->value();
                    },
                    'transport' =>  'postMessage'
                ]),
                'header_third_row_header_sticky' => $this->get_params( $default, [
                    'label' => esc_html__( 'Enable Header Sticky in 3rd row', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ){
                        return $control->manager->get_control( 'header_buiilder_header_sticky' )->value();
                    },
                    'transport' =>  'postMessage',
                    'bottom_separator'  =>  true
                ]),
                'ticker_news_frontpage' => $this->get_params( $default, [
                    'label' => esc_html__( 'Show Ticker as Frontpage Section', 'one-newspaper' ),
                    'description' => esc_html__( 'When turned on, ticker will not be shown in header instead will be shown as frontpage section and can be re-ordered.', 'one-newspaper' )
                ]),
                'site_breadcrumb_option' => $this->get_params( $default, [
                    'label' => esc_html__( 'Show breadcrumb trails', 'one-newspaper' ),
                ]),
                'header_ads_banner_image_link_url' => $this->get_params( $default, [
                    'label' => esc_html__( 'Link Url', 'one-newspaper' )
                ]),
                'global_show_author_image' => $this->get_params( $default, [
                    'label' => esc_html__( 'Show author image', 'one-newspaper' )
                ]),
                'sticky_hide_empty' => $this->get_params( $default, [
                    'label' => esc_html__( 'Hide posts with no featured image', 'one-newspaper' )
                ]),
                'header_first_row_full_width' => $this->get_params( $default, [
                    'label' => esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'description' => esc_html__( 'This only applies to the controls below.', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'header_second_row_full_width' => $this->get_params( $default, [
                    'label' => esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'description' => esc_html__( 'This only applies to the controls below.', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'header_third_row_full_width' => $this->get_params( $default, [
                    'label' => esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'description' => esc_html__( 'This only applies to the controls below.', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'footer_first_row_full_width' => $this->get_params( $default, [
                    'label' => esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'description' => esc_html__( 'This only applies to the controls below.', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'footer_second_row_full_width' => $this->get_params( $default, [
                    'label' => esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'description' => esc_html__( 'This only applies to the controls below.', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'footer_third_row_full_width' => $this->get_params( $default, [
                    'label' => esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'description' => esc_html__( 'This only applies to the controls below.', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'footer_social_icons_display_label' => $this->get_params( $default, [
                    'label' => esc_html__( 'Display Label', 'one-newspaper' )
                ]),
                'time_option' => $this->get_params( $default, [
                    'label' => esc_html__( 'Enable Time', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'date_option' => $this->get_params( $default, [
                    'label' => esc_html__( 'Enable Date', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'date_time_display_block' => $this->get_params( $default, [
                    'label' => esc_html__( 'Display Block', 'one-newspaper' ),
                    'description'   =>  esc_html__( 'Show date and time in different lines.', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'frontpage_sidebar_sticky_option' => $this->get_params( $default, [
                    'label' => esc_html__( 'Enable sidebar sticky', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'archive_sidebar_sticky_option' => $this->get_params( $default, [
                    'label' => esc_html__( 'Enable sidebar sticky', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'single_sidebar_sticky_option' => $this->get_params( $default, [
                    'label' => esc_html__( 'Enable sidebar sticky', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'page_sidebar_sticky_option' => $this->get_params( $default, [
                    'label' => esc_html__( 'Enable sidebar sticky', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'ticker_news_thumbnail_option' => $this->get_params( $default, [
                    'label' =>  esc_html__( 'Show post thumbnail image', 'one-newspaper' )
                ]),
                'main_banner_slider_categories_option'  =>  $this->get_params( $default, [
                    'label'	      => esc_html__( 'Show post categories', 'one-newspaper' )
                ]),
                'main_banner_slider_date_option'    =>  $this->get_params( $default, [
                    'label'	      => esc_html__( 'Show post date', 'one-newspaper' )
                ]),
                'main_banner_block_posts_categories_option' =>  $this->get_params( $default, [
                    'label'	      => esc_html__( 'Show post categories', 'one-newspaper' )
                ]),
                'archive_page_title_prefix' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Show archive title prefix', 'one-newspaper' )
                ]),
                'archive_page_category_option'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Show archive categories', 'one-newspaper' )
                ]),
                'single_post_show_original_image_option'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Show original image', 'one-newspaper' )
                ]),
                'single_post_image_caption'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Show image caption', 'one-newspaper' )
                ]),
                'page_show_original_image_option'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Show original image', 'one-newspaper' )
                ]),
                'page_image_caption'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Show image caption', 'one-newspaper' )
                ]),
                'main_banner_row_full_width'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'web_stories_row_full_width'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'full_width_row_full_width'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'leftc_rights_row_full_width'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'lefts_rightc_row_full_width'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'bottom_full_width_row_full_width'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'two_column_row_full_width'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'archive_row_full_width'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
                'ticker_section_full_width'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Row Full Width', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'active_callback'   =>  function( $control ) {
                        return $control->manager->get_setting( 'ticker_news_frontpage' )->value();
                    }
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_simple_toggle() Method

        /**
         * Get all section tab control
         * 
         * @since 1.0.0
         */
        public function get_section_tab( $id = '' ) {
            $default = [
                'choices'   =>  [
                    [
                        'name'  =>  'general',
                        'title' =>  esc_html__( 'General', 'one-newspaper' )
                    ],
                    [
                        'name'  =>  'design',
                        'title' =>  esc_html__( 'Design', 'one-newspaper' )
                    ]
                ],
                'priority'  =>  1
            ];
            $control_array = [
                'category_colors_section_tab'    =>  $this->get_params( $default, []),
                'date_time_section_tab'    =>  $this->get_params( $default, []),
                'secondary_menu_options_section_tab'    =>  $this->get_params( $default, []),
                'header_builder_section_tab'    =>  $this->get_params( $default, []),
                'site_title_section_tab'    =>  $this->get_params( $default, []),
                'menu_options_section_tab' =>  $this->get_params( $default, []),
                'search_section_tab'    =>  $this->get_params( $default, []),
                'custom_button_section_tab'  =>  $this->get_params( $default, []),
                'theme_mode_section_tab' =>  $this->get_params( $default, []),
                'canvas_menu_setting'   =>  $this->get_params( $default, []),
                'stt_section_tab'   =>  $this->get_params( $default, []),
                'single_post_section_tab'    => $this->get_params( $default, []),
                '404_section_tab'   =>  $this->get_params( $default, []),
                'footer_section_tab'    =>  $this->get_params( $default, []),
                'bottom_footer_section_tab' =>  $this->get_params( $default, []),
                'main_banner_section_tab'  =>  $this->get_params( $default, []),
                'global_icon_pickers_section_tab'   =>  $this->get_params( $default, []),
                'sticky_posts_section_heading'   =>  $this->get_params( $default, []),
                'random_news_section_tab'   =>  $this->get_params( $default, []),
                'subscribe_button_section_tab'   =>  $this->get_params( $default, []),
                'full_width_section_tab'    =>  $this->get_params( $default, []),
                'leftc_rights_section_tab'  =>  $this->get_params( $default, []),
                'lefts_rightc_section_tab'  =>  $this->get_params( $default, []),
                'bottom_full_width_section_tab' =>  $this->get_params( $default, []),
                'two_column_section_tab'    =>  $this->get_params( $default, []),
                'archive_section_tab'  =>  $this->get_params( $default, []),
                'ticker_news_section_heading'  =>  $this->get_params( $default, []),
                /* Header builder row controls */
                'header_first_row_section_tab'   =>  $this->get_params( $default, [
                    'choices'   =>  [
                        [
                            'name'  =>  'general',
                            'title' =>  esc_html__( 'General', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'design',
                            'title' =>  esc_html__( 'Design', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'column',
                            'title' =>  esc_html__( 'Column', 'one-newspaper' )
                        ]
                    ],
                ]),
                'header_second_row_section_tab'   =>  $this->get_params( $default, [
                    'choices'   =>  [
                        [
                            'name'  =>  'general',
                            'title' =>  esc_html__( 'General', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'design',
                            'title' =>  esc_html__( 'Design', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'column',
                            'title' =>  esc_html__( 'Column', 'one-newspaper' )
                        ]
                    ],
                ]),
                'header_third_row_section_tab'   =>  $this->get_params( $default, [
                    'choices'   =>  [
                        [
                            'name'  =>  'general',
                            'title' =>  esc_html__( 'General', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'design',
                            'title' =>  esc_html__( 'Design', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'column',
                            'title' =>  esc_html__( 'Column', 'one-newspaper' )
                        ]
                    ],
                ]),
                /* Footer builder row controls */
                'footer_first_row_section_tab'   =>  $this->get_params( $default, [
                    'choices'   =>  [
                        [
                            'name'  =>  'general',
                            'title' =>  esc_html__( 'General', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'design',
                            'title' =>  esc_html__( 'Design', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'column',
                            'title' =>  esc_html__( 'Column', 'one-newspaper' )
                        ]
                    ],
                ]),
                'footer_second_row_section_tab'   =>  $this->get_params( $default, [
                    'choices'   =>  [
                        [
                            'name'  =>  'general',
                            'title' =>  esc_html__( 'General', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'design',
                            'title' =>  esc_html__( 'Design', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'column',
                            'title' =>  esc_html__( 'Column', 'one-newspaper' )
                        ]
                    ],
                ]),
                'footer_third_row_section_tab'   =>  $this->get_params( $default, [
                    'choices'   =>  [
                        [
                            'name'  =>  'general',
                            'title' =>  esc_html__( 'General', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'design',
                            'title' =>  esc_html__( 'Design', 'one-newspaper' )
                        ],
                        [
                            'name'  =>  'column',
                            'title' =>  esc_html__( 'Column', 'one-newspaper' )
                        ]
                    ],
                ]),
                'mobile_canvas_section_tab'   =>  $this->get_params( $default, [] ),
                'footer_menu_section_tab'   =>  $this->get_params( $default, [] ),
                'web_stories_section_tab'  =>  $this->get_params( $default, []),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_section_tab() Method

        /**
         * Get all spacing controls
         * 
         * @since 1.0.0
         */
        public function get_spacing( $id = '' ) {
            $default = [
                'label' =>  esc_html__( 'Padding ( px )', 'one-newspaper' ),
                'input_attrs' => $this->get_input_attrs([
                    'max'   => 50
                ]),
                'transport' =>  'postMessage'
            ];

            $control_array = [
                'custom_button_padding' =>  $this->get_params( $default, []),
                'mobile_canvas_padding' => $this->get_params( $default, []),
                'leftc_rights_section_sidebar_padding'    =>  $this->get_params( $default, [
                    'input_attrs' => $this->get_input_attrs([
                        'max'   => 200
                    ])
                ]),
                'lefts_rightc_section_sidebar_padding'    =>  $this->get_params( $default, [
                    'input_attrs' => $this->get_input_attrs([
                        'max'   => 200
                    ])
                ]),
                'archive_sidebar_padding'    =>  $this->get_params( $default, [
                    'input_attrs' => $this->get_input_attrs([
                        'max'   => 200
                    ])
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_spacing() Method

        /**
         * Get all radio tab controls
         * 
         * @since 1.0.0
         */
        public function get_radio_tab( $id = '' ) {
            $default = [
                'label' => esc_html__( 'Elements Alignment', 'one-newspaper' ),
                'choices' => [
                    [
                        'value' => 'left',
                        'icon'  =>  'editor-alignleft',
                        'label' =>  esc_html__( 'Left', 'one-newspaper' )
                    ],
                    [
                        'value' => 'center',
                        'icon'  =>  'editor-aligncenter',
                        'label' =>  esc_html__( 'Center', 'one-newspaper' )
                    ],
                    [
                        'value' => 'right',
                        'icon'  =>  'editor-alignright',
                        'label' =>  esc_html__( 'Right', 'one-newspaper' )
                    ]
                ],
                'transport' =>  'postMessage'
            ];
            $control_array = [
                'header_ads_banner_custom_target' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Open in', 'one-newspaper' ),
                    'double_line'   =>  true,
                    'choices'   =>  [
                        [
                            'value' =>  '_blank',
                            'label' =>  esc_html__( 'New tab', 'one-newspaper' )
                        ],
                        [
                            'value' =>  '_self',
                            'label' =>  esc_html__( 'Same tab', 'one-newspaper' )
                        ]
                    ],
                    'active_callback'   =>  function( $control ) {
                        return ( $control->manager->get_setting( 'header_ads_banner_image_link_url' )->value() );
                    }
                ]),
                'custom_button_icon_prefix_suffix'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Icon Context', 'one-newspaper' ),
                    'choices'   =>  [
                        [
                            'value' =>  'prefix',
                            'label' =>  esc_html__( 'Before', 'one-newspaper' )
                        ],
                        [
                            'value' =>  'suffix',
                            'label' =>  esc_html__( 'After', 'one-newspaper' )
                        ]
                    ],
                ]),
                'off_canvas_position'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Canvas Position', 'one-newspaper' ),
                    'choices'   =>  [
                        [
                            'value' => 'left',
                            'icon'  =>  'editor-alignleft'
                        ],
                        [
                            'value' => 'right',
                            'icon'  =>  'editor-alignright'
                        ]
                    ],
                ]),
                'mobile_canvas_alignment'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Alignment', 'one-newspaper' ),
                ]),
                'sticky_posts_position'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Position', 'one-newspaper' ),
                    'choices' => [
                        [
                            'value' => 'left',
                            'icon'  =>  'editor-alignleft',
                            'label' =>  esc_html__( 'Left', 'one-newspaper' )
                        ],
                        [
                            'value' => 'right',
                            'icon'  =>  'editor-alignright',
                            'label' =>  esc_html__( 'Right', 'one-newspaper' )
                        ]
                    ],
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_radio_tab() Method

        /**
         * Get all info box control
         * 
         * @since 1.0.0
         */
        public function get_info_box( $id = '' ) {
            $control_array = [
                'site_documentation_info' =>  [
                    'label' => esc_html__( 'Theme Documentation', 'one-newspaper' ),
                    'description' => esc_html__( 'We have well prepared documentation which includes overall instructions and recommendations that are required in this theme.', 'one-newspaper' ),
                    'choices' => [
                        [
                            'label' => esc_html__( 'View Documentation', 'one-newspaper' ),
                            'url'   => esc_url( '//doc.blazethemes.com/one-newspaper' )
                        ]
                    ]
                ],
                'site_support_info'   =>  [
                    'label' => esc_html__( 'Theme Support', 'one-newspaper' ),
                    'description' => esc_html__( 'We provide 24/7 support regarding any theme issue. Our support team will help you to solve any kind of issue. Feel free to contact us.', 'one-newspaper' ),
                    'choices' => [
                        [
                            'label' => esc_html__( 'Support Form', 'one-newspaper' ),
                            'url'   => esc_url( '//blazethemes.com/support' )
                        ]
                    ]
                ]
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_info_box() Method

        /**
         * Get all section heading toggle controls
         * 
         * @since 1.0.0
         */
        public function get_section_heading_toggle( $id = '' ) {
            $default = [];
            $control_array = [
                'logo_and_icon_section_toggle'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Logo & Site Icon', 'one-newspaper' ),
                    'priority'  =>  5
                ]),
                'site_title_section_toggle'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Site Title & Tagline', 'one-newspaper' ),
                    'priority'  =>  20
                ]),
                'sticky_posts_posts_query_section_toggle'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Query Settings', 'one-newspaper' )
                ]),
                'archive_page_layout_header'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Layout Settings', 'one-newspaper' )
                ]),
                'archive_page_elements_setting_header'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Elements Settings', 'one-newspaper' )
                ]),
                'archive_image_settings_header' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Image Settings', 'one-newspaper' )
                ]),
                'single_post_typo_heading' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Typography', 'one-newspaper' )
                ]),
                'web_stories_query_settings_heading_toggle'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Query Settings', 'one-newspaper' ),
                ]),
                'web_stories_image_settings'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Image Settings', 'one-newspaper' ),
                ]),
            ];
            $totalCats = get_categories();
            if( $totalCats ) :
                foreach( $totalCats as $singleCat ) :
                    $cat_id = 'category_' . absint( $singleCat->term_id ) . '_color_heading';
                    $control_array[ $cat_id ] = [
                        'label' => esc_html( $singleCat->name ),
                        'bottom_separator'  =>  true
                    ];
                endforeach;
            endif;

            $totalTags = get_tags();
            $tag_priority = 10;
            if( $totalTags ) :
                foreach( $totalTags as $singleTag ) :
                    $tag_id = 'tag_' . absint( $singleTag->term_id ) . '_color_heading';
                    $control_array += [ $tag_id =>  [
                        'label' => esc_html( $singleTag->name ),
                        'bottom_separator'  =>  true
                    ]];
                    $tag_priority += 10;
                endforeach;
            endif;
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_section_heading_toggle() Method

        /**
         * Get all item sortable control
         * 
         * @since 1.0.0
         */
        public function get_item_sortable( $id = '' ) {
            $control_array = [
                'banner_section_order'  =>  [
                    'label'         => esc_html__( 'Column Re-order', 'one-newspaper' ),
                    'fields'    => [
                        'banner_slider'  => [
                            'label' => esc_html__( 'Banner Slider Column', 'one-newspaper' )
                        ],
                        'tab_slider'  => [
                            'label' => esc_html__( 'Tabbed / Slider Column / Posts', 'one-newspaper' )
                        ]
                    ]
                ],
                'homepage_content_order'    =>  [
                    'label'         => esc_html__( 'Section Settings', 'one-newspaper' ),
                    'label'         => esc_html__( 'Section Re-order', 'one-newspaper' ),
                    'description'   => esc_html__( 'Hold item and drag vertically to re-order the items', 'one-newspaper' ),
                    'fields'    => [
                        'ticker_news_section'  => [
                            'label' => esc_html__( 'Ticker news Section', 'one-newspaper' )
                        ],
                        'main_banner_section'  => [
                            'label' => esc_html__( 'Main Banner Section', 'one-newspaper' )
                        ],
                        'web_stories_section'  => [
                            'label' => esc_html__( 'Web Stories Section', 'one-newspaper' )
                        ],
                        'full_width_section'  => [
                            'label' => esc_html__( 'Full width Section', 'one-newspaper' )
                        ],
                        'leftc_rights_section'  => [
                            'label' => esc_html__( 'Left Content - Right Sidebar', 'one-newspaper' )
                        ],
                        'lefts_rightc_section'  => [
                            'label' => esc_html__( 'Left Sidebar - Right Content', 'one-newspaper' )
                        ],
                        'bottom_full_width_section'  => [
                            'label' => esc_html__( 'Bottom Full width Section', 'one-newspaper' )
                        ],
                        'two_column_section'  => [
                            'label' => esc_html__( 'Two Column Section', 'one-newspaper' )
                        ],
                        'latest_posts'  => [
                            'label' => esc_html__( 'Latest Posts / Page Content', 'one-newspaper' )
                        ]
                    ]
                ],
                'archive_post_element_order'    =>  [
                    'label'         => esc_html__( 'Elements Re-order', 'one-newspaper' ),
                    'fields'    => [
                        'title'  => [
                            'label' => esc_html__( 'Title', 'one-newspaper' )
                        ],
                        'meta'  => [
                            'label' => esc_html__( 'Meta', 'one-newspaper' )
                        ],
                        'excerpt'  => [
                            'label' => esc_html__( 'Excerpt', 'one-newspaper' )
                        ],
                        'button'  => [
                            'label' => esc_html__( 'Button', 'one-newspaper' )
                        ]
                    ]
                ],
                'archive_post_meta_order'   =>  [
                    'label'         => esc_html__( 'Meta Re-order', 'one-newspaper' ),
                    'fields'    => [
                        'author'  => [
                            'label' => esc_html__( 'Author Name', 'one-newspaper' )
                        ],
                        'date'  => [
                            'label' => esc_html__( 'Published/Modified Date', 'one-newspaper' )
                        ],
                        'comments'  => [
                            'label' => esc_html__( 'Comments Number', 'one-newspaper' )
                        ],
                        'read-time'  => [
                            'label' => esc_html__( 'Read Time', 'one-newspaper' )
                        ]
                    ]
                ],
                'single_post_meta_order'   =>  [
                    'label'         => esc_html__( 'Meta Re-order', 'one-newspaper' ),
                    'fields'    => [
                        'author'  => [
                            'label' => esc_html__( 'Author Name', 'one-newspaper' )
                        ],
                        'date'  => [
                            'label' => esc_html__( 'Published/Modified Date', 'one-newspaper' )
                        ],
                        'comments'  => [
                            'label' => esc_html__( 'Comments Number', 'one-newspaper' )
                        ],
                        'read-time'  => [
                            'label' => esc_html__( 'Read Time', 'one-newspaper' )
                        ]
                    ]
                ],
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_item_sortable() Method


        /**
         * Get all number controls
         * 
         * @since 1.0.0
         */
        public function get_number( $id = '' ) {
            $default = [
                'unit'  =>  'px',
                'input_attrs'   =>  $this->get_input_attrs(),
                'responsive'    =>  true,
                'transport' =>  'postMessage'
            ];
            $control_array = [
                'site_logo_width'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Logo Width (px)', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  400,
                        'min'   =>  100
                    ])
                ]),
                'search_icon_size'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Icon Size (px)', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([])
                ]),
                'header_custom_button_border_radius' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (px)', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([]),
                ]),
                'custom_button_icon_size'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Icon Size (px)', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([])
                ]),
                'website_layout_horizontal_gap' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Horizontal Gap', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([]),
                    'responsive'    =>  true,
                    'active_callback'   =>  function( $control ) {
                        return ( $control->manager->get_setting('website_layout')->value() == 'boxed--layout' );
                    }
                ]),
                'website_layout_vertical_gap'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Vertical Gap', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([]),
                    'active_callback'   =>  function( $control ) {
                        return ( $control->manager->get_setting('website_layout')->value() == 'boxed--layout' );
                    },
                    'bottom_separator'  =>  true
                ]),
                'bottom_footer_logo_width'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Logo Width (px)', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  400
                    ]),
                    'active_callback'   =>  function( $control ) {
                        return ( $control->manager->get_setting( 'bottom_footer_header_or_custom' )->value() == 'custom' );
                    }
                ]),
                /* Header Builder row controls */
                'header_first_row_column'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Column count', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs([
                        'max'         => 3,
                        'min'         => 1
                    ]),
                    'responsive'    =>  false
                ]),
                'header_second_row_column'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Column count', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs([
                        'max'         => 3,
                        'min'         => 1
                    ]),
                    'responsive'    =>  false
                ]),
                'header_third_row_column'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Column count', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs([
                        'max'         => 3,
                        'min'         => 1
                    ]),
                    'responsive'    =>  false
                ]),
                /* Footer Builder row controls */
                'footer_first_row_column'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Column count', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs([
                        'max'         => 4,
                        'min'         => 1
                    ]),
                    'responsive'    =>  false
                ]),
                'footer_second_row_column'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Column count', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs([
                        'max'         => 4,
                        'min'         => 1
                    ]),
                    'responsive'    =>  false
                ]),
                'footer_third_row_column'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Column count', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs([
                        'max'         => 4,
                        'min'         => 1
                    ]),
                    'responsive'    =>  false
                ]),
                'global_author_icon_size'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Author', 'one-newspaper' ),
                ]),
                'global_date_icon_size'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Date', 'one-newspaper' ),
                ]),
                'global_comments_icon_size'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Comments', 'one-newspaper' ),
                ]),
                'global_read_time_icon_size'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Read Time', 'one-newspaper' ),
                ]),
                'global_slider_icon_size'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Slider Arrows', 'one-newspaper' ),
                ]),
                'widgets_styles_image_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'archive_image_ratio'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Image Ratio', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([
                        'min'   =>  0,
                        'max'   =>  2,
                        'step'  =>  0.1
                    ])
                ]),
                'single_post_image_ratio'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Image Ratio', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([
                        'min'   =>  0,
                        'max'   =>  2,
                        'step'  =>  0.1
                    ])
                ]),
                'page_image_ratio'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Image Ratio', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([
                        'min'   =>  0,
                        'max'   =>  2,
                        'step'  =>  0.1
                    ])
                ]),
                'web_stories_image_ratio'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Image Ratio', 'one-newspaper' ),
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  2,
                        'step'  =>  0.1
                    ]),
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_number() Method

        /**
         * Get all section heading controls
         * 
         * @since 1.0.0
         */
        public function get_section_heading( $id = '' ) {
            $default = [
                'bottom_separator'  =>  true
            ];
            $control_array = [
                'header_sub_menu_header'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Sub Menu', 'one-newspaper' ),
                ]),
                'header_main_menu_header'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Main Menu', 'one-newspaper' ),
                ]),
                'typography_preset_header'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Typography Preset', 'one-newspaper' )
                ]),
                'disable_admin_notices_heading' =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Admin Settings', 'one-newspaper' )
                ]),
                'website_layout_header' =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Website Layout', 'one-newspaper' )
                ]),
                'website_layout_container_setting_heading'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Container Setting', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( $control->manager->get_setting('website_layout')->value() == 'boxed--layout' );
                    }
                ]),
                'block_title_section_heading'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Block Title', 'one-newspaper' )
                ]),
                'site_background_animation_settings_heading'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Animation Settings', 'one-newspaper' ),
                ]),
                'theme_colors_section_heading'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Theme Colors', 'one-newspaper' )
                ]),
                'theme_presets_section_heading'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Presets', 'one-newspaper' )
                ]),
                'post_format_section_heading'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Post Formats', 'one-newspaper' )
                ]),
                'post_meta_section_heading'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Post Meta', 'one-newspaper' )
                ]),
                'post_meta_icon_size_section_heading'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Icon Size', 'one-newspaper' )
                ]),
                'global_slider_icon_picker_section_heading'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Slider Arrows', 'one-newspaper' )
                ]),
                'widgets_styles_image_settings_heading'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Image Settings', 'one-newspaper' )
                ]),
                'website_layout_header'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Website Layout', 'one-newspaper' )
                ]),
                'website_content_layout_header'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Website Content Global Layut', 'one-newspaper' )
                ]),
                'frontpage_sidebar_layout_header'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Frontpage Sidebar Layouts', 'one-newspaper' )
                ]),
                'archive_sidebar_layout_header'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Archive Sidebar Layouts', 'one-newspaper' )
                ]),
                'single_sidebar_layout_header'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Post Sidebar Layouts', 'one-newspaper' )
                ]),
                'page_sidebar_layout_header'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Page Sidebar Layouts', 'one-newspaper' )
                ]),
                'ticker_news_content_header'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Content Setting', 'one-newspaper' )
                ]),
                'main_banner_slider_settings_header'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Slider Setting', 'one-newspaper' )
                ]),
                'main_banner_block_posts_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Block Posts Setting', 'one-newspaper' )
                ]),
                'main_banner_width_layout_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Width Layouts', 'one-newspaper' )
                ]),
                'full_width_blocks_width_layout_header' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Width Layouts', 'one-newspaper' )
                ]),
                'leftc_rights_blocks_width_layout_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Width Layouts', 'one-newspaper' )
                ]),
                'lefts_rightc_blocks_width_layout_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Width Layouts', 'one-newspaper' )
                ]),
                'bottom_full_width_blocks_width_layout_header'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Width Layouts', 'one-newspaper' )
                ]),
                'two_column_first_column_blocks_header' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'First Column Blocks', 'one-newspaper' )
                ]),
                'two_column_second_column_blocks_header'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Second Column Blocks', 'one-newspaper' )
                ]),
                'two_column_section_layout_header'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Width Layouts', 'one-newspaper' )
                ]),
                'single_post_image_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Image Settings', 'one-newspaper' )
                ]),
                'single_post_width_layout_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Width Layouts', 'one-newspaper' )
                ]),
                'page_width_layout_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Width Layouts', 'one-newspaper' )
                ]),
                'page_image_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Image Settings', 'one-newspaper' )
                ]),
                'main_banner_section_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Settings', 'one-newspaper' )
                ]),
                'web_stories_section_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Settings', 'one-newspaper' )
                ]),
                'full_width_section_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Settings', 'one-newspaper' )
                ]),
                'leftc_rights_section_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Settings', 'one-newspaper' )
                ]),
                'lefts_rightc_section_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Settings', 'one-newspaper' )
                ]),
                'bottom_full_width_section_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Settings', 'one-newspaper' )
                ]),
                'two_column_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Settings', 'one-newspaper' )
                ]),
                'leftc_rights_section_sidebar_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Sidebar Settings', 'one-newspaper' )
                ]),
                'lefts_rightc_section_sidebar_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Sidebar Settings', 'one-newspaper' )
                ]),
                'archive_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Settings', 'one-newspaper' )
                ]),
                'archive_sidebar_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Sidebar Settings', 'one-newspaper' )
                ]),
                'ticker_section_settings_header'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Settings', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return $control->manager->get_setting( 'ticker_news_frontpage' )->value();
                    }
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_section_heading() Method

        /**
         * Get all redirect controls
         * 
         * @since 1.0.0
         */
        public function get_redirect_control( $id = '' ) {

            $control_array = [
                'canvas_menu_redirects' =>  [
                    'label' => esc_html__( 'Widgets', 'one-newspaper' ),
                    'choices'     => [
                        'canvas-menu-sidebar' => [
                            'type'  => 'section',
                            'id'    => 'sidebar-widgets-off-canvas-sidebar',
                            'label' => esc_html__( 'Manage canvas menu widget', 'one-newspaper' )
                        ]
                    ]
                ],
                'global_button_redirect'    =>  [
                    'choices'     => [
                        'canvas-menu-sidebar' => [
                            'type'  => 'control',
                            'id'    => 'archive_page_layout_header',
                            'label' => esc_html__( 'Head to Archive', 'one-newspaper' )
                        ]
                    ]
                ],
                'leftc_rights_section_sidebar_redirect' =>  [
                    'label'	      => esc_html__( 'Widgets', 'one-newspaper' ),
                    'choices'     => [
                        'footer-column-one' => [
                            'type'  => 'section',
                            'id'    => 'sidebar-widgets-front-right-sidebar',
                            'label' => esc_html__( 'Manage right sidebar', 'one-newspaper' )
                        ]
                    ]
                ],
                'lefts_rightc_section_sidebar_redirect' =>  [
                    'label'	      => esc_html__( 'Widgets', 'one-newspaper' ),
                    'choices'     => [
                        'footer-column-one' => [
                            'type'  => 'section',
                            'id'    => 'sidebar-widgets-front-left-sidebar',
                            'label' => esc_html__( 'Manage left sidebar', 'one-newspaper' )
                        ]
                    ]
                ],
                'archive_button_redirect'  =>  [
                    'choices'     => [
                        'header-social-icons' => [
                            'type'  => 'section',
                            'id'    => 'buttons_section',
                            'label' => esc_html__( 'Edit button styles', 'one-newspaper' )
                        ]
                    ]
                ]
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_redirect_control() Method

        /**
         * Get all radio image controls
         * 
         * @since 1.0.0
         */
        public function get_radio_image( $id = '' ) {
            $theme_directory = get_template_directory_uri();
            $front_sections_width_layout_choices = [
                'global' => [
                    'label' => esc_html__( 'Global', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/global.jpg'
                ],
                'boxed--layout' => [
                    'label' => esc_html__( 'Boxed', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/boxed_content.jpg'
                ],
                'full-width--layout' => [
                    'label' => esc_html__( 'Full Width', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/full_content.jpg'
                ]
            ];
            $control_array = [
                'block_title_layout'  =>  [
                    'choices'  => [
                        'one' => [
                            'label' => esc_html__( 'Layout 1', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/block_title_one.png'
                        ],
                        'two' => [
                            'label' => esc_html__( 'Layout 2', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/block_title_two.png'
                        ],
                        'three' => [
                            'label' => esc_html__( 'Layout 3', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/block_title_three.png'
                        ],
                        'four' => [
                            'label' => esc_html__( 'Layout 4', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/block_title_four.png'
                        ],
                        'five' => [
                            'label' => esc_html__( 'Layout 4', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/block_title_five.png'
                        ]
                    ],
                    'transport' =>  'postMessage'
                ],
                'single_layout'  =>  [
                   'label' =>  esc_html__( 'Single Layout', 'one-newspaper' ),
                   'choices'  => [
                       'three' => [
                           'label' => esc_html__( 'Layout 1', 'one-newspaper' ),
                           'url'   => $theme_directory . '/assets/images/customizer/single_three.jpg'
                       ],
                       'five' => [
                           'label' => esc_html__( 'Layout 2', 'one-newspaper' ),
                           'url'   => $theme_directory . '/assets/images/customizer/single_five.jpg'
                       ]
                    ],
                    'bottom_separator'  =>  true
                ],
                'error_page_sidebar_layout'   =>  [
                   'label' =>  esc_html__( 'Sidebar Layout', 'one-newspaper' ),
                   'choices'  => [
                       'right-sidebar' => [
                           'label' => esc_html__( 'Right Sidebar', 'one-newspaper' ),
                           'url'   => $theme_directory . '/assets/images/customizer/right-sidebar.png'
                       ],
                       'left-sidebar' => [
                           'label' => esc_html__( 'Left Sidebar', 'one-newspaper' ),
                           'url'   => $theme_directory . '/assets/images/customizer/left-sidebar.png'
                       ],
                       'both-sidebar' => [
                           'label' => esc_html__( 'Both Sidebar', 'one-newspaper' ),
                           'url'   => $theme_directory . '/assets/images/customizer/both-sidebar.png'
                       ],
                       'no-sidebar' => [
                           'label' => esc_html__( 'No Sidebar', 'one-newspaper' ),
                           'url'   => $theme_directory . '/assets/images/customizer/no-sidebar.png'
                       ]
                    ],
                    'bottom_separator'  =>  true
                ],
                'header_builder_section_width'  =>  [
                    'label' => esc_html__( 'Section Width', 'one-newspaper' ),
                    'choices' => [
                        'boxed--layout' =>  [
                            'label' => esc_html__('Boxed', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/boxed-width.jpg'
                        ],
                        'full-width--layout'    =>  [
                            'label' => esc_html__('Full Width', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/full-width.jpg'
                        ]
                    ],
                    'transport' =>  'postMessage'
                ],
                'footer_builder_section_width'  =>  [
                    'label' => esc_html__( 'Section Width', 'one-newspaper' ),
                    'choices' => [
                        'boxed--layout' =>  [
                            'label' => esc_html__('Boxed', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/boxed-width.jpg'
                        ],
                        'full-width--layout'    =>  [
                            'label' => esc_html__('Full Width', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/full-width.jpg'
                        ]
                    ],
                    'transport' =>  'postMessage'
                ],
                'website_layout'  =>  [
                    'choices' => [
                        'boxed--layout' =>  [
                            'label' => esc_html__('Boxed', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/boxed-width.jpg'
                        ],
                        'full-width--layout'    =>  [
                            'label' => esc_html__('Full Width', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/full-width.jpg'
                        ]
                    ],
                    'transport' =>  'postMessage'
                ],
                'website_content_layout'  =>  [
                    'choices' => [
                        'boxed--layout' =>  [
                            'label' => esc_html__('Boxed', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/boxed_content.jpg'
                        ],
                        'full-width--layout'    =>  [
                            'label' => esc_html__('Full Width', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/full_content.jpg'
                        ]
                    ],
                    'transport' =>  'postMessage'
                ],
                'frontpage_sidebar_layout'  =>  [
                    'choices' => one_newspaper_get_customizer_sidebar_array()
                ],
                'archive_sidebar_layout'  =>  [
                    'choices' => one_newspaper_get_customizer_sidebar_array()
                ],
                'single_sidebar_layout'  =>  [
                    'choices' => one_newspaper_get_customizer_sidebar_array()
                ],
                'page_sidebar_layout'  =>  [
                    'choices' => one_newspaper_get_customizer_sidebar_array()
                ],
                'ticker_news_width_layout'  =>  [
                    'choices'  => [
                        'global' => [
                            'label' => esc_html__( 'Global', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/global.jpg'
                        ],
                        'boxed--layout' => [
                            'label' => esc_html__( 'Boxed', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/boxed_content.jpg'
                        ],
                        'full-width--layout' => [
                            'label' => esc_html__( 'Full Width', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/full_content.jpg'
                        ]
                    ],
                    'transport' =>  'postMessage',
                    'active_callback'   =>  function( $control ) {
                        return $control->manager->get_setting( 'ticker_news_frontpage' )->value();
                    }
                ],
                'main_banner_width_layout'  =>  [
                    'choices'  => $front_sections_width_layout_choices,
                    'transport' =>  'postMessage'
                ],
                'full_width_blocks_width_layout'    =>  [
                    'choices'   =>  $front_sections_width_layout_choices,
                    'transport' =>  'postMessage'
                ],
                'leftc_rights_blocks_width_layout'  =>  [
                    'choices'   =>  $front_sections_width_layout_choices,
                    'transport' =>  'postMessage'
                ],
                'lefts_rightc_blocks_width_layout'  =>  [
                    'choices'   =>  $front_sections_width_layout_choices,
                    'transport' =>  'postMessage'
                ],
                'bottom_full_width_blocks_width_layout' =>  [
                    'choices'   =>  $front_sections_width_layout_choices,
                    'transport' =>  'postMessage'
                ],
                'web_stories_full_width_blocks_width_layout' =>  [
                    'choices'   =>  $front_sections_width_layout_choices,
                    'transport' =>  'postMessage'
                ],
                'two_column_section_layout' =>  [
                    'choices'   =>  $front_sections_width_layout_choices,
                    'transport' =>  'postMessage'
                ],
                'archive_page_layout'   =>  [
                    'choices'  => [
                        'one' => [
                            'label' => esc_html__( 'Layout One', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/archive_one.jpg'
                        ],
                        'two' => [
                            'label' => esc_html__( 'Layout Two', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/archive_two.jpg'
                        ],
                        'five' => [
                            'label' => esc_html__( 'Layout Five', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/archive_five.jpg'
                        ]
                    ]
                ],
                'archive_width_layout'  =>  [
                    'choices'  => [
                        'global' => [
                            'label' => esc_html__( 'Global', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/global.jpg'
                        ],
                        'boxed--layout' => [
                            'label' => esc_html__( 'Boxed', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/boxed_content.jpg'
                        ],
                        'full-width--layout' => [
                            'label' => esc_html__( 'Full Width', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/full_content.jpg'
                        ]
                    ],
                    'transport' =>  'postMessage'
                ],
                'single_post_width_layout'  =>  [
                    'choices'  => [
                        'global' => [
                            'label' => esc_html__( 'Global', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/global.jpg'
                        ],
                        'boxed--layout' => [
                            'label' => esc_html__( 'Boxed', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/boxed_content.jpg'
                        ],
                        'full-width--layout' => [
                            'label' => esc_html__( 'Full Width', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/full_content.jpg'
                        ]
                    ],
                    'transport' =>  'postMessage'
                ],
                'page_width_layout'  =>  [
                    'choices'  => [
                        'global' => [
                            'label' => esc_html__( 'Global', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/global.jpg'
                        ],
                        'boxed--layout' => [
                            'label' => esc_html__( 'Boxed', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/boxed_content.jpg'
                        ],
                        'full-width--layout' => [
                            'label' => esc_html__( 'Full Width', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/full_content.jpg'
                        ]
                    ],
                    'transport' =>  'postMessage'
                ],
                'error_page_width_layout'  =>  [
                    'choices'  => [
                        'global' => [
                            'label' => esc_html__( 'Global', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/global.jpg'
                        ],
                        'boxed--layout' => [
                            'label' => esc_html__( 'Boxed', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/boxed_content.jpg'
                        ],
                        'full-width--layout' => [
                            'label' => esc_html__( 'Full Width', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/full_content.jpg'
                        ]
                    ],
                    'transport' =>  'postMessage'
                ],
                'search_page_width_layout'  =>  [
                    'choices'  => [
                        'global' => [
                            'label' => esc_html__( 'Global', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/global.jpg'
                        ],
                        'boxed--layout' => [
                            'label' => esc_html__( 'Boxed', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/boxed_content.jpg'
                        ],
                        'full-width--layout' => [
                            'label' => esc_html__( 'Full Width', 'one-newspaper' ),
                            'url'   => $theme_directory . '/assets/images/customizer/full_content.jpg'
                        ]
                    ],
                    'transport' =>  'postMessage'
                ]
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_radio_image() Method

        /**
         * Get all icon picker controls
         * 
         * @since 1.0.0
         */
        public function get_icon_picker( $id = '' ) {
            $default = [
                'include_media' =>  true
            ];

            $control_array = [
                'theme_mode_dark_icon'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Choose Dark Icon', 'one-newspaper' ),
                    'include_media' =>  false,
                    'transport' =>  'postMessage'
                ]),
                'theme_mode_light_icon'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Choose Light Icon', 'one-newspaper' ),
                    'include_media' =>  false,
                    'transport' =>  'postMessage'
                ]),
                'standard_post_format_icon_picker'    =>  $this->get_params( $default, [
                   'label' =>  esc_html__( 'Standard', 'one-newspaper' ),
                   'transport' =>  'postMessage'
                ]),
                'audio_post_format_icon_picker'   =>  $this->get_params( $default, [
                   'label' =>  esc_html__( 'Audio', 'one-newspaper' ),
                   'transport' =>  'postMessage'
                ]),
                'gallery_post_format_icon_picker' =>  $this->get_params( $default, [
                   'label' =>  esc_html__( 'Gallery', 'one-newspaper' ),
                   'transport' =>  'postMessage'
                ]),
                'image_post_format_icon_picker'   =>  $this->get_params( $default, [
                   'label' =>  esc_html__( 'Image', 'one-newspaper' ),
                   'transport' =>  'postMessage'
                ]),
                'quote_post_format_icon_picker'   =>  $this->get_params( $default, [
                   'label' =>  esc_html__( 'Quote', 'one-newspaper' ),
                   'transport' =>  'postMessage'
                ]),
                'video_post_format_icon_picker'   =>  $this->get_params( $default, [
                   'label' =>  esc_html__( 'Video', 'one-newspaper' ),
                   'transport' =>  'postMessage'
                ]),
                'global_slider_prev_icon_picker'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Previous Icon', 'one-newspaper' ),
                    'include_media' =>  false,
                ]),
                'global_slider_next_icon_picker'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Next Icon', 'one-newspaper' ),
                    'include_media' =>  false
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_icon_picker() Method

        /**
         * Get all text controls
         * 
         * @since 1.0.0
         */
        public function get_text( $id = '' ) {
            $default = [
                'label' =>  esc_html__( 'Button Label', 'one-newspaper' ),
                'type'  =>  'text',
                'transport' =>  'postMessage'
            ];

            $control_array = [
                'newsletter_label' =>  $this->get_params( $default, []),
                'global_button_label'   =>  $this->get_params( $default, []),
                'stt_label'  =>  $this->get_params( $default, []),
                'single_post_related_posts_title'   =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Related articles title', 'one-newspaper' )
                ]),
                'random_news_label'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Button Label', 'one-newspaper' )
                ]),
                'custom_button_label'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Button Label', 'one-newspaper' )
                ])
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_text() Method

        /**
         * Get all select controls
         * 
         * @since 1.0.0
         */
        public function get_select( $id = '' ) {
            $default = [
                'type'  =>  'select',
            ];

            $control_array = [
                'site_title_tag_for_frontpage'    =>  $this->get_params( $default, [
                    'label'   =>  esc_html__( 'Site Title Tag (For Frontpage)', 'one-newspaper' ),
                    'choices'   =>  apply_filters( 'one_newspaper_get_title_tags_array_filter', [] ),
                    'priority'  =>  30
                ]),
                'site_title_tag_for_innerpage'    =>  $this->get_params( $default, [
                    'label'   =>  esc_html__( 'Site Title Tag (For Innerpage)', 'one-newspaper' ),
                    'choices'   =>  apply_filters( 'one_newspaper_get_title_tags_array_filter', [] ),
                    'priority'  =>  30
                ]),
                'header_menu_hover_effect'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Hover Effect', 'one-newspaper' ),
                    'choices'   =>  [
                        'none'  =>  esc_html__( 'None', 'one-newspaper' ),
                        'two'  =>  esc_html__( 'Effect 1', 'one-newspaper' ),
                        'four'  =>  esc_html__( 'Effect 2', 'one-newspaper' )
                    ],
                    'transport' =>  'postMessage'
                ]),
                'footer_menu_hover_effect'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Hover Effect', 'one-newspaper' ),
                    'choices'   =>  [
                        'none'  =>  esc_html__( 'None', 'one-newspaper' ),
                        'two'  =>  esc_html__( 'Effect 1', 'one-newspaper' ),
                        'four'  =>  esc_html__( 'Effect 2', 'one-newspaper' )
                    ],
                    'transport' =>  'postMessage'
                ]),
                'header_ads_banner_image_rel_attr'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Rel attribute', 'one-newspaper' ),
                    'choices'   =>  [
                        'nofollow'  => esc_html__( 'No Follow', 'one-newspaper' ),
                        'noopener'  => esc_html__( 'No Opener', 'one-newspaper' ),
                        'noreferrer' => esc_html__( 'No Referrer', 'one-newspaper' )
                    ],
                    'active_callback'   =>  function( $control ) {
                        return ( ( $control->manager->get_setting( 'header_ads_banner_image_link_url' )->value() ) );
                    }
                ]),
                'preloader_type'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Preloader Styles', 'one-newspaper' ),
                    'choices'   =>  [
                        '1' =>  esc_html__( 'One', 'one-newspaper' ),
                        '2' =>  esc_html__( 'Two', 'one-newspaper' ),
                        '3' =>  esc_html__( 'Three', 'one-newspaper' )
                    ],
                    'active_callback'   =>  function( $control ) {
                        return $control->manager->get_setting( 'preloader_option' )->value();
                    },
                    'transport' =>  'postMessage'
                ]),
                'bottom_footer_header_or_custom'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Logo From', 'one-newspaper' ),
                    'choices'   =>  [
                        'header'  =>  esc_html__( 'Default Site Logo', 'one-newspaper' ),
                        'custom'  =>  esc_html__( 'Custom', 'one-newspaper' )
                    ],
                    'transport' =>  'postMessage'
                ]),
                'site_date_to_show'    =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Date To Display', 'one-newspaper' ),
                    'description' => esc_html__( 'Whether to show date published or modified date.', 'one-newspaper' ),
                    'choices'   => [
                        'published'  => esc_html__( 'Published Date', 'one-newspaper' ),
                        'modified'   => esc_html__( 'Modified Date', 'one-newspaper' )
                    ]
                ]),
                'site_date_format'    =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Date format', 'one-newspaper' ),
                    'description' => esc_html__( 'Date format applied to single and archive pages.', 'one-newspaper' ),
                    'choices'   => [
                        'theme_format'  => esc_html__( 'Default by theme', 'one-newspaper' ),
                        'default'   => esc_html__( 'Wordpress default date', 'one-newspaper' )
                    ]
                ]),
                'post_title_hover_effects'    =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Post title hover effects', 'one-newspaper' ),
                    'description' => esc_html__( 'Applied to post titles listed in archive pages.', 'one-newspaper' ),
                    'choices'   => [
                        'none'  => __( 'None', 'one-newspaper' ),
                        'six'   => __( 'Effect 1', 'one-newspaper' ),
                        'ten'   => __( 'Effect 2', 'one-newspaper' )
                    ],
                    'transport' =>  'postMessage'
                ]),
                'site_image_hover_effects'    =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Image hover effects', 'one-newspaper' ),
                    'description' => esc_html__( 'Applied to post thumbanails listed in archive pages.', 'one-newspaper' ),
                    'choices'   => [
                        'none'  => __( 'None', 'one-newspaper' ),
                        'one'   => __( 'Effect 1', 'one-newspaper' ),
                        'four'   => __( 'Effect 2', 'one-newspaper' )
                    ],
                    'transport' =>  'postMessage'
                ]),
                'cursor_animation'    =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Cursor animation', 'one-newspaper' ),
                    'description' => esc_html__( 'Applied to mouse pointer.', 'one-newspaper' ),
                    'choices'   => [
                        'none' => esc_html__( 'None', 'one-newspaper' ),
                        'one'  => esc_html__( 'Animation 1', 'one-newspaper' )
                    ]
                ]),
                'site_breadcrumb_type'    =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Breadcrumb type', 'one-newspaper' ),
                    'description' => esc_html__( 'If you use other than "default" one you will need to install and activate respective plugins Breadcrumb NavXT, Yoast SEO and Rank Math SEO', 'one-newspaper' ),
                    'choices'   => [
                        'default' => esc_html__( 'Default', 'one-newspaper' ),
                        'bcn'  => esc_html__( 'NavXT', 'one-newspaper' ),
                        'yoast'  => esc_html__( 'Yoast SEO', 'one-newspaper' ),
                        'rankmath'  => esc_html__( 'Rank Math', 'one-newspaper' )
                    ]
                ]),
                'header_newsletter_hover_animation'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Animation Type', 'one-newspaper' ),
                    'choices'   => [
                        'none'  => esc_html__( 'None', 'one-newspaper' ),
                        'one'   => esc_html__( 'Effect one', 'one-newspaper' ),
                        'two'   => esc_html__( 'Effect Two', 'one-newspaper' ),  
                        'three' => esc_html__( 'Effect Three', 'one-newspaper' ),  
                        'four'  => esc_html__( 'Effect Four', 'one-newspaper' ),  
                        'five'  => esc_html__( 'Effect Five', 'one-newspaper' )  
                    ],
                    'transport' =>  'postMessage'
                ]),
                'site_background_animation'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Background animation', 'one-newspaper' ),
                    'choices'	=>	[
                        'none'	=>	esc_html__( 'None', 'one-newspaper' ),
                        'three'	=>	esc_html__( 'Animation 1', 'one-newspaper' )
                    ],
                    'transport' =>  'postMessage'
                ]),
                'sticky_posts_order'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Order by', 'one-newspaper' ),
                    'choices'   =>  one_newspaper_post_order_args()
                ]),
                'secondary_menu_hover_effect'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Hover Effects', 'one-newspaper' ),
                    'choices'   =>  [
                        'none'  =>  esc_html__( 'None', 'one-newspaper' ),
                        'two'   =>  esc_html__( 'Effect 1', 'one-newspaper' ),
                        'four'  =>  esc_html__( 'Effect 2', 'one-newspaper' )
                    ]
                ]),
                'ticker_news_order_by'    =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Orderby', 'one-newspaper' ),
                    'choices'   =>  one_newspaper_customizer_orderby_options_array()
                ]),
                'main_banner_slider_order_by'   =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Orderby', 'one-newspaper' ),
                    'choices'   => one_newspaper_customizer_orderby_options_array()
                ]),
                'main_banner_block_posts_order_by'  =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Orderby', 'one-newspaper' ),
                    'choices'   => one_newspaper_customizer_orderby_options_array()
                ]),
                'archive_image_size'   =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Image Size', 'one-newspaper' ),
                    'choices'   => one_newspaper_get_image_sizes()
                ]),
                'archive_pagination_type'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Pagination Type', 'one-newspaper' ),
                    'choices'   =>  [
                        'default'   =>  esc_html__( 'Default', 'one-newspaper' ),
                        'number'    =>  esc_html__( 'Number', 'one-newspaper' )
                    ],
                    'transport' =>  'postMessage'
                ]),
                'web_stories_orderby' =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Order by', 'one-newspaper' ),
                    'choices'   =>  [
                        'asc-name'  =>  esc_html__( 'Ascending Name', 'one-newspaper' ),
                        'asc-count'  =>  esc_html__( 'Ascending Count', 'one-newspaper' ),
                        'desc-name'  =>  esc_html__( 'Descending Name', 'one-newspaper' ),
                        'desc-count'  =>  esc_html__( 'Descending Count', 'one-newspaper' )
                    ],
                ]),
                'web_stories_image_sizes'    =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Image Sizes', 'one-newspaper' ),
                    'choices'   =>  one_newspaper_get_image_sizes_option_array_for_customizer()
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_select() Method

        /**
         * Get all border controls
         * 
         * @since 1.0.0
         */
        public function get_border( $id = '' ) {
            $default = [
                'label' =>  esc_html__( 'Border', 'one-newspaper' ),
                'input_attr'    =>  [
                    'max'   =>  100,
                    'min'   =>  0,
                    'step'  =>  1
                ],
                'transport' =>  'postMessage'
            ];

            $control_array = [
                'widgets_styles_image_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'main_banner_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'web_stories_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'full_width_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'leftc_rights_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'lefts_rightc_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'bottom_full_width_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'two_column_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'leftc_rights_sidebar_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'lefts_rightc_sidebar_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'archive_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'archive_sidebar_section_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ])
                ]),
                'ticker_news_border'   =>  $this->get_params( $default, [
                    'input_attr'    =>  $this->get_input_attrs([ 'min'   =>  1 ]),
                    'active_callback'   =>  function( $control ) {
                        return $control->manager->get_setting( 'ticker_news_frontpage' )->value();
                    }
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_border() Method

        /**
         * Get all preset controls
         * 
         * @since 1.0.0
         */
        public function get_preset_colors( $id = '' ) {
            $default = [
                'transport' =>  'postMessage'
            ];

            $control_array = [
                'solid_color_preset'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Solid Presets', 'one-newspaper' ),
                    'description'   =>  esc_html__( 'Set color presets', 'one-newspaper' ),
                    'bottom_separator'  =>  true
                ]),
                'gradient_color_preset'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Gradient Presets', 'one-newspaper' ),
                    'description'   =>  esc_html__( 'Set gradient presets', 'one-newspaper' ),
                    'blend' =>  'gradient'
                ])
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_preset_colors() Method

        /**
         * Get all color controls
         * 
         * @since 1.0.0
         */
        public function get_colors( $id = '' ) {
            $default = [
                'involve'   =>  [ 'solid' ],
                'hover' =>  false,
                'transport' =>  'postMessage'
            ];
            
            $control_array = [
                'website_layout_background_color'   => $this->get_params( $default, [
                    'label' => esc_html__( 'Container Background Color', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( $control->manager->get_setting( 'website_layout' )->value() == 'boxed--layout' );
                    },
                    'involve'   =>  [ 'solid', 'gradient' ]
                ]),
                'site_background_color' => $this->get_params( $default, [
                    'label' => esc_html__( 'Background Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient' ],
                    'description'   =>  esc_html__( 'If background image is set, this will act as overlay.', 'one-newspaper' )
                ]),
                'header_menu_color'  => $this->get_params( $default, [
                    'label'     => esc_html__( 'Text Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ],
                    'hover' =>  true,
                ]),
                'header_sub_menu_color' => $this->get_params( $default, [
                    'label'     => esc_html__( 'Text Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ],
                    'hover' =>  true,
                ]),
                'search_icon_color'  => $this->get_params( $default, [
                    'label'     => esc_html__( 'Icon Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ],
                    'hover' =>  true
                ]),
                'header_newsletter_label_color' => $this->get_params( $default, [
                    'label' =>  esc_html__( 'Text Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ],
                    'hover' =>  true
                ]),
                'custom_button_icon_color' => $this->get_params( $default, [
                    'label' =>  esc_html__( 'Icon Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ],
                    'hover' =>  true
                ]),
                'theme_mode_dark_icon_color'  => $this->get_params( $default, [
                    'label' =>  esc_html__( 'Dark Icon Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ],
                    'hover' =>  true
                ]),
                'theme_mode_light_icon_color' => $this->get_params( $default, [
                    'label' =>  esc_html__( 'Light Icon Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ],
                    'hover' =>  true
                ]),
                'canvas_menu_icon_color'   => $this->get_params( $default, [
                    'label'     => esc_html__( 'Canvas Menu Icon Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ],
                    'hover' =>  true
                ]),
                'stt_color_group' => $this->get_params( $default, [
                    'label'     => esc_html__( 'Icon Text', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ],
                    'hover' =>  true
                ]),
                'pagination_button_text_color'   => $this->get_params( $default, [
                    'label'     => esc_html__( 'Button Text Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ],
                    'hover' =>  true
                ]),
                'pagination_button_background_color'   => $this->get_params( $default, [
                    'label' => esc_html__( 'Button Background Color', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'archive_pagination_type' )->value(), [ 'number' ] ) );
                    },
                    'involve'   =>  [ 'solid', 'gradient' ],
                    'hover' =>  true
                ]),
                'header_builder_background' => $this->get_params( $default, [
                   'label' => esc_html__( 'Background', 'one-newspaper' ),
                   'involve' => [ 'solid', 'gradient', 'image' ]
                ]),
                'footer_builder_background' => $this->get_params( $default, [
                   'label' => esc_html__( 'Background', 'one-newspaper' ),
                   'involve' => [ 'solid', 'gradient', 'image' ],
                ]),
                /* Header builder row settings section */
                'header_first_row_background' => $this->get_params( $default, [
                   'label' => esc_html__( 'Background Color', 'one-newspaper' ),
                   'involve' => [ 'solid', 'gradient' ]
                ]),
                'header_second_row_background' => $this->get_params( $default, [
                   'label' => esc_html__( 'Background Color', 'one-newspaper' ),
                   'involve' => [ 'solid', 'gradient' ]
                ]),
                'header_third_row_background' => $this->get_params( $default, [
                   'label' => esc_html__( 'Background Color', 'one-newspaper' ),
                   'involve' => [ 'solid', 'gradient' ]
                ]),
                /* Footer builder row settings section */
                'footer_first_row_background' => $this->get_params( $default, [
                   'label' => esc_html__( 'Background Color', 'one-newspaper' ),
                   'involve' => [ 'solid', 'gradient' ]
                ]),
                'footer_second_row_background' => $this->get_params( $default, [
                   'label' => esc_html__( 'Background Color', 'one-newspaper' ),
                   'involve' => [ 'solid', 'gradient' ]
                ]),
                'footer_third_row_background' => $this->get_params( $default, [
                   'label' => esc_html__( 'Background Color', 'one-newspaper' ),
                   'involve' => [ 'solid', 'gradient' ]
                ]),
                /* Date / Time */
                'date_color' => $this->get_params( $default, [
                   'label' => esc_html__( 'Date Color', 'one-newspaper' ),
                   'involve' => [ 'solid' ]
                ]),
                'time_color' => $this->get_params( $default, [
                   'label' => esc_html__( 'Time Color', 'one-newspaper' ),
                   'involve' => [ 'solid' ]
                ]),
                'mobile_canvas_icon_color' => $this->get_params( $default, [
                   'label' => esc_html__( 'Icon Color', 'one-newspaper' ),
                   'involve' => [ 'solid' ],
                   'hover'  =>  true,
                ]),
                'mobile_canvas_text_color' => $this->get_params( $default, [
                   'label' => esc_html__( 'Color', 'one-newspaper' ),
                   'involve' => [ 'solid' ],
                   'hover'  =>  false,
                ]),
                'mobile_canvas_background' => $this->get_params( $default, [
                   'label' => esc_html__( 'Canvas Background', 'one-newspaper' ),
                   'involve' => [ 'solid', 'gradient' ],
                ]),
                'footer_menu_color' => $this->get_params( $default, [
                   'label' => esc_html__( 'Color', 'one-newspaper' ),
                   'involve' => [ 'solid' ],
                   'hover'  =>  true
                ]),
                'secondary_menu_color' => $this->get_params( $default, [
                   'label' => esc_html__( 'Color', 'one-newspaper' )
                ]),
                'random_news_label_color'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Label Color', 'one-newspaper' ),
                    'involve' => [ 'solid' ],
                    'hover' =>  true
                ]),
                'custom_button_color_group'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Icon / Text Color', 'one-newspaper' ),
                    'involve' => [ 'solid' ],
                    'hover' =>  true
                ]),
                'ticker_news_background_color_group'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ],
                    'active_callback'   =>  function( $control ) {
                        return $control->manager->get_setting( 'ticker_news_frontpage' )->value();
                    }
                ]),
                'ticker_news_title_color'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( ' Title Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ]
                ]),
                'ticker_news_date_color'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( ' Date Color', 'one-newspaper' ),
                    'involve'   =>  [ 'solid' ]
                ]),
                'main_banner_background_color_group'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
                'web_stories_background_color_group'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
                'full_width_blocks_background_color_group'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
                'leftc_rights_blocks_background_color_group'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
                'lefts_rightc_blocks_background_color_group'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
                'bottom_full_width_blocks_background_color_group'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
                'two_column_background_color_group' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
                'leftc_rights_sidebar_background_color_group'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
                'lefts_rightc_sidebar_background_color_group'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
                'archive_color_group'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
                'archive_sidebar_color_group'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Section Background', 'one-newspaper' ),
                    'involve'   =>  [ 'solid', 'gradient', 'image' ]
                ]),
            ];
            $totalCats = get_categories();
            if( $totalCats ) :
                $totalCats_count = count( $totalCats );
                foreach( $totalCats as $key => $singleCat ) :
                    $cat_color_id = 'category_' . absint( $singleCat->term_id ) . '_color';
                    $control_array[ 'category_top_spacing_' . $key ] = [];
                    $control_array[ $cat_color_id ] = [
                        'label' => esc_html__( 'Text Color', 'one-newspaper' ),
                        'involve'   =>  [ 'solid' ],
                        'hover' =>  true,
                        'transport' =>  'postMessage'
                    ];

                    $background_id = 'category_background_' . absint( $singleCat->term_id ) . '_color';
                    $control_array[ $background_id ] = [
                        'label' => esc_html__( 'Background', 'one-newspaper' ),
                        'involve'   =>  [ 'solid', 'gradient' ],
                        'hover' =>  true,
                        'bottom_separator'  =>  true,
                        'transport' =>  'postMessage'
                    ];
                    if( $totalCats_count != ( $key + 1 ) ) $control_array[ 'category_bottom_spacing_' . $key ] = [];
                endforeach;
            endif;

            $totalTags = get_tags();
            $tag_priority = 10;
            if( $totalTags ) :
                $totalTags_count = count( $totalTags );
                foreach( $totalTags as $key => $singleTag ) :
                    $tag_color_id = 'tag_' . absint( $singleTag->term_id ) . '_color';
                    $control_array[ 'tag_top_spacing_' . $key ] = [];
                    $control_array += [ $tag_color_id =>  [
                        'label' => esc_html__( 'Text Color', 'one-newspaper' ),
                        'involve'   =>  [ 'solid' ],
                        'hover' =>  true,
                        'transport' =>  'postMessage'
                    ]];

                    $background_id = 'tag_background_' . absint( $singleTag->term_id ) . '_color';
                    $control_array += [ $background_id   =>  [
                        'label' => esc_html__( 'Background', 'one-newspaper' ),
                        'involve'   =>  [ 'solid', 'gradient' ],
                        'hover' =>  true,
                        'bottom_separator'  =>  true,
                        'transport' =>  'postMessage'
                    ]];
                    $tag_priority += 10;
                    if( $totalTags_count != ( $key + 1 ) ) $control_array[ 'tag_bottom_spacing_' . $key ] = [];
                endforeach;
            endif;
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_colors() Method

        /**
         * Get all editor controls
         * 
         * @since 1.0.0
         */
        public function get_editor_control( $id = '' ) {
            $control_array = [];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_editor_control() Method

        /**
         * Get all Media controls
         * 
         * @since 1.0.0
         */
        public function get_media_control( $id = '' ) {
            $default = [
                'mime_type' => 'image',
            ];

            $control_array = [
                'header_ads_banner_image' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Ads Banner Image', 'one-newspaper' ),
                    'description'   =>  esc_html__( 'Upload ads banner image', 'one-newspaper' )
                ]),
                'error_page_image'    =>  $this->get_params( $default, [
                    'label' => esc_html__( '404 Image', 'one-newspaper' ),
                    'description' => esc_html__( 'Upload image that shows you are on 404 error page', 'one-newspaper' ),
                ]),
                'bottom_footer_logo_option'   =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Footer Logo', 'one-newspaper' ),
                    'description' => esc_html__( 'Upload image for bottom footer', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( $control->manager->get_setting( 'bottom_footer_header_or_custom' )->value() == 'custom' );
                    },
                ])
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_media_control() Method

        /**
         * Get all wordpress default color controls
         * 
         * @since 1.0.0
         */
        public function get_predefined_colors( $id = '' ) {
            $default = [
                'priority'  =>  20,
                'transport' =>  'postMessage'
            ];

            $control_array = [
                'site_title_hover_textcolor'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Site Title Hover Color', 'one-newspaper' )
                ]),
                'site_description_color'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Site Description Color', 'one-newspaper' )
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_predefined_colors() Method

        /**
         * Get all custom repeater controls
         * 
         * @since 1.0.0
         */
        public function get_custom_repeaters( $id = '' ) {
            $default = [];
            $control_array = [
                'social_icons' =>  $this->get_params( $default, [
                    'label'         => esc_html__( 'Social Icons', 'one-newspaper' ),
                    'description'   => esc_html__( 'Hold and drag vertically to re-order the icons', 'one-newspaper' ),
                    'row_label'     => 'inherit-icon_class',
                    'add_new_label' => esc_html__( 'Add New Icon', 'one-newspaper' ),
                    'fields'        => [
                        'icon_class'   => array(
                            'type'          =>  'fontawesome-icon-picker',
                            'label'         =>  esc_html__( 'Social Icon', 'one-newspaper' ),
                            'description'   =>  esc_html__( 'Select from dropdown.', 'one-newspaper' ),
                            'default'       =>  esc_attr( 'fa-brands fa-instagram' ),
                            'families'      =>  'social'
                        ),
                        'icon_url'  => array(
                            'type'      => 'url',
                            'label'     => esc_html__( 'URL for icon', 'one-newspaper' ),
                            'default'   => ''
                        ),
                        'item_option'             => 'show'
                    ]
                ]),
                'footer_social_icons' =>  $this->get_params( $default, [
                    'label'         => esc_html__( 'Social Icons', 'one-newspaper' ),
                    'description'   => esc_html__( 'Hold and drag vertically to re-order the icons', 'one-newspaper' ),
                    'row_label'     => 'inherit-icon_class',
                    'add_new_label' => esc_html__( 'Add New Icon', 'one-newspaper' ),
                    'fields'        => [
                        'icon_class'   => array(
                            'type'          =>  'fontawesome-icon-picker',
                            'label'         =>  esc_html__( 'Social Icon', 'one-newspaper' ),
                            'description'   =>  esc_html__( 'Select from dropdown.', 'one-newspaper' ),
                            'default'       =>  esc_attr( 'fa-brands fa-instagram' ),
                            'families'      =>  'social'
                        ),
                        'icon_count'  => array(
                            'type'      => 'text',
                            'label'     => esc_html__( 'Count', 'one-newspaper' ),
                            'default'   => '1K'
                        ),
                        'icon_label'  => array(
                            'type'      => 'text',
                            'label'     => esc_html__( 'Label', 'one-newspaper' )
                        ),
                        'icon_url'  => array(
                            'type'      => 'url',
                            'label'     => esc_html__( 'URL for icon', 'one-newspaper' ),
                            'default'   => ''
                        ),
                        'item_option'             => 'show'
                    ]
                ]),
                'advertisement_repeater'  =>  $this->get_params( $default, [
                    'label'         => esc_html__( 'Advertisements', 'one-newspaper' ),
                    'description'   => esc_html__( 'Hold and drag vertically to re-order the icons', 'one-newspaper' ),
                    'row_label'     => esc_html__( 'Advertisement', 'one-newspaper' ),
                    'add_new_label' => esc_html__( 'Add New Advertisement', 'one-newspaper' ),
                    'fields'        => [
                        'item_image'   => [
                            'type'          => 'image',
                            'label'         => esc_html__( 'Image', 'one-newspaper' ),
                            'default'       => 0
                        ],
                        'item_url'  => [
                            'type'      => 'url',
                            'label'     => esc_html__( 'URL', 'one-newspaper' ),
                            'default'   => ''
                        ],
                        'item_target'   =>  [
                            'type'  =>  'select',
                            'label' =>  esc_html__( 'Open in', 'one-newspaper' ),
                            'default'   =>  '_self',
                            'options'   =>  [
                                '_blank'    =>  esc_html__( 'New tab', 'one-newspaper' ),
                                '_self'    =>  esc_html__( 'Same tab', 'one-newspaper' )
                            ]
                        ],
                        'item_rel_attribute'    =>  [
                            'type'  =>  'select',
                            'label' =>  esc_html__( 'Rel', 'one-newspaper' ),
                            'default'   =>  'opener',
                            'options'   =>  [
                                'nofollow'  =>  esc_html__( 'No follow', 'one-newspaper' ),
                                'noopener'  =>  esc_html__( 'No opener', 'one-newspaper' ),
                                'noreferrer'  =>  esc_html__( 'No referrer', 'one-newspaper' )
                            ]
                        ],
                        'item_heading'  =>  [
                            'type'  =>  'heading',
                            'label' =>  esc_html__( 'Display Area', 'one-newspaper' )
                        ],
                        'item_checkbox_before_post_content' =>  [
                            'type'  =>  'checkbox',
                            'label' =>  esc_html__( 'Before post content', 'one-newspaper' ),  
                            'default'   =>  false
                        ],
                        'item_checkbox_after_post_content' =>  [
                            'type'  =>  'checkbox',
                            'label' =>  esc_html__( 'After post content', 'one-newspaper' ),  
                            'default'   =>  false
                        ],
                        'item_checkbox_random_post_archives' =>  [
                            'type'  =>  'checkbox',
                            'label' =>  esc_html__( 'Random post archives', 'one-newspaper' ),  
                            'default'   =>  false
                        ],
                        'item_alignment'    =>   [
                            'type'  =>  'alignment',
                            'label' =>  esc_html__( 'Ad Alignment', 'one-newspaper' ),
                            'default'   =>  'left',
                            'options'   =>  [
                                'left'  =>  esc_html__( 'fa-solid fa-align-left', 'one-newspaper' ),
                                'center'  =>  esc_html__( 'fa-solid fa-align-center', 'one-newspaper' ),
                                'right'  =>  esc_html__( 'fa-solid fa-align-right', 'one-newspaper' )
                            ]
                        ],
                        'item_image_option' =>  [
                            'type'  =>  'select',
                            'label' =>  esc_html__( 'Image Option', 'one-newspaper' ),
                            'default'   =>  'original',
                            'options'   =>  [
                                'full_width'  =>  esc_html__( 'Full Width', 'one-newspaper' ),
                                'original'  =>  esc_html__( 'Original', 'one-newspaper' )
                            ]
                        ],
                        'item_option' => 'show'
                    ]
                ])
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_custom_repeaters() Method

        /**
         * Get all controls rendered using predefined number control
         * 
         * @since 1.0.0
         */
        public function get_custom_number_controls( $id = '' ) {
            $default = [
                'type'  =>  'number',
                'input_attrs'   =>  $this->get_input_attrs([
                    'min'   =>  1
                ]),
            ];

            $control_array = [
                'words_to_read_per_minute'  => $this->get_params( $default, [
                    'label' =>  esc_html( 'Words to read per minute', 'one-newspaper' ),
                    'description' => esc_html__( 'This is used to calculate read time.', 'one-newspaper' ),
                    'full_width'   =>  true,
                    'input_attrs'   =>  $this->get_input_attrs([
                        'min'   =>  1,
                        'max'   =>  5000
                    ]),
                ]),
                'custom_button_icon_distance'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Icon Distance (px)', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs([
                        'max'   =>  50
                    ]),
                    'transport' =>  'postMessage',
                    'bottom_separator'  =>  true
                ]),
                'sticky_posts_posts_to_append'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Posts to Append', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs()
                ]),
                'sticky_posts_to_show'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Total Number of Posts', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs()
                ]),
                'ticker_news_numbers'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Number of posts to display', 'one-newspaper' ),
                ]),
                'main_banner_block_posts_numbers'   =>  $this->get_params( $default, [
                    'label'	      => esc_html__( 'Number of posts to display', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs()
                ]),
                'web_stories_no_of_cats_to_show'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'No. of category to show', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs([
                        'max'   =>  10,
                        'min'   =>  3
                    ]),
                ]),
                'web_stories_max_no_of_inner_stories'  =>  $this->get_params( $default, [
                    'label' => esc_html__( 'Max no. of inner stories', 'one-newspaper' ),
                    'input_attrs' => $this->get_input_attrs(),
                ]),
                'main_banner_section_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'web_stories_section_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'full_width_section_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'leftc_rights_section_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'lefts_rightc_section_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'bottom_full_width_section_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'two_column_section_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'leftc_rights_section_sidebar_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'lefts_rightc_section_sidebar_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'archive_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'archive_sidebar_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ])
                ]),
                'ticker_section_border_radius'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Border Radius (Px)', 'one-newspaper' ),
                    'transport' =>  'postMessage',
                    'input_attrs'   =>  $this->get_input_attrs([
                        'max'   =>  200,
                        'min'   =>  0
                    ]),
                    'active_callback'   =>  function( $control ) {
                        return $control->manager->get_setting( 'ticker_news_frontpage' )->value();
                    }
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_Farray );
        }   // End of get_custom_number_controls() Method

        /**
         * Get a list of all url controls
         * 
         * @since 1.0.0
         */
        public function get_url( $id = '' ) {
            $default = [
                'type'  =>  'url',
            ];

            $control_array = [
                'header_newsletter_redirect_href_link'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Redirect URL', 'one-newspaper' ),
                    'description'   =>  esc_html__( 'Add url for the button to redirect', 'one-newspaper' ),
                ]),
                'header_ads_banner_image_url' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Banner Url', 'one-newspaper' ),
                    'description'   =>  esc_html__( 'Add url for the ads banner to redirect', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return $control->manager->get_setting( 'header_ads_banner_image_link_url' )->value();
                    }
                ]),
                'custom_button_link' =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Button url', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_url() Method

        /**
         * Get all multiselect controls
         * 
         * @since 1.0.0
         */
        public function get_multiselect_controls( $id = '' ) {
            $default = [
                'endpoint'   =>  'extend/get_taxonomy',
                'purpose'   =>  'post',
            ];

            $control_array = [
                // category
                'category_to_include' => $this->get_params( $default, [
                    'label'     => esc_html__( 'Category to include', 'one-newspaper' ),
                    'purpose'   =>  'category'
                ]),
                'category_to_exclude' => $this->get_params( $default, [
                    'label'     => esc_html__( 'Category to exclude', 'one-newspaper' ),
                    'purpose'   =>  'category'
                ]),
                'ticker_news_categories' => $this->get_params( $default, [
                    'label'     => esc_html__( 'Posts Categories', 'one-newspaper' ),
                    'purpose'   =>  'category',
                    'bottom_separator'  =>  true
                ]),
                // posts
                'ticker_news_posts'  => $this->get_params( $default, [
                    'label'     => esc_html__( 'Posts To Include', 'one-newspaper' ),
                    'endpoint'   =>  'extend/get_posts'
                ]),
                // users
                'sticky_posts_categories' => $this->get_params( $default, [
                    'label'     => esc_html__( 'Posts Categories', 'one-newspaper' ),
                    'purpose'   =>  'category'
                ]),
                'sticky_posts_to_include' => $this->get_params( $default, [
                    'label'     => esc_html__( 'Posts to Include', 'one-newspaper' ),
                    'endpoint'   =>  'extend/get_posts'
                ]),
                'main_banner_slider_categories' =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Posts Categories', 'one-newspaper' ),
                    'purpose'   =>  'category'
                ]),
                'main_banner_posts' =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Posts To Include', 'one-newspaper' ),
                    'endpoint'   =>  'extend/get_posts'
                ]),
                'main_banner_block_posts_to_include'    =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Block posts to include', 'one-newspaper' ),
                    'endpoint' =>  'extend/get_posts'
                ]),
                'main_banner_block_posts_categories'    =>  $this->get_params( $default, [
                    'label'     => esc_html__( 'Block posts categories', 'one-newspaper' ),
                    'purpose'   =>  'category'
                ]),
                'web_stories_categories_to_include' => $this->get_params( $default, [
                    'label'     => esc_html__( 'Category to include', 'one-newspaper' ),
                    'purpose'   =>  'category'
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_multiselect_controls() Method

        /**
         * Get all normal multiselect controls
         * 
         * @since 1.0.0
         */
        public function get_normal_multiselect_controls( $id = '' ) {
            $default = [
                'label'     => esc_html__( 'Field of headings', 'one-newspaper' ),
                'choices'   => [
                    [
                        'value' => 'h1',
                        'label' => esc_html__('H1', 'one-newspaper' )
                    ],
                    [
                        'value' => 'h2',
                        'label' => esc_html__('H2', 'one-newspaper' )
                    ],
                    [
                        'value' => 'h3',
                        'label' => esc_html__('H3', 'one-newspaper' )
                    ],
                    [
                        'value' => 'h4',
                        'label' => esc_html__('H4', 'one-newspaper' )
                    ],
                    [
                        'value' => 'h5',
                        'label' => esc_html__('H5', 'one-newspaper' )
                    ],
                    [
                        'value' => 'h6',
                        'label' => esc_html__('H6', 'one-newspaper' )
                    ]
                ],
                'bottom_separator'  =>  true
            ];

            $control_array = [];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_normal_multiselect_controls() Method

        /**
         * Get all reflector controls
         * 
         * @since 1.0.0
         */
        public function get_builder_reflector_controls( $id ) {
            $default = [
                'label' =>  esc_html__( 'Row Widgets', 'one-newspaper' )
            ];
            $control_array = [
                /* Header builder reflectors */
                'header_first_row_reflector' => $this->get_params( $default, [
                    'placement'	=>	'header',
                    'builder'	=>	'header_builder',
                    'row'	=>	1,
                    'responsive'    =>  'responsive-header',
                    'responsive_builder_id' =>  'responsive_header_builder'
                ]),
                'header_second_row_reflector' => $this->get_params( $default, [
                    'placement'	=>	'header',
                    'builder'	=>	'header_builder',
                    'row'	=>	2,
                    'responsive'    =>  'responsive-header',
                    'responsive_builder_id' =>  'responsive_header_builder'
                ]),
                'header_third_row_reflector' => $this->get_params( $default, [
                    'placement'	=>	'header',
                    'builder'	=>	'header_builder',
                    'row'	=>	3,
                    'responsive'    =>  'responsive-header',
                    'responsive_builder_id' =>  'responsive_header_builder'
                ]),
                /* Footer builder reflectors */
                'footer_first_row_reflector' => $this->get_params( $default, [
                    'placement'	=>	'footer',
                    'builder'	=>	'footer_builder',
                    'row'	=>	1,
                    'bottom_separator'  =>  true
                ]),
                'footer_second_row_reflector' => $this->get_params( $default, [
                    'placement'	=>	'footer',
                    'builder'	=>	'footer_builder',
                    'row'	=>	2,
                    'bottom_separator'  =>  true
                ]),
                'footer_third_row_reflector' => $this->get_params( $default, [
                    'placement'	=>	'footer',
                    'builder'	=>	'footer_builder',
                    'row'	=>	3,
                    'bottom_separator'  =>  true
                ]),
                /* Responsive Header Builder reflector */
                'mobile_canvas_reflector' => $this->get_params( $default, [
                    'placement'	=>	'responsive-header',
                    'builder'	=>	'responsive_header_builder',
                    'row'	=>	4
                ])
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_builder_reflector_controls() Method

        /**
         * Get all responsive radio image  controls
         * 
         * @since 1.0.0
         */
        public function get_responsive_radio_image( $id ) {
            $theme_directory = get_template_directory_uri();
            $column_layouts = [
                'one' => [
                    'label' => esc_html__( 'Layout One', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_one.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 1 ]
                ],
                'two' => [
                    'label' => esc_html__( 'Layout One', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_two.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 2 ]
                ],
                'three' => [
                    'label' => esc_html__( 'Layout Two', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_three.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 2 ]
                ],
                'five' => [
                    'label' => esc_html__( 'Layout One', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_five.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 3 ]
                ],
                'six' => [
                    'label' => esc_html__( 'Layout Two', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_six.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 3 ]
                ],
                'eight' => [
                    'label' => esc_html__( 'Layout Four', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_eight.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 3 ]
                ],
                'thirteen' => [
                    'label' => esc_html__( 'Layout Three', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_thirteen.png',
                    'devices'	=>	[ 'smartphone', 'tablet' ],
                    'columns'	=>	[ 2 ]
                ],
                'sixteen' => [
                    'label' => esc_html__( 'Layout Three', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_sixteen.png',
                    'devices'	=>	[ 'smartphone', 'tablet' ],
                    'columns'	=>	[ 3 ]
                ],
            ];

            $footer_column_layouts = [
                'one' => [
                    'label' => esc_html__( 'Layout One', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_one.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 1 ]
                ],
                'two' => [
                    'label' => esc_html__( 'Layout One', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_two.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 2 ]
                ],
                'three' => [
                    'label' => esc_html__( 'Layout Two', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_three.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 2 ]
                ],
                'five' => [
                    'label' => esc_html__( 'Layout One', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_five.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 3 ]
                ],
                'nine' => [
                    'label' => esc_html__( 'Layout One', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_nine.png',
                    'devices'	=>	[ 'smartphone', 'tablet', 'desktop' ],
                    'columns'	=>	[ 4 ]
                ],
                'thirteen' => [
                    'label' => esc_html__( 'Layout Three', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_thirteen.png',
                    'devices'	=>	[ 'smartphone', 'tablet' ],
                    'columns'	=>	[ 2 ]
                ],
                'sixteen' => [
                    'label' => esc_html__( 'Layout Two', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_sixteen.png',
                    'devices'	=>	[ 'smartphone', 'tablet' ],
                    'columns'	=>	[ 3 ]
                ],
                'eighteen' => [
                    'label' => esc_html__( 'Layout Two', 'one-newspaper' ),
                    'url'   => $theme_directory . '/assets/images/customizer/builder_eighteen.png',
                    'devices'	=>	[ 'smartphone', 'tablet' ],
                    'columns'	=>	[ 4 ]
                ]
            ];
            $default = [
                'label' =>  esc_html__( 'Column layout', 'one-newspaper' ),
                'choices'  => $column_layouts
            ];
            $control_array = [
                /* Header layout row controls */
                'header_first_row_column_layout'    =>  $this->get_params( $default, []),
                'header_second_row_column_layout'    =>  $this->get_params( $default, [
                    'row'   =>  2
                ]),
                'header_third_row_column_layout'    =>  $this->get_params( $default, [
                    'row'   =>  3
                ]),
                /* Footer layout row controls */
                'footer_first_row_column_layout'    =>  $this->get_params( $default, [
                    'builder'   =>  'footer',
                    'choices'   =>  $footer_column_layouts
                ]),
                'footer_second_row_column_layout'    =>  $this->get_params( $default, [
                    'row'   =>  2,
                    'builder'   =>  'footer',
                    'choices'   =>  $footer_column_layouts
                ]),
                'footer_third_row_column_layout'    =>  $this->get_params( $default, [
                    'row'   =>  3,
                    'builder'   =>  'footer',
                    'choices'   =>  $footer_column_layouts
                ]),
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }   // End of get_responsive_radio_image() Method

        /**
         * Gets all textarea controls
         * 
         * @since 1.0.0
         */
        public function get_textareas( $id = '' ){
            $default = [
                'type'  =>  'textarea',
                'transport' =>  'postMessage'
            ];
            $control_array = [
                'bottom_footer_site_info' => $this->get_params( $default, [
                    'label' => esc_html__( 'Copyright Text', 'one-newspaper' ),
                    'description' => esc_html__( 'Add %year% to retrieve current year.', 'one-newspaper' )
                ])
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Gets all responsive radio tab controls
         * 
         * @since 1.0.0
         */
        public function get_responsive_radio_tab( $id = '' ){
            $default = [
                'choices' => [
                    [
                        'value' => 'left',
                        'icon'  =>  'editor-alignleft',
                        'label' =>  esc_html__( 'Left', 'one-newspaper' )
                    ],
                    [
                        'value' => 'center',
                        'icon'  =>  'editor-aligncenter',
                        'label' =>  esc_html__( 'Center', 'one-newspaper' )
                    ],
                    [
                        'value' => 'right',
                        'icon'  =>  'editor-alignright',
                        'label' =>  esc_html__( 'Right', 'one-newspaper' )
                    ]
                ],
                'transport' =>  'postMessage'
            ];
            $control_array = [
                /* Header builder first row */
                'header_first_row_column_one'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 1 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'header_first_row_column' )->value(), [ 1, 2, 3, 4 ] ) );
                    },
                ]),
                'header_first_row_column_two'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 2 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'header_first_row_column' )->value(), [ 2, 3, 4 ] ) );
                    },
                ]),
                'header_first_row_column_three'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 3 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'header_first_row_column' )->value(), [ 3, 4 ] ) );
                    },
                ]),
                /* Header builder second row */
                'header_second_row_column_one'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 1 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'header_second_row_column' )->value(), [ 1, 2, 3, 4 ] ) );
                    },
                ]),
                'header_second_row_column_two'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 2 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'header_second_row_column' )->value(), [ 2, 3, 4 ] ) );
                    },
                ]),
                'header_second_row_column_three'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 3 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'header_second_row_column' )->value(), [ 3, 4 ] ) );
                    },
                ]),
                /* Header builder third row */
                'header_third_row_column_one'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 1 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'header_third_row_column' )->value(), [ 1, 2, 3, 4 ] ) );
                    },
                ]),
                'header_third_row_column_two'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 2 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'header_third_row_column' )->value(), [ 2, 3, 4 ] ) );
                    },
                ]),
                'header_third_row_column_three'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 3 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'header_third_row_column' )->value(), [ 3, 4 ] ) );
                    },
                ]),
                /* Footer builder first row */
                'footer_first_row_column_one'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 1 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_first_row_column' )->value(), [ 1, 2, 3, 4 ] ) );
                    },
                ]),
                'footer_first_row_column_two'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 2 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_first_row_column' )->value(), [ 2, 3, 4 ] ) );
                    },
                ]),
                'footer_first_row_column_three'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 3 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_first_row_column' )->value(), [ 3, 4 ] ) );
                    },
                ]),
                'footer_first_row_column_four'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 4 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_first_row_column' )->value(), [ 4 ] ) );
                    },
                ]),
                /* Footer builder second row */
                'footer_second_row_column_one'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 1 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_second_row_column' )->value(), [ 1, 2, 3, 4 ] ) );
                    },
                ]),
                'footer_second_row_column_two'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 2 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_second_row_column' )->value(), [ 2, 3, 4 ] ) );
                    },
                ]),
                'footer_second_row_column_three'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 3 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_second_row_column' )->value(), [ 3, 4 ] ) );
                    },
                ]),
                'footer_second_row_column_four'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 4 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_second_row_column' )->value(), [ 4 ] ) );
                    },
                ]),
                /* Footer builder third row */
                'footer_third_row_column_one'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 1 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_third_row_column' )->value(), [ 1, 2, 3, 4 ] ) );
                    },
                ]),
                'footer_third_row_column_two'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 2 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_third_row_column' )->value(), [ 2, 3, 4 ] ) );
                    },
                ]),
                'footer_third_row_column_three'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 3 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_third_row_column' )->value(), [ 3, 4 ] ) );
                    },
                ]),
                'footer_third_row_column_four'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Column 4 Alignment', 'one-newspaper' ),
                    'active_callback'   =>  function( $control ) {
                        return ( in_array( $control->manager->get_setting( 'footer_third_row_column' )->value(), [ 4 ] ) );
                    },
                ])
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Returns all typography preset controls
         * 
         * @since 1.0.0
         */
        public function get_typography_preset_controls( $id = '' ) {

            $control_array = [
                'typography_presets' =>   [
                    'label' =>  esc_html__( 'Typography Preset', 'one-newspaper' ),
                    'description'   =>  esc_html__( 'This is the control to use in future projects.', 'one-newspaper' ),
                    'transport' =>  'postMessage'
                ]
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Returns all preset color controls
         * 
         * @since 1.0.0
         */
        public function get_theme_colors( $id = '' ) {
            $default = [
                'transport' =>  'postMessage'
            ];

            $control_array = [
                // preset colors
                'theme_color' => $this->get_params( $default, [
                    'label' => esc_html__( 'Theme Color', 'one-newspaper' ),
                    'variable'   => '--one-newspaper-global-preset-theme-color'
                ])
            ];
            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Returns all builder controls
         * 
         * @since 1.0.0
         */
        public function get_builder_controls( $id = '' ) {
            $default = [];
            $control_array = [
                'header_builder' => $this->get_params( $default, [
                    'builder_settings_section'	=>	'header_builder_section_settings',
                    'responsive_builder'	=>	'responsive_header_builder',
                    'widgets'	=>	[
                        'site-logo'	=>	[
                            'label' 	=>	esc_html__( 'Site Logo and Title', 'one-newspaper' ),
                            'icon' 	=>	'admin-site',
                            'section'	=>	'title_tagline'
                        ],
                        'date-time'	=>	[
                            'label' 	=>	esc_html__( 'Date Time', 'one-newspaper' ),
                            'icon' 	=>	'clock',
                            'section'	=>	'date_time_section'
                        ],
                        'newsletter'	=>	[
                            'label' 	=>	esc_html__( 'Newsletter / Subscribe Button', 'one-newspaper' ),
                            'icon' 	=>	'megaphone',
                            'section'	=>	'header_newsletter_section'
                        ],
                        'social-icons'	=>	[
                            'label' 	=>	esc_html__( 'Social Icons', 'one-newspaper' ),
                            'icon' 	=>	'networking',
                            'section'	=>	'social_icons_section'
                        ],
                        'search'	=>	[
                            'label' 	=>	esc_html__( 'Search', 'one-newspaper' ),
                            'icon' 	=>	'search',
                            'section'	=>	'header_live_search_section'
                        ],
                        'menu'	=>	[
                            'label' 	=>	esc_html__( 'Primary Menu', 'one-newspaper' ),
                            'icon' 	=>	'menu',
                            'section'	=>	'header_menu_options_section'
                        ],
                        'button'	=>	[
                            'label' 	=>	esc_html__( 'Button', 'one-newspaper' ),
                            'icon' 	=>	'button',
                            'section'	=>	'custom_button_section'
                        ],
                        'theme-mode'	=>	[
                            'label' 	=>	esc_html__( 'Theme Mode', 'one-newspaper' ),
                            'icon' 	=>	'lightbulb',
                            'section'	=>	'theme_mode_section'
                        ],
                        'off-canvas'	=>	[
                            'label' 	=>	esc_html__( 'Off Canvas', 'one-newspaper' ),
                            'icon' 	=>	'text-page',
                            'section'	=>	'canvas_menu_section'
                        ],
                        'image'	=>	[
                            'label' 	=>	esc_html__( 'Image', 'one-newspaper' ),
                            'icon' 	=>	'format-image',
                            'section'	=>	'header_advertisement_banner_section'
                        ],
                        'random-news'	=>	[
                            'label' 	=>	esc_html__( 'Random News', 'one-newspaper' ),
                            'icon' 	=>	'randomize',
                            'section'	=>	'random_news_section'
                        ],
                        'secondary-menu'	=>	[
                            'label' 	=>	esc_html__( 'Secondary Menu', 'one-newspaper' ),
                            'icon' 	=>	'menu-alt2',
                            'section'	=>	'secondary_menu_options'
                        ],
                        'ticker-news'	=>	[
                            'label' 	=>	esc_html__( 'Ticker news', 'one-newspaper' ),
                            'icon' 	=>	'slides',
                            'section'	=>	'ticker_news_section'
                        ],
                        'widget-area'	=>	[
                            'label' 	=>	esc_html__( 'Widget Area', 'one-newspaper' ),
                            'icon' 	=>	'columns',
                            'section'	=>	'sidebar-widgets-header-builder-widget-area'
                        ]
                    ]
                ]),
                'footer_builder' => $this->get_params( $default, [
                    'builder_settings_section'	=>	'footer_builder_section_settings',
                    'placement'	=>	'footer',
                    'widgets'	=>	[
                        'logo'	=>	[
                            'label' 	=>	esc_html__( 'Logo', 'one-newspaper' ),
                            'icon' 	=>	'admin-site',
                            'section'	=>	'footer_logo'
                        ],
                        'social-icons'	=>	[
                            'label' 	=>	esc_html__( 'Social Icons', 'one-newspaper' ),
                            'icon' 	=>	'networking',
                            'section'	=>	'footer_social_icons_section'
                        ],
                        'copyright'	=>	[
                            'label' 	=>	esc_html__( 'Copyright', 'one-newspaper' ),
                            'icon' 	=>	'privacy',
                            'section'	=>	'footer_copyright'
                        ],
                        'menu'	=>	[
                            'label' 	=>	esc_html__( 'Secondary Menu', 'one-newspaper' ),
                            'icon' 	=>	'menu',
                            'section'	=>	'footer_menu_options_section'
                        ],
                        'sidebar-one'	=>	[
                            'label' 	=>	esc_html__( 'Sidebar 1', 'one-newspaper' ),
                            'icon' 	=>	'columns',
                            'section'	=>	'sidebar-widgets-footer-sidebar--column-1'
                        ],
                        'sidebar-two'	=>	[
                            'label' 	=>	esc_html__( 'Sidebar 2', 'one-newspaper' ),
                            'icon' 	=>	'columns',
                            'section'	=>	'sidebar-widgets-footer-sidebar--column-2'
                        ],
                        'sidebar-three'	=>	[
                            'label' 	=>	esc_html__( 'Sidebar 3', 'one-newspaper' ),
                            'icon' 	=>	'columns',
                            'section'	=>	'sidebar-widgets-footer-sidebar--column-3'
                        ],
                        'sidebar-four'	=>	[
                            'label' 	=>	esc_html__( 'Sidebar 4', 'one-newspaper' ),
                            'icon' 	=>	'columns',
                            'section'	=>	'sidebar-widgets-footer-sidebar--column-4'
                        ],
                        'scroll-to-top'	=>	[
                            'label' 	=>	esc_html__( 'Scroll to Top', 'one-newspaper' ),
                            'icon' 	=>	'arrow-up-alt2',
                            'section'	=>	'stt_options_section'
                        ],
                    ]
                ])
            ];

            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Returns all responsive builder controls
         * 
         * @since 1.0.0
         */
        public function get_responsive_builder_controls( $id = '' ) {
            $default = [];
            $control_array = [
                'responsive_header_builder' => $this->get_params( $default, [
                    'builder_settings_section'	=>	'header_builder_section_settings',
                    'placement'	=>	'header',
                    'responsive_canvas_id'	=>	'responsive-canvas',
                    'responsive_section'	=>	'mobile_canvas_section',
                    'widgets'	=>	[
                        'site-logo'	=>	[
                            'label' 	=>	esc_html__( 'Site Logo and Title', 'one-newspaper' ),
                            'icon' 	=>	'admin-site',
                            'section'	=>	'title_tagline'
                        ],
                        'date-time'	=>	[
                            'label' 	=>	esc_html__( 'Date Time', 'one-newspaper' ),
                            'icon' 	=>	'clock',
                            'section'	=>	'date_time_section'
                        ],
                        'newsletter'	=>	[
                            'label' 	=>	esc_html__( 'Newsletter / Subscribe Button', 'one-newspaper' ),
                            'icon' 	=>	'megaphone',
                            'section'	=>	'header_newsletter_section'
                        ],
                        'social-icons'	=>	[
                            'label' 	=>	esc_html__( 'Social Icons', 'one-newspaper' ),
                            'icon' 	=>	'networking',
                            'section'	=>	'social_icons_section'
                        ],
                        'search'	=>	[
                            'label' 	=>	esc_html__( 'Search', 'one-newspaper' ),
                            'icon' 	=>	'search',
                            'section'	=>	'header_live_search_section'
                        ],
                        'menu'	=>	[
                            'label' 	=>	esc_html__( 'Primary Menu', 'one-newspaper' ),
                            'icon' 	=>	'menu',
                            'section'	=>	'header_menu_options_section'
                        ],
                        'button'	=>	[
                            'label' 	=>	esc_html__( 'Button', 'one-newspaper' ),
                            'icon' 	=>	'button',
                            'section'	=>	'custom_button_section'
                        ],
                        'theme-mode'	=>	[
                            'label' 	=>	esc_html__( 'Theme Mode', 'one-newspaper' ),
                            'icon' 	=>	'lightbulb',
                            'section'	=>	'theme_mode_section'
                        ],
                        'off-canvas'	=>	[
                            'label' 	=>	esc_html__( 'Off Canvas', 'one-newspaper' ),
                            'icon' 	=>	'text-page',
                            'section'	=>	'canvas_menu_section'
                        ],
                        'image'	=>	[
                            'label' 	=>	esc_html__( 'Image', 'one-newspaper' ),
                            'icon' 	=>	'format-image',
                            'section'	=>	'header_advertisement_banner_section'
                        ],
                        'random-news'	=>	[
                            'label' 	=>	esc_html__( 'Random News', 'one-newspaper' ),
                            'icon' 	=>	'randomize',
                            'section'	=>	'random_news_section'
                        ],
                        'toggle-button'	=>	[
                            'label' 	=>	esc_html__( 'Toggle Button', 'one-newspaper' ),
                            'icon' 	=>	'ellipsis',
                            'section'	=>	'mobile_canvas_section'
                        ],
                        'secondary-menu'	=>	[
                            'label' 	=>	esc_html__( 'Secondary Menu', 'one-newspaper' ),
                            'icon' 	=>	'menu-alt2',
                            'section'	=>	'secondary_menu_options'
                        ],
                        'ticker-news'	=>	[
                            'label' 	=>	esc_html__( 'Ticker news', 'one-newspaper' ),
                            'icon' 	=>	'slides',
                            'section'	=>	'ticker_news_section'
                        ],
                        'widget-area'	=>	[
                            'label' 	=>	esc_html__( 'Widget Area', 'one-newspaper' ),
                            'icon' 	=>	'columns',
                            'section'	=>	'sidebar-widgets-header-builder-widget-area'
                        ]
                    ]
                ])
            ];

            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Returns all term colors controls
         * 
         * @since 1.0.0
         */
        public function get_term_colors( $id = '' ) {
            $control_array = [
                'category_colors' => [
                    'bottom_separator'  =>  true,
                    'transport' =>  'postMessage',
                    'terms'  =>  get_categories([ 'fields' => 'id=>name', 'hide_empty' => true ])
                ],
                'tag_colors' => [
                    'bottom_separator'  =>  true,
                    'transport' =>  'postMessage',
                    'terms'  =>  get_tags([ 'fields' => 'id=>name', 'hide_empty' => true ])
                ]
            ];

            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Returns all responsive multiselect tab
         * 
         * @since 1.0.0
         */
        public function get_responsive_multiselect_tab_controls( $id = '' ) {
            $default = [
                'transport' =>  'postMessage'
            ];
            $control_array = [
                'stt_responsive_option'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Scroll To Top Visibility', 'one-newspaper' ),
                    'choices' => [
                        [
                            'value' => 'desktop',
                            'icon'  =>  'desktop',
                            'label' =>  esc_html__( 'Desktop', 'one-newspaper' )
                        ],
                        [
                            'value' => 'tablet',
                            'icon'  =>  'tablet',
                            'label' =>  esc_html__( 'Tablet', 'one-newspaper' )
                        ],
                        [
                            'value' => 'mobile',
                            'icon'  =>  'smartphone',
                            'label' =>  esc_html__( 'Mobile', 'one-newspaper' )
                        ]
                    ],
                    'bottom_separator'  =>  true
                ]),
                'header_ads_banner_responsive_option'  =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Ads Banner Visibility', 'one-newspaper' ),
                    'choices' => [
                        [
                            'value' => 'desktop',
                            'icon'  =>  'desktop',
                            'label' =>  esc_html__( 'Desktop', 'one-newspaper' )
                        ],
                        [
                            'value' => 'tablet',
                            'icon'  =>  'tablet',
                            'label' =>  esc_html__( 'Tablet', 'one-newspaper' )
                        ],
                        [
                            'value' => 'mobile',
                            'icon'  =>  'smartphone',
                            'label' =>  esc_html__( 'Mobile', 'one-newspaper' )
                        ]
                    ],
                    'bottom_separator'  =>  true
                ]),
            ];

            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Returns all block repeater controls
         * 
         * @since 1.0.0
         */
        public function get_block_repeater_controls( $id = '' ) {
            $default = [
                'label' =>  esc_html__( 'Blocks to show in this section', 'one-newspaper' ),
                'description'   =>  esc_html__( 'Hold block item and drag vertically to re-order blocks', 'one-newspaper' )
            ];
            $control_array = [
                'full_width_blocks' =>  $this->get_params( $default, []),
                'leftc_rights_blocks'   =>  $this->get_params( $default, []),
                'lefts_rightc_blocks'   =>  $this->get_params( $default, []),
                'bottom_full_width_blocks'  =>  $this->get_params( $default, []),
                'two_column_first_column_blocks'    =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Blocks to show in this column', 'one-newspaper' ),
                    'fields_to_exclude' =>  [ 'column' ]
                ]),
                'two_column_second_column_blocks'   =>  $this->get_params( $default, [
                    'label' =>  esc_html__( 'Blocks to show in this column', 'one-newspaper' ),
                    'fields_to_exclude' =>  [ 'column' ]
                ])
            ];

            return ( $id ? $control_array[ $id ] : $control_array );
        }

        /**
         * Get controls parameters necessary in add_control function
         * 
         * @since 1.0.0
         */
        public function get_params( $default = [], $append = [] ) {
            if( ! empty( $append ) && is_array( $append ) ) return $append += $default;
            return $default;
        }

        /**
         * Get input_attrs array
         * 
         * @since 1.0.0
         */
        public function get_input_attrs( $append = [] ) {
            $default = [
                'max'   =>  100,
                'min'   =>  0,
                'step'   =>  1,
                'reset'   =>  true
            ];
            if( ! empty( $append ) && is_array( $append ) ) return $append += $default;
            return $default;
        }
    }
endif;