/** * Load stylesheets for the front end. * * @since 1.0 * @access public * @return void */ function hoot_base_enqueue_styles() { /* Gets ".min" suffix. */ $suffix = hoot_get_min_suffix(); /* Load Google Fonts if 'google-fonts' is active. */ if (current_theme_supports('google-fonts')) { wp_enqueue_style('hoot-google-fonts', hoot_google_fonts_enqueue_url(), array(), null); } /* Load lightSlider style if 'light-slider' is active. */ if (current_theme_supports('slick-slider')) { wp_enqueue_style('slick', trailingslashit(THEME_URI) . "css/slick{$suffix}.css", false, '1.5.9'); wp_enqueue_style('slick-theme', trailingslashit(THEME_URI) . "css/slick-theme{$suffix}.css", false, '1.5.9'); } /* Load gallery style if 'cleaner-gallery' is active. */ if (current_theme_supports('cleaner-gallery')) { wp_enqueue_style('gallery', trailingslashit(HOOT_CSS) . "gallery{$suffix}.css"); } /* Load gallery styles if Jetpack 'tiled-gallery' module is active */ if (class_exists('Jetpack') && Jetpack::is_module_active('tiled-gallery')) { wp_enqueue_style('gallery', trailingslashit(HOOT_CSS) . "gallery{$suffix}.css"); wp_enqueue_style('hoot-jetpack', trailingslashit(THEME_URI) . "css/jetpack{$suffix}.css"); } /* Load font awesome if 'font-awesome' is active. */ if (current_theme_supports('font-awesome')) { wp_enqueue_style('font-awesome', trailingslashit(HOOT_CSS) . "font-awesome{$suffix}.css", false, '4.2.0'); } }
/** * Load stylesheets for the front end. * * @since 1.0 * @access public * @return void */ function hoot_base_enqueue_styles() { /* Load Google Fonts if 'google-fonts' is active. */ if (current_theme_supports('google-fonts')) { wp_enqueue_style('hoot-google-fonts', hoot_google_fonts_enqueue_url(), array(), null); } /* Load lightSlider style if 'light-slider' is active. */ if (current_theme_supports('light-slider')) { $style_uri = hoot_locate_style('css/lightSlider'); wp_enqueue_style('lightSlider', $style_uri, false, '1.1.0'); } /* Load gallery style if 'cleaner-gallery' is active. */ if (current_theme_supports('cleaner-gallery')) { $style_uri = hoot_locate_style(trailingslashit(HOOT_CSS) . 'gallery'); wp_enqueue_style('gallery', $style_uri); } /* Load gallery styles if Jetpack 'tiled-gallery' module is active */ if (class_exists('Jetpack') && Jetpack::is_module_active('tiled-gallery')) { $style_uri = hoot_locate_style(trailingslashit(HOOT_CSS) . 'gallery'); wp_enqueue_style('gallery', $style_uri); $style_uri = hoot_locate_style('css/jetpack'); wp_enqueue_style('hoot-jetpack', $style_uri); } /* Load font awesome if 'font-awesome' is active. */ if (current_theme_supports('font-awesome')) { $style_uri = hoot_locate_style(trailingslashit(HOOT_CSS) . 'font-awesome'); wp_enqueue_style('font-awesome', $style_uri, false, '4.5.0'); } }