<!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>[10461] sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn: WordPress.org Learn: Sync with GitHub</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/10461">10461</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/10461","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>coreymckrill</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-11-23 21:41:51 +0000 (Mon, 23 Nov 2020)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>WordPress.org Learn: Sync with GitHub
https://github.com/WordPress/learn/compare/2c9bbc5fc4eefb1f1a367f7bb8afcd3da6ef32b0...886286a12b9802be8d34715149f55ddf67832432</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildformassetphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/form.asset.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildformjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/form.js</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><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildstyleworkshopdetailscss">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-workshop-details.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildworkshopapplicationformassetphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-application-form.asset.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildworkshopapplicationformjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-application-form.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildworkshopdetailsassetphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-details.asset.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildworkshopdetailsjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-details.js</a></li>
<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_htmlwpcontentpluginswporglearnincpostmetaphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/post-meta.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsblockstylesstylescss">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/block-styles/style.scss</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopdetailssrceditjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/edit.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopdetailssrcstylescss">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/style.scss</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnviewsmetaboxworkshopdetailsphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/views/metabox-workshop-details.php</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnviewsblockworkshopdetailsphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/views/block-workshop-details.php</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildworkshopdetailscss">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-details.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopdetailssrceditorscss">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/editor.scss</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildformassetphp"></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/build/form.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/form.asset.php 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/form.asset.php 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php return array('dependencies' => array('wp-polyfill'), 'version' => '38da75eb1a45e1fba684aeff828c3f40');
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'a91213ce3ddb75c89e6d6c03d7344afc');
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildformjs"></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/build/form.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/form.js 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/form.js 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?functio
n(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8)}({8:function(e,t){var r,n,o=window.jQuery||{};r=o,n=document.querySelectorAll(".checkbox-and-text"),Array.from(n).forEach((function(e){var t=e.querySelector('input[type="checkbox"]'),r=e.querySelector('input[type="text"]');r.addEventListener("input",(function(e){return t.checked=!!e.target.value})),t.addEventListener("change",(function(e){e.target.checked?r.focus():r.value=""}))})),r(".do-select2").select2({dropdownParent:r(".wporg-learn-workshop-application-form")})}});
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?functio
n(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=7)}({7:function(e,t){var r,n,o=window.jQuery||{};r=o,n=document.querySelectorAll(".checkbox-and-text"),Array.from(n).forEach((function(e){var t=e.querySelector('input[type="checkbox"]'),r=e.querySelector('input[type="text"]');r.addEventListener("input",(function(e){return t.checked=!!e.target.value})),t.addEventListener("change",(function(e){e.target.checked?r.focus():r.value=""}))})),r(".do-select2").select2({dropdownParent:r(".wporg-learn-workshop-application-form")})}});
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildstyleblockstylescss"></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/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 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-block-styles.css 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,2 +1,2 @@
</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;color:#fff;text-align:center;font-size:13px;font-weight:600;padding:0.9rem;margin:32px 0}.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:#f8f9f9;color:#555;border:1px solid #d9dcdf;box-shadow:0 1px 0 #d9dcdf}.is-style-primary-full-width,.is-style-secondary-full-width{width:100%}.is-style-primary
-full-width .wp-block-button__link,.is-style-secondary-full-width .wp-block-button__link{width:100%}
</del><ins style="background-color: #dfd; 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{text-align:center;font-size:13px;font-weight:600;text-decoration:none;padding:0.9rem;margin:0 0 32px;background:#0085ba;color:#fff;border:1px solid #006799;box-shadow:0 1px 0 #006799}.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;color:#555;border:1px solid #ccc;box-shadow:0 1px 0 #ccc}.is-style-secondary .wp-block-button__link:hover,.is-style-secondary-full-width .wp-block-button__link:hover{background:#fafafa;color:#23282d;border:1px solid #999;box-shadow:0 1px 0 #999}.is-style-primary-full-width,.is-style-secondary-full-width{width:100%}.is-style-primary-full-width .wp-block-button__link,.is-style-secondary-full-width .wp-block-button__link{width:100%}
</ins><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildstyleworkshopdetailscss"></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/build/style-workshop-details.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-workshop-details.css 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/style-workshop-details.css 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,2 +1,2 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wp-block-wporg-learn-workshop-details{list-style:none;margin:0;padding:0;color:#555d66}.wp-block-wporg-learn-workshop-details li{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid #e2e4e7}.wp-block-wporg-learn-workshop-details li:last-child{border-bottom:1px solid #e2e4e7}.wp-block-wporg-learn-workshop-details li>span{text-align:right;flex-basis:50%;word-break:normal}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wp-block-wporg-learn-workshop-details{margin:0 0 32px}.wp-block-wporg-learn-workshop-details .workshop-details-list{list-style:none;margin:0;padding:0;color:#555d66}.wp-block-wporg-learn-workshop-details .workshop-details-list li{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid #e2e4e7}.wp-block-wporg-learn-workshop-details .workshop-details-list li:last-child{border-bottom:1px solid #e2e4e7}.wp-block-wporg-learn-workshop-details .workshop-details-list li>span{text-align:right;flex-basis:50%;word-break:normal}.wp-block-wporg-learn-workshop-details .is-style-primary-full-width .wp-block-button__link,.wp-block-wporg-learn-workshop-details .is-style-primary-full-width .wp-block-button__link:visited,.wp-block-wporg-learn-workshop-details .is-style-secondary-full-width .wp-block-button__link,.wp-block-wporg-learn-workshop-details .is-style-secondary-full-width
.wp-block-button__link:visited{margin:32px 0 0}
</ins><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildworkshopapplicationformassetphp"></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/build/workshop-application-form.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/workshop-application-form.asset.php 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-application-form.asset.php 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php return array('dependencies' => array('wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '964ac1275181d5d961676253bd2b5e77');
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php return array('dependencies' => array('wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '92e10fd1977401e28400b00c499bc7b6');
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildworkshopapplicationformjs"></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/build/workshop-application-form.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/workshop-application-form.js 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-application-form.js 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?functio
n(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.components}()},,,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=n(2),c=n(3);Object(r.registerBlockType)("wporg-learn/workshop-application-form",{title:Object(o.__)("Workshop Application Form","wporg-learn"),description:Object(o.__)("Render a form for applying to present a workshop.","wporg-learn"),category:"widgets",icon:"forms",supports:{html:!1},edit:function(){return Object(i.createElement)(c.Placeholder,{label:Object(o.__)("Workshop Application Form","wporg-learn"),instructions:Object(o.__)("
;This will render a form on the front end.","wporg-learn")})},save:function(){return null}})}]);
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?functio
n(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.components}()},,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=n(2),c=n(3);Object(r.registerBlockType)("wporg-learn/workshop-application-form",{title:Object(o.__)("Workshop Application Form","wporg-learn"),description:Object(o.__)("Render a form for applying to present a workshop.","wporg-learn"),category:"widgets",icon:"forms",supports:{html:!1},edit:function(){return Object(i.createElement)(c.Placeholder,{label:Object(o.__)("Workshop Application Form","wporg-learn"),instructions:Object(o.__)("
This will render a form on the front end.","wporg-learn")})},save:function(){return null}})}]);
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildworkshopdetailsassetphp"></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/build/workshop-details.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/workshop-details.asset.php 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-details.asset.php 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php return array('dependencies' => array('wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '176b71733a002b7dac08abaf7c214ae1');
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php return array('dependencies' => array('wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'df4925d2bca7070e99b014934f02be79');
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildworkshopdetailscss"></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/workshop-details.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/workshop-details.css 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-details.css 2020-11-23 21:41:51 UTC (rev 10461)
</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">-.wp-block-wporg-learn-workshop-details{min-height:150px;padding:16px;display:flex;flex-direction:column;background:#eee;align-items:center;justify-content:center;font-size:14px}.wp-block-wporg-learn-workshop-details p{margin:4px !important;text-align:center;font-size:18px !important;line-height:22px !important}.wp-block-wporg-learn-workshop-details p:last-child{font-size:10px !important}
-
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildworkshopdetailsjs"></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/build/workshop-details.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/workshop-details.js 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/workshop-details.js 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-(window.wporgLearnPlugin=window.wporgLearnPlugin||[]).push([[3],{6:function(e,t,n){}}]),function(e){function t(t){for(var r,i,u=t[0],a=t[1],c=t[2],s=0,f=[];s<u.length;s++)i=u[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&f.push(o[i][0]),o[i]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);for(p&&p(t);f.length;)f.shift()();return l.push.apply(l,c||[]),n()}function n(){for(var e,t=0;t<l.length;t++){for(var n=l[t],r=!0,u=1;u<n.length;u++){var a=n[u];0!==o[a]&&(r=!1)}r&&(l.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={5:0},l=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&
&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var u=window.wporgLearnPlugin=window.wporgLearnPlugin||[],a=u.push.bind(u);u.push=t,u=u.slice();for(var c=0;c<u.length;c++)t(u[c]);var p=a;l.push([10,3]),n()}([function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function()
{e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.element}()},,,,,function(e,t,n){},,,function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),l=(n(6),n(2));n(7);Object(r.registerBlockType)("wporg-learn/workshop-details",{title:Object(o.__)("Workshop Details","wporg-learn"),description:Object(o.__)("Show details about the workshop, pulled from post meta.","wporg-learn"),category:"widgets",icon:"smiley",supports:{html:!1},edit:function(e){var t=e.className;return Object(l.createElement)("div",{className:t},Object(l.createElement)("p",null,Object(o.__)("Workshop Details","wporg-learn")),Object(l.createElement)("p",null,Object(o.__)("This will be dynamically populated based on custom fields.","wporg-learn")))},save:function(){return null}})}]);
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+(window.wporgLearnPlugin=window.wporgLearnPlugin||[]).push([[3],{6:function(e,t,n){}}]),function(e){function t(t){for(var r,l,u=t[0],p=t[1],a=t[2],s=0,f=[];s<u.length;s++)l=u[s],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&f.push(o[l][0]),o[l]=0;for(r in p)Object.prototype.hasOwnProperty.call(p,r)&&(e[r]=p[r]);for(c&&c(t);f.length;)f.shift()();return i.push.apply(i,a||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,u=1;u<n.length;u++){var p=n[u];0!==o[p]&&(r=!1)}r&&(i.splice(t--,1),e=l(l.s=n[0]))}return e}var r={},o={5:0},i=[];function l(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,l),n.l=!0,n.exports}l.m=e,l.c=r,l.d=function(e,t,n){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},l.r=function(e){"undefined"!=typeof Symbol&
&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)l.d(n,r,function(t){return e[t]}.bind(null,r));return n},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="";var u=window.wporgLearnPlugin=window.wporgLearnPlugin||[],p=u.push.bind(u);u.push=t,u=u.slice();for(var a=0;a<u.length;a++)t(u[a]);var c=p;i.push([9,3]),n()}([function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){
e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.components}()},,,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=(n(6),n(2)),l=n(3);Object(r.registerBlockType)("wporg-learn/workshop-details",{title:Object(o.__)("Workshop Details","wporg-learn"),description:Object(o.__)("Show details about the workshop, pulled from post meta.","wporg-learn"),category:"widgets",icon:"smiley",supports:{html:!1},edit:function(){return Object(i.createElement)(l.Placeholder,{label:Object(o.__)("Workshop Details","wporg-learn")},Object(i.createElement)("p",null,Object(o.__)("This will be dynamically populated based on settings in the Workshop Details meta box.","wporg-learn")))},save:function(){return null}})}]);
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></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 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/blocks.php 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,8 +3,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> namespace WPOrg_Learn\Blocks;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> use Error;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+use Sensei_Lesson;
</ins><span class="cx" style="display: block; padding: 0 10px"> use function WordPressdotorg\Locales\get_locale_name_from_code;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-use function WPOrg_Learn\{ get_build_path, get_build_url };
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+use function WPOrg_Learn\{get_build_path, get_build_url, get_views_path};
</ins><span class="cx" style="display: block; padding: 0 10px"> use function WPOrg_Learn\Form\render_workshop_application_form;
</span><span class="cx" style="display: block; padding: 0 10px"> use function WPOrg_Learn\Post_Meta\get_workshop_duration;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,13 +50,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"> wp_register_style(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'workshop-details-editor-style',
- get_build_url() . 'workshop-details.css',
- array(),
- filemtime( get_build_path() . 'workshop-details.css' )
- );
-
- wp_register_style(
</del><span class="cx" style="display: block; padding: 0 10px"> 'workshop-details-style',
</span><span class="cx" style="display: block; padding: 0 10px"> get_build_url() . 'style-workshop-details.css',
</span><span class="cx" style="display: block; padding: 0 10px"> array(),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,7 +58,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> register_block_type( 'wporg-learn/workshop-details', array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'editor_script' => 'workshop-details-editor-script',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'editor_style' => 'workshop-details-editor-style',
</del><span class="cx" style="display: block; padding: 0 10px"> 'style' => 'workshop-details-style',
</span><span class="cx" style="display: block; padding: 0 10px"> 'render_callback' => __NAMESPACE__ . '\workshop_details_render_callback',
</span><span class="cx" style="display: block; padding: 0 10px"> ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -71,28 +64,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">- * Build the html output based on input fields
- *
- * @param array $fields
- * @return string HTML output.
- */
-function get_workshop_details_html_output( $fields ) {
- $output = '<ul class="wp-block-wporg-learn-workshop-details">';
-
- foreach ( $fields as $key => $value ) {
- $output .= sprintf(
- '<li><b>%1$s</b><span>%2$s</span></li>',
- $key,
- $value
- );
- }
-
- $output .= '</ul>';
-
- return $output;
-}
-
-/**
</del><span class="cx" style="display: block; padding: 0 10px"> * Render the block content (html) on the frontend of the site.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $attributes
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -122,9 +93,21 @@
</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"> // Remove empty fields.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $fields_to_output = array_filter( $fields );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $fields = array_filter( $fields );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- return get_workshop_details_html_output( $fields_to_output );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $lesson_id = get_post_meta( $post->ID, 'linked_lesson_id', true );
+ $quiz_url = '';
+ if ( $lesson_id && Sensei_Lesson::lesson_quiz_has_questions( $lesson_id ) ) {
+ $quiz_id = Sensei()->lesson->lesson_quizzes( $lesson_id );
+ if ( $quiz_id ) {
+ $quiz_url = get_permalink( $quiz_id );
+ }
+ }
+
+ ob_start();
+ require get_views_path() . 'block-workshop-details.php';
+
+ return ob_get_clean();
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnincpostmetaphp"></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/post-meta.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/post-meta.php 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/post-meta.php 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -114,6 +114,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'show_in_rest' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> )
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ register_post_meta(
+ $post_type,
+ 'linked_lesson_id',
+ array(
+ 'description' => __( 'The post ID of a lesson that covers this workshop.', 'wporg_learn' ),
+ 'type' => 'integer',
+ 'single' => true,
+ 'sanitize_callback' => 'absint',
+ 'show_in_rest' => true,
+ )
+ );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -311,6 +323,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $duration_interval = get_workshop_duration( $post, 'interval' );
</span><span class="cx" style="display: block; padding: 0 10px"> $locales = get_locales_with_english_names();
</span><span class="cx" style="display: block; padding: 0 10px"> $captions = get_post_meta( $post->ID, 'video_caption_language' ) ?: array();
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $all_lessons = get_posts( array(
+ 'post_type' => 'lesson',
+ 'post_status' => 'publish',
+ 'posts_per_page' => 999,
+ 'orderby' => 'title',
+ 'order' => 'asc',
+ ) );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> require get_views_path() . 'metabox-workshop-details.php';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -374,6 +393,9 @@
</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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $lesson_id = filter_input( INPUT_POST, 'linked-lesson-id', FILTER_SANITIZE_NUMBER_INT );
+ update_post_meta( $post_id, 'linked_lesson_id', $lesson_id );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $presenter_wporg_username = filter_input( INPUT_POST, 'presenter-wporg-username' );
</span><span class="cx" style="display: block; padding: 0 10px"> $usernames = array_map( 'trim', explode( ',', $presenter_wporg_username ) );
</span><span class="cx" style="display: block; padding: 0 10px"> delete_post_meta( $post_id, 'presenter_wporg_username' );
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsblockstylesstylescss"></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/js/block-styles/style.scss</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/js/block-styles/style.scss 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/block-styles/style.scss 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,14 +4,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .is-style-secondary-full-width {
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-block-button__link,
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-block-button__link:visited {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- background: #0085ba;
- color: #fff;
</del><span class="cx" style="display: block; padding: 0 10px"> text-align: center;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 13px;
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 600;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ text-decoration: none;
</ins><span class="cx" style="display: block; padding: 0 10px"> padding: 0.9rem;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- margin: 32px 0;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ margin: 0 0 32px;
+ background: #0085ba;
+ color: #fff;
+ border: 1px solid #006799;
+ box-shadow: 0 1px 0 #006799;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ .wp-block-button__link:hover {
+ background: #008ec2;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .is-style-secondary,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,11 +25,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .is-style-secondary-full-width {
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-block-button__link,
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-block-button__link:visited {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- background: #f8f9f9;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ background: #f7f7f7;
</ins><span class="cx" style="display: block; padding: 0 10px"> color: #555;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border: 1px solid #d9dcdf;
- box-shadow: 0 1px 0 #d9dcdf;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border: 1px solid #ccc;
+ box-shadow: 0 1px 0 #ccc;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ .wp-block-button__link:hover {
+ background: #fafafa;
+ color: #23282d;
+ border: 1px solid #999;
+ box-shadow: 0 1px 0 #999;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .is-style-primary-full-width,
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopdetailssrceditjs"></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/js/workshop-details/src/edit.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/js/workshop-details/src/edit.js 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/edit.js 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,39 +1,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Retrieves the translation of text.
- *
- * @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * WordPress dependencies
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> import { __ } from '@wordpress/i18n';
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import { Placeholder } from '@wordpress/components';
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/**
- * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
- * Those files can contain any CSS code that gets applied to the editor.
- *
- * @see https://www.npmjs.com/package/@wordpress/scripts#using-css
- */
-import './editor.scss';
-
-/**
- * The edit function describes the structure of your block in the context of the
- * editor. This represents what the editor will render when the block is used.
- *
- * @see https://developer.wordpress.org/block-editor/developers/block-api/block-edit-save/#edit
- *
- * @param {Object} [props] Properties passed from the editor.
- * @param {string} [props.className] Class name generated for the block.
- *
- * @return {WPElement} Element to render.
- */
-export default function Edit( { className } ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+export default function Edit() {
</ins><span class="cx" style="display: block; padding: 0 10px"> return (
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <div className={ className }>
- <p>{ __( 'Workshop Details', 'wporg-learn' ) }</p>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <Placeholder label={ __( 'Workshop Details', 'wporg-learn' ) }>
</ins><span class="cx" style="display: block; padding: 0 10px"> <p>
</span><span class="cx" style="display: block; padding: 0 10px"> { __(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'This will be dynamically populated based on custom fields.',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'This will be dynamically populated based on settings in the Workshop Details meta box.',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'wporg-learn'
</span><span class="cx" style="display: block; padding: 0 10px"> ) }
</span><span class="cx" style="display: block; padding: 0 10px"> </p>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- </div>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ </Placeholder>
</ins><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopdetailssrceditorscss"></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/js/workshop-details/src/editor.scss</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/js/workshop-details/src/editor.scss 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/editor.scss 2020-11-23 21:41:51 UTC (rev 10461)
</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">-/**
- * The following styles get applied inside the editor only.
- *
- * Replace them with your own styles or remove the file completely.
- */
-
-.wp-block-wporg-learn-workshop-details {
- min-height: 150px;
- padding: 16px;
- display: flex;
- flex-direction: column;
- background: #eee;
- align-items: center;
- justify-content: center;
- font-size: 14px;
-
- p {
- margin: 4px !important;
- text-align: center;
- font-size: 18px !important;
- line-height: 22px !important;
- }
-
- p:last-child {
- font-size: 10px !important;
- }
-}
-
</del></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopdetailssrcstylescss"></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/js/workshop-details/src/style.scss</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/js/workshop-details/src/style.scss 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/style.scss 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,25 +6,37 @@
</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"> .wp-block-wporg-learn-workshop-details {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- list-style: none;
- margin: 0;
- padding: 0;
- color: #555d66;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ margin: 0 0 32px;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- li {
- display: flex;
- justify-content: space-between;
- padding: 8px 0;
- border-top: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .workshop-details-list {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ color: #555d66;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- &:last-child {
- border-bottom: 1px solid #e2e4e7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ li {
+ display: flex;
+ justify-content: space-between;
+ padding: 8px 0;
+ border-top: 1px solid #e2e4e7;
+
+ &:last-child {
+ border-bottom: 1px solid #e2e4e7;
+ }
+
+ > span {
+ text-align: right;
+ flex-basis: 50%;
+ word-break: normal;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- > span {
- text-align: right;
- flex-basis: 50%;
- word-break: normal;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .is-style-primary-full-width,
+ .is-style-secondary-full-width {
+ .wp-block-button__link,
+ .wp-block-button__link:visited {
+ margin: 32px 0 0;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnviewsblockworkshopdetailsphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/views/block-workshop-details.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/views/block-workshop-details.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/views/block-workshop-details.php 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,30 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+
+namespace WPOrg_Learn\View\Blocks;
+
+defined( 'WPINC' ) || die();
+
+/** @var array $fields */
+/** @var string $quiz_url */
+?>
+
+<div class="wp-block-wporg-learn-workshop-details">
+ <?php if ( ! empty( $fields ) ) : ?>
+ <ul class="workshop-details-list">
+ <?php foreach ( $fields as $key => $value ) : ?>
+ <li>
+ <b><?php echo esc_html( $key ); ?></b>
+ <span><?php echo esc_html( $value ); ?></span>
+ </li>
+ <?php endforeach; ?>
+ </ul>
+ <?php endif; ?>
+
+ <?php if ( ! empty( $quiz_url ) ) : ?>
+ <div class="wp-block-button is-style-primary-full-width">
+ <a class="wp-block-button__link" href="<?php echo esc_attr( $quiz_url ); ?>" style="border-radius:5px">
+ <?php esc_html_e( 'Take a Quiz, Test Your Knowledge', 'wporg-learn' ); ?>
+ </a>
+ </div>
+ <?php endif; ?>
+</div>
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnviewsmetaboxworkshopdetailsphp"></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/views/metabox-workshop-details.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/views/metabox-workshop-details.php 2020-11-21 00:30:14 UTC (rev 10460)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/views/metabox-workshop-details.php 2020-11-23 21:41:51 UTC (rev 10461)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,6 +7,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /** @var DateInterval $duration_interval */
</span><span class="cx" style="display: block; padding: 0 10px"> /** @var array $locales */
</span><span class="cx" style="display: block; padding: 0 10px"> /** @var array $captions */
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/** @var array $all_lessons */
+/** @var array $selected_lessons */
</ins><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <p>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -70,8 +72,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> </select>
</span><span class="cx" style="display: block; padding: 0 10px"> </p>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<p>
+ <label for="workshop-linked-lesson-id"><?php esc_html_e( 'Linked Quiz', 'wporg_learn' ); ?></label>
+ <select id="workshop-linked-lesson-id" name="linked-lesson-id" style="width: 100%;">
+ <option value="" disabled hidden <?php selected( ! $post->linked_lesson_id ); ?>></option>
+ <?php foreach ( $all_lessons as $lesson ) : ?>
+ <option value="<?php echo esc_attr( $lesson->ID ); ?>" <?php selected( $lesson->ID, $post->linked_lesson_id ); ?>>
+ <?php echo esc_html( get_the_title( $lesson->ID ) ); ?>
+ </option>
+ <?php endforeach; ?>
+ </select>
+</p>
+
</ins><span class="cx" style="display: block; padding: 0 10px"> <script>
</span><span class="cx" style="display: block; padding: 0 10px"> ( function( $ ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#workshop-video-language, #workshop-video-caption-language' ).select2();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#workshop-video-language, #workshop-video-caption-language, #workshop-linked-lesson-id' ).select2();
</ins><span class="cx" style="display: block; padding: 0 10px"> } )( jQuery );
</span><span class="cx" style="display: block; padding: 0 10px"> </script>
</span></span></pre>
</div>
</div>
</body>
</html>