plugin_url() . '/assets/js/frontend/add-to-cart-variation.min.js', array('jquery'), '1.6', true ); } wp_enqueue_script('s7t-bootstrap'); wp_enqueue_script('s7t-google-map'); wp_enqueue_script('s7t-fancybox'); wp_enqueue_script('s7t-jquery-ui'); wp_enqueue_script('s7t-carousel'); wp_enqueue_script('s7t-bxslider'); wp_enqueue_script('s7t-timeCircles'); wp_enqueue_script('s7t-pieChart'); wp_enqueue_script('s7t-circles'); // wp_enqueue_script('s7t-google-map'); wp_enqueue_script('s7t-script'); wp_enqueue_script( 's7t-ajax', $js_url.'ajax.js', array( 'jquery' ),null,true); wp_localize_script( 's7t-ajax', 'ajax_process', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ))); // CSS // wp_register_style('s7t-style-piechart',$js_url.'lib/PieChart.js'); wp_enqueue_style('s7t-open-sans','https://fonts.googleapis.com/css?family=Open+Sans:400,700,500' ); wp_enqueue_style('s7t-bootstrap',$css_url.'lib/bootstrap.min.css'); wp_enqueue_style('s7t-font-awesome',$css_url.'lib/font-awesome.min.css'); wp_enqueue_style('s7t-theme-unitest',$css_url.'theme-unitest.css'); wp_enqueue_style('s7t-font-linearicons',$css_url.'lib/font-linearicons.css'); wp_enqueue_style('s7t-bootstrap-theme',$css_url.'lib/bootstrap-theme.css'); wp_enqueue_style('s7t-fancybox',$css_url.'lib/jquery.fancybox.css'); wp_enqueue_style('s7t-jquery-ui',$css_url.'lib/jquery-ui.css'); wp_enqueue_style('s7t-owl-carousel',$css_url.'lib/owl.carousel.css'); wp_enqueue_style('s7t-owl-transitions',$css_url.'lib/owl.transitions.css'); wp_enqueue_style('s7t-owl-theme',$css_url.'lib/owl.theme.css'); wp_enqueue_style('s7t-style-piechart',$css_url.'lib/PieChart.css'); wp_enqueue_style('s7t-theme',$css_url.'lib/theme.css'); wp_enqueue_style('s7t-theme-style',$css_url.'style.css'); wp_enqueue_style('s7t-responsive',$css_url.'lib/responsive.css'); wp_enqueue_style('s7t-default',get_stylesheet_uri()); } static function _show_custom_css() { $style=SV_Template::load_view('custom_css');?> $sidebar['title'], 'id' => $id, 'description' => esc_html__( 'SideBar created by add sidebar in theme options.', 'bigc'), 'before_title' => '<'.$sidebar['widget_title_heading'].' class="widget-title">', 'after_title' => ''.$sidebar['widget_title_heading'].'>', 'before_widget' => '
', ); register_sidebar($custom_add_sidebar); unset($custom_add_sidebar); } } } } /** * Set up author data * * */ static function _setup_author() { global $wp_query; if ( $wp_query->is_author() && isset( $wp_query->post ) ) { $GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author ); } } /** * Hook to wp_title * * */ static function _wp_title($title,$sep) { return $title; } static function _init_admin_scripts() { ?> is_main_query() and ( ( is_shop() or $query->get( 'post_type' ) == 'product' or $query->get( 'product_cat' ) ) or $query->is_page() && 'page' == get_option( 'show_on_front' ) && $query->get('page_id') == wc_get_page_id('shop') or is_product_taxonomy() ) ) { if( isset( $_REQUEST['taxonomy']) && isset( $_REQUEST['term']) ){ $attribute = $_REQUEST['taxonomy']; $term = $_REQUEST['term']; if ( !is_admin() ){ $query->set( 'meta_query', array( array( 'key' => '_visibility', 'value' => array('catalog', 'visible'), 'compare' => 'IN' ) )); $query->set( 'tax_query', array( array( 'taxonomy' => $attribute, 'terms' => array($term), 'field' => 'slug', 'operator' => 'IN' ) )); return; } } } } } } SV_BaseController::_init(); }