Changeset 10166
- Timestamp:
- 08/13/2020 07:12:23 PM (5 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-lesson-plan.php
r10142 r10166 32 32 </main><!-- #main --> 33 33 34 <?php wporg_submit_idea_cta(); ?>34 <?php get_template_part( 'template-parts/component', 'submit-idea-cta' ); ?> 35 35 36 36 <?php -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php
r10146 r10166 21 21 <hr> 22 22 23 <?php wporg_submit_idea_cta(); ?>23 <?php get_template_part( 'template-parts/component', 'submit-idea-cta' ); ?> 24 24 </main> 25 25 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/front-page.php
r10147 r10166 61 61 <hr> 62 62 63 <?php wporg_submit_idea_cta(); ?>63 <?php get_template_part( 'template-parts/component', 'submit-idea-cta', array( 'icon' => 'lightbulb' ) ); ?> 64 64 65 65 <?php if ( ! is_active_sidebar( 'front-page-blocks' ) ) : ?> -
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 /** -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/header.php
r10147 r10166 11 11 12 12 namespace WordPressdotorg\Forums; 13 14 $menu_items = array(15 /* translators: relative link to the forums home page */16 _x( '/forums/', 'header menu', 'wporg-forums' ) => _x( 'Forums', 'header menu', 'wporg-forums' ),17 _x( 'https://codex.wordpress.org/Main_Page', 'header menu', 'wporg-forums' ) => _x( 'Documentation', 'header menu', 'wporg-forums' ),18 _x( 'https://make.wordpress.org/support/handbook/', 'header menu', 'wporg-forums' ) => _x( 'Get Involved', 'header menu', 'wporg-forums' ),19 );20 13 21 14 global $wporg_global_header_options; … … 52 45 <button type="submit" class="search-submit button button-primary button-search"><i class="dashicons dashicons-search"></i><span class="screen-reader-text"><?php esc_attr_e( 'Search', 'wporg-forums' ) ?></span></button> 53 46 </form> 54 47 55 48 <?php 56 49 } elseif ( is_page() ) { … … 61 54 ?> 62 55 <p class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php _ex('Learn WordPress', 'Site title', 'wporg-forums'); ?></a></p> 63 <?php /*64 56 <nav id="site-navigation" class="main-navigation" role="navigation"> 65 <button class="menu-toggle dashicons dashicons-arrow-down-alt2" aria-controls="primary-menu" aria-expanded="false" aria-label="<?php esc_attr_e( 'Primary Menu', 'wporg-forums' ); ?>"></button> 57 <button 58 class="menu-toggle dashicons dashicons-arrow-down-alt2" 59 aria-controls="primary-menu" 60 aria-expanded="false" 61 aria-label="<?php esc_attr_e( 'Primary Menu', 'wporg-learn' ); ?>" 62 > 63 </button> 64 66 65 <div id="primary-menu" class="menu"> 67 <ul> 68 <?php 69 foreach ( $menu_items as $path => $text ) : 70 $class = ''; 71 $url = parse_url( $path ); 72 if ( ! empty( $url['host' ] ) ) { 73 $url = esc_url( $path ); 74 } else { 75 $class = false !== strpos( $_SERVER['REQUEST_URI'], $url['path'] ) ? 'class="active" ' : ''; 76 $url = esc_url( home_url( $path ) ); 77 } 78 ?> 79 <li class="page_item"><a <?php echo $class; ?>href="<?php echo $url; ?>"><?php echo esc_html( $text ); ?></a></li> 80 <?php endforeach; ?> 81 <li><?php get_search_form(); ?></li> 82 </ul> 66 <?php 67 wp_nav_menu( array( 68 'theme_location' => 'primary', 69 'menu_id' => 'primary-menu', 70 ) ); 71 ?> 83 72 </div> 84 73 </nav><!-- #site-navigation --> 85 */ ?>86 74 <?php } ?> 87 75 </div><!-- .site-branding -->
Note: See TracChangeset
for help on using the changeset viewer.