Changeset 10166 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php
- Timestamp:
- 08/13/2020 07:12:23 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php
r10161 r10166 23 23 24 24 /** 25 * Enqueue the CSS styles .25 * Enqueue the CSS styles & scripts. 26 26 * 27 27 * The wporg theme does this with a static version, so we have to have it here too with our own cache-busting version. 28 28 * The version is set to the last modified time during development. 29 29 */ 30 function wporg_learn_s tyles() {30 function wporg_learn_scripts() { 31 31 wp_enqueue_style( 'wporg-style', get_theme_file_uri( '/css/style.css' ), [ 'dashicons', 'open-sans' ], filemtime( __DIR__ . '/css/style.css' ) ); 32 } 33 add_action( 'wp_enqueue_scripts', 'wporg_learn_styles' ); 32 wp_enqueue_script( 'wporg-navigation', get_template_directory_uri() . '/js/navigation.js', array(), filemtime( __DIR__ . '/js/navigation.js' ), true ); 33 34 } 35 add_action( 'wp_enqueue_scripts', 'wporg_learn_scripts' ); 34 36 35 37 /** … … 198 200 return get_post_meta( get_the_ID(), 'download_lesson_plan_slides_url', true ); 199 201 } 200 201 /**202 * Submit CTA button203 *204 * @package WPBBP205 */206 function wporg_submit_idea_cta() { ?>207 208 <section class="submit-idea-cta">209 <div class="content-icon"><span class="dashicons dashicons-lightbulb"></span></div>210 <h2><?php _e( 'Have an Idea for a Workshop? Let us know!' ); ?></h2>211 <a class="button button-primary button-large" href="https://wordcampcentral.survey.fm/learn-wordpress-workshop-application"><?php _e( 'Submit an Idea' ); ?></a>212 </section>213 214 <?php }215 202 216 203 /**
Note: See TracChangeset
for help on using the changeset viewer.