コード例 #1
0
ファイル: Bw_theme.php プロジェクト: gjaya79/urdailynews
 static function components()
 {
     # assets
     self::enqueue_assets();
     # set the theme font styles
     Bw_theme_fonts::init();
     # ajax
     Bw_theme_ajax::init();
     # theme header options
     Bw_theme_header_options::init();
     # theme footer options
     Bw_theme_footer_options::init();
 }
コード例 #2
0
 static function init()
 {
     self::$fonts = array('body' => array('selectors' => array('body'), 'font' => 'Open Sans'), 'heading' => array('selectors' => array('h1', 'h2', 'h3', 'h4', 'h5', 'h6', '.heading .page-title', '.billboard-slider .info h3', '.billboard-slider .info .read-more a', '#logo h1', '#logo h2', '.bb, .bb a', '.widget .widget-title span', '.post-title, .post-excerpt h2', '.comment-reply-title', '.bw-slider .title h3', '.bw-megamenu .article-title'), 'font' => false));
     self::add_font(array('font' => 'Lato', 'weight' => array('300', '400', '700', '900')));
     add_action('wp_enqueue_scripts', array('Bw_theme_fonts', 'font_hook'));
 }