<?php
/**
 * progression Theme Customizer
 *
 * @package progression
 */

function progression_studios_add_tab_to_panel( $tabs ) {
	
   $tabs['progression-studios-body-font'] = array(
       'name'        => 'progression-studios-body-font',
       'panel'       => 'progression_studios_body_panel',
       'title'       => esc_html__('Body Main', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
   
 	
   $tabs['progression-studios-navigation-font'] = array(
       'name'        => 'progression-studios-navigation-font',
       'panel'       => 'progression_studios_header_panel',
       'title'       => esc_html__('Navigation', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
   $tabs['progression-studios-sub-navigation-font'] = array(
       'name'        => 'progression-studios-sub-navigation-font',
       'panel'       => 'progression_studios_header_panel',
       'title'       => esc_html__('Sub-Navigation', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
   $tabs['progression-studios-page-title'] = array(
       'name'        => 'progression-studios-page-title',
       'panel'       => 'progression_studios_body_panel',
       'title'       => esc_html__('Page Title', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
   $tabs['progression-studios-default-headings'] = array(
       'name'        => 'progression-studios-default-headings',
       'panel'       => 'progression_studios_body_panel',
       'title'       => esc_html__('Default Headings', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
   $tabs['progression-studios-blog-typography'] = array(
       'name'        => 'progression-studios-blog-typography',
       'panel'       => 'progression_studios_body_panel',
       'title'       => esc_html__('Blog Styles', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
   $tabs['progression-studios-sidebar-typography'] = array(
       'name'        => 'progression-studios-sidebar-typography',
       'panel'       => 'progression_studios_body_panel',
       'title'       => esc_html__('Sidebar Styles', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
	
   $tabs['progression-studios-button-typography'] = array(
       'name'        => 'progression-studios-button-typography',
       'panel'       => 'progression_studios_body_panel',
       'title'       => esc_html__('Button Styles', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
	
   $tabs['progression-studios-portfolio-typography'] = array(
       'name'        => 'progression-studios-portfolio-typography',
       'panel'       => 'progression_studios_portfolio_panel',
       'title'       => esc_html__('Portfolio Typography', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
   $tabs['progression-studios-shop-typography'] = array(
       'name'        => 'progression-studios-shop-typography',
       'panel'       => 'progression_studios_portfolio_panel',
       'title'       => esc_html__('Shop Typography', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
	
   $tabs['progression-studios-footer-typography'] = array(
       'name'        => 'progression-studios-footer-typography',
       'panel'       => 'progression_studios_footer_panel',
       'title'       => esc_html__('Footer General', 'protege-progression'),
       'description' => '',
       'sections'    => array(),
   );
	
	
	
    // Return the tabs.
    return $tabs;
}
add_filter( 'tt_font_get_settings_page_tabs', 'progression_studios_add_tab_to_panel' );

/**
 * How to add a font control to your tab
 *
 * @see  parse_font_control_array() - in class EGF_Register_Options
 *       in includes/class-egf-register-options.php to see the full
 *       properties you can add for each font control.
 *
 *
 * @param   array $controls - Existing Controls.
 * @return  array $controls - Controls with controls added/removed.
 *
 * @since 1.0
 * @version 1.0
 *
 */
function progression_studios_add_control_to_tab( $controls ) {

    /**
     * 1. Removing default styles because we add-in our own
     */
    unset( $controls['tt_default_body'] );
    unset( $controls['tt_default_heading_1'] );
    unset( $controls['tt_default_heading_2'] );
    unset( $controls['tt_default_heading_3'] );
    unset( $controls['tt_default_heading_4'] );
    unset( $controls['tt_default_heading_5'] );
    unset( $controls['tt_default_heading_6'] );
	 
	 
    /**
     * 2. Now custom examples that are theme specific
     */
 	/* Body Fonts */
  
   $controls['progression_studios_body_setting'] = array(
       'name'       => 'progression_studios_body_setting',
		 'type'        => 'font',
       'title'      =>  esc_html__('Body Font', 'protege-progression'),
       'tab'        => 'progression-studios-body-font',
       'properties' => array( 'selector'   => 'body,  body input, body textarea' ),
		 'default' => array(
			'subset'                     => 'latin',
			'font_id'                    => 'roboto',
			'font_name'                  => 'Roboto',
			'font_weight_style'          => 'regular',
			'font_color'                 => '#777777',
			'line_height'                => '1.6',
			'font_size'                  => array( 'amount' => '15', 'unit' => 'px' )
		),
   );
	
   $controls['progression_studios_secondary_setting'] = array(
       'name'       => 'progression_studios_secondary_setting',
		 'type'        => 'font',
       'title'      =>  esc_html__('Secondary Font Family', 'protege-progression'),
       'tab'        => 'progression-studios-body-font',
       'properties' => array( 'selector'   => 'h2, h3, h4, h5, h6, span.price, #single-product-page-progression-studios .price, #content-pro .progression-woocommerce-container-index .add-cart-area-pro a.button, a.added_to_cart, #content-pro span.onsale, ul.portfolio-single-tax li, ul.portfolio-tax-progression, .comment-navigation, .post-password-form input[type=submit], .progression-page-nav, .sticky-post-pro, .search-form input.search-submit, #sidebar .tagcloud a, #site-footer .tagcloud a, a.comment-reply-link, .comment-author cite, .comments-area input#submit, .tags-progression, ul.page-numbers, .progression-blog-meta, a.more-link, input.wpcf7-submit' ),
		 'default' => array(
			'subset'                     => 'latin',
			'font_id'                    => 'teko',
			'font_name'                  => 'Teko',
			'font_weight_style'          => '500',
		),
   );
	
	
   $controls['progression_studios_page_title_font'] = array(
       'name'       => 'progression_studios_page_title_font',
		 'type'        => 'font',
       'title'      =>  esc_html__('Page Title', 'protege-progression'),
       'tab'        => 'progression-studios-page-title',
       'properties' => array( 'selector'   => '#page-title-pro h1' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'font_color'                 => '#ffffff',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '60', 'unit' => 'px' ),
			),
   );
  
  	
   $controls['progression_studios_nav_font_family'] = array(
       'name'       => 'progression_studios_nav_font_family',
		 'type'        => 'font',
       'title'      =>  esc_html__('Navigation Font Family', 'protege-progression'),
       'tab'        => 'progression-studios-navigation-font',
       'properties' => array( 'selector'   => 'h2.mega-menu-heading, #progression-shopping-cart-count, nav#site-navigation' ),
		 'default' => array(
			'subset'                     => 'latin',
			'font_id'                    => 'poppins',
			'font_name'                  => 'Poppins',
			'font_weight_style'          => '600',
		),
   );
	
	
   $controls['progression_studios_sub_nav_font_family'] = array(
       'name'       => 'progression_studios_sub_nav_font_family',
		 'type'        => 'font',
       'title'      =>  esc_html__('Sub-Navigation Font Family', 'protege-progression'),
       'tab'        => 'progression-studios-sub-navigation-font',
       'properties' => array( 'selector'   => '.sf-menu li li a' ),
		 'default' => array(
			'subset'                     => 'latin',
			'font_id'                    => 'poppins',
			'font_name'                  => 'Poppins',
			'font_weight_style'          => '500',
		),
   );
	
	
   $controls['progression_studios_portfolio_title'] = array(
       'name'       => 'progression_studios_portfolio_title',
		 'type'        => 'font',
       'title'      =>  esc_html__('Portfolio Index Post Title', 'protege-progression'),
       'tab'        => 'progression-studios-portfolio-typography',
       'properties' => array( 'selector'   => 'h2.progression-portfolio-title' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'font_color'                 => '#ffffff',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '32', 'unit' => 'px' ),
			),
   );
	
	
   $controls['progression_studios_portfolio_tax'] = array(
       'name'       => 'progression_studios_portfolio_tax',
		 'type'        => 'font',
       'title'      =>  esc_html__('Portfolio Index Category', 'protege-progression'),
       'tab'        => 'progression-studios-portfolio-typography',
       'properties' => array( 'selector'   => 'ul.portfolio-tax-progression li, ul.portfolio-tax-progression li a' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'font_color'                 => '#eeeeee',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '16', 'unit' => 'px' ),
			),
   );
	
	
   $controls['progression_studios_portfolio_tax_single'] = array(
       'name'       => 'progression_studios_portfolio_tax_single',
		 'type'        => 'font',
       'title'      =>  esc_html__('Portfolio Single Category', 'protege-progression'),
       'tab'        => 'progression-studios-portfolio-typography',
       'properties' => array( 'selector'   => 'ul.portfolio-single-tax li a' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'font_color'                 => '#eeeeee',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '17', 'unit' => 'px' ),
			),
   );
	
	
   $controls['progression_studios_shop_overlay_title'] = array(
       'name'       => 'progression_studios_shop_overlay_title',
		 'type'        => 'font',
       'title'      =>  esc_html__('Shop Index Overlay Heading', 'protege-progression'),
       'tab'        => 'progression-studios-shop-typography',
       'properties' => array( 'selector'   => '.progression-woocommerce-container-index  a:hover .shop-overlay-hover-text h3,
.progression-woocommerce-container-index .shop-overlay-hover-text h3' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'font_color'                 => '#ffffff',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '30', 'unit' => 'px' ),
			),
   );
	
	
	
   $controls['progression_studios_shop_underneath_title'] = array(
       'name'       => 'progression_studios_shop_underneath_title',
		 'type'        => 'font',
       'title'      =>  esc_html__('Shop Index Underneath Heading', 'protege-progression'),
       'tab'        => 'progression-studios-shop-typography',
       'properties' => array( 'selector'   => '.progression-woocommerce-container-index h3' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'font_color'                 => '#182244',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '30', 'unit' => 'px' ),
			),
   );
	
	
	
	
   $controls['progression_studios_shop_overlay_price'] = array(
       'name'       => 'progression_studios_shop_overlay_price',
		 'type'        => 'font',
       'title'      =>  esc_html__('Shop Index Overlay Price', 'protege-progression'),
       'tab'        => 'progression-studios-shop-typography',
       'properties' => array( 'selector'   => '.progression-woocommerce-container-index span.price' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'font_color'                 => '#0cd9c6',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '20', 'unit' => 'px' ),
			),
   );
	
	
   $controls['progression_studios_shop_underneath_price'] = array(
       'name'       => 'progression_studios_shop_underneath_price',
		 'type'        => 'font',
       'title'      =>  esc_html__('Shop Index Underneath Price', 'protege-progression'),
       'tab'        => 'progression-studios-shop-typography',
       'properties' => array( 'selector'   => '.progression-shop-underneath-layout .progression-woocommerce-container-index span.price' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'font_color'                 => '#0cd9c6',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '20', 'unit' => 'px' ),
			),
   );
	
	
	
   $controls['progression_studios_shop_single_heading'] = array(
       'name'       => 'progression_studios_shop_single_heading',
		 'type'        => 'font',
       'title'      =>  esc_html__('Shop Single Heading', 'protege-progression'),
       'tab'        => 'progression-studios-shop-typography',
       'properties' => array( 'selector'   => '#single-product-page-progression-studios  h1' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '40', 'unit' => 'px' ),
			),
   );
	
   $controls['progression_studios_shop_single_price'] = array(
       'name'       => 'progression_studios_shop_single_price',
		 'type'        => 'font',
       'title'      =>  esc_html__('Shop Single Price', 'protege-progression'),
       'tab'        => 'progression-studios-shop-typography',
       'properties' => array( 'selector'   => '#single-product-page-progression-studios span.amount' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '25', 'unit' => 'px' ),
			),
   );
	
   $controls['progression_studios_heading_h1'] = array(
       'name'       => 'progression_studios_heading_h1',
		 'type'        => 'font',
       'title'      =>  esc_html__('Heading 1', 'protege-progression'),
       'tab'        => 'progression-studios-default-headings',
       'properties' => array( 'selector'   => 'h1' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '36', 'unit' => 'px' ),
			),
   );
	
   $controls['progression_studios_heading_h2'] = array(
       'name'       => 'progression_studios_heading_h2',
		 'type'        => 'font',
       'title'      =>  esc_html__('Heading 2', 'protege-progression'),
       'tab'        => 'progression-studios-default-headings',
       'properties' => array( 'selector'   => 'h2' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '30', 'unit' => 'px' ),
			),
   );
	
   $controls['progression_studios_heading_h3'] = array(
       'name'       => 'progression_studios_heading_h3',
		 'type'        => 'font',
       'title'      =>  esc_html__('Heading 3', 'protege-progression'),
       'tab'        => 'progression-studios-default-headings',
       'properties' => array( 'selector'   => 'h3' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '28', 'unit' => 'px' ),
			),
   );
	
   $controls['progression_studios_heading_h4'] = array(
       'name'       => 'progression_studios_heading_h4',
		 'type'        => 'font',
       'title'      =>  esc_html__('Heading 4', 'protege-progression'),
       'tab'        => 'progression-studios-default-headings',
       'properties' => array( 'selector'   => 'h4' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '26', 'unit' => 'px' ),
			),
   );
	
   $controls['progression_studios_heading_h5'] = array(
       'name'       => 'progression_studios_heading_h5',
		 'type'        => 'font',
       'title'      =>  esc_html__('Heading 5', 'protege-progression'),
       'tab'        => 'progression-studios-default-headings',
       'properties' => array( 'selector'   => 'h5' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '24', 'unit' => 'px' ),
			),
   );
	
   $controls['progression_studios_heading_h6'] = array(
       'name'       => 'progression_studios_heading_h6',
		 'type'        => 'font',
       'title'      =>  esc_html__('Heading 6', 'protege-progression'),
       'tab'        => 'progression-studios-default-headings',
       'properties' => array( 'selector'   => 'h6' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
	 			'font_size'                  => array( 'amount' => '20', 'unit' => 'px' ),
			),
   );
	
	
	
   $controls['progression_studios_heading_footer'] = array(
       'name'       => 'progression_studios_heading_footer',
		 'type'        => 'font',
       'title'      =>  esc_html__('Footer Widget Heading', 'protege-progression'),
       'tab'        => 'progression-studios-footer-typography',
       'properties' => array( 'selector'   => 'footer#site-footer h4.widget-title' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
	
   $controls['progression_studios_default_footer'] = array(
       'name'       => 'progression_studios_default_footer',
		 'type'        => 'font',
       'title'      =>  esc_html__('Footer Default Text', 'protege-progression'),
       'tab'        => 'progression-studios-footer-typography',
       'properties' => array( 'selector'   => 'footer#site-footer' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
	
   $controls['progression_studios_default_footer_link'] = array(
       'name'       => 'progression_studios_default_footer_link',
		 'type'        => 'font',
       'title'      =>  esc_html__('Footer Default Link', 'protege-progression'),
       'tab'        => 'progression-studios-footer-typography',
       'properties' => array( 'selector'   => 'footer#site-footer a' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
   $controls['progression_studios_default_footer_hover'] = array(
       'name'       => 'progression_studios_default_footer_hover',
		 'type'        => 'font',
       'title'      =>  esc_html__('Footer Default Hover Link', 'protege-progression'),
       'tab'        => 'progression-studios-footer-typography',
       'properties' => array( 'selector'   => 'footer#site-footer a:hover' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
	
   $controls['progression_studios_sidebar_widget_heading'] = array(
       'name'       => 'progression_studios_sidebar_widget_heading',
		 'type'        => 'font',
       'title'      =>  esc_html__('Sidebar Widget Heading', 'protege-progression'),
       'tab'        => 'progression-studios-sidebar-typography',
       'properties' => array( 'selector'   => '#sidebar h4.widget-title' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
   $controls['progression_studios_sidebar_widget_font'] = array(
       'name'       => 'progression_studios_sidebar_widget_font',
		 'type'        => 'font',
       'title'      =>  esc_html__('Sidebar Font', 'protege-progression'),
       'tab'        => 'progression-studios-sidebar-typography',
       'properties' => array( 'selector'   => '#sidebar' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
   $controls['progression_studios_sidebar_widget_color'] = array(
       'name'       => 'progression_studios_sidebar_widget_color',
		 'type'        => 'font',
       'title'      =>  esc_html__('Sidebar Link Color', 'protege-progression'),
       'tab'        => 'progression-studios-sidebar-typography',
       'properties' => array( 'selector'   => '#sidebar a' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
   $controls['progression_studios_sidebar_widget_color_hover'] = array(
       'name'       => 'progression_studios_sidebar_widget_color_hover',
		 'type'        => 'font',
       'title'      =>  esc_html__('Sidebar Link Hover Color', 'protege-progression'),
       'tab'        => 'progression-studios-sidebar-typography',
       'properties' => array( 'selector'   => '#sidebar a:hover' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
	
	
   $controls['progression_studios_button_font_family'] = array(
       'name'       => 'progression_studios_button_font_family',
		 'type'        => 'font',
       'title'      =>  esc_html__('Button Font Family', 'protege-progression'),
       'tab'        => 'progression-studios-button-typography',
       'properties' => array( 'selector'   => 'footer#site-footer a.button, footer#site-footer button.button, body #content-pro .width-container-pro input.button, .woocommerce #content-pro  input#submit, #content-pro a.button, #content-pro button.button, .comment-navigation, .post-password-form input[type=submit], .progression-page-nav, .sticky-post-pro, .search-form input.search-submit, #sidebar .tagcloud a, #site-footer .tagcloud a, a.comment-reply-link, .comment-author cite, .comments-area input#submit, .tags-progression, ul.page-numbers, .progression-blog-meta, a.more-link, input.wpcf7-submit' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
   $controls['progression_studios_blog_heading'] = array(
       'name'       => 'progression_studios_blog_heading',
		 'type'        => 'font',
       'title'      =>  esc_html__('Blog Heading', 'protege-progression'),
       'tab'        => 'progression-studios-blog-typography',
       'properties' => array( 'selector'   => 'h2.progression-blog-title' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
   $controls['progression_studios_blog_meta'] = array(
       'name'       => 'progression_studios_blog_meta',
		 'type'        => 'font',
       'title'      =>  esc_html__('Blog Meta', 'protege-progression'),
       'tab'        => 'progression-studios-blog-typography',
       'properties' => array( 'selector'   => '.progression-blog-meta a' ),
		 'default' => array(
	 			'subset'                     => 'latin',
	 			'text_decoration'            => 'none',
			),
   );
	
	
	
	// Return the controls.
    return $controls;
}
add_filter( 'tt_font_get_option_parameters', 'progression_studios_add_control_to_tab' );