Making WordPress.org

Changeset 931


Ignore:
Timestamp:
10/24/2014 09:26:59 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Fonts: Allow sites to use icon fonts on the front end.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-fonts/wc-fonts.php

    r117 r931  
    1616        add_action( 'wp_head', array( $this, 'wp_head_typekit' ), 102 ); // after safecss_style
    1717        add_action( 'wp_head', array( $this, 'wp_head_google_web_fonts' ) );
     18        add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_icon_fonts' ) );
    1819    }
    1920
     
    142143        return $output;
    143144    }
     145
     146    /**
     147     * Allow sites to use icon fonts on the front-end
     148     */
     149    public function enqueue_icon_fonts() {
     150        $dashicons_sites = array( 364 ); // 2014.sf
     151
     152        if ( in_array( get_current_blog_id(), $dashicons_sites ) ) {
     153            wp_enqueue_style( 'dashicons' );
     154        }
     155    }
    144156}
    145157
Note: See TracChangeset for help on using the changeset viewer.