/** * Enqueue scripts and styles for the front end. * * @since Shopera 1.0 * * @return void */ function shopera_scripts() { wp_enqueue_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array()); // Add Google fonts // wp_register_style('googleFonts'); wp_enqueue_style('googleFonts', shopera_font_url()); // Add Genericons font, used in the main stylesheet. wp_enqueue_style('genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.2'); // Load our main stylesheet. wp_enqueue_style('shopera-style', get_stylesheet_uri(), array('genericons')); wp_enqueue_style('shopera-responsiveness', get_template_directory_uri() . '/css/responsive.css', array(), '3.0.2'); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } if (is_singular() && wp_attachment_is_image()) { wp_enqueue_script('shopera-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20130402'); } if (is_active_sidebar('sidebar-3')) { wp_enqueue_script('jquery-masonry'); } if (is_front_page()) { wp_enqueue_script('shopera-slider', get_template_directory_uri() . '/js/slider.js', array('jquery'), '20131205', true); } wp_enqueue_script('shopera-script', get_template_directory_uri() . '/js/functions.js', array('jquery'), '20131209', true); wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array('jquery'), '20131209', true); wp_enqueue_script('jcarousel', get_template_directory_uri() . '/js/jquery.jcarousel.pack.js', array('jquery'), '20131209', true); wp_enqueue_style('animate', get_template_directory_uri() . '/css/animate.min.css', array()); wp_enqueue_script('html5shiv', get_template_directory_uri() . '/js/html5.js', array(), '', false); wp_enqueue_script('isotope', get_template_directory_uri() . '/js/jquery.isotope.min.js', array(), '', false); $shop_breadcrumb_img = get_theme_mod('shopera_shop_breadcrumbs', get_template_directory_uri() . '/images/breadcrumbs.jpg'); if ($shop_breadcrumb_img) { wp_add_inline_style('shopera-style', '.woocommerce-breadcrumb { background-image: url(' . $shop_breadcrumb_img . '); }'); } }
/** * Enqueue scripts and styles for the front end. * * @since Shopera 1.0 * * @return void */ function shopera_scripts() { wp_enqueue_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array()); // Add Google fonts // wp_register_style('googleFonts'); wp_enqueue_style('googleFonts', shopera_font_url()); // Add Genericons font, used in the main stylesheet. wp_enqueue_style('genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.2'); // Load our main stylesheet. wp_enqueue_style('shopera-style', get_stylesheet_uri(), array('genericons')); wp_enqueue_style('responsiveness', get_template_directory_uri() . '/css/responsive.css', array(), '3.0.2'); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } if (is_singular() && wp_attachment_is_image()) { wp_enqueue_script('shopera-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20130402'); } if (is_active_sidebar('sidebar-3')) { wp_enqueue_script('jquery-masonry'); } if (is_front_page()) { wp_enqueue_script('shopera-slider', get_template_directory_uri() . '/js/slider.js', array('jquery'), '20131205', true); } wp_enqueue_script('shopera-script', get_template_directory_uri() . '/js/functions.js', array('jquery'), '20131209', true); wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array('jquery'), '20131209', true); wp_enqueue_script('jcarousel', get_template_directory_uri() . '/js/jquery.jcarousel.pack.js', array('jquery'), '20131209', true); wp_enqueue_style('animate', get_template_directory_uri() . '/css/animate.min.css', array()); }