<!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>[14256] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024: Breathe 2024: Add site title icon for Playground site</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/14256">14256</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/14256","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-12-10 22:01:46 +0000 (Tue, 10 Dec 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'>Breathe 2024: Add site title icon for Playground site
See https://github.com/WordPress/wporg-make/issues/42</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgbreathe2024functionsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/functions.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgbreathe2024stylecss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/style.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgbreathe2024functionsphp"></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-breathe-2024/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-breathe-2024/functions.php 2024-12-10 16:08:50 UTC (rev 14255)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/functions.php 2024-12-10 22:01:46 UTC (rev 14256)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -551,6 +551,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Currently handles the following teams:
</span><span class="cx" style="display: block; padding: 0 10px"> * - Core Performance
</span><span class="cx" style="display: block; padding: 0 10px"> * - Openverse
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * - Playground
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Note: Defining a team's icon in this way also requires adjusting the site's styles to not expect
</span><span class="cx" style="display: block; padding: 0 10px"> * a ::before content of a dashicon font character. (Search style.css for: Adjustments for teams with SVG icons.)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -582,6 +583,17 @@
</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">+ elseif ( '/playground/' === $site->path ) :
+ $svg = [
+ 'viewbox' => '0 0 20 20',
+ 'paths' => [
+ 'M12.4226 14.5825C12.4286 14.3131 12.4061 14.0201 12.3503 13.7039C12.1329 12.4716 11.4189 11.0521 10.1826 9.81571C8.94619 8.57933 7.52669 7.8654 6.29442 7.64795C5.97853 7.5922 5.68592 7.56975 5.4168 7.57569C5.88224 9.00652 6.787 10.5205 8.1331 11.8666C9.47873 13.2123 10.9922 14.1169 12.4226 14.5825ZM3.36813 6.3275C3.14159 4.42798 3.59436 2.68578 4.7961 1.48404C7.41899 -1.13885 12.6165 -0.193889 16.4051 3.59468C20.1936 7.38324 21.1386 12.5808 18.5157 15.2036C17.3135 16.4058 15.5705 16.8585 13.6701 16.6314C13.4934 16.9719 13.2678 17.284 12.9919 17.5599C11.7227 18.8291 9.68842 19.0344 7.63054 18.3064C7.51496 18.6778 7.32136 19.0113 7.04626 19.2864C5.80767 20.525 3.3861 20.1116 1.63753 18.363C-0.111035 16.6144 -0.524454 14.1929 0.714135 12.9543C0.988909 12.6795 1.3219 12.486 1.69285 12.3704C0.96373 10.3116 1.16857 8.27616 2.43837 7.00636C2.7146 6.73012 3.02707 6.50429 3.36813 6.3275ZM5.06371 5.85902C4.95395 4.47114 5.33586 3.39703 6.02247 2.71042C6.81773 1.91516 8.13284 1.52866 9.85
322 1.84145C11.5655 2.15275 13.5023 3.14466 15.1787 4.82105C16.8551 6.49745 17.847 8.43428 18.1583 10.1465C18.4711 11.8669 18.0846 13.182 17.2893 13.9773C16.6025 14.6641 15.5278 15.0461 14.1391 14.9359C14.3018 12.9332 13.3392 10.5196 11.4089 8.58933C9.47914 6.65953 7.06613 5.69685 5.06371 5.85902ZM11.8657 16.2252C11.8334 16.263 11.8 16.2991 11.7655 16.3335C11.2555 16.8435 10.3747 17.1369 9.13587 16.9183C7.90359 16.7009 6.48409 15.9869 5.24772 14.7506C4.01134 13.5142 3.29741 12.0947 3.07996 10.8624C2.86135 9.62355 3.15474 8.74274 3.66475 8.23273C3.6994 8.19808 3.73577 8.16443 3.77385 8.13186C4.33353 9.84112 5.39321 11.5795 6.90673 13.093C8.41961 14.6059 10.1572 15.6653 11.8657 16.2252ZM4.02134 15.9769C4.64712 16.6027 5.3237 17.1268 6.02062 17.5438C5.99738 17.8222 5.90615 17.9738 5.81988 18.06C5.70404 18.1759 5.41511 18.336 4.82501 18.2353C4.23996 18.1354 3.5143 17.787 2.86391 17.1366C2.21352 16.4862 1.86515 15.7606 1.76527 15.1755C1.66453 14.5854 1.82467 14.2965 1.94051 14.1806C2.025
72 14.0954 2.17765 14.0031 2.45584 13.9799C2.87263 14.6761 3.39625 15.3518 4.02134 15.9769Z',
+ ],
+ 'pathFillRule' => 'evenodd',
+ 'pathClipRule' => 'evenodd',
+ 'pathStroke' => 'none',
+ ];
+
</ins><span class="cx" style="display: block; padding: 0 10px"> endif;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $svg['viewbox'] ) || empty( $svg['paths'] ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -591,7 +603,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> printf( '<svg aria-hidden="true" role="img" viewBox="%s" xmlns="http://www.w3.org/2000/svg">' . "\n", esc_attr( $svg['viewbox'] ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> foreach ( $svg['paths'] as $path ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- printf( "\t" . '<path d="%s" stroke="currentColor" fill="currentColor"/>' . "\n", esc_attr( $path ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ printf(
+ "\t" . '<path d="%s" stroke="%s" fill="currentColor" fill-rule="%s" clip-rule="%s"/>' . "\n",
+ esc_attr( $path ),
+ esc_attr( $svg['pathStroke'] ?? 'currentColor' ),
+ esc_attr( $svg['pathFillRule'] ),
+ esc_attr( $svg['pathClipRule'] )
+ );
</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"> echo "</svg>";
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgbreathe2024stylecss"></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-breathe-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-breathe-2024/style.css 2024-12-10 16:08:50 UTC (rev 14255)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/style.css 2024-12-10 22:01:46 UTC (rev 14256)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -421,7 +421,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Adjustments for teams with SVG icons. */
</span><span class="cx" style="display: block; padding: 0 10px"> .wporg-make.make-openverse .wp-block-site-title a::before,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.wporg-make.make-performance .wp-block-site-title a::before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wporg-make.make-performance .wp-block-site-title a::before,
+.wporg-make.make-playground .wp-block-site-title a::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> display: none;
</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">@@ -432,6 +433,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> margin-inline-end: 9px;
</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">+.wporg-make.make-playground .wp-block-site-title svg {
+ height: 18px;
+ width: 18px;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* Post form */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .admin-bar .o2-editor-toolbar-wrapper {
</span></span></pre>
</div>
</div>
</body>
</html>