esc_html__( 'Default Sidebar', 'indutri' ), 'id' => 'default_sidebar', 'description' => esc_html__( 'Appears in the Default Sidebar section of the site.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'WooCommerce Sidebar', 'indutri' ), 'id' => 'woocommerce_sidebar', 'description' => esc_html__( 'Appears in the Plugin WooCommerce section of the site.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'WooCommerce Single', 'indutri' ), 'id' => 'woocommerce_single_summary', 'description' => esc_html__( 'Appears in the WooCommerce Single Page like social, description text ...', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Portfolio Sidebar', 'indutri' ), 'id' => 'portfolio_sidebar', 'description' => esc_html__( 'Appears in the Portfolio Page section of the site.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'After Offcanvas Mobile', 'indutri' ), 'id' => 'offcanvas_sidebar_mobile', 'description' => esc_html__( 'Appears in the Offcanvas section of the site.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Service Sidebar', 'indutri' ), 'id' => 'service_sidebar', 'description' => esc_html__( 'Appears in the Sidebar section of the Service Page.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Blog Sidebar', 'indutri' ), 'id' => 'blog_sidebar', 'description' => esc_html__( 'Appears in the Blog sidebar section of the site.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Page Sidebar', 'indutri' ), 'id' => 'other_sidebar', 'description' => esc_html__( 'Appears in the Page Sidebar section of the site.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer first', 'indutri' ), 'id' => 'footer-sidebar-1', 'description' => esc_html__( 'Appears in the Footer first section of the site.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer second', 'indutri' ), 'id' => 'footer-sidebar-2', 'description' => esc_html__( 'Appears in the Footer second section of the site.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer third', 'indutri' ), 'id' => 'footer-sidebar-3', 'description' => esc_html__( 'Appears in the Footer third section of the site.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer four', 'indutri' ), 'id' => 'footer-sidebar-4', 'description' => esc_html__( 'Appears in the Footer four section of the site.', 'indutri' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'indutri_widgets_init' ); if ( ! function_exists( 'indutri_fonts_url' ) ) : /** * * @return string Google fonts URL for the theme. */ function indutri_fonts_url() { $fonts_url = ''; $fonts = array(); $subsets = ''; $protocol = is_ssl() ? 'https' : 'http'; /* * Translators: If there are characters in your language that are not supported * by Noto Sans, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Hind font: on or off', 'indutri' ) ) { $fonts[] = 'Hind:wght@400;500;600;700&display=swap'; } /* * Translators: To add an additional character subset specific to your language, * translate this to 'greek', 'cyrillic', 'devanagari' or 'vietnamese'. Do not translate into your own language. */ $subset = _x( 'no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'indutri' ); if ( 'cyrillic' == $subset ) { $subsets .= ',cyrillic,cyrillic-ext'; } elseif ( 'greek' == $subset ) { $subsets .= ',greek,greek-ext'; } elseif ( 'devanagari' == $subset ) { $subsets .= ',devanagari'; } elseif ( 'vietnamese' == $subset ) { $subsets .= ',vietnamese'; } if ( $fonts ) { $fonts_url = add_query_arg( array( 'family' => ( implode( '%7C', $fonts ) ), 'subset' => ( $subsets ), ), $protocol.'://fonts.googleapis.com/css2' ); } return $fonts_url; } endif; function indutri_custom_styles() { $custom_css = get_option( 'indutri_theme_custom_styles' ); if($custom_css){ wp_enqueue_style( 'indutri-custom-style', get_template_directory_uri() . '/css/custom_script.css' ); wp_add_inline_style( 'indutri-custom-style', $custom_css ); } } add_action( 'wp_enqueue_scripts', 'indutri_custom_styles', 9999 ); function indutri_init_scripts(){ global $post; $protocol = is_ssl() ? 'https' : 'http'; if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ){ wp_enqueue_script( 'comment-reply' ); } wp_enqueue_style( 'indutri-fonts', indutri_fonts_url(), array(), null ); wp_enqueue_script('bootstrap', get_template_directory_uri().'/js/bootstrap.js', array('jquery') ); wp_enqueue_script('scrollbar', get_template_directory_uri() . '/js/perfect-scrollbar.jquery.min.js'); wp_enqueue_script('magnific', get_template_directory_uri() .'/js/magnific/jquery.magnific-popup.min.js'); wp_enqueue_script('cookie', get_template_directory_uri() . '/js/jquery.cookie.js', array('jquery')); wp_enqueue_script('lightgallery', get_template_directory_uri() . '/js/lightgallery/js/lightgallery.min.js' ); wp_enqueue_script('sticky', get_template_directory_uri() . '/js/sticky.js', array('elementor-waypoints')); wp_enqueue_script('owl-carousel', get_template_directory_uri() . '/js/owl-carousel/owl.carousel.min.js'); wp_enqueue_script('jquery.appear', get_template_directory_uri() . '/js/jquery.appear.js'); wp_enqueue_script('indutri-main', get_template_directory_uri() . '/js/main.js', array('imagesloaded', 'jquery-masonry')); wp_enqueue_script('indutri-woocommerce', get_template_directory_uri() . '/js/woocommerce.js'); if(indutri_woocommerce_activated() ){ wp_dequeue_script('wc-add-to-cart'); wp_register_script( 'wc-add-to-cart', INDUTRI_THEME_URL . '/js/add-to-cart.js' , array( 'jquery' ) ); wp_enqueue_script('wc-add-to-cart'); } wp_enqueue_style('lightgallery', get_template_directory_uri() . '/js/lightgallery/css/lightgallery.min.css'); wp_enqueue_style('lightgallery', get_template_directory_uri() . '/js/lightgallery/css/lg-transitions.min.css'); wp_enqueue_style('owl-carousel', get_template_directory_uri() .'/js/owl-carousel/assets/owl.carousel.css'); wp_enqueue_style('magnific', get_template_directory_uri() .'/js/magnific/magnific-popup.css'); wp_enqueue_style('fontawesome', get_template_directory_uri() . '/css/fontawesome/css/all.css'); wp_enqueue_style('indutri-style', get_template_directory_uri() . '/style.css'); $skin = indutri_get_option('skin_color', ''); if(isset($_GET['gskin']) && $_GET['gskin']){ $skin = $_GET['gskin']; } if(!empty($skin)){ $skin = 'skins/' . $skin . '/'; } wp_enqueue_style('bootstrap', get_template_directory_uri(). '/css/' . $skin . 'bootstrap.css', array(), '1.0.0' , 'all'); wp_enqueue_style('indutri-woocoomerce', get_template_directory_uri(). '/css/' . $skin . 'woocommerce.css', array(), '1.0.0' , 'all'); wp_enqueue_style('indutri-template', get_template_directory_uri().'/css/' . $skin . 'template.css', array(), '1.0.0' , 'all'); } add_action('wp_enqueue_scripts', 'indutri_init_scripts', 999);