<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[10166] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020: WordPress.org Learn: Sync with GitHub</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/10166">10166</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/10166","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>coreymckrill</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-08-13 19:12:23 +0000 (Thu, 13 Aug 2020)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/compare/1648a7fc9a72a518bd1901cf18fa72efe90a4c4b...1accd3db38a60230689bdc157f9e82081d35d163</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020archivelessonplanphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-lesson-plan.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020archivewporg_workshopphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020frontpagephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/front-page.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020functionsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020headerphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/header.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/js/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020jsnavigationjs">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/js/navigation.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020templatepartscomponentsubmitideactaphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-submit-idea-cta.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020archivelessonplanphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-lesson-plan.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-lesson-plan.php      2020-08-13 14:39:38 UTC (rev 10165)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-lesson-plan.php        2020-08-13 19:12:23 UTC (rev 10166)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,7 +31,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        </main><!-- #main -->
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        <?php wporg_submit_idea_cta(); ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php get_template_part( 'template-parts/component', 'submit-idea-cta' ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> get_footer();
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020archivewporg_workshopphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php   2020-08-13 14:39:38 UTC (rev 10165)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php     2020-08-13 19:12:23 UTC (rev 10166)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -20,7 +20,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        </section>
</span><span class="cx" style="display: block; padding: 0 10px">        <hr>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        <?php wporg_submit_idea_cta(); ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php get_template_part( 'template-parts/component', 'submit-idea-cta' ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> </main>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020frontpagephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/front-page.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/front-page.php       2020-08-13 14:39:38 UTC (rev 10165)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/front-page.php 2020-08-13 19:12:23 UTC (rev 10166)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,7 +60,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                </section>
</span><span class="cx" style="display: block; padding: 0 10px">                <hr>
</span><span class="cx" style="display: block; padding: 0 10px">                
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                <?php wporg_submit_idea_cta(); ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         <?php get_template_part( 'template-parts/component', 'submit-idea-cta', array( 'icon' => 'lightbulb' ) ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                <?php if ( ! is_active_sidebar( 'front-page-blocks' ) ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php //get_template_part( 'template-parts/bbpress', 'front' ); ?>
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020functionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php        2020-08-13 14:39:38 UTC (rev 10165)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php  2020-08-13 19:12:23 UTC (rev 10166)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,15 +22,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Enqueue the CSS styles.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Enqueue the CSS styles & scripts.
</ins><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * The wporg theme does this with a static version, so we have to have it here too with our own cache-busting version.
</span><span class="cx" style="display: block; padding: 0 10px">  * The version is set to the last modified time during development.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-function wporg_learn_styles() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+function wporg_learn_scripts() {
</ins><span class="cx" style="display: block; padding: 0 10px">         wp_enqueue_style( 'wporg-style', get_theme_file_uri( '/css/style.css' ), [ 'dashicons', 'open-sans' ], filemtime( __DIR__ . '/css/style.css' ) );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        wp_enqueue_script( 'wporg-navigation', get_template_directory_uri() . '/js/navigation.js', array(), filemtime( __DIR__ . '/js/navigation.js' ), true );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-add_action( 'wp_enqueue_scripts', 'wporg_learn_styles' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+add_action( 'wp_enqueue_scripts', 'wporg_learn_scripts' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px">  * The Header for our theme.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -199,21 +201,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Submit CTA button
- *
- * @package WPBBP
- */
-function wporg_submit_idea_cta() { ?>
-
-       <section class="submit-idea-cta">
-               <div class="content-icon"><span class="dashicons dashicons-lightbulb"></span></div>
-               <h2><?php _e( 'Have an Idea for a Workshop? Let us know!' ); ?></h2>
-               <a class="button button-primary button-large" href="https://wordcampcentral.survey.fm/learn-wordpress-workshop-application"><?php _e( 'Submit an Idea' ); ?></a>
-       </section>
-
-<?php }
-
-/**
</del><span class="cx" style="display: block; padding: 0 10px">  * Returns whether all post for workshop
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @return array
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020headerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/header.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/header.php   2020-08-13 14:39:38 UTC (rev 10165)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/header.php     2020-08-13 19:12:23 UTC (rev 10166)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,13 +11,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> namespace WordPressdotorg\Forums;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$menu_items = array(
-       /* translators: relative link to the forums home page */
-       _x( '/forums/', 'header menu', 'wporg-forums' )                                     => _x( 'Forums', 'header menu', 'wporg-forums' ),
-       _x( 'https://codex.wordpress.org/Main_Page', 'header menu', 'wporg-forums' )        => _x( 'Documentation', 'header menu', 'wporg-forums' ),
-       _x( 'https://make.wordpress.org/support/handbook/', 'header menu', 'wporg-forums' ) => _x( 'Get Involved', 'header menu', 'wporg-forums' ),
-);
-
</del><span class="cx" style="display: block; padding: 0 10px"> global $wporg_global_header_options;
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
</span><span class="cx" style="display: block; padding: 0 10px">        $wporg_global_header_options['in_wrapper'] = '';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -51,7 +44,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                </label>
</span><span class="cx" style="display: block; padding: 0 10px">                                <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>
</span><span class="cx" style="display: block; padding: 0 10px">                            </form>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <?php
</span><span class="cx" style="display: block; padding: 0 10px">                                } elseif ( is_page() ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,29 +53,24 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                } else {
</span><span class="cx" style="display: block; padding: 0 10px">                                ?>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <p class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php _ex('Learn WordPress', 'Site title', 'wporg-forums'); ?></a></p>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        <?php /*
</del><span class="cx" style="display: block; padding: 0 10px">                                         <nav id="site-navigation" class="main-navigation" role="navigation">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                <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>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         <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-learn' ); ?>"
+                                               >
+                                               </button>
+
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 <div id="primary-menu" class="menu">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        <ul>
-                                                               <?php
-                                                               foreach ( $menu_items as $path => $text ) :
-                                                                       $class = '';
-                                                                       $url = parse_url( $path );
-                                                                       if ( ! empty( $url['host' ] ) ) {
-                                                                               $url = esc_url( $path );
-                                                                       } else {
-                                                                               $class = false !== strpos( $_SERVER['REQUEST_URI'], $url['path'] ) ? 'class="active" ' : '';
-                                                                               $url = esc_url( home_url( $path ) );
-                                                                       }
-                                                               ?>
-                                                               <li class="page_item"><a <?php echo $class; ?>href="<?php echo $url; ?>"><?php echo esc_html( $text ); ?></a></li>
-                                                               <?php endforeach; ?>
-                                                               <li><?php get_search_form(); ?></li>
-                                                       </ul>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 <?php
+                                                       wp_nav_menu( array(
+                                                               'theme_location' => 'primary',
+                                                               'menu_id'        => 'primary-menu',
+                                                       ) );
+                                                       ?>
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 </div>
</span><span class="cx" style="display: block; padding: 0 10px">                                        </nav><!-- #site-navigation -->
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        */ ?>
</del><span class="cx" style="display: block; padding: 0 10px">                                 <?php } ?>
</span><span class="cx" style="display: block; padding: 0 10px">                        </div><!-- .site-branding -->
</span><span class="cx" style="display: block; padding: 0 10px">                </header><!-- #masthead -->
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020jsnavigationjs"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/js/navigation.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/js/navigation.js                             (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/js/navigation.js       2020-08-13 19:12:23 UTC (rev 10166)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,78 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/**
+ * File navigation.js.
+ *
+ * Handles toggling the navigation menu for small screens and enables TAB key
+ * navigation support for dropdown menus.
+ */
+( function() {
+       var container, button, menu, links, subMenus, i, len;
+
+       container = document.getElementById( 'site-navigation' );
+       if ( ! container ) {
+               return;
+       }
+
+       button = container.getElementsByTagName( 'button' )[0];
+       if ( 'undefined' === typeof button ) {
+               return;
+       }
+
+       menu = container.getElementsByTagName( 'ul' )[0];
+
+       // Hide menu toggle button if menu is empty and return early.
+       if ( 'undefined' === typeof menu ) {
+               button.style.display = 'none';
+               return;
+       }
+
+       if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
+               menu.className += ' nav-menu';
+       }
+
+       button.onclick = function() {
+               if ( -1 !== container.className.indexOf( 'toggled' ) ) {
+                       container.className = container.className.replace( ' toggled', '' );
+                       button.setAttribute( 'aria-expanded', 'false' );
+               } else {
+                       container.className += ' toggled';
+                       button.setAttribute( 'aria-expanded', 'true' );
+               }
+       };
+
+       // Get all the link elements within the menu.
+       links    = menu.getElementsByTagName( 'a' );
+       subMenus = menu.getElementsByTagName( 'ul' );
+
+       // Set menu items with submenus to aria-haspopup="true".
+       for ( i = 0, len = subMenus.length; i < len; i++ ) {
+               subMenus[i].parentNode.setAttribute( 'aria-haspopup', 'true' );
+       }
+
+       // Each time a menu link is focused or blurred, toggle focus.
+       for ( i = 0, len = links.length; i < len; i++ ) {
+               links[i].addEventListener( 'focus', toggleFocus, true );
+               links[i].addEventListener( 'blur', toggleFocus, true );
+       }
+
+       /**
+        * Sets or removes .focus class on an element.
+        */
+       function toggleFocus() {
+               var self = this;
+
+               // Move up through the ancestors of the current link until we hit .nav-menu.
+               while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
+
+                       // On li elements toggle the class .focus.
+                       if ( 'li' === self.tagName.toLowerCase() ) {
+                               if ( -1 !== self.className.indexOf( 'focus' ) ) {
+                                       self.className = self.className.replace( ' focus', '' );
+                               } else {
+                                       self.className += ' focus';
+                               }
+                       }
+
+                       self = self.parentElement;
+               }
+       }
+} )();
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020templatepartscomponentsubmitideactaphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-submit-idea-cta.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-submit-idea-cta.php                         (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-submit-idea-cta.php   2020-08-13 19:12:23 UTC (rev 10166)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,20 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Template part for displaying a submit idea CTA
+ *
+ * @link https://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package WPBBP
+ */
+
+$args = wp_parse_args( $args );
+
+?>
+
+<section class="submit-idea-cta">
+       <?php if( isset( $args['icon'] ) ) :?>
+               <div class="content-icon"><span class="dashicons dashicons-<?php echo $args['icon']; ?>"></span></div>
+       <?php endif; ?>
+       <h2><?php _e( 'Have an Idea for a Workshop? Let us know!' ); ?></h2>
+       <a class="button button-primary button-large" href="https://wordcampcentral.survey.fm/learn-wordpress-workshop-application"><?php _e( 'Submit an Idea' ); ?></a>
+</section>
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre>
</div>
</div>

</body>
</html>