Making WordPress.org


Ignore:
Timestamp:
09/10/2014 06:41:11 PM (10 years ago)
Author:
iandunn
Message:

Central Theme: Add responsive styles.

Fixes #565
props ryelle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php

    r842 r848  
    3535        add_action( 'pre_get_posts', array( __CLASS__, 'pre_get_posts' ) );
    3636        add_action( 'init', array( __CLASS__, 'process_forms' ) );
     37        add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ) );
    3738
    3839        add_filter( 'excerpt_more', array( __CLASS__, 'excerpt_more' ), 11 );
     
    176177
    177178    /**
     179     * Enqueue scripts and styles.
     180     */
     181    static function enqueue_scripts() {
     182        wp_enqueue_script( 'central-navigation', get_stylesheet_directory_uri() . '/js/navigation.js', array(), '20140909', true );
     183    }
     184
     185    /**
    178186     * Filters excerpt_more.
    179187     */
Note: See TracChangeset for help on using the changeset viewer.