Making WordPress.org


Ignore:
Timestamp:
12/20/2019 08:58:34 PM (5 years ago)
Author:
coffee2code
Message:

Main theme: Add new post-download modal.

Props andreamiddleton, jonoaldersonwp, coffee2code.
Fixes #4702.

File:
1 edited

Legend:

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

    r9328 r9375  
    7878    $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    7979
    80     wp_enqueue_style( 'wporg-style', get_theme_file_uri( '/css/style.css' ), [ 'dashicons', 'open-sans' ], '20191211' );
     80    wp_enqueue_style( 'wporg-style', get_theme_file_uri( '/css/style.css' ), [ 'dashicons', 'open-sans' ], '20191220' );
    8181    wp_style_add_data( 'wporg-style', 'rtl', 'replace' );
    8282
     
    9393            'trunk'         => number_format( WP_CORE_STABLE_BRANCH + 0.1, 1 ), /* trunk */
    9494        ] );
     95    } elseif ( is_page( 'download' ) ) {
     96        wp_enqueue_style( 'jquery-modal-style', get_theme_file_uri( '/css/jquery.modal.min.css' ), [], '0.9.2' );
     97        wp_enqueue_script( 'jquery-modal', get_theme_file_uri( '/js/jquery.modal.min.js' ), [ 'jquery' ], '0.9.2', true );
     98        wp_enqueue_script( 'wporg-page-download', get_theme_file_uri( '/js/page-download.js' ), [ 'jquery', 'jquery-modal' ], '20191220', true );
    9599    }
    96100
Note: See TracChangeset for help on using the changeset viewer.