<?php
function benzer_css() {
	$parent_style = 'specia-parent-style';
    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'benzer-style', get_stylesheet_uri(), array( $parent_style ));
	
	wp_enqueue_style('benzer-default',get_stylesheet_directory_uri() .'/css/colors/default.css');
	wp_dequeue_style('specia-default');
	
	wp_dequeue_script('specia-custom-js');
	wp_enqueue_script('benzer-custom-js', get_stylesheet_directory_uri() . '/js/custom.js');
}
add_action( 'wp_enqueue_scripts', 'benzer_css',999);
   	
function benzer_setup()	{	
	load_child_theme_textdomain( 'benzer', get_stylesheet_directory() . '/languages' );
	add_editor_style( array( 'css/editor-style.css', benzer_google_font() ) );
}
add_action( 'after_setup_theme', 'benzer_setup' );
	
/**
 * Register Google fonts for Benzer.
 */
function benzer_google_font() {
	
    $get_fonts_url = '';
		
    $font_families = array();
 
	$font_families = array('Open Sans:300,400,600,700,800', 'Raleway:400,700');
 
        $query_args = array(
            'family' => urlencode( implode( '|', $font_families ) ),
            'subset' => urlencode( 'latin,latin-ext' ),
        );
 
        $get_fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' );

    return esc_url($get_fonts_url);
	
}

function benzer_scripts_styles() {
    wp_enqueue_style( 'benzer-fonts', benzer_google_font(), array(), null );
}
add_action( 'wp_enqueue_scripts', 'benzer_scripts_styles' );

function benzer_remove_parent_setting( $wp_customize ) {
	$wp_customize->remove_control('slider-page3');
}
add_action( 'customize_register', 'benzer_remove_parent_setting',99 );

require( get_stylesheet_directory() . '/inc/customize/specia-features.php');
/**
 * Called premium page details
 */
require_once( get_stylesheet_directory() . '/inc/customize/benzer-premium.php');