<!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>[13963] sites/trunk/wordpress.org/public_html/wp-content: Learn: Sync with git WordPress/learn@b10e40b</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/13963">13963</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/13963","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>adamwood</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2024-08-12 03:47:32 +0000 (Mon, 12 Aug 2024)</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'>Learn: Sync with git WordPress/learn@b10e40b</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnincblocksphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/blocks.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearninclocalephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/locale.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnwebpackconfigjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/webpack.config.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnwporglearnphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/wporg-learn.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024stylecss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildblockstylesassetphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/block-styles.asset.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildblockstylesjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/block-styles.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildstyleblockstylesrtlcss">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-block-styles-rtl.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildstyleblockstylescss">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-block-styles.css</a></li>
<li>sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/block-styles/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020Gruntfilejs">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/Gruntfile.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020archivecoursephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-course.php</a></li>
<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>sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/css/</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>
<li>sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/js/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020packagejson">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/package.json</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020pagecontentcalendarphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-content-calendar.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020pagelessonplansphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-lesson-plans.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020pageonlineworkshopsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-online-workshops.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020pagesubmitanideaphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-submit-an-idea.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020pagephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page.php</a></li>
<li>sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/patterns/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020searchphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/search.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020searchformphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/searchform.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020sidebarcoursephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar-course.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020sidebarlessonplanphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar-lesson-plan.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020sidebarworkshopphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar-workshop.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020sidebarphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020singlecoursephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single-course.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020singlelessonplanphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single-lesson-plan.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020singlewporg_workshopphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single-wporg_workshop.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020singlephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020stylecss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/style.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomyaudiencephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-audience.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomydurationphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-duration.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomyinstruction_typephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-instruction_type.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomylevelphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-level.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomytopicphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-topic.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomywporg_lesson_plan_seriesphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-wporg_lesson_plan_series.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomywporg_workshop_seriesphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-wporg_workshop_series.php</a></li>
<li>sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/</li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildblockstylesassetphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/block-styles.asset.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/plugins/wporg-learn/build/block-styles.asset.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/block-styles.asset.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php return array('dependencies' => array('wp-blocks', 'wp-i18n'), 'version' => 'fa0f82927f10b6fe63b1');
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildblockstylesjs"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/block-styles.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/plugins/wporg-learn/build/block-styles.js 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/block-styles.js 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-(()=>{"use strict";var r,e={930:()=>{const r=window.wp.blocks,e=window.wp.i18n;(0,r.registerBlockStyle)("core/button",{name:"primary",label:(0,e.__)("Primary","wporg-learn")}),(0,r.registerBlockStyle)("core/button",{name:"primary-full-width",label:(0,e.__)("Primary (Full-width)","wporg-learn")}),(0,r.registerBlockStyle)("core/button",{name:"secondary",label:(0,e.__)("Secondary","wporg-learn")}),(0,r.registerBlockStyle)("core/button",{name:"secondary-full-width",label:(0,e.__)("Secondary (Full-width)","wporg-learn")}),(0,r.registerBlockStyle)("core/post-terms",{name:"tag",label:(0,e.__)("Tag","wporg-learn")})}},l={};function o(r){var a=l[r];if(void 0!==a)return a.exports;var t
=l[r]={exports:{}};return e[r](t,t.exports,o),t.exports}o.m=e,r=[],o.O=(e,l,a,t)=>{if(!l){var n=1/0;for(s=0;s<r.length;s++){for(var[l,a,t]=r[s],i=!0,p=0;p<l.length;p++)(!1&t||n>=t)&&Object.keys(o.O).every((r=>o.O[r](l[p])))?l.splice(p--,1):(i=!1,t<n&&(n=t));if(i){r.splice(s--,1);var c=a();void 0!==c&&(e=c)}}return e}t=t||0;for(var s=r.length;s>0&&r[s-1][2]>t;s--)r[s]=r[s-1];r[s]=[l,a,t]},o.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),(()=>{var r={157:0,204:0};o.O.j=e=>0===r[e];var e=(e,l)=>{var a,t,[n,i,p]=l,c=0;if(n.some((e=>0!==r[e]))){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);if(p)var s=p(o)}for(e&&e(l);c<n.length;c++)t=n[c],o.o(r,t)&&r[t]&&r[t][0](),r[t]=0;return o.O(s)},l=globalThis.webpackChunkwporg_learn_plugin=globalThis.webpackChunkwporg_learn_plugin||[];l.forEach(e.bind(null,0)),l.push=e.bind(null,l.push.bind(l))})();var a=o.O(void 0,[204],(()=>o(930)));a=o.O(a)}
)();
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildstyleblockstylesrtlcss"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-block-styles-rtl.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-block-styles-rtl.css 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-block-styles-rtl.css 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.is-style-primary .wp-block-button__link,.is-style-primary .wp-block-button__link:visited,.is-style-primary-full-width .wp-block-button__link,.is-style-primary-full-width .wp-block-button__link:visited,.is-style-secondary .wp-block-button__link,.is-style-secondary .wp-block-button__link:visited,.is-style-secondary-full-width .wp-block-button__link,.is-style-secondary-full-width .wp-block-button__link:visited{background:#0085ba;border:1px solid #006799;box-shadow:0 1px 0 #006799;color:#fff;font-size:13px;font-weight:600;margin:0 0 32px;padding:.9rem;text-align:center;text-decoration:none}.is-style-primary .wp-block-button__link:hover,.is-style-primary-full-width .wp-block-button__link:hover,.is-style-secondary .wp-block-button__link:hover,.is-style-secondary-full-width .wp-block-button__link:hover{background:#008ec2}.is-style-secondary .wp-block-button__link,.is-style-secondary .wp-block-
button__link:visited,.is-style-secondary-full-width .wp-block-button__link,.is-style-secondary-full-width .wp-block-button__link:visited{background:#f7f7f7;border:1px solid #ccc;box-shadow:0 1px 0 #ccc;color:#555}.is-style-secondary .wp-block-button__link:hover,.is-style-secondary-full-width .wp-block-button__link:hover{background:#fafafa;border:1px solid #999;box-shadow:0 1px 0 #999;color:#23282d}.is-style-primary-full-width,.is-style-primary-full-width .wp-block-button__link,.is-style-secondary-full-width,.is-style-secondary-full-width .wp-block-button__link{width:100%}
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildstyleblockstylescss"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-block-styles.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-block-styles.css 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-block-styles.css 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.is-style-primary .wp-block-button__link,.is-style-primary .wp-block-button__link:visited,.is-style-primary-full-width .wp-block-button__link,.is-style-primary-full-width .wp-block-button__link:visited,.is-style-secondary .wp-block-button__link,.is-style-secondary .wp-block-button__link:visited,.is-style-secondary-full-width .wp-block-button__link,.is-style-secondary-full-width .wp-block-button__link:visited{background:#0085ba;border:1px solid #006799;box-shadow:0 1px 0 #006799;color:#fff;font-size:13px;font-weight:600;margin:0 0 32px;padding:.9rem;text-align:center;text-decoration:none}.is-style-primary .wp-block-button__link:hover,.is-style-primary-full-width .wp-block-button__link:hover,.is-style-secondary .wp-block-button__link:hover,.is-style-secondary-full-width .wp-block-button__link:hover{background:#008ec2}.is-style-secondary .wp-block-button__link,.is-style-secondary .wp-block-
button__link:visited,.is-style-secondary-full-width .wp-block-button__link,.is-style-secondary-full-width .wp-block-button__link:visited{background:#f7f7f7;border:1px solid #ccc;box-shadow:0 1px 0 #ccc;color:#555}.is-style-secondary .wp-block-button__link:hover,.is-style-secondary-full-width .wp-block-button__link:hover{background:#fafafa;border:1px solid #999;box-shadow:0 1px 0 #999;color:#23282d}.is-style-primary-full-width,.is-style-primary-full-width .wp-block-button__link,.is-style-secondary-full-width,.is-style-secondary-full-width .wp-block-button__link{width:100%}
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnincblocksphp"></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/plugins/wporg-learn/inc/blocks.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/plugins/wporg-learn/inc/blocks.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/blocks.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -24,8 +24,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Actions and filters.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'init', __NAMESPACE__ . '\register_types' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\enqueue_block_style_assets' );
-add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\enqueue_block_style_assets' );
</del><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"> * Register block types.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -418,37 +416,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">- * Enqueue scripts and stylesheets for custom block styles.
- *
- * @throws Error If the build files are not found.
- */
-function enqueue_block_style_assets() {
- if ( is_admin() ) {
- $script_asset_path = get_build_path() . 'block-styles.asset.php';
- if ( ! file_exists( $script_asset_path ) ) {
- throw new Error(
- 'You need to run `npm start` or `npm run build` for block styles first.'
- );
- }
-
- $script_asset = require $script_asset_path;
- wp_enqueue_script(
- 'wporg-learn-block-styles',
- get_build_url() . 'block-styles.js',
- $script_asset['dependencies'],
- $script_asset['version']
- );
- }
-
- wp_enqueue_style(
- 'wporg-learn-block-styles',
- get_build_url() . 'style-block-styles.css',
- array(),
- filemtime( get_build_path() . 'style-block-styles.css' )
- );
-}
-
-/**
</del><span class="cx" style="display: block; padding: 0 10px"> * Register the learning duration block.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function register_learning_duration() {
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearninclocalephp"></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/plugins/wporg-learn/inc/locale.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/plugins/wporg-learn/inc/locale.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/locale.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -184,10 +184,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $current_theme = wp_get_theme();
</span><span class="cx" style="display: block; padding: 0 10px"> $theme_slug = $current_theme->get_stylesheet();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( 'pub/wporg-learn-2020' === $theme_slug ) {
- return $clauses;
- }
-
</del><span class="cx" style="display: block; padding: 0 10px"> if ( $query->is_post_type_archive( 'course' ) || $query->is_post_type_archive( 'lesson' ) || $query->is_post_type_archive( 'lesson-plan' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return wporg_query_prioritize_locale( $clauses, $locale );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnwebpackconfigjs"></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/plugins/wporg-learn/webpack.config.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/plugins/wporg-learn/webpack.config.js 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/webpack.config.js 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,7 +4,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Set up the custom entry points.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> config.entry = {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'block-styles': './js/block-styles/index.js',
</del><span class="cx" style="display: block; padding: 0 10px"> 'course-status': './js/course-status/src/index.js',
</span><span class="cx" style="display: block; padding: 0 10px"> 'duration-meta': './js/duration-meta/index.js',
</span><span class="cx" style="display: block; padding: 0 10px"> 'expiration-date': './js/expiration-date/index.js',
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnwporglearnphp"></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/plugins/wporg-learn/wporg-learn.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/plugins/wporg-learn/wporg-learn.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/wporg-learn.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,7 +1,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Plugin name: WordPress.org Learn
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Description: Functionality for learn.wordpress.org. See also the wporg-learn-2020 theme.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Description: Functionality for learn.wordpress.org. See also the wporg-learn-2024 theme.
</ins><span class="cx" style="display: block; padding: 0 10px"> * Version: 1.0.0
</span><span class="cx" style="display: block; padding: 0 10px"> * Author: WordPress.org
</span><span class="cx" style="display: block; padding: 0 10px"> * Author URI: http://wordpress.org/
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020Gruntfilejs"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/Gruntfile.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/Gruntfile.js 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/Gruntfile.js 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,152 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/* global module:false, require:function, process:object */
-module.exports = function( grunt ) {
- var isChild = 'wporg' !== grunt.file.readJSON( 'package.json' ).name;
-
- const getSassFiles = () => {
- const files = {};
- const paths = [ 'settings', 'tools', 'generic', 'base', 'objects', 'components', 'utilities', 'vendor' ];
-
- paths.forEach( function( component ) {
- var paths = [
- '../wporg/css/' + component + '/**/*.scss',
- '!../wporg/css/' + component + '/_' + component + '.scss'
- ];
-
- if ( isChild ) {
- paths.push( 'css/' + component + '/**/*.scss' );
- paths.push( '!css/' + component + '/_' + component + '.scss' );
- }
-
- files[ 'css/' + component + '/_' + component + '.scss' ] = paths;
- } );
-
- return files;
- };
-
- grunt.initConfig({
- postcss: {
- options: {
- map: 'build' !== process.argv[2],
- processors: [
- require( 'autoprefixer' )( {
- cascade: false
- } ),
- require( 'pixrem' ),
- require('cssnano')( {
- mergeRules: false
- } )
- ]
- },
- dist: {
- src: 'css/style.css'
- }
- },
-
- sass: {
- options: {
- implementation: require( 'sass' ),
- sourceMap: true,
- // Don't add source map URL in built version.
- omitSourceMapUrl: 'build' === process.argv[2],
- outputStyle: 'expanded'
- },
- dist: {
- files: {
- 'css/style.css': 'css/style.scss',
- 'css/print.css': 'css/print.scss',
- }
- }
- },
-
- sass_globbing: {
- itcss: {
- files: getSassFiles(),
- },
- options: { signature: false }
- },
-
- rtlcss: {
- options: {
- // rtlcss options.
- opts: {
- clean: false,
- processUrls: { atrule: true, decl: false },
- stringMap: [
- {
- name: 'import-rtl-stylesheet',
- priority: 10,
- exclusive: true,
- search: [ '.css' ],
- replace: [ '-rtl.css' ],
- options: {
- scope: 'url',
- ignoreCase: false
- }
- } // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact
- ]
- },
- saveUnmodified: false,
- plugins: [
- {
- name: 'swap-dashicons-left-right-arrows',
- priority: 10,
- directives: {
- control: {},
- value: []
- },
- processors: [
- {
- expr: /content/im,
- action: function( prop, value ) {
- if ( value === '"\\f141"' ) { // dashicons-arrow-left.
- value = '"\\f139"';
- } else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt.
- value = '"\\f344"';
- } else if ( value === '"\\f341"' ) { // dashicons-arrow-left-alt2.
- value = '"\\f345"';
- } else if ( value === '"\\f139"' ) { // dashicons-arrow-right.
- value = '"\\f141"';
- } else if ( value === '"\\f344"' ) { // dashicons-arrow-right-alt.
- value = '"\\f340"';
- } else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2.
- value = '"\\f341"';
- }
- return { prop: prop, value: value };
- }
- } // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact
- ]
- } // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact
- ]
- },
- dynamic: {
- expand: true,
- cwd: 'css/',
- dest: 'css/',
- ext: '-rtl.css',
- src: ['**/style.css']
- }
- },
-
- watch: {
- css: {
- files: ['**/*.scss', '../wporg/css/**/*scss'],
- tasks: ['css']
- }
- }
- });
-
- if ( 'build' === process.argv[2] ) {
- grunt.config.merge( { postcss: { options : { processors: [ require( 'cssnano' ) ] } } } );
- }
-
- grunt.loadNpmTasks( 'grunt-sass' );
- grunt.loadNpmTasks( 'grunt-rtlcss' );
- grunt.loadNpmTasks( 'grunt-postcss' );
- grunt.loadNpmTasks( 'grunt-sass-globbing' );
- grunt.loadNpmTasks( 'grunt-contrib-watch' );
-
- grunt.registerTask( 'css', [ 'sass_globbing', 'sass', 'postcss', 'rtlcss:dynamic' ] );
-
- grunt.registerTask( 'default', [ 'css' ] );
- grunt.registerTask( 'build', [ 'css' ] ); // Automatically runs "production" steps
-};
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020archivecoursephp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-course.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-course.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-course.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,124 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The template for displaying archive pages.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-
-$all_courses = array();
-$course_categories = array();
-$prev_category = '';
-$begin_new_category = false;
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
-<main id="main" class="site-main">
- <section>
- <div class="section-heading section-heading--with-space row align-middle between gutters">
- <?php the_archive_title( '<h1 class="section-heading_title h2 col-8">', '</h1>' ); ?>
- <?php if ( is_user_logged_in() ) : ?>
- <div class="col-4 row section-heading_links">
- <a class="section-heading_link" href="/my-courses/"><?php esc_html_e( 'My Courses', 'wporg-learn' ); ?></a>
- </div>
- <?php endif; ?>
- </div>
-
- <hr>
-
- <?php if ( have_posts() ) : ?>
- <?php while ( have_posts() ) :
- the_post();
-
- $categories = get_the_terms( get_the_ID(), 'course-category' );
-
- if ( isset( $categories[0] ) ) {
- $category_slug = $categories[0]->slug;
- $category_title = $categories[0]->name;
- $category_description = $categories[0]->description;
-
- ob_start();
- get_template_part(
- 'template-parts/component',
- 'card',
- wporg_learn_get_card_template_args( get_the_ID() )
- );
-
- $all_courses[ $category_slug ]['name'] = $category_title;
- $all_courses[ $category_slug ]['description'] = $category_description;
- $all_courses[ $category_slug ]['courses'][] = ob_get_clean();
- }
-
- endwhile;
-
- if ( ! empty( $all_courses ) ) { ?>
- <div class="section-intro">
- <div class="row between gutters">
- <p class="col-8"><?php esc_html_e( 'WordPress provides limitless ways for people to craft and grow their online presence. The content in these courses is delivered in multiple formats, with a focus on text and video, working towards practical learning objectives to help you become a better WordPress developer, designer, user, and contributor.', 'wporg-learn' ); ?></p>
- <?php get_template_part( 'template-parts/component', 'archive-search' ); ?>
- </div>
- </div>
- <nav class="section-nav">
- <ul>
- <?php foreach ( $all_courses as $slug => $category ) { ?>
- <li class="section-nav-item">
- <a href="#<?php echo esc_attr( $slug ); ?>"><?php echo esc_html( $category['name'] ); ?></a>
- </li>
- <?php } ?>
- </ul>
- </nav>
- <hr>
- <?php
- foreach ( $all_courses as $slug => $category ) {
-
- // Check for new category on each loop and output necessary content and markup
- $begin_new_category = $slug !== $prev_category;
-
- if ( $begin_new_category ) {
-
- // Close the previous card-grid if there was a previous category
- if ( ! empty( $prev_category ) ) {
- echo '</div><hr>';
- }
-
- // Print category title and description
- echo '<h2 class="h4 course-category-header" id="' . esc_attr( $slug ) . '">' . esc_html( $category['name'] ) . '</h2>';
- if ( $category_description ) {
- echo '<div class="course-category-description">' . esc_html( $category['description'] ) . '</div>';
- }
-
- // Start a new card grid for the new category
- echo '<div class="card-grid card-grid_2">';
-
- // Set variable to check for new category on next loop
- $prev_category = $slug;
- }
-
- // Display card for each course
- foreach ( $category['courses'] as $course ) {
- echo wp_kses( $course, 'post' );
- }
- }
-
- echo '</div>';
-
- } ?>
-
- <?php else : ?>
- <?php get_template_part( 'template-parts/content', 'none' ); ?>
- <?php endif; ?>
-
- <?php the_posts_pagination(); ?>
- </section>
-
- <hr>
-
- <?php get_template_part( 'template-parts/component', 'submit-idea-cta' ); ?>
-</main>
-
-<?php get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020archivelessonplanphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: 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 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-lesson-plan.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,229 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The template for displaying archive pages.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
-<main id="main" class="site-main">
-
-<?php
-if ( '' === get_query_var( 'search' ) && empty( $_GET ) && is_post_type_archive() ) :
- ?>
- <section>
- <div class="row align-middle between section-heading section-heading--with-space gutters">
- <h1 class="section-heading_title h2 col-8"><?php esc_html_e( 'Lesson Plans', 'wporg-learn' ); ?></h1>
- <div class="col-4 row section-heading_links">
- <a href="<?php echo esc_url( get_post_type_archive_link( 'lesson-plan' ) . '?_view=all' ); ?>" class="button button-xlarge button-secondary">
- <?php esc_html_e( 'Browse all lesson plans', 'wporg-learn' ); ?>
- </a>
- </div>
- </div>
-
- <hr>
-
- <div class="section-intro">
- <div class="row between gutters">
- <p class="col-8">
- <?php esc_html_e( 'Want to help others learn about WordPress? Read through, use, and remix these lesson plans.', 'wporg-learn' ); ?>
- </p>
- <?php
- set_query_var( 'post_type', 'lesson-plan' );
- get_template_part( 'template-parts/component', 'archive-search' );
- ?>
- </div>
- </div>
-
- <hr>
- <?php
- $topics = wporg_learn_get_sticky_topics_with_selected_first();
- if ( ! empty( $topics ) ) {
- ?>
- <div class="lp-taxonomy">
- <h2 class="h4 lp-taxonomy-header"><?php echo esc_html__( 'Topic', 'wporg-learn' ); ?></h2>
- <div class="lp-taxonomy-description"><?php echo esc_html__( 'Browse lesson plans by their high-level topic.', 'wporg-learn' ); ?></div>
- <div class="card-grid card-grid_4">
- <?php foreach ( $topics as $topic ) : ?>
- <a class="card button topic-<?php echo esc_attr( $topic->term_id ); ?>" href="<?php echo esc_url( get_term_link( $topic ) ); ?>">
- <?php $topic_icon = get_term_meta( $topic->term_id, 'dashicon-class', true ) ?? 'wordpress-alt'; ?>
- <div>
- <span aria-hidden="true" class="dashicons dashicons-<?php echo esc_attr( $topic_icon ); ?>"></span>
- </div>
- <?php echo esc_html( $topic->name ); ?>
- </a>
- <?php endforeach; ?>
- </div>
- </div>
- <?php
- } ?>
-
- <?php
- $audiences = get_terms( 'audience', array(
- 'hide_empty' => false,
- 'orderby' => 'id',
- ) );
- ?>
- <div class="lp-taxonomy">
- <h2 class="h4 lp-taxonomy-header"><?php echo esc_html__( 'Audience', 'wporg-learn' ); ?></h2>
- <div class="lp-taxonomy-description"><?php echo esc_html__( "Browse lesson plans by the audience they're intended for.", 'wporg-learn' ); ?></div>
- <div class="card-grid card-grid_4">
- <?php foreach ( $audiences as $audience ) :
- $is_sticky = get_term_meta( $audience->term_id, 'sticky', true );
- if ( $is_sticky ) :
- ?>
- <a class="card button" href="<?php echo esc_url( get_term_link( $audience ) ); ?>">
- <div>
- <?php
- $audience_icon = get_term_meta( $audience->term_id, 'dashicon-class', true ) ?? 'wordpress-alt';
- ?>
- <span aria-hidden="true" class="dashicons dashicons-<?php echo esc_attr( $audience_icon ); ?>"></span>
- </div>
- <?php echo esc_html( $audience->name ); ?>
- </a>
- <?php
- endif;
- endforeach; ?>
- </div>
- </div>
-
- <div class="row lp-two-col between">
- <div class="lp-level">
- <h2 class="h4 lp-taxonomy-header"><?php echo esc_html__( 'Level', 'wporg-learn' ); ?></h2>
- <div class="lp-taxonomy-description"><?php echo esc_html__( 'What experience participants need.', 'wporg-learn' ); ?></div>
- <ul class="lp-two-col-list">
- <?php
- $levels = get_terms( 'level', array(
- 'hide_empty' => false,
- 'orderby' => 'id',
- ) );
-
- foreach ( $levels as $level ) : ?>
- <li>
- <a class="button" href="<?php echo esc_url( get_post_type_archive_link( 'lesson-plan' ) ) . '?level[]=' . esc_html( $level->term_id ); ?>">
- <?php echo esc_html( $level->name ); ?><span aria-hidden="true" class="dashicons dashicons-arrow-right-alt2"></span>
- </a>
- </li>
- <?php
- endforeach;
- ?>
- </ul>
- </div>
-
- <div class="lp-duration">
- <h2 class="h4 lp-taxonomy-header"><?php echo esc_html__( 'Duration', 'wporg-learn' ); ?></h2>
- <div class="lp-taxonomy-description"><?php echo esc_html__( 'How long a lesson is estimated to take.', 'wporg-learn' ); ?></div>
- <ul class="lp-two-col-list">
- <?php
- $durations = get_terms( 'duration', array(
- 'hide_empty' => false,
- 'orderby' => 'name',
- 'order' => 'ASC',
- ) );
-
- $duration_index = 0;
- $any_duration_arr = array();
- $lp_archive_url = get_post_type_archive_link( 'lesson-plan' );
- foreach ( $durations as $duration ) :
- if ( $duration_index < 3 ) :
- ?>
- <li>
- <a class="button" href="<?php echo esc_url( add_query_arg( array( 'duration[]' => $duration->term_id ), $lp_archive_url ) ); ?>">
- <?php echo esc_html( $duration->name ); ?><span aria-hidden="true" class="dashicons dashicons-arrow-right-alt2"></span>
- </a>
- </li>
- <?php
- else :
- $any_duration_arr['duration'][] = $duration->term_id;
- endif;
- $duration_index++;
- endforeach;
-
- if ( isset( $any_duration_arr['duration'] ) ) :
- ?>
- <li>
- <a class="button" href="<?php echo esc_url( add_query_arg( $any_duration_arr, $lp_archive_url ) ); ?>">
- <?php echo esc_html__( '60 mins or longer', 'wporg-learn' ); ?><span aria-hidden="true" class="dashicons dashicons-arrow-right-alt2"></span>
- </a>
- </li>
- <?php
- endif;
- ?>
- </ul>
- </div>
- </div>
-
- <?php
- $instruction_types = get_terms( 'instruction_type', array(
- 'hide_empty' => false,
- 'orderby' => 'id',
- ) );
- ?>
- <div class="lp-taxonomy">
- <h2 class="h4 lp-taxonomy-header"><?php echo esc_html__( 'Format', 'wporg-learn' ); ?></h2>
- <div class="lp-taxonomy-description"><?php echo esc_html__( 'Browse lesson plans based on their format.', 'wporg-learn' ); ?></div>
- <div class="card-grid card-grid_4">
- <?php foreach ( $instruction_types as $instruction_type ) : ?>
- <a class="card button" href="<?php echo esc_url( get_post_type_archive_link( 'lesson-plan' ) ) . '?type[]=' . esc_html( $instruction_type->term_id ); ?>">
- <?php echo esc_html( $instruction_type->name ); ?>
- </a>
- <?php endforeach; ?>
- </div>
- </div>
-
- <hr>
-
- <div class="row align-middle around lp-cta">
- <a href="<?php echo esc_url( get_post_type_archive_link( 'lesson-plan' ) . '?_view=all' ); ?>" class="button button-xlarge button-secondary">
- <?php esc_html_e( 'Browse all lesson plans', 'wporg-learn' ); ?>
- </a>
- </div>
- </section>
-
-<?php else : ?>
- <section>
- <div class="row gutters between section-heading section-heading--with-space">
- <?php the_archive_title( '<h1 class="section-heading_title h2 col-8">', '</h1>' ); ?>
- <?php get_template_part( 'template-parts/component', 'archive-search' ); ?>
- </div>
-
- <hr>
-
- <div class="lp-archive-items row gutters between">
- <div class="card-grid col-9">
- <?php if ( have_posts() ) : ?>
- <?php while ( have_posts() ) :
- the_post();
- get_template_part(
- 'template-parts/component',
- 'card',
- wporg_learn_get_card_template_args( get_the_ID() )
- );
- endwhile; ?>
- <?php else : ?>
- <p class="not-found">
- <?php echo esc_html( get_post_type_object( 'lesson-plan' )->labels->not_found ); ?>
- </p>
- <?php endif; ?>
- </div>
-
- <?php get_template_part( 'template-parts/component', 'lesson-filters' ); ?>
- </div>
-
- <?php the_posts_pagination(); ?>
- </section>
- <hr>
-
- <?php get_template_part( 'template-parts/component', 'submit-idea-cta' ); ?>
-<?php endif; ?>
-
-</main>
-
-<?php get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020archivewporg_workshopphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: 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 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,67 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The template for displaying archive pages.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-
-use WP_Post;
-
-global $wp_query;
-$is_filtered = $wp_query->get( 'wporg_archive_filters' );
-
-/** @var WP_Post $post */
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
-<main id="main" class="site-main">
-
- <section>
- <div class="section-heading section-heading--with-space">
- <?php the_archive_title( '<h1 class="section-heading_title h2">', '</h1>' ); ?>
- <?php if ( is_tax( 'wporg_workshop_series' ) && have_posts() ) :
- $series_term = wporg_learn_series_get_term( $post );
- ?>
- <div class="section-heading_description">
- <?php echo wp_kses_post( wpautop( term_description( $series_term->term_id ) ) ); ?>
- </div>
- <?php endif; ?>
- </div>
- <hr>
- <?php if ( is_post_type_archive( 'wporg_workshop' ) ) : ?>
- <div class="section-intro">
- <div class="row between gutters">
- <p class="col-8"><?php esc_html_e( 'Tutorials are a great way to get hands-on with WordPress. These videos will help you learn new skills to become a more effective WordPress user, developer, designer, and contributor.', 'wporg-learn' ); ?></p>
- <?php get_template_part( 'template-parts/component', 'archive-search' ); ?>
- </div>
- </div>
- <hr>
- <?php get_template_part( 'template-parts/component', 'workshop-filters' ); ?>
- <?php endif; ?>
-
- <?php if ( have_posts() ) : ?>
- <?php // Only show the featured workshop on the first page of post type archives.
- if ( is_post_type_archive() && get_query_var( 'paged' ) < 2 && ! $is_filtered ) : ?>
- <?php get_template_part( 'template-parts/component', 'featured-workshop' ); ?>
- <?php endif; ?>
- <?php get_template_part( 'template-parts/component', 'video-grid' ); ?>
-
- <?php the_posts_pagination(); ?>
- <?php else : ?>
- <p class="not-found">
- <?php echo esc_html( get_post_type_object( 'wporg_workshop' )->labels->not_found ); ?>
- </p>
- <?php endif; ?>
- </section>
- <hr>
-
- <?php get_template_part( 'template-parts/component', 'submit-idea-cta' ); ?>
-</main>
-
-<?php get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020frontpagephp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: 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 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/front-page.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,151 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-
-/**
- * The front page of the site.
- *
- * @package WPBBP
- */
-
-get_header(); ?>
-
- <main id="main" class="site-main home-page">
- <section class="quick-intro">
- <div class="shapes">
- <a class="parallelogram workshops" href="/tutorials/">
- <p class="dashicons-before dashicons-desktop">
- <strong><?php esc_html_e( 'Tutorials', 'wporg-learn' ); ?></strong>
- <?php
- esc_html_e( 'Tutorials are a great way to get hands-on with WordPress. Here are some tutorials for you to level up your WordPress skills.', 'wporg-learn' );
- ?>
- <u><?php esc_html_e( 'Browse Tutorials', 'wporg-learn' ); ?></u>
- </p>
- </a>
- <a class="parallelogram lesson-plans" href="/lesson-plans/">
- <p class="dashicons-before dashicons-clipboard">
- <strong><?php esc_html_e( 'Lesson Plans', 'wporg-learn' ); ?></strong>
- <?php
- esc_html_e( 'Are you sharing WordPress with others? These lesson plans are designed to guide and inspire you to deliver great content.', 'wporg-learn' );
- ?>
- <u><?php esc_html_e( 'Access Lesson Plans', 'wporg-learn' ); ?></u>
- </p>
- </a>
- </div>
- </section>
-
- <section>
- <div class="section-heading row align-middle between gutters">
- <h2 class="h4 section-heading_title col-8"><?php esc_html_e( 'Recent Courses', 'wporg-learn' ); ?></h2>
- <div class="section-heading_links col-4 row">
- <?php if ( is_user_logged_in() ) : ?>
- <a class="section-heading_link" href="/my-courses/"><?php esc_html_e( 'My Courses', 'wporg-learn' ); ?></a>
- <?php endif; ?>
- <a class="section-heading_link" href="/courses/"><?php esc_html_e( 'View All Courses', 'wporg-learn' ); ?></a>
- </div>
- <p class="section-heading_description">
- <em><?php esc_html_e( 'Multimedia courses setting you up to become a better WordPress developer, designer, user, and contributor.', 'wporg-learn' ); ?></em>
- </p>
- </div>
-
- <?php
- $args = array(
- 'query' => wporg_get_archive_query(
- 'course',
- array(
- 'posts_per_page' => 2,
- 'meta_query' =>
- array(
- array(
- 'key' => '_course_featured',
- 'value' => 'featured',
- ),
- ),
- ),
- ),
- );
- get_template_part( 'template-parts/component', 'course-grid', $args );
- ?>
- </section>
-
- <hr>
-
- <section>
- <div class="section-heading row align-middle between gutters">
- <h2 class="h4 section-heading_title col-8">
- <?php esc_html_e( 'Recent Tutorials', 'wporg-learn' ); ?>
- </h2>
- <div class="section-heading_links col-4 row">
- <a class="section-heading_link" href="/tutorials/">
- <?php esc_html_e( 'View All Tutorials', 'wporg-learn' ); ?>
- </a>
- </div>
- <p class="section-heading_description">
- <em><?php esc_html_e( 'Instructional videos for all skillsets to help you level up your WordPress expertise.', 'wporg-learn' ); ?></em>
- </p>
- </div>
- <?php
- $args = array(
- 'query' => wporg_get_archive_query(
- 'wporg_workshop',
- array(
- 'posts_per_page' => 6,
- )
- ),
- );
- get_template_part( 'template-parts/component', 'video-grid', $args );
- ?>
- </section>
-
- <hr>
-
- <?php $discussion_events = \WPOrg_Learn\Events\get_discussion_events(); ?>
- <?php if ( ! empty( $discussion_events ) ) : ?>
- <section class="wporg-learn-workshop-discussion-events">
- <div class="section-heading row align-middle between gutters">
- <h2 class="h4 section-heading_title col-8">
- <?php esc_html_e( 'Upcoming Online Workshops', 'wporg-learn' ); ?>
- </h2>
- <div class="section-heading_links col-4 row">
- <a class="section-heading_link" href="/online-workshops/">
- <?php esc_html_e( 'View All Online Workshops', 'wporg-learn' ); ?>
- </a>
- </div>
- <p class="section-heading_description">
- <em><?php esc_html_e( 'Live sessions where you can learn alongside other WordPress enthusiasts from around the world.', 'wporg-learn' ); ?></em>
- </p>
- </div>
-
- <ul class="discussion-event-list">
- <?php foreach ( $discussion_events as $event ) : ?>
- <?php get_template_part( 'template-parts/component', 'discussion-event-short-item', $event ); ?>
- <?php endforeach; ?>
- </ul>
- <p>
- <?php
- printf(
- wp_kses_post( __( 'Want to facilitate an online workshop? <a href="%s">Apply to become a facilitator</a>.', 'wporg-learn' ) ),
- 'https://learn.wordpress.org/online-workshops/'
- );
- ?>
- </p>
- </section>
-
- <hr>
- <?php endif; ?>
-
- <section class="about-training">
- <div class="getin">
- <div class="graphic"><span class="dashicons dashicons-welcome-learn-more"></span></div>
- <div>
- <h2 class="h3"><?php esc_html_e( 'Get Involved', 'wporg-learn' ); ?></h2>
- <p><?php esc_html_e( 'Want to get involved in creating the content for Learn WordPress?', 'wporg-learn' ); ?></p>
- <a href="//learn.wordpress.org/contribute"><?php esc_html_e( 'Learn how to contribute', 'wporg-learn' ); ?></a>
- </div>
- </div>
- </section>
-
- <hr>
-
- <?php get_template_part( 'template-parts/component', 'submit-idea-cta', array( 'icon' => 'lightbulb' ) ); ?>
- </main>
-
-<?php get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020functionsphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: 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 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,1117 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * WPBBP functions and definitions
- *
- * @package WPBBP
- */
-
-/**
- * Sets up theme defaults and registers support for various WordPress features.
- *
- * Note that this function is hooked into the after_setup_theme hook, which
- * runs before the init hook. The init hook is too late for some features, such
- * as indicating support for post thumbnails.
- */
-function setup() {
- add_theme_support( 'post-thumbnails' );
- add_theme_support( 'sensei' );
-
- add_theme_support( 'responsive-embeds' );
-
- global $woothemes_sensei;
- if ( $woothemes_sensei ) {
- remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ) );
- remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ) );
- }
-
- // The parent wporg theme is designed for use on wordpress.org/* and assumes locale-domains are available.
- // Remove hreflang support.
- remove_action( 'wp_head', 'WordPressdotorg\Theme\hreflang_link_attributes' );
-
- add_filter( 'mkaz_code_syntax_force_loading', '__return_true' );
- add_filter( 'mkaz_prism_css_path', '__return_empty_string' ); // Disable default styles to avoid conflicts.
-}
-add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' );
-
-/**
- * Enqueue the CSS styles & scripts.
- *
- * The wporg theme does this with a static version, so we have to have it here too with our own cache-busting version.
- * The version is set to the last modified time during development.
- */
-function wporg_learn_scripts() {
- wp_enqueue_style(
- 'wporg-style',
- get_theme_file_uri( '/css/style.css' ),
- array( 'dashicons', 'open-sans' ),
- filemtime( __DIR__ . '/css/style.css' )
- );
- if ( is_post_type_archive( array( 'wporg_workshop', 'lesson-plan' ) ) || is_singular( array( 'wporg_workshop', 'lesson-plan' ) ) ) {
- wp_enqueue_style(
- 'wporg-print-style',
- get_theme_file_uri( '/css/print.css' ),
- array(),
- filemtime( __DIR__ . '/css/print.css' ),
- 'print'
- );
- }
- wp_enqueue_script(
- 'wporg-navigation',
- get_theme_file_uri() . '/js/navigation.js',
- array(),
- filemtime( __DIR__ . '/js/navigation.js' ),
- true
- );
-
- wp_enqueue_script(
- 'wporg-developer-function-reference',
- get_stylesheet_directory_uri() . '/js/function-reference.js',
- array( 'jquery', 'wp-a11y' ),
- filemtime( __DIR__ . '/js/function-reference.js' ),
- true
- );
- wp_localize_script(
- 'wporg-developer-function-reference',
- 'wporgFunctionReferenceI18n',
- array(
- 'copy' => __( 'Copy', 'wporg-learn' ),
- 'copied' => __( 'Code copied', 'wporg-learn' ),
- 'expand' => __( 'Expand code', 'wporg-learn' ),
- 'collapse' => __( 'Collapse code', 'wporg-learn' ),
- )
- );
-
- // Temporarily disabling the enhanced dropdowns for workshop filtering, see https://github.com/WordPress/Learn/issues/810
-
- // phpcs:ignore
- /* if ( is_post_type_archive( 'wporg_workshop' ) ) {
- wp_enqueue_style( 'select2' );
- wp_enqueue_script(
- 'wporg-filters',
- get_theme_file_uri() . '/js/filters.js',
- array( 'jquery', 'select2' ),
- filemtime( __DIR__ . '/js/filters.js' ),
- true
- );
- }
- */
-
- if ( is_post_type_archive( 'course' ) || is_search() ) {
- wp_dequeue_style( 'sensei-frontend' );
- }
-
- if ( is_front_page() ) {
- wp_enqueue_script( 'wporg-learn-event' );
- }
-}
-add_action( 'wp_enqueue_scripts', 'wporg_learn_scripts' );
-
-/**
- * Get the taxonomies associated to workshop
- *
- * @package WPBBP
- */
-function wporg_get_tax_slugs_from_workshop() {
- return wp_get_post_terms( get_the_ID(), 'lesson_group', array( 'fields' => 'slugs' ) );
-}
-
-/**
- * Get the lesson plans associated to a taxonomy
- *
- * @param string $slugs Comma separated list of taxonomy terms.
- * @package WPBBP
- */
-function wporg_get_lesson_plans_by_tax_slugs_query( $slugs ) {
- $args = array(
- 'post_type' => 'lesson-plan',
- 'tax_query' => array(
- array(
- 'taxonomy' => 'lesson_group',
- 'field' => 'slug',
- 'terms' => $slugs,
- ),
- ),
- );
-
- // Get all the lesson plans associated to
- return new WP_Query( $args );
-}
-
-/**
- * Get the category from the query vars
- *
- * @package WPBBP
- */
-function wporg_get_filter_category() {
- return get_query_var( 'category' );
-}
-
-/**
- * Returns a list of filter categories
- *
- * @return array
- */
-function wporg_get_filter_categories() {
- return get_categories();
-}
-
-/**
- * Returns the default filter category key
- *
- * @return string|null
- */
-function wporg_get_default_cat() {
- $cats = wporg_get_filter_categories();
-
- return reset( $cats );
-}
-
-/**
- * Returns the default category if category is not defined
- *
- * @return string
- */
-function wporg_get_cat_or_default_slug() {
- $cat = wporg_get_filter_category();
-
- if ( empty( $cat ) ) {
- return wporg_get_default_cat()->slug;
- }
-
- return $cat;
-}
-
-/**
- * Get the values associated to the page/post formatted as a string
- *
- * @param string $post_id Id of the post.
- * @param string $tax_slug The slug for the custom taxonomy.
- *
- * @return string
- */
-function wporg_learn_get_taxonomy_terms_string( $post_id, $tax_slug ) {
- $terms = wp_get_post_terms( $post_id, $tax_slug, array( 'fields' => 'names' ) );
-
- return implode( ', ', $terms );
-}
-
-/**
- * Get the values associated to the page/post formatted as an array
- *
- * @param string $post_id Id of the post.
- * @param string $tax_slug The slug for the custom taxonomy.
- *
- * @return array
- */
-function wporg_learn_get_taxonomy_terms_array( $post_id, $tax_slug ) {
- $term_ids = wp_get_post_terms( $post_id, $tax_slug, array( 'fields' => 'ids' ) );
-
- $terms = array();
- foreach ( $term_ids as $id ) {
- $terms[ $id ] = get_term( $id )->name;
- }
-
- return $terms;
-}
-
-/**
- * Get the values associated to the page/post according to the context
- *
- * @param int $post_id ID of the post.
- * @param string $tax_slug The slug for the custom taxonomy.
- * @param string $context The context for display.
- *
- * @return array|string
- */
-function wporg_learn_get_taxonomy_terms( $post_id, $tax_slug, $context ) {
- switch ( $context ) {
- case 'archive':
- return wporg_learn_get_taxonomy_terms_string( $post_id, $tax_slug );
- break;
- case 'single':
- return wporg_learn_get_taxonomy_terms_array( $post_id, $tax_slug );
- break;
- }
-}
-
-/**
- * Returns the taxonomies associated to a lesson or workshop
- *
- * @param int $post_id Id of the post.
- *
- * @return array
- */
-function wporg_learn_get_lesson_plan_taxonomy_data( $post_id, $context ) {
- $data = array(
- array(
- 'icon' => 'clock',
- 'slug' => 'duration',
- 'label' => get_taxonomy_labels( get_taxonomy( 'duration' ) )->singular_name,
- 'value' => wporg_learn_get_taxonomy_terms( $post_id, 'duration', $context ),
- ),
- array(
- 'icon' => 'admin-users',
- 'slug' => 'audience',
- 'label' => get_taxonomy_labels( get_taxonomy( 'audience' ) )->singular_name,
- 'value' => wporg_learn_get_taxonomy_terms( $post_id, 'audience', $context ),
- ),
- array(
- 'icon' => 'dashboard',
- 'slug' => 'level',
- 'label' => get_taxonomy_labels( get_taxonomy( 'level' ) )->singular_name,
- 'value' => wporg_learn_get_taxonomy_terms( $post_id, 'level', $context ),
- ),
- array(
- 'icon' => 'welcome-learn-more',
- 'slug' => 'type',
- 'label' => get_taxonomy_labels( get_taxonomy( 'instruction_type' ) )->singular_name,
- 'value' => wporg_learn_get_taxonomy_terms( $post_id, 'instruction_type', $context ),
- ),
- );
-
- $versions = wporg_learn_get_taxonomy_terms( $post_id, 'wporg_wp_version', $context );
- if ( $versions ) {
- $data[] = array(
- 'icon' => 'wordpress',
- 'slug' => 'wp_version',
- 'label' => wporg_label_with_colon( get_taxonomy_labels( get_taxonomy( 'wporg_wp_version' ) )->singular_name ),
- 'value' => $versions,
- );
- }
-
- return $data;
-}
-
-/**
- * Returns whether the post type is a workshop
- *
- * @return bool
- */
-function wporg_post_type_is_workshop() {
- return get_post_type() == 'workshop';
-}
-
-/**
- * Modify the excerpt length for our custom post types.
- *
- * @param int $length Excerpt length.
- *
- * @return int (Maybe) modified excerpt length.
- */
-function wporg_modify_excerpt_length( $length ) {
- if ( is_admin() ) {
- return $length;
- }
-
- if ( 'wporg_workshop' === get_post_type() ) {
- return 35;
- }
-
- return 25;
-}
-add_filter( 'excerpt_length', 'wporg_modify_excerpt_length', 999 );
-
-/**
- * Change the query for workshops in some circumstances.
- *
- * @param WP_Query $query
- *
- * @return void
- */
-function wporg_archive_modify_query( WP_Query $query ) {
- if ( is_admin() ) {
- return;
- }
-
- $valid_post_types = array( 'lesson-plan', 'wporg_workshop', 'course' );
-
- if ( $query->is_main_query() && $query->is_post_type_archive( $valid_post_types ) ) {
- wporg_archive_maybe_apply_query_filters( $query );
-
- if ( $query->is_post_type_archive( 'wporg_workshop' ) && true !== $query->get( 'wporg_archive_filters' ) ) {
- $featured = wporg_get_featured_workshops();
-
- if ( ! empty( $featured ) ) {
- $featured = reset( $featured );
- if ( ! $query->is_feed() ) {
- $query->set( 'post__not_in', array( $featured->ID ) );
- }
- }
- }
- }
-
- // Some lesson plans were created at exactly the same second, so we're adding the ID to the implicit sort order to avoid randomization.
- if (
- ( $query->is_post_type_archive( 'lesson-plan' ) || $query->is_tax( 'topic' ) ) &&
- empty( $query->get( 'orderby' ) )
- ) {
- $query->set(
- 'orderby',
- array(
- 'post_date' => 'DESC',
- 'ID' => 'ASC',
- )
- );
- }
-
- if ( $query->is_main_query() && $query->is_tax( 'wporg_workshop_series' ) ) {
- $query->set( 'order', 'asc' );
- }
-
- // Possibly temporary until more of the courses are filled out.
- if ( $query->is_main_query() && $query->is_post_type_archive( 'course' ) ) {
- $query->set(
- 'orderby',
- array(
- 'post_date' => 'ASC',
- 'ID' => 'DESC',
- )
- );
-
- $query->set(
- 'meta_query',
- array(
- array(
- 'key' => '_course_featured',
- 'value' => 'featured',
- ),
- )
- );
-
- $query->set(
- 'tax_query',
- array(
- array(
- 'taxonomy' => 'course-category',
- 'field' => 'id',
- 'terms' => get_terms( 'course-category', array( 'fields' => 'ids' ) ),
- ),
- )
- );
-
- // Since courses are displayed in category groups, we don't need pagination
- $query->set( 'posts_per_page', '-1' );
- }
-
- // Omit some post types from search results.
- if ( $query->is_main_query() && $query->is_search() ) {
- $public_post_types = array_keys( get_post_types( array( 'public' => true ) ) );
- $omit_from_search = array( 'attachment', 'page', 'lesson', 'quiz', 'sensei_message', 'meeting' );
- $searchable_post_types = array_diff( $public_post_types, $omit_from_search );
-
- // Only show featured courses, but don't limit other post types
- $query->set(
- 'meta_query',
- array(
- 'relation' => 'OR',
- array(
- 'key' => '_course_featured',
- 'value' => 'featured',
- ),
- array(
- 'key' => '_course_featured',
- 'compare' => 'NOT EXISTS',
- ),
- )
- );
-
- $query->set( 'post_type', $searchable_post_types );
- }
-}
-add_action( 'pre_get_posts', 'wporg_archive_modify_query' );
-
-/**
- * Add ordering to query for advanced filtering
- *
- * @param string $orderby
- * @param object $query
- *
- * @return string
- */
-function wporg_archive_orderby( $orderby, $query ) {
- global $wpdb;
-
- if ( is_admin() ) {
- return $orderby;
- }
-
- // Group courses by their category
- if ( $query->is_main_query() && $query->is_post_type_archive( 'course' ) ) {
- $orderby = $wpdb->term_relationships . '.term_taxonomy_id DESC, ' . $orderby;
- }
-
- return $orderby;
-}
-add_filter( 'posts_orderby', 'wporg_archive_orderby', 10, 2 );
-
-/**
- * Update a query object if filter parameters are present.
- *
- * @param WP_Query $query Query object, passed by reference.
- *
- * @return void
- */
-function wporg_archive_maybe_apply_query_filters( WP_Query &$query ) {
- $filters = filter_input_array(
- INPUT_GET,
- array(
- 'search' => FILTER_SANITIZE_STRING,
- 'captions' => FILTER_SANITIZE_STRING,
- 'language' => FILTER_SANITIZE_STRING,
- 'audience' => array(
- 'filter' => FILTER_VALIDATE_INT,
- 'flags' => FILTER_REQUIRE_ARRAY,
- ),
- 'duration' => array(
- 'filter' => FILTER_VALIDATE_INT,
- 'flags' => FILTER_REQUIRE_ARRAY,
- ),
- 'level' => array(
- 'filter' => FILTER_VALIDATE_INT,
- 'flags' => FILTER_REQUIRE_ARRAY,
- ),
- 'series' => FILTER_VALIDATE_INT,
- 'topic' => FILTER_VALIDATE_INT,
- 'type' => array(
- 'filter' => FILTER_VALIDATE_INT,
- 'flags' => FILTER_REQUIRE_ARRAY,
- ),
- 'wp_version' => array(
- 'filter' => FILTER_VALIDATE_INT,
- 'flags' => FILTER_FORCE_ARRAY,
- ),
- ),
- false
- );
-
- $entity_map = array(
- 'captions' => 'video_caption_language',
- 'language' => 'language',
- 'audience' => 'audience',
- 'duration' => 'duration',
- 'level' => 'level',
- 'topic' => 'topic',
- 'type' => 'instruction_type',
- 'wp_version' => 'wporg_wp_version',
- );
-
- $series_slug = wporg_learn_get_series_taxonomy_slug( $query->get( 'post_type' ) );
- if ( $series_slug ) {
- $entity_map['series'] = $series_slug;
- }
-
- $meta_query = array();
- $tax_query = array();
-
- $is_filtered = false;
-
- if ( is_array( $filters ) ) {
- $filters = array_filter( $filters );
- // Strip out `wp_version` if it's empty (converted to `array( false )`, due to FILTER_FORCE_ARRAY).
- if ( isset( $filters['wp_version'] ) && 0 === count( array_filter( $filters['wp_version'] ) ) ) {
- unset( $filters['wp_version'] );
- }
-
- // If both language and captions filters are set, we assume an "OR" relationship.
- if ( isset( $filters['captions'], $filters['language'] ) ) {
- $meta_query[] = array(
- 'relation' => 'OR',
- array(
- 'key' => $entity_map['captions'],
- 'value' => $filters['captions'],
- ),
- array(
- 'key' => $entity_map['language'],
- 'value' => $filters['language'],
- ),
- );
-
- unset( $filters['captions'], $filters['language'] );
- }
-
- foreach ( $filters as $filter_name => $filter_value ) {
- switch ( $filter_name ) {
- case 'search':
- $query->set( 's', $filter_value );
- $is_filtered = true;
- break;
- case 'captions':
- case 'language':
- if ( ! empty( $meta_query ) ) {
- $meta_query['relation'] = 'AND';
- }
- $meta_query[] = array(
- 'key' => $entity_map[ $filter_name ],
- 'value' => $filter_value,
- );
- break;
- case 'audience':
- case 'duration':
- case 'level':
- case 'series':
- case 'topic':
- case 'type':
- case 'wp_version':
- if ( ! empty( $tax_query ) ) {
- $tax_query['relation'] = 'AND';
- }
- $tax_query[] = array(
- 'taxonomy' => $entity_map[ $filter_name ],
- 'terms' => $filter_value,
- );
- break;
- }
- }
- }
-
- if ( ! empty( $meta_query ) ) {
- $query->set( 'meta_query', $meta_query );
- $is_filtered = true;
- }
-
- if ( ! empty( $tax_query ) ) {
- $query->set( 'tax_query', $tax_query );
- $is_filtered = true;
- }
-
- if ( $is_filtered ) {
- $query->set( 'wporg_archive_filters', true );
- }
-}
-
-/**
- * Get a query object for displaying workshop posts.
- *
- * @param string $post_type The post type of the archive.
- * @param array $args Arguments for the query.
- *
- * @return WP_Query
- */
-function wporg_get_archive_query( $post_type, array $args = array() ) {
- $args = wp_parse_args(
- $args,
- array(
- 'post_type' => $post_type,
- 'post_status' => 'publish',
- )
- );
-
- return new WP_Query( $args );
-}
-
-/**
- * Get an array of data to be given to the card component template via the third argument of get_template_part().
- *
- * @param int $post_id
- *
- * @return array[]
- */
-function wporg_learn_get_card_template_args( $post_id ) {
- $post = get_post( $post_id );
- $post_type = get_post_type( $post );
-
- $args = array(
- 'class' => array(),
- 'meta' => array(),
- );
-
- switch ( $post_type ) {
- case 'course':
- $lesson_count = Sensei()->course->course_lesson_count( $post_id );
-
- $args['meta'] = array(
- array(
- 'icon' => 'editor-ul',
- 'label' => wporg_label_with_colon( get_post_type_labels( get_post_type_object( 'lesson' ) )->name ),
- 'value' => $lesson_count,
- ),
- );
-
- if ( is_user_logged_in() ) {
- $completed = count( Sensei()->course->get_completed_lesson_ids( $post_id, get_current_user_id() ) );
-
- $args['meta'][] = array(
- 'icon' => ( $lesson_count === $completed ) ? 'awards' : 'edit-large',
- 'label' => __( 'Completed:', 'wporg-learn' ),
- 'value' => $completed,
- );
- }
- break;
-
- case 'lesson-plan':
- $args['meta'] = array_merge(
- wporg_learn_get_lesson_plan_taxonomy_data( $post_id, 'archive' ),
- array(
- array(
- 'icon' => 'admin-site-alt3',
- 'label' => __( 'Language:', 'wporg-learn' ),
- 'value' => \WordPressdotorg\Locales\get_locale_name_from_code( $post->language, 'native' ),
- ),
- )
- );
- break;
-
- case 'wporg_workshop':
- $args['meta'] = array(
- array(
- 'icon' => 'category',
- 'label' => wporg_label_with_colon( get_taxonomy_labels( get_taxonomy( 'topic' ) )->singular_name ),
- 'value' => wporg_learn_get_taxonomy_terms_string( $post_id, 'topic' ),
- ),
- array(
- 'icon' => 'clock',
- 'label' => __( 'Duration:', 'wporg-learn' ),
- 'value' => \WPOrg_Learn\Post_Meta\get_workshop_duration( $post, 'string' ),
- ),
- array(
- 'icon' => 'admin-site-alt3',
- 'label' => __( 'Language:', 'wporg-learn' ),
- 'value' => \WordPressdotorg\Locales\get_locale_name_from_code( $post->language, 'native' ),
- ),
- );
- break;
- }
-
- return $args;
-}
-
-/**
- * Append a colon to a label string.
- *
- * Example: This is a self-referential example.
- *
- * @param string $label
- *
- * @return string
- */
-function wporg_label_with_colon( $label ) {
- return sprintf(
- // translators: %s is a field label. This adds a colon, which will be followed by the contents of the field.
- __( '%s:', 'wporg-learn' ),
- $label
- );
-}
-
-/**
- * Get a number of workshop posts that are marked as "featured".
- *
- * Currently there is no taxonomy or postmeta value to mark a workshop as "featured",
- * so we're just grabbing the most recent workshops. This may change.
- *
- * @param int $number
- *
- * @return WP_Post[]
- */
-function wporg_get_featured_workshops( $number = 1 ) {
- $query = wporg_get_archive_query(
- 'wporg_workshop',
- array(
- 'posts_per_page' => $number,
- )
- );
-
- return $query->get_posts();
-}
-
-/**
- * Returns the presenters for the workshop.
- *
- * @param WP_Post|int $workshop
- *
- * @return WP_User[]|array
- */
-function wporg_get_workshop_presenters( $workshop = null ) {
- $post = get_post( $workshop );
- $presenters = get_post_meta( $post->ID, 'presenter_wporg_username' );
- $wp_users = array();
-
- foreach ( $presenters as $presenter ) {
- $wp_user = get_user_by( 'login', $presenter );
-
- if ( $wp_user ) {
- array_push( $wp_users, $wp_user );
- }
- }
-
- return $wp_users;
-}
-
-/**
- * Returns the other contributors for the workshop.
- *
- * @param WP_Post|int $workshop
- *
- * @return WP_User[]|array
- */
-function wporg_get_workshop_other_contributors( $workshop = null ) {
- $post = get_post( $workshop );
- $other_contributors = get_post_meta( $post->ID, 'other_contributor_wporg_username' );
- $wp_users = array();
-
- foreach ( $other_contributors as $other_contributor ) {
- $wp_user = get_user_by( 'login', $other_contributor );
-
- if ( $wp_user ) {
- array_push( $wp_users, $wp_user );
- }
- }
-
- return $wp_users;
-}
-
-/**
- * Get the bio of a user, first trying usermeta and then profiles.wordpress.org.
- *
- * The `usermeta` bio (description) field will be pulled. If there is no bio, profiles.wordpress.org is tried.
- * The bio at profiles.wordpress.org relies on the availability of the `bpmain_bp_xprofile_data` table.
- * For local environments the bio will only pull from `usermeta`.
- *
- * @param WP_User $user The user to retrieve a bio for.
- *
- * @return string
- */
-function wporg_get_workshop_presenter_bio( WP_User $user ) {
- global $wpdb;
-
- // Retrieve bio from user data.
- $bio = $user->description;
-
- // If bio is empty, retrieve from .org.
- if ( ! $bio && 'local' !== wp_get_environment_type() ) {
- $xprofile_field_id = 3;
-
- $sql = $wpdb->prepare(
- '
- SELECT value
- FROM bpmain_bp_xprofile_data
- WHERE user_id = %1$d
- AND field_id = %2$d
- ',
- $user->ID,
- $xprofile_field_id
- );
-
- $bio = $wpdb->get_var( $sql ) ?: ''; // phpcs:ignore WordPress.DB.PreparedSQL -- prepare called above.
- }
-
- return apply_filters( 'the_content', wp_unslash( $bio ) );
-}
-
-/**
- * Display a featured image, falling back to the VideoPress thumbnail if no featured image was explicitly set.
- *
- * @param WP_Post $post The Workshop post for which we want the thumbnail.
- * @param string $size The image size: 'medium', 'full'.
- */
-function wporg_get_post_thumbnail( $post, $size = 'post-thumbnail' ) {
- $thumbnail = get_the_post_thumbnail( $post, $size );
- if ( $thumbnail ) {
- return $thumbnail;
- } else {
- $post = get_post( $post );
- foreach ( get_post_meta( $post->ID, '', true ) as $key => $value ) {
- if ( substr( $key, 0, 8 ) === '_oembed_' && preg_match( '#https://video.wordpress.com/embed/(\w+)#', $value[0], $match ) ) {
- $video = videopress_get_video_details( $match[1] );
- if ( ! is_wp_error( $video ) && isset( $video->poster ) ) {
- return '<img class="attachment-' . esc_attr( $size ) . ' wp-post-image" src=' . esc_url( $video->poster ) . ' loading="lazy" alt="" />';
- }
- }
- }
- }
-}
-
-/**
- * Conditionally change or remove the prefix from archive titles.
- *
- * @param string $prefix
- *
- * @return string
- */
-function wporg_modify_archive_title_prefix( $prefix ) {
- if ( is_post_type_archive() ) {
- return '';
- }
-
- return sprintf(
- '<span class="archive-title-prefix">%s</span>',
- $prefix
- );
-}
-add_filter( 'get_the_archive_title_prefix', 'wporg_modify_archive_title_prefix' );
-
-/**
- * Append pagination to the archive title.
- *
- * @global WP_Query $wp_query
- * @global int $paged
- *
- * @param string $title
- *
- * @return mixed
- */
-function wporg_modify_archive_title( $title ) {
- global $wp_query, $paged;
-
- if ( $paged > 1 ) {
- $suffix = sprintf(
- __( 'Page %1$d of %2$d', 'wporg-learn' ),
- absint( $paged ),
- absint( $wp_query->max_num_pages )
- );
-
- $title = sprintf(
- // translators: 1: Archive title; 2: Pagination, e.g. Page 2 of 4.
- __( '%1$s – %2$s', 'wporg-learn' ),
- $title,
- $suffix
- );
- }
-
- return $title;
-}
-add_filter( 'get_the_archive_title', 'wporg_modify_archive_title' );
-
-/**
- * Get the slug for the series taxonomy for a given post type.
- *
- * @param string $post_type
- *
- * @return false|string
- */
-function wporg_learn_get_series_taxonomy_slug( $post_type ) {
- $tax_slug = false;
-
- switch ( $post_type ) {
- case 'lesson-plan':
- $tax_slug = 'wporg_lesson_plan_series';
- break;
- case 'wporg_workshop':
- $tax_slug = 'wporg_workshop_series';
- break;
- }
-
- return $tax_slug;
-}
-
-/**
- * Get the series taxonomy term object for a post.
- *
- * @param int|WP_Post|null $post
- *
- * @return WP_Term|bool
- */
-function wporg_learn_series_get_term( $post = null ) {
- $post = get_post( $post );
-
- if ( ! $post instanceof WP_Post ) {
- return false;
- }
-
- $tax_slug = wporg_learn_get_series_taxonomy_slug( get_post_type( $post ) );
- $terms = wp_get_post_terms( $post->ID, $tax_slug );
-
- if ( empty( $terms ) ) {
- return false;
- }
-
- return $terms[0];
-}
-
-/**
- * Given a post in a series, get all the posts in the series.
- *
- * @param int|WP_Post|null $post
- *
- * @return WP_Post[]
- */
-function wporg_learn_series_get_siblings( $post = null ) {
- $post_type = get_post_type( $post );
- $term = wporg_learn_series_get_term( $post );
-
- if ( ! $term ) {
- return array();
- }
-
- $args = array(
- 'post_type' => $post_type,
- 'post_status' => 'publish',
- 'posts_per_page' => 999,
- 'order' => 'asc',
- 'tax_query' => array(
- array(
- 'taxonomy' => wporg_learn_get_series_taxonomy_slug( $post_type ),
- 'terms' => $term->term_id,
- ),
- ),
- );
-
- return get_posts( $args );
-}
-
-/**
- * Given a post in a series, get an adjacent post in that series.
- *
- * @param string $which Which adjacent post to retrieve. 'previous' or 'next'.
- * @param int|WP_Post|null $post
- *
- * @return WP_Post|bool
- */
-function wporg_learn_series_get_adjacent( $which, $post = null ) {
- if ( ! $post instanceof WP_Post ) {
- $post = get_post( $post );
- }
-
- $siblings = wporg_learn_series_get_siblings( $post );
- $sibling_ids = wp_list_pluck( $siblings, 'ID' );
- $index = array_search( $post->ID, $sibling_ids, true );
-
- if ( false === $index ) {
- return false;
- }
-
- switch ( $which ) {
- case 'previous':
- $index --;
- break;
- case 'next':
- $index ++;
- break;
- }
-
- return $siblings[ $index ] ?? false;
-}
-
-/**
- * Robots "noindex" rules for specific parts of the Learn site.
- *
- * @param bool $noindex
- *
- * @return bool
- */
-function wporg_learn_noindex( $noindex ) {
- if ( is_singular( 'quiz' ) ) {
- $noindex = true;
- }
-
- return $noindex;
-}
-add_filter( 'wporg_noindex_request', 'wporg_learn_noindex' );
-
-/**
- * Fixes bug in (or at least in using) SyntaxHighlighter code shortcodes that
- * causes double-encoding of `>` character.
- *
- * Copied from themes/pub/wporg-developer/inc/formatting.php
- *
- * @param string $content The text being handled as code.
- * @return string
- */
-function wporg_learn_fix_code_entity_encoding( $content ) {
- return str_replace( '&gt;', '>', $content );
-}
-add_filter( 'syntaxhighlighter_htmlresult', 'wporg_learn_fix_code_entity_encoding', 20 );
-
-/**
- * Register theme sidebars.
- */
-function wporg_learn_register_sidebars() {
- // Register lesson plans sidebar.
- register_sidebar(
- array(
- 'name' => __( 'Lesson Plans', 'wporg-learn' ),
- 'id' => 'wporg-learn-lesson-plans',
- 'before_widget' => '<div id="%1$s" class="block-widgets %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<h4 class="widget-title">',
- 'after_title' => '<h4>',
- )
- );
-
- // Register courses sidebar.
- register_sidebar(
- array(
- 'name' => __( 'Courses', 'wporg-learn' ),
- 'id' => 'wporg-learn-courses',
- 'before_widget' => '<div id="%1$s" class="widget %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<h4 class="widget-title">',
- 'after_title' => '</h4>',
- )
- );
-
- // Register workshops sidebar.
- register_sidebar(
- array(
- 'name' => __( 'Workshops', 'wporg-learn' ),
- 'id' => 'wporg-learn-workshops',
- 'before_widget' => '<div id="%1$s" class="widget %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<h4 class="widget-title">',
- 'after_title' => '</h4>',
- )
- );
-}
-add_filter( 'widgets_init', 'wporg_learn_register_sidebars', 10 );
-
-/**
- * Add fallback image to Jetpack when no featured image exists.
- *
- * @param string $default_image The default image URL.
- *
- * @return string Image URL.
- */
-function wporg_learn_return_default_image( $default_image ) {
- return 'https://s.w.org/images/learn-thumbnail-fallback.jpg?v=3';
-}
-add_action( 'jetpack_open_graph_image_default', 'wporg_learn_return_default_image', 15, 1 );
-
-/**
- * Disable the News XML Sitemap generated by Jetpack
- */
-add_filter( 'jetpack_news_sitemap_generate', '__return_false' );
-
-/**
- * Add file MIME types for upload.
- *
- * @param array $mime_types Default array of MIME types.
- *
- * @return array Updated MIME type array.
- */
-function wporg_learn_mime_types( $mime_types ) {
- $mime_types['vtt'] = 'text/vtt';
- return $mime_types;
-}
-add_filter( 'mime_types', 'wporg_learn_mime_types' );
-
-/**
- * Get the sticky Topic terms, with the selected topic first
- *
- * @param string $first The slug of the topic to return first.
- * @return array
- */
-function wporg_learn_get_sticky_topics_with_selected_first( $first = 'general' ) {
- $first_topic;
- $topics = array();
- $all_topics = get_terms( array(
- 'taxonomy' => 'topic',
- 'hide_empty' => false,
- ) );
-
- foreach ( $all_topics as $topic ) {
- $is_sticky = get_term_meta( $topic->term_id, 'sticky', true );
-
- if ( $is_sticky ) {
- if ( $topic->slug === $first ) {
- $first_topic = $topic;
- } else {
- array_push( $topics, $topic );
- }
- }
- }
-
- if ( isset( $first_topic ) ) {
- array_unshift( $topics, $first_topic );
- }
-
- return $topics;
-}
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020headerphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: 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 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/header.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,89 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The Header template for our theme.
- *
- * Displays all of the <head> section and everything up till <div id="content">
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-
-use function WPOrg_Learn\Locale\{ locale_notice };
-
-// Temporarily until https://github.com/WordPress/wporg-mu-plugins/ is added to the Learn repo.
-if ( function_exists( '\WordPressdotorg\skip_to' ) ) {
- \WordPressdotorg\skip_to( '#main' );
-}
-
-// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
-echo do_blocks( '<!-- wp:wporg/global-header /-->' );
-
-$menu_items = array(
- '/tutorials/' => __( 'Tutorials', 'wporg-learn' ),
- '/online-workshops/' => __( 'Online Workshops', 'wporg-learn' ),
- '/courses/' => __( 'Courses', 'wporg-learn' ),
- '/lesson-plans/' => __( 'Lesson Plans', 'wporg-learn' ),
- '/contribute/' => __( 'Contribute', 'wporg-learn' ),
-);
-
-?>
-
-<div id="page" class="site">
- <div id="content">
- <header id="masthead" class="site-header <?php echo is_front_page() ? 'home' : ''; ?>" role="banner">
- <div class="site-branding">
- <?php if ( is_front_page() ) : ?>
- <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html( _x( 'Learn WordPress', 'Site title', 'wporg-learn' ) ); ?></a></h1>
-
- <p class="site-description">
- <?php
- /* Translators: subhead */
- esc_html_e( 'Whether you’re a first-time blogger or seasoned developer, there’s always more to learn. From community members all over the world, these vast resources will help you learn more about WordPress and share it with others.', 'wporg-learn' );
- ?>
- </p>
-
- <div class="search-form--is-inline search-form--is-constrained search-form--is-centered">
- <?php get_search_form(); ?>
- </div>
- <?php else : ?>
- <p class="site-title">
- <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
- <?php echo esc_html( _x( 'Learn', 'Site title', 'wporg-learn' ) ); ?>
- <span class="site-title--no-mobile"><?php echo esc_html( _x( 'WordPress', 'Site title', 'wporg-learn' ) ); ?></span>
- </a>
- </p>
- <nav id="site-navigation" class="main-navigation" role="navigation">
- <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>
- <div id="primary-menu" class="menu">
- <ul>
- <?php
- foreach ( $menu_items as $url_path => $text ) :
- $class = false !== strpos( $_SERVER['REQUEST_URI'], $url_path ) ? 'active' : ''; // phpcs:ignore
- ?>
- <li class="page_item">
- <a class="<?php echo esc_attr( $class ); ?>" href="<?php echo esc_url( home_url( $url_path ) ); ?>">
- <?php echo esc_html( $text ); ?>
- </a>
- </li>
- <?php endforeach; ?>
- <li><?php get_search_form( array( 'placeholder' => __( 'Search for a resource', 'wporg-learn' ) ) ); ?></li>
- </ul>
- </div>
- </nav><!-- #site-navigation -->
- <?php endif; ?>
-
- </div><!-- .site-branding -->
- </header><!-- #masthead -->
-
- <?php if ( function_exists( 'locale_notice' ) ) {
- locale_notice();
- } ?>
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020packagejson"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/package.json</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/package.json 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/package.json 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,41 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-{
- "name": "wporg-learn-theme",
- "version": "1.0.0",
- "description": "Theme for learn.wordpress.org",
- "author": "WordPress.org",
- "license": "GPL-2.0-or-later",
- "repository": {
- "type": "git",
- "url": "https://learn.wordpress.org"
- },
- "scripts": {
- "start": "grunt watch",
- "build": "grunt build",
- "dev": "grunt",
- "format:js": "wp-scripts format-js js",
- "lint:css": "wp-scripts lint-style css",
- "lint:js": "exit 0",
- "packages-update": "wp-scripts packages-update"
- },
- "browserslist": [
- "extends @wordpress/browserslist-config"
- ],
- "devDependencies": {
- "@wordpress/browserslist-config": "2.6.0",
- "@wordpress/scripts": "27.2.0",
- "autoprefixer": "9.6.1",
- "cssnano": "4.1.10",
- "grunt": "1.0.4",
- "grunt-contrib-watch": "1.1.0",
- "grunt-postcss": "0.9.0",
- "grunt-rtlcss": "2.0.1",
- "grunt-sass": "3.1.0",
- "grunt-sass-globbing": "1.5.1",
- "sass": "1.49.9",
- "pixrem": "5.0.0"
- },
- "stylelint": {
- "extends": "../../../../.stylelintrc",
- "ignoreFiles": ["*/vendor/*", "**/*.css", "**/*.css.map", "**/*.md"]
- }
-}
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020pagecontentcalendarphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-content-calendar.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/page-content-calendar.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-content-calendar.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,149 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * Template Name: Upcoming Content
- *
- * @package WPBBP
- */
-
-namespace WordPressdotorg\Theme;
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
- <main id="main" class="site-main">
-
- <div class="section-heading section-heading--with-space">
- <?php the_title( '<h1 class="section-heading_title h2">', '</h1>' ); ?>
- </div>
- <hr>
-
- <div id="main-content">
- <?php
- while ( have_posts() ) :
- the_post();
- ?>
- <div id="content-calendar" class="type-page">
- <div class="entry-content">
- <h2 aria-hidden="true"><?php esc_html_e( 'Scheduled Content', 'wporg-learn' ); ?></h2>
- <?php
-
- $args = array(
- 'post_type' => array( 'wporg_workshop', 'lesson-plan', 'course' ),
- 'post_status' => array( 'future' ),
- 'orderby' => 'date modified title',
- 'order' => 'ASC',
- 'posts_per_page' => -1,
- );
-
- $scheduled_content = get_posts( $args );
-
- if ( $scheduled_content ) {
- ?>
- <table>
- <thead>
- <tr>
- <th scope="col">
- <span aria-hidden="true"><?php esc_html_e( 'Title', 'wporg-learn' ); ?></span>
- </th>
- <th scope="col">
- <span aria-hidden="true"><?php esc_html_e( 'Type', 'wporg-learn' ); ?></span>
- </th>
- <th scope="col">
- <span aria-hidden="true"><?php esc_html_e( 'Publish Date', 'wporg-learn' ); ?></span>
- </th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach ( $scheduled_content as $scheduled_post ) { ?>
- <tr>
- <td><?php echo esc_html( $scheduled_post->post_title ); ?></td>
- <td><?php echo esc_html( get_post_type_object( $scheduled_post->post_type )->labels->singular_name ); ?></td>
- <td><?php echo esc_html( wp_date( 'j F Y @ G:i', strtotime( $scheduled_post->post_date ) ) ); ?> <?php esc_html_e( 'UTC', 'wporg-learn' ); ?></td>
- </tr>
- <?php
- } ?>
- </tbody>
- </table>
- <?php } else { ?>
- <p><em><?php esc_html_e( 'No content scheduled', 'wporg-learn' ); ?></em></p>
- <?php }
- ?>
-
- <h2 aria-hidden="true"><?php esc_html_e( 'Content in Progress', 'wporg-learn' ); ?></h2>
- <?php
-
- $statuses = array(
- 'draft',
- 'needs-vetting',
- 'approved-for-video',
- 'more-info-requested',
- 'needs-grammar-review',
- 'needs-seo-review',
- 'needs-tech-review',
- 'needs-video-review',
- );
-
- $args = array(
- 'post_type' => array( 'wporg_workshop', 'lesson-plan', 'course' ),
- 'post_status' => $statuses,
- 'orderby' => 'modified title',
- 'order' => 'DESC',
- 'posts_per_page' => -1,
- 'post__not_in' => array( 377, 378 ),
- );
-
- $drafted_content = get_posts( $args );
-
- if ( $drafted_content ) {
- ?>
- <table>
- <thead>
- <tr>
- <th scope="col">
- <span aria-hidden="true"><?php esc_html_e( 'Title', 'wporg-learn' ); ?></span>
- </th>
- <th scope="col">
- <span aria-hidden="true"><?php esc_html_e( 'Type', 'wporg-learn' ); ?></span>
- </th>
- <th scope="col">
- <span aria-hidden="true"><?php esc_html_e( 'Status', 'wporg-learn' ); ?></span>
- </th>
- <th scope="col">
- <span aria-hidden="true"><?php esc_html_e( 'Last Updated', 'wporg-learn' ); ?></span>
- </th>
- </tr>
- </thead>
- <tbody>
- <?php
- foreach ( $drafted_content as $drafted_post ) {
- ?>
- <tr>
- <td><?php echo esc_html( $drafted_post->post_title ); ?></td>
- <td><?php echo esc_html( get_post_type_object( $drafted_post->post_type )->labels->singular_name ); ?></td>
- <td><?php echo esc_html( get_post_status_object( $drafted_post->post_status )->label ); ?></td>
- <td><?php echo esc_html( wp_date( 'j F Y @ G:i', strtotime( $drafted_post->post_modified ) ) ); ?> <?php esc_html_e( 'UTC', 'wporg-learn' ); ?></td>
- </tr>
- <?php
- } ?>
- </tbody>
- </table>
- <?php } else { ?>
- <p><em><?php esc_html_e( 'No drafts in progress', 'wporg-learn' ); ?></em></p>
- <?php }
- ?>
- </div>
- </div>
-
- <?php
-
- get_template_part( 'template-parts/content', 'page' );
- endwhile; // End of the loop.
- ?>
- </div>
-
- </main><!-- #main -->
-
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020pagelessonplansphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-lesson-plans.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/page-lesson-plans.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-lesson-plans.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,221 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * Template Name: Lesson Plans
- *
- * @package WPBBP
- */
-
-get_header(); ?>
-
- <main id="main" class="site-main page-full-width">
- <?php
- while ( have_posts() ) :
- the_post();
- ?>
- <div id="lesson-plans" class="lp-list">
- <div class="lp-item">
- <div class="lp-item-wrap">
- <h2><a href="#">Lesson Plan Title</a></h2>
- <p class="lp-excerpt">The training team creates downloadable lesson plans and related materials for instructors to use in a live workshop environment. We are welcome you to join Training Team.</p>
- <div class="lp-details">
- <div class="left-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-clock"></span>
- Length: <strong>1 Hour</strong>
- </li>
- <li>
- <span class="dashicons dashicons-admin-users"></span>
- Audience: <strong>Developers</strong>
- </li>
- <li>
- <span class="dashicons dashicons-dashboard"></span>
- Level: <strong>Beginning</strong>
- </li>
- </ul>
- </div>
- <div class="right-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-welcome-learn-more"></span>
- Type of Instruction: <strong>Presentation, Demostration</strong>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
-
- <div class="lp-item">
- <div class="lp-item-wrap">
- <h2><a href="#">Lesson Plan Title</a></h2>
- <p class="lp-excerpt">The training team creates downloadable lesson plans and related materials for instructors to use in a live workshop environment. We are welcome you to join Training Team.</p>
- <div class="lp-details">
- <div class="left-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-clock"></span>
- Length: <strong>1 Hour</strong>
- </li>
- <li>
- <span class="dashicons dashicons-admin-users"></span>
- Audience: <strong>Developers</strong>
- </li>
- <li>
- <span class="dashicons dashicons-dashboard"></span>
- Level: <strong>Beginning</strong>
- </li>
- </ul>
- </div>
- <div class="right-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-welcome-learn-more"></span>
- Type of Instruction: <strong>Presentation, Demostration</strong>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
-
- <div class="lp-item">
- <div class="lp-item-wrap">
- <h2><a href="#">Lesson Plan Title</a></h2>
- <p class="lp-excerpt">The training team creates downloadable lesson plans and related materials for instructors to use in a live workshop environment. We are welcome you to join Training Team.</p>
- <div class="lp-details">
- <div class="left-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-clock"></span>
- Length: <strong>1 Hour</strong>
- </li>
- <li>
- <span class="dashicons dashicons-admin-users"></span>
- Audience: <strong>Developers</strong>
- </li>
- <li>
- <span class="dashicons dashicons-dashboard"></span>
- Level: <strong>Beginning</strong>
- </li>
- </ul>
- </div>
- <div class="right-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-welcome-learn-more"></span>
- Type of Instruction: <strong>Presentation, Demostration</strong>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
-
- <div class="lp-item">
- <div class="lp-item-wrap">
- <h2><a href="#">Lesson Plan Title</a></h2>
- <p class="lp-excerpt">The training team creates downloadable lesson plans and related materials for instructors to use in a live workshop environment. We are welcome you to join Training Team.</p>
- <div class="lp-details">
- <div class="left-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-clock"></span>
- Length: <strong>1 Hour</strong>
- </li>
- <li>
- <span class="dashicons dashicons-admin-users"></span>
- Audience: <strong>Developers</strong>
- </li>
- <li>
- <span class="dashicons dashicons-dashboard"></span>
- Level: <strong>Beginning</strong>
- </li>
- </ul>
- </div>
- <div class="right-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-welcome-learn-more"></span>
- Type of Instruction: <strong>Presentation, Demostration</strong>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
-
- <div class="lp-item">
- <div class="lp-item-wrap">
- <h2><a href="#">Lesson Plan Title</a></h2>
- <p class="lp-excerpt">The training team creates downloadable lesson plans and related materials for instructors to use in a live workshop environment. We are welcome you to join Training Team.</p>
- <div class="lp-details">
- <div class="left-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-clock"></span>
- Length: <strong>1 Hour</strong>
- </li>
- <li>
- <span class="dashicons dashicons-admin-users"></span>
- Audience: <strong>Developers</strong>
- </li>
- <li>
- <span class="dashicons dashicons-dashboard"></span>
- Level: <strong>Beginning</strong>
- </li>
- </ul>
- </div>
- <div class="right-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-welcome-learn-more"></span>
- Type of Instruction: <strong>Presentation, Demostration</strong>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
-
- <div class="lp-item">
- <div class="lp-item-wrap">
- <h2><a href="#">Lesson Plan Title</a></h2>
- <p class="lp-excerpt">The training team creates downloadable lesson plans and related materials for instructors to use in a live workshop environment. We are welcome you to join Training Team.</p>
- <div class="lp-details">
- <div class="left-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-clock"></span>
- Length: <strong>1 Hour</strong>
- </li>
- <li>
- <span class="dashicons dashicons-admin-users"></span>
- Audience: <strong>Developers</strong>
- </li>
- <li>
- <span class="dashicons dashicons-dashboard"></span>
- Level: <strong>Beginning</strong>
- </li>
- </ul>
- </div>
- <div class="right-items items">
- <ul>
- <li>
- <span class="dashicons dashicons-welcome-learn-more"></span>
- Type of Instruction: <strong>Presentation, Demostration</strong>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php
- endwhile; // End of the loop.
- ?>
-
- </main><!-- #main -->
-
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020pageonlineworkshopsphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-online-workshops.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/page-online-workshops.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-online-workshops.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,54 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * Template Name: Online Workshops
- *
- * @package WPBBP
- */
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
-<main id="main" class="site-main page-full-width">
-
- <section>
- <div class="section-heading section-heading--with-space">
- <?php the_title( '<h1 class="section-heading_title h2">', '</h1>' ); ?>
- </div>
-
- <hr>
-
- <?php
- while ( have_posts() ) :
- the_post();
- ?>
- <div class="section-intro">
- <div class="row between gutters">
- <p class="col-8">
- <?php esc_html_e( 'Online workshops are live sessions where you can learn alongside other WordPress enthusiasts. They are a safe zone where you can come as you are, develop new ideas, explore issues, ask questions, network over shared interests, exchange theories, collaborate on work, and thrive in uncertainty.', 'wporg-learn' ); ?>
- </p>
- <div class="col-4">
- <a class="button button-xlarge button-secondary" href="#apply-to-facilitate">
- <?php esc_html_e( 'Apply to facilitate', 'wporg-learn' ); ?>
- </a>
- <a class="button button-xlarge button-secondary" href="https://wordpress.tv/category/learn-wordpress-online-workshops/" target="_blank" rel="noreferrer noopener">
- <?php esc_html_e( 'View recorded online workshops', 'wporg-learn' ); ?>
- </a>
- </div>
- </div>
- </div>
-
- <hr>
-
- <div id="main-content">
- <?php get_template_part( 'template-parts/content', 'page' ); ?>
- </div>
- <?php
- endwhile; // End of the loop.
- ?>
- </section>
-
-</main><!-- #main -->
-
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020pagesubmitanideaphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-submit-an-idea.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/page-submit-an-idea.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page-submit-an-idea.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,46 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * Template Name: Submit an Idea
- *
- * @package WPBBP
- */
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
- <main id="main" class="site-main page-full-width">
-
- <?php
- while ( have_posts() ) :
- the_post();
- ?>
- <div id="submit-an-idea" class="type-page">
- <div class="entry-content">
- <section class="submit-idea-cta">
- <h2><?php esc_html_e( 'Is this a Workshop or Lesson Plan idea?', 'wporg-learn' ); ?></h2>
-
- <div class="idea-type-lists">
- <div class="col">
- <span class="dashicons dashicons-welcome-learn-more"></span>
- <p><?php esc_html_e( 'Workshops are a collection of lessons and a great way to get people hands-on with WordPress.', 'wporg-learn' ); ?></p>
- <a class="button button-primary button-large" href="/submit-workshop-idea"><?php esc_html_e( 'Workshop Idea', 'wporg-learn' ); ?></a>
- </div>
-
- <div class="col">
- <span class="dashicons dashicons-lightbulb"></span>
- <p><?php esc_html_e( 'Lesson plans are designed to guide and inspire others to deliver great content.', 'wporg-learn' ); ?></p>
- <a class="button button-primary button-large" href="/submit-lesson-idea"><?php esc_html_e( 'Lesson Idea', 'wporg-learn' ); ?></a>
- </div>
- </div>
- </section>
- </div>
- </div>
- <?php
- endwhile; // End of the loop.
- ?>
-
- </main><!-- #main -->
-
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020pagephp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/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/page.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/page.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,41 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The template for displaying all pages.
- *
- * This is the template that displays all pages by default.
- * Please note that this is the WordPress construct of pages
- * and that other 'pages' on your WordPress site may use a
- * different template.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
- <main id="main" class="site-main">
-
- <div class="section-heading section-heading--with-space">
- <?php the_title( '<h1 class="section-heading_title h2">', '</h1>' ); ?>
- </div>
- <hr>
-
- <div id="main-content">
- <?php
- while ( have_posts() ) :
- the_post();
-
- get_template_part( 'template-parts/content', 'page' );
- endwhile; // End of the loop.
- ?>
- </div>
-
- </main><!-- #main -->
-
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020searchphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/search.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/search.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/search.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,51 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The template for displaying search results pages.
- *
- * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-
-$search_query = sprintf(
- /* translators: Search query. */
- esc_html__( 'Search Results for: %s', 'wporg-learn' ),
- get_search_query()
-);
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
- <main id="main" class="site-main type-page">
-
- <section>
- <div class="section-heading section-heading--with-space">
- <h1 class="section-heading_title h2"><?php echo esc_html( $search_query ); ?></h1>
- </div>
- <hr>
- <div class="card-grid card-grid_2">
- <?php if ( have_posts() ) : ?>
- <?php while ( have_posts() ) :
- the_post();
- get_template_part(
- 'template-parts/component',
- 'card',
- wporg_learn_get_card_template_args( get_the_ID() )
- );
- endwhile; ?>
- <?php else : ?>
- <?php get_template_part( 'template-parts/content', 'none' ); ?>
- <?php endif; ?>
- </div>
- <?php the_posts_pagination(); ?>
- </section>
-
- <hr>
-
- <?php get_template_part( 'template-parts/component', 'submit-idea-cta' ); ?>
- </main>
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020searchformphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/searchform.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/searchform.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/searchform.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,28 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * Template for search form.
- *
- * @link https://codex.wordpress.org/Template_Hierarchy
- *
- * @package WPBBP
- */
-
-$placeholder = isset( $args['placeholder'] ) ? $args['placeholder'] : _x( 'Search for a learning resource', 'placeholder', 'wporg-learn' );
-?>
-<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
- <label for="s" class="screen-reader-text"><?php echo esc_html( _x( 'Search resources on Learn', 'label', 'wporg-learn' ) ); ?></label>
- <input
- type="search"
- id="s"
- class="search-field"
- placeholder="<?php echo esc_attr( $placeholder ); ?>"
- value="<?php the_search_query(); ?>"
- name="s"
- />
- <button class="button button-primary button-search">
- <i class="dashicons dashicons-search"></i>
- <span class="screen-reader-text">
- <?php esc_html_e( 'Search', 'wporg-learn' ); ?>
- </span>
- </button>
-</form>
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020sidebarcoursephp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar-course.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/sidebar-course.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar-course.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,19 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The sidebar containing the courses widget area.
- *
- * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-
-?>
-<aside class="lp-sidebar">
- <?php
- if ( is_active_sidebar( 'wporg-learn-courses' ) ) :
- dynamic_sidebar( 'wporg-learn-courses' );
- endif;
- ?>
-</aside>
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020sidebarlessonplanphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar-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/sidebar-lesson-plan.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar-lesson-plan.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,19 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The sidebar containing the lesson plans widget area.
- *
- * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-
-?>
-<aside class="lp-sidebar">
- <?php
- if ( is_active_sidebar( 'wporg-learn-lesson-plans' ) ) :
- dynamic_sidebar( 'wporg-learn-lesson-plans' );
- endif;
- ?>
-</aside>
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020sidebarworkshopphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar-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/sidebar-workshop.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar-workshop.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,20 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The sidebar containing the workshops widget area.
- *
- * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-?>
-<aside class="lp-sidebar">
- <div class="lp-details">
- <?php
- if ( is_active_sidebar( 'wporg-learn-workshops' ) ) :
- dynamic_sidebar( 'wporg-learn-workshops' );
- endif;
- ?>
- </div>
-</aside>
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020sidebarphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar.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/sidebar.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/sidebar.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,10 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The sidebar containing the main widget area
- *
- * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020singlecoursephp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single-course.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/single-course.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single-course.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,27 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The template for displaying all course post type single entry.
- *
- * @package WPBBP
- */
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
- <main id="main" class="site-main type-page">
-
- <div id="main-content">
- <?php
-
- while ( have_posts() ) :
- the_post();
-
- get_template_part( 'template-parts/content', 'single', array( 'context' => 'course' ) );
- endwhile; // End of the loop.
- ?>
- </div>
- </main><!-- #main -->
-
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020singlelessonplanphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single-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/single-lesson-plan.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single-lesson-plan.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,27 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The template for displaying all single post or CPT entry.
- *
- * @package WPBBP
- */
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
- <main id="main" class="site-main type-page">
-
- <div id="main-content">
- <?php
-
- while ( have_posts() ) :
- the_post();
-
- get_template_part( 'template-parts/content', 'single', array( 'context' => 'lesson-plan' ) );
- endwhile; // End of the loop.
- ?>
- </div>
- </main><!-- #main -->
-
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020singlewporg_workshopphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single-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/single-wporg_workshop.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single-wporg_workshop.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,37 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * Template Name: Workshop Ideas
- *
- * @package WPBBP
- */
-
-get_header();
-get_template_part( 'template-parts/component', 'breadcrumbs' );
-?>
-
- <main id="main" class="site-main page-full-width">
-
- <?php
- while ( have_posts() ) {
- the_post();
-
- /*
- * Old posts have the layout and presentation of meta data hardcoded into `post_content`, but
- * newer posts only store prose there. Meta data, layout, etc is handled in
- * `content-workshop-single.php`.
- */
- $layout_hardcoded = has_block( 'core/columns' )
- && has_block( 'wporg-learn/workshop-details' )
- && has_block( 'core/separator' );
-
- if ( $layout_hardcoded ) {
- get_template_part( 'template-parts/content', 'workshop-single-hardcoded' );
- } else {
- get_template_part( 'template-parts/content', 'workshop-single' );
- }
- }
- ?>
- </main><!-- #main -->
-
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020singlephp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single.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/single.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/single.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,29 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The template for displaying all single posts.
- *
- * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-
-get_header();
-?>
-
- <main id="main" class="site-main">
-
- <div id="main-content">
- <?php
- while ( have_posts() ) :
- the_post();
- get_template_part( 'template-parts/content', 'single' );
- endwhile; // End of the loop.
- ?>
- </div>
-
- </main><!-- #main -->
-
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020stylecss"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/style.css</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/style.css 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/style.css 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,18 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/**
- * Theme Name: WordPress.org Learn 2020
- * Theme URI: http://learn.wordpress.org/
- * Author: WordPress.org
- * Author URI: http://wordpress.org/
- * Description: A theme for learn.wordpress.org, built in 2020.
- * Version: 1.0.0
- * License: GNU General Public License v2 or later
- * License URI: http://www.gnu.org/licenses/gpl-2.0.html
- * Text Domain: wporg-learn
- * Template: wporg
- */
-/**
- * This theme, like WordPress, is licensed under the GPL.
- * Use it to make something cool, have fun,
- * and share what you've learned with others.
- */
-/* Sass is good */
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomyaudiencephp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-audience.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/taxonomy-audience.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-audience.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,2 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-require dirname( __FILE__ ) . '/archive-lesson-plan.php';
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomydurationphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-duration.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/taxonomy-duration.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-duration.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,2 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-require dirname( __FILE__ ) . '/archive-lesson-plan.php';
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomyinstruction_typephp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-instruction_type.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/taxonomy-instruction_type.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-instruction_type.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,2 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase -- Filename must have the taxonomy slug in it.
-require dirname( __FILE__ ) . '/archive-lesson-plan.php';
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomylevelphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-level.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/taxonomy-level.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-level.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,2 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-require dirname( __FILE__ ) . '/archive-lesson-plan.php';
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomytopicphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-topic.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/taxonomy-topic.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-topic.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,2 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-require dirname( __FILE__ ) . '/archive-lesson-plan.php';
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomywporg_lesson_plan_seriesphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-wporg_lesson_plan_series.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/taxonomy-wporg_lesson_plan_series.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-wporg_lesson_plan_series.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,43 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php
-/**
- * The template for displaying search results pages.
- *
- * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
- *
- * @package WordPressdotorg\Theme
- */
-
-namespace WordPressdotorg\Theme;
-
-get_header(); ?>
-
- <main id="main" class="site-main type-page">
- <section>
- <div class="section-heading section-heading--with-space">
- <?php the_archive_title( '<h1 class="section-heading_title h2">', '</h1>' ); ?>
- </div>
-
- <hr>
- <div class="card-grid card-grid_2">
- <?php if ( have_posts() ) : ?>
- <?php while ( have_posts() ) :
- the_post();
- get_template_part(
- 'template-parts/component',
- 'card',
- wporg_learn_get_card_template_args( get_the_ID() )
- );
- endwhile; ?>
- <?php else : ?>
- <?php get_template_part( 'template-parts/content', 'none' ); ?>
- <?php endif; ?>
- </div>
- <?php the_posts_pagination(); ?>
- </section>
-
- <hr>
-
- <?php get_template_part( 'template-parts/component', 'submit-idea-cta' ); ?>
- </main>
-<?php
-get_footer();
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2020taxonomywporg_workshop_seriesphp"></a>
<div class="delfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Deleted: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-wporg_workshop_series.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/taxonomy-wporg_workshop_series.php 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/taxonomy-wporg_workshop_series.php 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,2 +0,0 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase -- Filename is based on taxonomy ID.
-require dirname( __FILE__ ) . '/archive-wporg_workshop.php';
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024stylecss"></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-2024/style.css</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-2024/style.css 2024-08-12 03:03:00 UTC (rev 13962)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css 2024-08-12 03:47:32 UTC (rev 13963)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,7 +4,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Author: WordPress.org
</span><span class="cx" style="display: block; padding: 0 10px"> * Author URI: http://wordpress.org/
</span><span class="cx" style="display: block; padding: 0 10px"> * Description: A theme for learn.wordpress.org, built in 2024.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Version: 1.0.0-bbe9ed4
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Version: 1.0.0-c7f3917
</ins><span class="cx" style="display: block; padding: 0 10px"> * License: GNU General Public License v2 or later
</span><span class="cx" style="display: block; padding: 0 10px"> * License URI: http://www.gnu.org/licenses/gpl-2.0.html
</span><span class="cx" style="display: block; padding: 0 10px"> * Text Domain: wporg-learn
</span></span></pre>
</div>
</div>
</body>
</html>