コード例 #1
0
 /**
  * Creates or returns an instance of this class.
  *
  * @since 2.3.0
  *
  * @return Theme_Blvd_Frontend_Init A single instance of this class.
  */
 public static function get_instance()
 {
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #2
0
/**
 * Jump Start CSS Files
 *
 * @since 1.0.0
 */
function jumpstart_css()
{
    // Get stylesheet API
    $api = Theme_Blvd_Stylesheets_API::get_instance();
    // Primary style.css after all framework stylesheets
    wp_enqueue_style('themeblvd_theme', get_stylesheet_uri(), $api->get_framework_deps());
    // IE Stylesheet
    wp_enqueue_style('themeblvd_ie', get_template_directory_uri() . '/assets/css/ie.css', array('themeblvd_theme'));
    $GLOBALS['wp_styles']->add_data('themeblvd_ie', 'conditional', 'lt IE 9');
    // Add IE conditional
    // Level 3 client API-added styles
    $api->print_styles(3);
}
コード例 #3
0
 /**
  * Print out styles.
  *
  * @since 2.1.0
  *
  * @param int $level Level to apply stylesheets - 1, 2, 3, 4
  */
 function themeblvd_print_styles($level)
 {
     $api = Theme_Blvd_Stylesheets_API::get_instance();
     $api->print_styles($level);
 }