Making WordPress.org


Ignore:
Timestamp:
05/25/2016 05:33:00 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Introduce our very own accordion.

Makes "Read more" toggles work on single plugin pages.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r3200 r3252  
    6767
    6868    wp_enqueue_script( 'wporg-plugins-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true );
    69 
    7069    wp_enqueue_script( 'wporg-plugins-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );
     70   
     71    if ( is_singular( 'plugin' ) ) {
     72        wp_enqueue_script( 'wporg-plugins-accordion', get_template_directory_uri() . '/js/section-accordion.js', array(), '20160525', true );
     73    }
    7174}
    7275add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\scripts' );
Note: See TracChangeset for help on using the changeset viewer.