<!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>[2555] sites/trunk/wordpress.org/public_html/wp-content: Plugins Directory: Implement basic Banner & Icon support (including porting the autotomatically generated icons plugin over) to give plugins a bit of individuality.</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 { 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/2555">2555</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/2555","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>dd32</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2016-02-23 04:12:32 +0000 (Tue, 23 Feb 2016)</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'>Plugins Directory: Implement basic Banner & Icon support (including porting the autotomatically generated icons plugin over) to give plugins a bit of individuality.
See <a href="http://meta.trac.wordpress.org/ticket/1584">#1584</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectoryclasswporgplugindirectorytemplatephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory-template.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectoryclasswporgplugindirectorytoolsphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory-tools.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectoryclasswporgplugindirectoryphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgpluginsplugincardphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/plugin-card.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgpluginssinglepluginphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/single-plugin.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgpluginsstylecss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/style.css</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectoryclasswporgplugingeopatternphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-geopattern.php</a></li>
<li>sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsCREDITS">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/CREDITS</a></li>
<li>sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/</li>
<li>sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternGeoPatternphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/GeoPattern.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVG.php</a></li>
<li>sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsBasephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Base.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsCirclephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Circle.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsGroupphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Group.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsPathphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Path.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsPolylinephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Polyline.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsRectanglephp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Rectangle.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110geopattern_loaderphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/geopattern_loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectoryclasswporgplugindirectorytemplatephp"></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/plugin-directory/class-wporg-plugin-directory-template.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/plugin-directory/class-wporg-plugin-directory-template.php       2016-02-23 01:40:44 UTC (rev 2554)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory-template.php 2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -134,4 +134,121 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                return $sections;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+       /**
+        * Retrieve the Plugin Icon details for a plugin.
+        *
+        * @param WP_Post|string $plugin An instance of a Plugin post, or the plugin slug.
+        * @return mixed
+        */
+       static function get_plugin_icon( $plugin, $output = 'raw' ) {
+               global $wporg_plugin_directory;
+               $plugin = $wporg_plugin_directory->get_or_create_plugin_post( $plugin );
+               if ( is_wp_error( $plugin ) ) {
+                       return false;
+               }
+               $plugin_slug = $plugin->post_name;
+
+               $raw_icons = get_post_meta( $plugin->ID, 'assets_icons', true );
+
+               $icon = $icon_2x = $vector = $generated = false;
+               foreach ( $raw_icons as $file => $info ) {
+                       switch ( $info['resolution'] ) {
+                               case '256x256':
+                                       $icon_2x = self::get_asset_url( $plugin_slug, $info );
+                                       break;
+                               case '128x128':
+                                       $icon = self::get_asset_url( $plugin_slug, $info );
+                                       break;
+                               case false && 'icon.svg' == $file:
+                                       $icon = self::get_asset_url( $plugin_slug, $info );
+                                       $vector = true;
+                                       break;
+                       }
+               }
+
+               if ( ! $icon ) {
+                       $generated = true;
+                       if ( ! class_exists( 'WPorg_Plugin_Geopattern' ) ) {
+                               include __DIR__ . '/class-wporg-plugin-geopattern.php';
+                       }
+                       $icon = new WPorg_Plugin_Geopattern;
+                       $icon->setString( $plugin->post_name );
+
+                       // Use the average color of the first known banner as the icon background color
+                       if ( $color = get_post_meta( $plugin->ID, 'assets_banners_color', true ) ) {
+                               if ( strlen( $color ) == 6 && strspn( $color, 'abcdef0123456789' ) == 6 ) {
+                                       $icon->setColor( '#' . $color );
+                               }
+                       }
+
+                       $icon = $icon->toDataURI();
+               }
+
+               switch ( $output ) {
+                       case 'html':
+                               $id = "plugin-icon-{$plugin_slug}";
+                               $html = "<style type='text/css'>";
+                               $html .= "#{$id} { width:128px; height:128px; background-image: url('{$icon}'); background-size:128px 128px; }";
+                               if ( ! empty( $icon_2x ) && ! $generated ) {
+                                       $html .= "@media only screen and (-webkit-min-device-pixel-ratio: 1.5) { #{$id} { background-image: url('{$icon_2x}'); } }";
+                               }
+                               $html .= "</style>";
+                               $html .= "<div class='plugin-icon' id='{$id}'></div>";
+
+                               return $html;
+                               break;
+                       case 'raw':
+                       default:
+                               return compact( 'icon', 'icon_2x', 'vector', 'generated' );
+               }
+       }
+
+       /**
+        * Retrieve the Plugin Icon details for a plugin.
+        *
+        * @param WP_Post|string $plugin An instance of a Plugin post, or the plugin slug.
+        * @return mixed
+        */
+       static function get_plugin_banner( $plugin, $output = 'raw' ) {
+               global $wporg_plugin_directory;
+               $plugin = $wporg_plugin_directory->get_or_create_plugin_post( $plugin );
+               if ( is_wp_error( $plugin ) ) {
+                       return false;
+               }
+               $plugin_slug = $plugin->post_name;
+
+               $raw_banners = get_post_meta( $plugin->ID, 'assets_banners', true );
+
+               $banner = $banner_2x = false;
+               foreach ( $raw_banners as $file => $info ) {
+                       switch ( $info['resolution'] ) {
+                               case '1544x500':
+                                       $banner_2x = self::get_asset_url( $plugin_slug, $info );
+                                       break;
+                               case '772x250':
+                                       $banner = self::get_asset_url( $plugin_slug, $info );
+                                       break;
+                       }
+               }
+
+               if ( ! $banner ) {
+                       return false;
+               }
+
+               switch ( $output ) {
+                       case 'raw':
+                       default:
+                               return compact( 'banner', 'banner_2x' );
+               }
+       }
+
+       static function get_asset_url( $plugin, $asset ) {
+               return esc_url( sprintf(
+                       'https://ps.w.org/%s/assets/%s?rev=%s',
+                       $plugin,
+                       $asset['filename'],
+                       $asset['revision']
+               ) );
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectoryclasswporgplugindirectorytoolsphp"></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/plugin-directory/class-wporg-plugin-directory-tools.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/plugin-directory/class-wporg-plugin-directory-tools.php  2016-02-23 01:40:44 UTC (rev 2554)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory-tools.php    2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,7 +23,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $data->sections['screenshots'] ); // Useless.
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Sanitize contributors.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                var_dump($data);
</del><span class="cx" style="display: block; padding: 0 10px">                 foreach ( $data->contributors as $i => $name ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( get_user_by( 'login', $name ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                continue;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -37,4 +36,27 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                return $data;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+       /**
+        * Retrieve the average color of a specified image.
+        * This currently relies upon the Jetpack libraries.
+        *
+        * @param $file_location string URL or filepath of image
+        * @return string|bool Average color as a hex value, False on failure
+        */
+       static function get_image_average_color( $file_location ) {
+               if ( ! class_exists( 'Tonesque' ) && function_exists( 'jetpack_require_lib' ) ) {
+                       jetpack_require_lib( 'tonesque' );
+               }
+               if ( ! class_exists( 'Tonesque' ) ) {
+                       return false;
+               }
+
+               $tonesque = new Tonesque( $file_location );
+               if ( $tonesque ) {
+                       return $tonesque->color();
+               }
+
+               return false;
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectoryclasswporgplugindirectoryphp"></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/plugin-directory/class-wporg-plugin-directory.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/plugin-directory/class-wporg-plugin-directory.php        2016-02-23 01:40:44 UTC (rev 2554)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory.php  2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -235,8 +235,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function split_post_content_into_pages( $content ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $_pages        = preg_split( "#<!--section=(.+?)-->#", $content, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
</span><span class="cx" style="display: block; padding: 0 10px">                $content_pages = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'stats'      => '[wporg-plugins-stats]',
-                       'developers' => '[wporg-plugins-developer]',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'screenshots' => '[wporg-plugins-screenshots]',
+                       'stats'       => '[wporg-plugins-stats]',
+                       'developers'  => '[wporg-plugins-developer]',
</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">                for ( $i = 0; $i < count( $_pages ); $i += 2 ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -249,4 +250,38 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                return $content_pages;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+       /**
+        * Retrieve the WP_Post object representing a given plugin.
+        *
+        * @param $plugin_slug string|WP_Post The slug of the plugin to retrieve.
+        * @return WP_Post|WP_Error
+        */
+       public function get_or_create_plugin_post( $plugin_slug ) {
+               if ( $plugin_slug instanceof WP_Post ) {
+                       return $plugin_slug;
+               }
+
+               // get_post_by_slug();
+               $posts = get_posts( array( 'post_type' => 'plugin', 'name' => $plugin_slug, 'post_status' => 'any', 'fields' => 'ids' ) );
+
+               if ( $posts ) {
+                       $id = reset( $posts );
+               } else {
+                       $id = wp_insert_post( array(
+                               'post_type' => 'plugin',
+                               'post_status' => 'pending',
+                               'post_name' => $plugin_slug,
+                               'post_title' => $plugin_slug,
+                               'post_content' => '',
+                       ), true );
+
+                       if ( is_wp_error( $id ) ) {
+                               return $id;
+                       }
+               }
+
+               $plugin = get_post( $id );
+               return $plugin;
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectoryclasswporgplugingeopatternphp"></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/plugin-directory/class-wporg-plugin-geopattern.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/plugin-directory/class-wporg-plugin-geopattern.php                               (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-geopattern.php 2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,127 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+
+require __DIR__ . '/libs/geopattern-1.1.0/geopattern_loader.php';
+
+class WPorg_Plugin_Geopattern extends \RedeyeVentures\GeoPattern\GeoPattern {
+
+       var $slug; // Hashed to generate pattern
+       var $text; // Text to be overlaid
+       var $textcolor = 'black';
+
+       function __construct($options=array()) {
+               parent::__construct( $options );
+
+               if ( isset( $options['text'] ) )
+                       $this->text = $options['text'];
+
+               if ( isset( $options['textcolor'] ) )
+                       $this->textcolor = $options['textcolor'];
+
+               // Replace the base SVG object with our own, so the dimensions are gettable.
+               $this->svg = new WPorg_Plugin_Geopattern_SVG();
+       }
+
+       function setText( $text ) {
+               $this->text = $text;
+       }
+
+       function setTextColor( $color ) {
+               $this->textcolor = $color;
+       }
+
+       function generateText() {
+               $size = min( $this->svg->getHeight(), $this->svg->getWidth() );
+               $text_height = floor( $size * 0.8 ) . 'px';
+
+               $this->svg->addText( $this->text, '50%', $text_height, 'middle', "font-family: Times New Roman, serif; font-size: {$text_height}; font-weight: normal; fill: {$this->textcolor};" );
+       }
+
+       public function toSVG( $width = 128, $height = 128 ) {
+               $this->svg = new WPorg_Plugin_Geopattern_SVG();
+               $this->generateBackground();
+
+               // Work around a bug in 1.1.0: the hash-based pattern selection doesn't account for the size of the pattern array and can choose a null result.
+               $this->setGenerator( $this->patterns[$this->hexVal(20, 1) % count( $this->patterns )] );
+
+               $this->generatePattern();
+
+               #if ( $this->svg->getWidth() < $width || $this->svg->getHeight() < $height ) {
+                       $this->svg->setViewBox( 0, 0, $this->svg->getWidth(), $this->svg->getHeight() );
+               #}
+
+               if ( $this->text ) {
+                       $inner = $this->svg;
+
+                       // Outer SVG, containing the text and nested inner SVG.
+                       // Needed because of aspect ratio problems with the background pattern. The outer is square, inner may be a different shape.
+                       $this->svg = new PluginSVG();
+                       $this->svg->setWidth( $width );
+                       $this->svg->setHeight( $height );
+                       $this->svg->addNested( $inner );
+                       $this->generateText();
+               }
+
+               return $this->svg->getString();
+
+    }
+
+}
+
+// The base SVG class doesn't provide functions for getting dimensions, so..
+class WPorg_Plugin_Geopattern_SVG extends \RedeyeVentures\GeoPattern\SVG {
+
+       protected $viewbox;
+
+       function getWidth() {
+               return $this->width;
+       }
+
+       function getHeight() {
+               return $this->height;
+       }
+
+    protected function getSvgHeader() {
+               if ( $this->viewbox )
+                       return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"{$this->width}\" height=\"{$this->height}\" viewbox=\"{$this->viewbox}\" preserveAspectRatio=\"none\">";
+               else
+                       return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"{$this->width}\" height=\"{$this->height}\">";
+    }
+
+    public function addText( $text, $x, $y, $text_anchor, $style, $args=array() ) {
+        $element = new WPorg_Plugin_Geopattern_SVGText($text, $x, $y, $text_anchor, $style, $args);
+        $this->svgString .= $element;
+        return $this;
+       }
+
+       public function addNested( $svg ) {
+               if ( method_exists( $svg, 'getString' ) )
+                       $this->svgString .= $svg->getString();
+       }
+
+       public function setViewBox( $x, $y, $w, $h ) {
+               $this->viewbox = esc_attr( "$x $y $w $h" );
+       }
+
+}
+
+// Nor does it support text.
+class WPorg_Plugin_Geopattern_SVGText extends \RedeyeVentures\GeoPattern\SVGElements\Base {
+       protected $tag = 'text';
+       protected $text;
+
+       function __construct($text, $x, $y, $text_anchor, $style, $args=array()) {
+               $this->elements = array( 
+                       'x' => $x,
+                       'y' => $y,
+                       'text-anchor' => $text_anchor,
+                       'style' => $style,
+                       );
+               $this->text = esc_html( $text );
+               parent::__construct($args);
+       }
+
+       public function getString() {
+               return "<{$this->tag}{$this->elementsToString()}{$this->argsToString()}>{$this->text}</{$this->tag}>";
+       }
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-geopattern.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsCREDITS"></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/plugin-directory/libs/CREDITS</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/plugin-directory/libs/CREDITS                            (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/CREDITS      2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+GeoPattern-php - MIT Licensed, https://github.com/redeyeventures/geopattern-php
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternGeoPatternphp"></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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/GeoPattern.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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/GeoPattern.php                         (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/GeoPattern.php   2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,1327 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php namespace RedeyeVentures\GeoPattern;
+
+use RedeyeVentures\GeoPattern\SVGElements\Polyline;
+use RedeyeVentures\GeoPattern\SVGElements\Rectangle;
+use RedeyeVentures\GeoPattern\SVGElements\Group;
+
+class GeoPattern {
+
+    protected $string;
+    protected $baseColor;
+    protected $color;
+    protected $generator;
+
+    protected $hash;
+    protected $svg;
+
+    protected $patterns = [
+        'octogons',
+        'overlapping_circles',
+        'plus_signs',
+        'xes',
+        'sine_waves',
+        'hexagons',
+        'overlapping_rings',
+        'plaid',
+        'triangles',
+        'squares',
+        'concentric_circles',
+        'diamonds',
+        'tessellation',
+        'nested_squares',
+        'mosaic_squares',
+        'triangles_rotated',
+        'chevrons',
+    ];
+    const FILL_COLOR_DARK = '#222';
+    const FILL_COLOR_LIGHT = '#ddd';
+    const STROKE_COLOR = '#000';
+    const STROKE_OPACITY = '0.02';
+    const OPACITY_MIN = '0.02';
+    const OPACITY_MAX = '0.15';
+
+    function __construct($options=array())
+    {
+        // Set string if provided. If not, set default.
+        if (isset($options['string'])) {
+            $this->setString($options['string']);
+        } else {
+            $this->setString(time());
+        }
+
+        // Set base color if provided. If not, set default.
+        if (isset($options['baseColor'])) {
+            $this->setBaseColor($options['baseColor']);
+        } else {
+            $this->setBaseColor('#933c3c');
+        }
+
+        // Set color if provided.
+        if (isset($options['color'])) {
+            $this->setColor($options['color']);
+        }
+
+        // Set generator if provided. If not, leave null.
+        if (isset($options['generator']))
+            $this->setGenerator($options['generator']);
+
+        $this->svg = new SVG();
+    }
+
+    // Fluent Interfaces
+    public function setString($string)
+    {
+        $this->string = $string;
+        $this->hash = sha1($this->string);
+        return $this;
+    }
+
+    /**
+     * @return string
+     */
+    public function getString()
+    {
+        return $this->string;
+    }
+
+    public function setBaseColor($baseColor)
+    {
+        if(preg_match('/^#[a-f0-9]{6}$/i', $baseColor)) //hex color is valid
+        {
+            $this->baseColor = $baseColor;
+            return $this;
+        }
+        throw new \InvalidArgumentException("$baseColor is not a valid hex color.");
+    }
+
+    public function setColor($color)
+    {
+        if(preg_match('/^#[a-f0-9]{6}$/i', $color)) //hex color is valid
+        {
+            $this->color = $color;
+            return $this;
+        }
+        throw new \InvalidArgumentException("$color is not a valid hex color.");
+    }
+
+    public function setGenerator($generator)
+    {
+        $generator = strtolower($generator);
+        if (in_array($generator, $this->patterns) || is_null($generator)) {
+            $this->generator = $generator;
+            return $this;
+        }
+        throw new \InvalidArgumentException("$generator is not a valid generator type.");
+    }
+
+    public function toSVG()
+    {
+        $this->svg = new SVG();
+        $this->generateBackground();
+        $this->generatePattern();
+        return (string) $this->svg;
+    }
+
+    public function toBase64()
+    {
+        return base64_encode($this->toSVG());
+    }
+
+    public function toDataURI()
+    {
+        return "data:image/svg+xml;base64,{$this->toBase64()}";
+    }
+
+    public function toDataURL()
+    {
+        return "url(\"{$this->toDataURI()}\")";
+    }
+
+    public function __toString() {
+        return $this->toSVG();
+    }
+
+    // Generators
+    protected function generateBackground()
+    {
+        $hueOffset = $this->map($this->hexVal(14, 3), 0, 4095, 0, 359);
+        $satOffset = $this->hexVal(17, 1);
+        $baseColor = $this->hexToHSL($this->baseColor);
+        $color     = $this->color;
+
+        $baseColor['h'] = $baseColor['h'] - $hueOffset;
+
+
+        if ($satOffset % 2 == 0)
+            $baseColor['s'] = $baseColor['s'] + $satOffset/100;
+        else
+            $baseColor['s'] = $baseColor['s'] - $satOffset/100;
+
+        if (isset($color))
+            $rgb = $this->hexToRGB($color);
+        else
+            $rgb = $this->hslToRGB($baseColor['h'], $baseColor['s'], $baseColor['l']);
+
+        $this->svg->addRectangle(0, 0, "100%", "100%", ['fill' => "rgb({$rgb['r']}, {$rgb['g']}, {$rgb['b']})"]);
+    }
+
+    protected function generatePattern()
+    {
+        if (is_null($this->generator))
+            $pattern = $this->patterns[$this->hexVal(20, 1)];
+        else
+            $pattern = $this->generator;
+
+        $function = 'geo'.str_replace(' ', '', ucwords(str_replace('_', ' ', $pattern)));
+
+        if (method_exists($this, $function))
+            $this->$function();
+    }
+
+    // Pattern Makers
+    protected function geoHexagons()
+    {
+        $scale = $this->hexVal(0, 1);
+        $sideLength = $this->map($scale, 0, 15, 8, 60);
+        $hexHeight = $sideLength * sqrt(3);
+        $hexWidth = $sideLength * 2;
+        $hex = $this->buildHexagonShape($sideLength);
+        $this->svg->setWidth(($hexWidth * 3) + ($sideLength * 3))
+            ->setHeight($hexHeight * 6);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $dy = ($x % 2 == 0) ? ($y * $hexHeight) : ($y*$hexHeight + $hexHeight / 2);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+                $styles = [
+                    'stroke' => self::STROKE_COLOR,
+                    'stroke-opacity' => self::STROKE_OPACITY,
+                    'fill-opacity' => $opacity,
+                    'fill' => $fill,
+                ];
+
+                $onePointFiveXSideLengthMinusHalfHexWidth = $x * $sideLength * 1.5 - $hexWidth / 2;
+                $dyMinusHalfHexHeight = $dy - $hexHeight / 2;
+                $this->svg->addPolyline($hex, array_merge($styles, ['transform' => "translate($onePointFiveXSideLengthMinusHalfHexWidth, $dyMinusHalfHexHeight)"]));
+
+                // Add an extra one at top-right, for tiling.
+                if ($x == 0) {
+                    $onePointFiveSideLengthSixMinusHalfHexWidth = 6 * $sideLength * 1.5 - $hexWidth / 2;
+                    $this->svg->addPolyline($hex, array_merge($styles, ['transform' => "translate($onePointFiveSideLengthSixMinusHalfHexWidth, $dyMinusHalfHexHeight)"]));
+                }
+
+                // Add an extra row at the end that matches the first row, for tiling.
+                if ($y == 0) {
+                    $dy2 = ($x % 2 == 0) ? (6 * $hexHeight) : (6 * $hexHeight + $hexHeight / 2);
+                    $dy2MinusHalfHexHeight = $dy2 - $hexHeight / 2;
+                    $this->svg->addPolyline($hex, array_merge($styles, ['transform' => "translate($onePointFiveXSideLengthMinusHalfHexWidth, $dy2MinusHalfHexHeight)"]));
+                }
+
+                // Add an extra one at bottom-right, for tiling.
+                if ($x == 0 && $y == 0) {
+                    $onePointFiveSideLengthSixMinusHalfHexWidth = 6 * $sideLength * 1.5 - $hexWidth / 2;
+                    $fiveHexHeightPlusHalfHexHeight = 5 * $hexHeight + $hexHeight / 2;
+                    $this->svg->addPolyline($hex, array_merge($styles, ['transform' => "translate($onePointFiveSideLengthSixMinusHalfHexWidth, $fiveHexHeightPlusHalfHexHeight)"]));
+                }
+
+                $i++;
+            }
+        }
+    }
+
+    protected function geoSineWaves()
+    {
+        $period = floor($this->map($this->hexVal(0, 1), 0, 15, 100, 400));
+        $quarterPeriod = $period / 4;
+        $xOffset = $period / 4 * 0.7;
+        $amplitude = floor($this->map($this->hexVal(1, 1), 0, 15, 30, 100));
+        $waveWidth = floor($this->map($this->hexVal(2, 1), 0, 15, 3, 30));
+        $amplitudeString = number_format($amplitude);
+        $halfPeriod = number_format($period / 2);
+        $halfPeriodMinusXOffset = number_format($period / 2 - $xOffset);
+        $periodMinusXOffset = number_format($period - $xOffset);
+        $twoAmplitude = number_format(2 * $amplitude);
+        $onePointFivePeriodMinusXOffset = number_format($period * 1.5 - $xOffset);
+        $onePointFivePeriod = number_format($period * 1.5);
+        $str = "M0 $amplitudeString C $xOffset 0, $halfPeriodMinusXOffset 0, $halfPeriod $amplitudeString S $periodMinusXOffset $twoAmplitude, $period $amplitudeString S $onePointFivePeriodMinusXOffset 0, $onePointFivePeriod, $amplitudeString";
+
+        $this->svg->setWidth($period)
+            ->setHeight($waveWidth*36);
+        for ($i = 0; $i <= 35; $i++) {
+            $val = $this->hexVal($i, 1);
+            $opacity = $this->opacity($val);
+            $fill = $this->fillColor($val);
+            $styles = [
+                'fill' => 'none',
+                'stroke' => $fill,
+                'style' => [
+                    'opacity' => $opacity,
+                    'stroke-width' => "{$waveWidth}px"
+                ]
+            ];
+
+            $iWaveWidthMinusOnePointFiveAmplitude = $waveWidth * $i - $amplitude * 1.5;
+            $iWaveWidthMinusOnePointFiveAmplitudePlusThirtySixWaveWidth = $waveWidth * $i - $amplitude * 1.5 + $waveWidth * 36;
+            $this->svg->addPath($str, array_merge($styles, ['transform' => "translate(-$quarterPeriod, $iWaveWidthMinusOnePointFiveAmplitude)"]));
+            $this->svg->addPath($str, array_merge($styles, ['transform' => "translate(-$quarterPeriod, $iWaveWidthMinusOnePointFiveAmplitudePlusThirtySixWaveWidth)"]));
+
+        }
+    }
+
+    protected function geoChevrons()
+    {
+        $chevronWidth = $this->map($this->hexVal(0, 1), 0, 15, 30, 80);
+        $chevronHeight = $this->map($this->hexVal(0, 1), 0, 15, 30, 80);
+        $chevron = $this->buildChevronShape($chevronWidth, $chevronHeight);
+
+        $this->svg->setWidth($chevronWidth*6)
+            ->setHeight($chevronHeight*6*0.66);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+                $styles = [
+                    'stroke' => self::STROKE_COLOR,
+                    'stroke-opacity' => self::STROKE_OPACITY,
+                    'stroke-width' => '1',
+                    'fill-opacity' => $opacity,
+                    'fill' => $fill,
+                ];
+
+                $group = new Group();
+                $group->addItem($chevron[0])
+                    ->addItem($chevron[1]);
+
+                $xChevronWidth = $x * $chevronWidth;
+                $yPointSixSixChevronHeightMinusHalfChevronHeight = $y * $chevronHeight * 0.66 - $chevronHeight / 2;
+                $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($xChevronWidth,$yPointSixSixChevronHeightMinusHalfChevronHeight)"]));
+                // Add an extra row at the end that matches the first row, for tiling.
+                if ($y == 0) {
+                    $sixPointSixSixChevronHeightMinusHalfChevronHeight = 6 * $chevronHeight * 0.66 - $chevronHeight / 2;
+                    $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($xChevronWidth,$sixPointSixSixChevronHeightMinusHalfChevronHeight)"]));
+                }
+
+                $i++;
+            }
+        }
+
+    }
+
+    protected function geoPlusSigns()
+    {
+        $squareSize = $this->map($this->hexVal(0, 1), 0, 15, 10, 25);
+        $plusSize = $squareSize * 3;
+        $plusShape = $this->buildPlusShape($squareSize);
+
+        $this->svg->setWidth($squareSize*12)
+            ->setHeight($squareSize*12);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+                $dx = ($y % 2 == 0) ? 0 : 1;
+
+                $styles = [
+                    'fill' => $fill,
+                    'stroke' => self::STROKE_COLOR,
+                    'stroke-opacity' => self::STROKE_OPACITY,
+                    'style' => [
+                        'fill-opacity' => $opacity,
+                    ],
+                ];
+
+                $group = new Group();
+                $group->addItem($plusShape[0])
+                    ->addItem($plusShape[1]);
+
+                $t1 = $x * $plusSize - $x * $squareSize + $dx * $squareSize - $squareSize;
+                $t2 = $y * $plusSize - $y * $squareSize - $plusSize / 2;
+
+                $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($t1, $t2)"]));
+
+                // Add an extra column on the right for tiling.
+                if ($x == 0) {
+                    $xT1 = 4 * $plusSize - $x * $squareSize + $dx * $squareSize - $squareSize;
+                    $xT2 = $y * $plusSize - $y * $squareSize - $plusSize / 2;
+                    $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($xT1, $xT2)"]));
+                }
+
+                // Add an extra row on the bottom that matches the first row, for tiling.
+                if ($y == 0) {
+                    $yT1 = $x * $plusSize - $x * $squareSize + $dx * $squareSize - $squareSize;
+                    $yT2 = 4 * $plusSize - $y * $squareSize - $plusSize /2;
+                    $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($yT1, $yT2)"]));
+                }
+
+                // Add an extra one at top-right and bottom-right, for tiling.
+                if ($x == 0 && $y == 0) {
+                    $xyT1 = 4 * $plusSize - $x * $squareSize + $dx * $squareSize - $squareSize;
+                    $xyT2 = 4 * $plusSize - $y * $squareSize - $plusSize / 2;
+                    $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($xyT1, $xyT2)"]));
+                }
+
+                $i++;
+            }
+        }
+    }
+
+    protected function geoXes()
+    {
+        $squareSize = $this->map($this->hexVal(0, 1), 0, 15, 10, 25);
+        $xSize = $squareSize * 3 * 0.943;
+        $xShape = $this->buildPlusShape($squareSize);
+
+        $this->svg->setWidth($xSize*3)
+            ->setHeight($xSize*3);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+                $dy = ($x % 2 == 0) ? ($y * $xSize - $xSize * 0.5) : ($y * $xSize - $xSize * 0.5 + $xSize / 4);
+
+                $styles = [
+                    'fill' => $fill,
+                    'style' => [
+                        'opacity' => $opacity,
+                    ],
+                ];
+
+                $group = new Group();
+                $group->addItem($xShape[0])
+                    ->addItem($xShape[1]);
+
+                $t1 = $x * $xSize / 2 - $xSize / 2;
+                $t2 = $dy - $y * $xSize / 2;
+                $halfXSize = $xSize / 2;
+                $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($t1, $t2) rotate(45, $halfXSize, $halfXSize)"]));
+
+                // Add an extra column on the right for tiling.
+                if ($x == 0) {
+                    $xT1 = 6 * $xSize / 2 - $xSize / 2;
+                    $xT2 = $dy - $y * $xSize / 2;
+                    $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($xT1, $xT2) rotate(45, $halfXSize, $halfXSize)"]));
+                }
+
+                // Add an extra row on the bottom that matches the first row, for tiling.
+                if ($y == 0) {
+                    $dy = ($x % 2 == 0) ? (6 * $xSize - $xSize / 2) : (6 * $xSize - $xSize / 2 + $xSize / 4);
+                    $yT1 = $x * $xSize / 2 - $xSize / 2;
+                    $yT2 = $dy - 6 * $xSize / 2;
+                    $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($yT1, $yT2) rotate(45, $halfXSize, $halfXSize)"]));
+                }
+
+                // These can hang off the bottom, so put a row at the top for tiling.
+                if ($y == 5) {
+                    $y2T1 = $x * $xSize / 2 - $xSize / 2;
+                    $y2T2 = $dy - 11 * $xSize / 2;
+                    $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($y2T1, $y2T2) rotate(45, $halfXSize, $halfXSize)"]));
+                }
+
+                // Add an extra one at top-right and bottom-right, for tiling.
+                if ($x == 0 && $y == 0) {
+                    $xyT1 = 6 * $xSize / 2 - $xSize / 2;
+                    $xyT2 = $dy - 6 * $xSize / 2;
+                    $this->svg->addGroup($group, array_merge($styles, ['transform' => "translate($xyT1, $xyT2) rotate(45, $halfXSize, $halfXSize"]));
+                }
+
+                $i++;
+            }
+        }
+    }
+
+    protected function geoOverlappingCircles()
+    {
+        $scale = $this->hexVal(0, 1);
+        $diameter = $this->map($scale, 0, 15, 25, 200);
+        $radius = $diameter/2;
+
+        $this->svg->setWidth($radius*6)
+            ->setHeight($radius*6);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+                $styles = [
+                    'fill' => $fill,
+                    'style' => [
+                        'opacity' => $opacity,
+                    ],
+                ];
+
+                $this->svg->addCircle($x*$radius, $y*$radius, $radius, $styles);
+
+                // Add an extra one at top-right, for tiling.
+                if ($x == 0)
+                    $this->svg->addCircle(6*$radius, $y*$radius, $radius, $styles);
+
+                // Add an extra row at the end that matches the first row, for tiling.
+                if ($y == 0)
+                    $this->svg->addCircle($x*$radius, 6*$radius, $radius, $styles);
+
+                // Add an extra one at bottom-right, for tiling.
+                if ($x == 0 && $y == 0)
+                    $this->svg->addCircle(6*$radius, 6*$radius, $radius, $styles);
+
+                $i++;
+            }
+        }
+    }
+
+    protected function geoOctogons()
+    {
+        $squareSize = $this->map($this->hexVal(0, 1), 0, 15, 10, 60);
+        $tile = $this->buildOctogonShape($squareSize);
+
+        $this->svg->setWidth($squareSize*6)
+            ->setHeight($squareSize*6);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+
+                $xSquareSize = $x * $squareSize;
+                $ySquareSize = $y * $squareSize;
+
+                $this->svg->addPolyline($tile, [
+                    'fill' => $fill,
+                    'fill-opacity' => $opacity,
+                    'stroke' => self::STROKE_COLOR,
+                    'stroke-opacity' => self::STROKE_OPACITY,
+                    'transform' => "translate($xSquareSize, $ySquareSize)",
+                ]);
+
+                $i++;
+            }
+        }
+
+    }
+
+    protected function geoSquares()
+    {
+        $squareSize = $this->map($this->hexVal(0, 1), 0, 15, 10, 60);
+
+        $this->svg->setWidth($squareSize*6)
+            ->setHeight($squareSize*6);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+
+                $this->svg->addRectangle($x*$squareSize, $y*$squareSize, $squareSize, $squareSize, [
+                    'fill' => $fill,
+                    'fill-opacity' => $opacity,
+                    'stroke' => self::STROKE_COLOR,
+                    'stroke-opacity' => self::STROKE_OPACITY,
+                ]);
+
+                $i++;
+            }
+        }
+
+    }
+
+    protected function geoConcentricCircles()
+    {
+        $scale = $this->hexVal(0, 1);
+        $ringSize = $this->map($scale, 0, 15, 10, 60);
+        $strokeWidth = $ringSize / 5;
+
+        $this->svg->setWidth(($ringSize + $strokeWidth)*6)
+            ->setHeight(($ringSize + $strokeWidth)*6);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+
+                $cx = $x * $ringSize + $x * $strokeWidth + ($ringSize + $strokeWidth) / 2;
+                $cy = $y * $ringSize + $y * $strokeWidth + ($ringSize + $strokeWidth) / 2;
+                $halfRingSize = $ringSize / 2;
+
+                $this->svg->addCircle($cx, $cy, $halfRingSize, [
+                    'fill' => 'none',
+                    'stroke' => $fill,
+                    'style' => [
+                        'opacity' => $opacity,
+                        'stroke-width' => "{$strokeWidth}px",
+                    ],
+                ]);
+
+                $val = $this->hexVal(39-$i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+
+                $quarterRingSize = $ringSize / 4;
+
+                $this->svg->addCircle($cx, $cy, $quarterRingSize, [
+                    'fill' => $fill,
+                    'fill-opacity' => $opacity,
+                ]);
+
+                $i++;
+            }
+        }
+    }
+
+    protected function geoOverlappingRings()
+    {
+        $scale = $this->hexVal(0, 1);
+        $ringSize = $this->map($scale, 0, 15, 10, 60);
+        $strokeWidth = $ringSize / 4;
+
+        $this->svg->setWidth($ringSize*6)
+            ->setHeight($ringSize*6);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+
+                $styles = [
+                    'fill' => 'none',
+                    'stroke' => $fill,
+                    'style' => [
+                        'opacity' => $opacity,
+                        'stroke-width' => "{$strokeWidth}px",
+                    ],
+                ];
+
+                $ringSizeMinusHalfStrokeWidth = $ringSize - $strokeWidth / 2;
+
+                $this->svg->addCircle($x*$ringSize, $y*$ringSize, $ringSizeMinusHalfStrokeWidth, $styles);
+
+                // Add an extra one at top-right, for tiling.
+                if ($x == 0)
+                    $this->svg->addCircle(6*$ringSize, $y*$ringSize, $ringSizeMinusHalfStrokeWidth, $styles);
+
+                // Add an extra row at the end that matches the first row, for tiling.
+                if ($y == 0)
+                    $this->svg->addCircle($x*$ringSize, 6*$ringSize, $ringSizeMinusHalfStrokeWidth, $styles);
+
+                // Add an extra one at bottom-right, for tiling.
+                if ($x == 0 && $y == 0)
+                    $this->svg->addCircle(6*$ringSize, 6*$ringSize, $ringSizeMinusHalfStrokeWidth, $styles);
+
+                $i++;
+            }
+        }
+    }
+
+    protected function geoTriangles()
+    {
+        $scale = $this->hexVal(0, 1);
+        $sideLength = $this->map($scale, 0 ,15, 15, 80);
+        $triangleHeight = $sideLength / 2 * sqrt(3);
+        $triangle = $this->buildTriangleShape($sideLength, $triangleHeight);
+
+        $this->svg->setWidth($sideLength * 3)
+            ->setHeight($triangleHeight * 6);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+
+                $styles = [
+                    'fill' => $fill,
+                    'fill-opacity' => $opacity,
+                    'stroke' => self::STROKE_COLOR,
+                    'stroke-opacity' => self::STROKE_OPACITY,
+                ];
+
+                $rotation = '';
+                if ($y % 2 == 0)
+                    $rotation = ($x % 2 == 0) ? 180 : 0;
+                else
+                    $rotation = ($x % 2 != 0) ? 180 : 0;
+
+                $halfSideLength = $sideLength / 2;
+                $halfTriangleHeight = $triangleHeight / 2;
+                $yTriangleHeight = $triangleHeight * $y;
+
+                $t1 = $x * $sideLength * 0.5 - $sideLength / 2;
+                $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($t1, $yTriangleHeight) rotate($rotation, $halfSideLength, $halfTriangleHeight)"]));
+
+                // Add an extra one at top-right, for tiling.
+                if ($x == 0)
+                {
+                    $xT1 = 6 * $sideLength * 0.5 - $sideLength / 2;
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($xT1, $yTriangleHeight) rotate($rotation, $halfSideLength, $halfTriangleHeight)"]));
+                }
+
+                $i++;
+            }
+        }
+
+    }
+
+    protected function geoTrianglesRotated()
+    {
+        $scale = $this->hexVal(0, 1);
+        $sideLength = $this->map($scale, 0 ,15, 15, 80);
+        $triangleWidth = $sideLength / 2 * sqrt(3);
+        $triangle = $this->buildRotatedTriangleShape($sideLength, $triangleWidth);
+
+        $this->svg->setWidth($triangleWidth * 6)
+            ->setHeight($sideLength * 3);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+
+                $styles = [
+                    'fill' => $fill,
+                    'fill-opacity' => $opacity,
+                    'stroke' => self::STROKE_COLOR,
+                    'stroke-opacity' => self::STROKE_OPACITY,
+                ];
+
+                $rotation = '';
+                if ($y % 2 == 0)
+                    $rotation = ($x % 2 == 0) ? 180 : 0;
+                else
+                    $rotation = ($x % 2 != 0) ? 180 : 0;
+
+                $halfSideLength = $sideLength / 2;
+                $halfTriangleWidth = $triangleWidth / 2;
+                $xTriangleWidth = $x * $triangleWidth;
+
+                $t1 = $y * $sideLength * 0.5 - $sideLength / 2;
+                $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($xTriangleWidth, $t1) rotate($rotation, $halfTriangleWidth, $halfSideLength)"]));
+
+                // Add an extra one at top-right, for tiling.
+                if ($y == 0)
+                {
+                    $yT1 = 6 * $sideLength * 0.5 - $sideLength / 2;
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($xTriangleWidth, $yT1) rotate($rotation, $halfTriangleWidth, $halfSideLength)"]));
+                }
+
+                $i++;
+            }
+        }
+
+    }
+
+    protected function geoDiamonds()
+    {
+        $diamondWidth = $this->map($this->hexVal(0, 1), 0, 15, 10, 50);
+        $diamondHeight = $this->map($this->hexVal(1, 1), 0, 15, 10, 50);
+        $diamond = $this->buildDiamondShape($diamondWidth, $diamondHeight);
+
+        $this->svg->setWidth($diamondWidth*6)
+            ->setHeight($diamondHeight*3);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+
+                $styles = [
+                    'fill' => $fill,
+                    'fill-opacity' => $opacity,
+                    'stroke' => self::STROKE_COLOR,
+                    'stroke-opacity' => self::STROKE_OPACITY,
+                ];
+
+                $dx = ($y % 2 == 0) ? 0 : ($diamondWidth / 2);
+
+                $t1 = $x * $diamondWidth - $diamondWidth / 2 + $dx;
+                $t2 = $diamondHeight / 2 * $y - $diamondHeight / 2;
+                $this->svg->addPolyline($diamond, array_merge($styles, ['transform' => "translate($t1, $t2)"]));
+
+                // Add an extra one at top-right, for tiling.
+                if ($x == 0)
+                {
+                    $xT1 = 6 * $diamondWidth - $diamondWidth / 2 + $dx;
+                    $xT2 = $diamondHeight / 2 * $y - $diamondHeight / 2;
+                    $this->svg->addPolyline($diamond, array_merge($styles, ['transform' => "translate($xT1, $xT2)"]));
+                }
+
+                // Add an extra row at the end that matches the first row, for tiling.
+                if ($y == 0)
+                {
+                    $yT1 = $x * $diamondWidth - $diamondWidth / 2 + $dx;
+                    $yT2 = $diamondHeight / 2 * 6 - $diamondHeight / 2;
+                    $this->svg->addPolyline($diamond, array_merge($styles, ['transform' => "translate($yT1, $yT2)"]));
+                }
+
+                // Add an extra one at bottom-right, for tiling.
+                if ($x == 0 && $y == 0)
+                {
+                    $xyT1 = 6 * $diamondWidth - $diamondWidth / 2 + $dx;
+                    $xyT2 = $diamondHeight / 2 * 6 - $diamondHeight / 2;
+                    $this->svg->addPolyline($diamond, array_merge($styles, ['transform' => "translate($xyT1, $xyT2)"]));
+                }
+
+                $i++;
+            }
+        }
+    }
+
+    protected function geoNestedSquares()
+    {
+        $blockSize = $this->map($this->hexVal(0, 1), 0, 15, 4, 12);
+        $squareSize = $blockSize * 7;
+        $dimension = ($squareSize + $blockSize) * 6 + $blockSize * 6;
+
+        $this->svg->setWidth($dimension)
+            ->setHeight($dimension);
+
+        $i = 0;
+        for ($y = 0; $y <= 5; $y++) {
+            for ($x = 0; $x <= 5; $x++) {
+                $val = $this->hexVal($i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+
+                $styles = [
+                    'fill' => 'none',
+                    'stroke' => $fill,
+                    'style' => [
+                        'opacity' => $opacity,
+                        'stroke-width' => "{$blockSize}px",
+                    ],
+                ];
+
+                $rX = $x * $squareSize + $x * $blockSize * 2 + $blockSize / 2;
+                $rY = $y * $squareSize + $y * $blockSize * 2 + $blockSize / 2;
+
+                $this->svg->addRectangle($rX, $rY, $squareSize, $squareSize, $styles);
+
+                $val = $this->hexVal(39-$i, 1);
+                $opacity = $this->opacity($val);
+                $fill = $this->fillColor($val);
+
+                $styles = [
+                    'fill' => 'none',
+                    'stroke' => $fill,
+                    'style' => [
+                        'opacity' => $opacity,
+                        'stroke-width' => "{$blockSize}px",
+                    ],
+                ];
+
+                $rX2 = $x * $squareSize + $x * $blockSize * 2 + $blockSize / 2 + $blockSize * 2;
+                $rY2 = $y * $squareSize + $y * $blockSize * 2 + $blockSize / 2 + $blockSize * 2;
+
+                $this->svg->addRectangle($rX2, $rY2, $blockSize * 3, $blockSize * 3, $styles);
+
+                $i++;
+            }
+        }
+    }
+
+    protected function geoMosaicSquares()
+    {
+        $triangleSize = $this->map($this->hexVal(0, 1), 0, 15, 15, 50);
+
+        $this->svg->setWidth($triangleSize*8)
+            ->setHeight($triangleSize*8);
+
+        $i = 0;
+        for ($y = 0; $y <= 3; $y++) {
+            for ($x = 0; $x <= 3; $x++) {
+                if ($x % 2 == 0)
+                {
+                    if ($y % 2 == 0)
+                        $this->drawOuterMosaicTile($x*$triangleSize*2, $y*$triangleSize*2, $triangleSize, $this->hexVal($i, 1));
+                    else
+                        $this->drawInnerMosaicTile($x*$triangleSize*2, $y*$triangleSize*2, $triangleSize, [$this->hexVal($i, 1), $this->hexVal($i+1, 1)]);
+                }
+                else
+                {
+                    if ($y % 2 == 0)
+                        $this->drawInnerMosaicTile($x*$triangleSize*2, $y*$triangleSize*2, $triangleSize, [$this->hexVal($i, 1), $this->hexVal($i+1, 1)]);
+                    else
+                        $this->drawOuterMosaicTile($x*$triangleSize*2, $y*$triangleSize*2, $triangleSize, $this->hexVal($i, 1));
+                }
+                $i++;
+            }
+        }
+
+    }
+
+    protected function geoPlaid()
+    {
+        $height = 0;
+        $width = 0;
+
+        // Horizontal Stripes
+        $i = 0;
+        $times = 0;
+        while ($times++ <= 18)
+        {
+            $space = $this->hexVal($i, 1);
+            $height += $space + 5;
+
+            $val = $this->hexVal($i+1, 1);
+            $opacity = $this->opacity($val);
+            $fill = $this->fillColor($val);
+            $stripeHeight = $val + 5;
+
+            $this->svg->addRectangle(0, $height, "100%", $stripeHeight, [
+                'opacity' => $opacity,
+                'fill' => $fill,
+            ]);
+            $height += $stripeHeight;
+            $i += 2;
+        }
+
+        // Vertical Stripes
+        $i = 0;
+        $times = 0;
+        while ($times++ <= 18)
+        {
+            $space = $this->hexVal($i, 1);
+            $width += $space + 5;
+
+            $val = $this->hexVal($i+1, 1);
+            $opacity = $this->opacity($val);
+            $fill = $this->fillColor($val);
+            $stripeWidth = $val + 5;
+
+            $this->svg->addRectangle($width, 0, $stripeWidth, "100%", [
+                'opacity' => $opacity,
+                'fill' => $fill,
+            ]);
+            $width += $stripeWidth;
+            $i += 2;
+        }
+
+        $this->svg->setWidth($width)
+            ->setHeight($height);
+
+    }
+
+    protected function geoTessellation()
+    {
+        $sideLength = $this->map($this->hexVal(0, 1), 0, 15, 5, 40);
+        $hexHeight = $sideLength * sqrt(3);
+        $hexWidth = $sideLength * 2;
+        $triangleHeight = $sideLength / 2 * sqrt(3);
+        $triangle = $this->buildRotatedTriangleShape($sideLength, $triangleHeight);
+        $tileWidth = $sideLength * 3 + $triangleHeight * 2;
+        $tileHeight = ($hexHeight * 2) + ($sideLength * 2);
+
+        $this->svg->setWidth($tileWidth)
+            ->setHeight($tileHeight);
+
+        // Doing these variables up here, so we only have to calculate them once.
+        $halfSideLength = $sideLength / 2;
+        $negativeHalfSideLength = -$sideLength / 2;
+        $halfTriangleHeight = $triangleHeight / 2;
+        $halfHexHeight = $hexHeight / 2;
+        $tileHeightPlusHalfSideLength = $tileHeight + $sideLength / 2;
+        $halfTileHeightMinusHalfSideLength = $tileHeight / 2 - $sideLength / 2;
+        $halfTileWidthPlusHalfSideLength = $tileWidth / 2 + $sideLength / 2;
+        $tileWidthMinusHalfTileWidthMinusHalfSideLength = $tileWidth - $tileWidth/2 - $sideLength/2;
+        $tileWidthMinusHalfSideLength = $tileWidth - $sideLength / 2;
+        $tileHeightMinusHalfHexHeight = $tileHeight - $hexHeight / 2;
+        $negativeTileWidthPlusHalfSideLength = -$tileWidth + $sideLength / 2;
+        $halfTileHeightMinusHalfSideLengthMinusSideLength = $tileHeight/2-$sideLength/2-$sideLength;
+        $negativeTileHeightPlusHalfTileHeightMinusHalfSideLengthMinusSideLength = -$tileHeight+$tileHeight/2-$sideLength/2-$sideLength;
+        $negativeTileHeightPlusHalfSideLength = -$tileHeight + $sideLength / 2;
+        for ($i = 0; $i <= 19; $i++) {
+            $val = $this->hexVal($i, 1);
+            $opacity = $this->opacity($val);
+            $fill = $this->fillColor($val);
+
+            $styles = [
+                'stroke' => self::STROKE_COLOR,
+                'stroke-opacity' => self::STROKE_OPACITY,
+                'fill' => $fill,
+                'fill-opacity' => $opacity,
+                'stroke-width' => 1,
+            ];
+
+            switch ($i) {
+                case 0: # all 4 corners
+                    $this->svg->addRectangle(-$sideLength/2, -$sideLength/2, $sideLength, $sideLength, $styles);
+                    $this->svg->addRectangle($tileWidth-$sideLength/2, -$sideLength/2, $sideLength, $sideLength, $styles);
+                    $this->svg->addRectangle(-$sideLength/2, $tileHeight-$sideLength/2, $sideLength, $sideLength, $styles);
+                    $this->svg->addRectangle($tileWidth-$sideLength/2, $tileHeight-$sideLength/2, $sideLength, $sideLength, $styles);
+                    break;
+                case 1: # center / top square
+                    $this->svg->addRectangle($hexWidth/2+$triangleHeight, $hexHeight/2, $sideLength, $sideLength, $styles);
+                    break;
+                case 2: # side squares
+                    $this->svg->addRectangle(-$sideLength/2, $tileHeight/2-$sideLength/2, $sideLength, $sideLength, $styles);
+                    $this->svg->addRectangle($tileWidth-$sideLength/2, $tileHeight/2-$sideLength/2, $sideLength, $sideLength, $styles);
+                    break;
+                case 3: # center / bottom square
+                    $this->svg->addRectangle($hexWidth/2+$triangleHeight, $hexHeight*1.5+$sideLength, $sideLength, $sideLength, $styles);
+                    break;
+                case 4: # left top / bottom triangle
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($halfSideLength, $negativeHalfSideLength) rotate(0, $halfSideLength, $halfTriangleHeight)"]));
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($halfSideLength, $tileHeightPlusHalfSideLength) rotate(0, $halfSideLength, $halfTriangleHeight) scale(1, -1)"]));
+                    break;
+                case 5: # right top / bottom triangle
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($tileWidthMinusHalfSideLength, $negativeHalfSideLength) rotate(0, $halfSideLength, $halfTriangleHeight) scale(-1, 1)"]));
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($tileWidthMinusHalfSideLength, $tileHeightPlusHalfSideLength) rotate(0, $halfSideLength, $halfTriangleHeight) scale(-1, -1)"]));
+                    break;
+                case 6: # center / top / right triangle
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($halfTileWidthPlusHalfSideLength, $halfHexHeight)"]));
+                    break;
+                case 7: # center / top / left triangle
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($tileWidthMinusHalfTileWidthMinusHalfSideLength, $halfHexHeight) scale(-1, 1)"]));
+                    break;
+                case 8: # center / bottom / right triangle
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($halfTileWidthPlusHalfSideLength, $tileHeightMinusHalfHexHeight) scale(1, -1)"]));
+                    break;
+                case 9: # center / bottom / left triangle
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($tileWidthMinusHalfTileWidthMinusHalfSideLength, $tileHeightMinusHalfHexHeight) scale(-1, -1)"]));
+                    break;
+                case 10: # left / middle triangle
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($halfSideLength, $halfTileHeightMinusHalfSideLength)"]));
+                    break;
+                case 11: # right / middle triangle
+                    $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($tileWidthMinusHalfSideLength, $halfTileHeightMinusHalfSideLength) scale(-1, 1)"]));
+                    break;
+                case 12: # left / top square
+                    $this->svg->addRectangle(0, 0, $sideLength, $sideLength, array_merge($styles, ['transform' => "translate($halfSideLength, $halfSideLength) rotate(-30, 0, 0)"]));
+                    break;
+                case 13: # right / top square
+                    $this->svg->addRectangle(0, 0, $sideLength, $sideLength, array_merge($styles, ['transform' => "scale(-1, 1) translate($negativeTileWidthPlusHalfSideLength, $halfSideLength) rotate(-30, 0, 0)"]));
+                    break;
+                case 14: # left / center-top square
+                    $this->svg->addRectangle(0, 0, $sideLength, $sideLength, array_merge($styles, ['transform' => "translate($halfSideLength, $halfTileHeightMinusHalfSideLengthMinusSideLength) rotate(30, 0, $sideLength)"]));
+                    break;
+                case 15: # right / center-top square
+                    $this->svg->addRectangle(0, 0, $sideLength, $sideLength, array_merge($styles, ['transform' => "scale(-1, 1) translate($negativeTileWidthPlusHalfSideLength, $halfTileHeightMinusHalfSideLengthMinusSideLength) rotate(30, 0, $sideLength)"]));
+                    break;
+                case 16: # left / center-top square
+                    $this->svg->addRectangle(0, 0, $sideLength, $sideLength, array_merge($styles, ['transform' => "scale(1, -1) translate($halfSideLength, $negativeTileHeightPlusHalfTileHeightMinusHalfSideLengthMinusSideLength) rotate(30, 0, $sideLength)"]));
+                    break;
+                case 17: # right / center-bottom square
+                    $this->svg->addRectangle(0, 0, $sideLength, $sideLength, array_merge($styles, ['transform' => "scale(-1, -1) translate($negativeTileWidthPlusHalfSideLength, $negativeTileHeightPlusHalfTileHeightMinusHalfSideLengthMinusSideLength) rotate(30, 0, $sideLength)"]));
+                    break;
+                case 18: # left / bottom square
+                    $this->svg->addRectangle(0, 0, $sideLength, $sideLength, array_merge($styles, ['transform' => "scale(1, -1) translate($halfSideLength, $negativeTileHeightPlusHalfSideLength) rotate(-30, 0, 0)"]));
+                    break;
+                case 19: # right / bottom square
+                    $this->svg->addRectangle(0, 0, $sideLength, $sideLength, array_merge($styles, ['transform' => "scale(-1, -1) translate($negativeTileWidthPlusHalfSideLength, $negativeTileHeightPlusHalfSideLength) rotate(-30, 0, 0)"]));
+                    break;
+            }
+        }
+    }
+
+    // build* functions
+    protected function buildChevronShape($width, $height)
+    {
+        $e = $height * 0.66;
+        $halfWidth = $width / 2;
+        $heightMinusE = $height - $e;
+        return [
+            new Polyline("0,0,$halfWidth,$heightMinusE,$halfWidth,$height,0,$e,0,0"),
+            new Polyline("$halfWidth,$heightMinusE,$width,0,$width,$e,$halfWidth,$height,$halfWidth,$heightMinusE")
+        ];
+    }
+
+    protected function buildOctogonShape($squareSize)
+    {
+        $s = $squareSize;
+        $c = $s * 0.33;
+        $sMinusC = $s - $c;
+        return "$c,0,$sMinusC,0,$s,$c,$s,$sMinusC,$sMinusC,$s,$c,$s,0,$sMinusC,0,$c,$c,0";
+    }
+
+    protected function buildHexagonShape($sideLength)
+    {
+        $c = $sideLength;
+        $a = $c/2;
+        $b = sin(60 * M_PI / 180) * $c;
+        $twoB = $b * 2;
+        $twoC = $c * 2;
+        $aPlusC = $a + $c;
+        return "0,$b,$a,0,$aPlusC,0,$twoC,$b,$aPlusC,$twoB,$a,$twoB,0,$b";
+    }
+
+    protected function buildPlusShape($squareSize)
+    {
+        return [
+            new Rectangle($squareSize, 0, $squareSize, $squareSize*3),
+            new Rectangle(0, $squareSize, $squareSize*3, $squareSize),
+        ];
+    }
+
+    protected function buildTriangleShape($sideLength, $height)
+    {
+        $halfWidth = $sideLength / 2;
+        return "$halfWidth, 0, $sideLength, $height, 0, $height, $halfWidth, 0";
+    }
+
+    protected function buildRotatedTriangleShape($sideLength, $width)
+    {
+        $halfHeight = $sideLength / 2;
+        return "0, 0, $width, $halfHeight, 0, $sideLength, 0, 0";
+    }
+
+    protected function buildRightTriangleShape($sideLength)
+    {
+        return "0, 0, $sideLength, $sideLength, 0, $sideLength, 0, 0";
+    }
+
+    protected function buildDiamondShape($width, $height)
+    {
+        $halfWidth = $width / 2;
+        $halfHeight = $height / 2;
+        return "$halfWidth, 0, $width, $halfHeight, $halfWidth, $height, 0, $halfHeight";
+    }
+
+    // draw* functions
+    protected function drawInnerMosaicTile($x, $y, $triangleSize, $vals)
+    {
+        $triangle = $this->buildRightTriangleShape($triangleSize);
+        $opacity = $this->opacity($vals[0]);
+        $fill = $this->fillColor($vals[0]);
+        $styles = [
+            'stroke' => self::STROKE_COLOR,
+            'stroke-opacity' => self::STROKE_OPACITY,
+            'fill-opacity' => $opacity,
+            'fill' => $fill,
+        ];
+        $xPlusTriangleSize = $x + $triangleSize;
+        $yPlusTwoTriangleSize = $y + $triangleSize * 2;
+        $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($xPlusTriangleSize, $y) scale(-1, 1)"]))
+            ->addPolyline($triangle, array_merge($styles, ['transform' => "translate($xPlusTriangleSize, $yPlusTwoTriangleSize) scale(1, -1)"]));
+
+        $opacity = $this->opacity($vals[1]);
+        $fill = $this->fillColor($vals[1]);
+        $styles = [
+            'stroke' => self::STROKE_COLOR,
+            'stroke-opacity' => self::STROKE_OPACITY,
+            'fill-opacity' => $opacity,
+            'fill' => $fill,
+        ];
+        $xPlusTriangleSize = $x + $triangleSize;
+        $yPlusTwoTriangleSize = $y + $triangleSize * 2;
+        $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($xPlusTriangleSize, $yPlusTwoTriangleSize) scale(-1, -1)"]))
+            ->addPolyline($triangle, array_merge($styles, ['transform' => "translate($xPlusTriangleSize, $y) scale(1, 1)"]));
+
+        return $this;
+    }
+
+    protected function drawOuterMosaicTile($x, $y, $triangleSize, $val)
+    {
+        $triangle = $this->buildRightTriangleShape($triangleSize);
+        $opacity = $this->opacity($val);
+        $fill = $this->fillColor($val);
+        $styles = [
+            'stroke' => self::STROKE_COLOR,
+            'stroke-opacity' => self::STROKE_OPACITY,
+            'fill-opacity' => $opacity,
+            'fill' => $fill,
+        ];
+
+        $yPlusTriangleSize = $y + $triangleSize;
+        $xPlusTwoTriangleSize = $x + $triangleSize * 2;
+        $this->svg->addPolyline($triangle, array_merge($styles, ['transform' => "translate($x, $yPlusTriangleSize) scale(1, -1)"]))
+            ->addPolyline($triangle, array_merge($styles, ['transform' => "translate($xPlusTwoTriangleSize, $yPlusTriangleSize) scale(-1, -1)"]))
+            ->addPolyline($triangle, array_merge($styles, ['transform' => "translate($x, $yPlusTriangleSize) scale(1, 1)"]))
+            ->addPolyline($triangle, array_merge($styles, ['transform' => "translate($xPlusTwoTriangleSize, $yPlusTriangleSize) scale(-1, 1)"]));
+    }
+
+    // Utility Functions
+
+    protected function fillColor($val)
+    {
+        return ($val % 2 == 0) ? self::FILL_COLOR_LIGHT : self::FILL_COLOR_DARK;
+    }
+
+    protected function opacity($val)
+    {
+        return $this->map($val, 0, 15, self::OPACITY_MIN, self::OPACITY_MAX);
+    }
+
+    protected function hexVal($index, $len)
+    {
+        return hexdec(substr($this->hash, $index, $len));
+    }
+
+    // PHP implementation of Processing's map function
+    // http://processing.org/reference/map_.html
+    protected function map($value, $vMin, $vMax, $dMin, $dMax)
+    {
+        $vValue = floatval($value);
+        $vRange = $vMax - $vMin;
+        $dRange = $dMax - $dMin;
+        return ($vValue - $vMin) * $dRange / $vRange + $dMin;
+    }
+
+    // Color Functions
+    protected function hexToHSL($color)
+    {
+        $color = trim($color, '#');
+        $R = hexdec($color[0].$color[1]);
+        $G = hexdec($color[2].$color[3]);
+        $B = hexdec($color[4].$color[5]);
+
+        $HSL = array();
+
+        $var_R = ($R / 255);
+        $var_G = ($G / 255);
+        $var_B = ($B / 255);
+
+        $var_Min = min($var_R, $var_G, $var_B);
+        $var_Max = max($var_R, $var_G, $var_B);
+        $del_Max = $var_Max - $var_Min;
+
+        $L = ($var_Max + $var_Min)/2;
+
+        if ($del_Max == 0)
+        {
+            $H = 0;
+            $S = 0;
+        }
+        else
+        {
+            if ( $L < 0.5 ) $S = $del_Max / ( $var_Max + $var_Min );
+            else            $S = $del_Max / ( 2 - $var_Max - $var_Min );
+
+            $del_R = ( ( ( $var_Max - $var_R ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
+            $del_G = ( ( ( $var_Max - $var_G ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
+            $del_B = ( ( ( $var_Max - $var_B ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
+
+            if      ($var_R == $var_Max) $H = $del_B - $del_G;
+            else if ($var_G == $var_Max) $H = ( 1 / 3 ) + $del_R - $del_B;
+            else if ($var_B == $var_Max) $H = ( 2 / 3 ) + $del_G - $del_R;
+
+            if ($H<0) $H++;
+            if ($H>1) $H--;
+        }
+
+        $HSL['h'] = ($H*360);
+        $HSL['s'] = $S;
+        $HSL['l'] = $L;
+
+        return $HSL;
+    }
+
+    protected function hexToRGB($hex) {
+        $hex = str_replace("#", "", $hex);
+        if(strlen($hex) == 3) {
+            $r = hexdec(substr($hex,0,1).substr($hex,0,1));
+            $g = hexdec(substr($hex,1,1).substr($hex,1,1));
+            $b = hexdec(substr($hex,2,1).substr($hex,2,1));
+        } else {
+            $r = hexdec(substr($hex,0,2));
+            $g = hexdec(substr($hex,2,2));
+            $b = hexdec(substr($hex,4,2));
+        }
+        return ['r' => $r, 'g' => $g, 'b' => $b];
+    }
+
+    protected function rgbToHSL($r, $g, $b) {
+        $r /= 255;
+        $g /= 255;
+        $b /= 255;
+        $max = max($r, $g, $b);
+        $min = min($r, $g, $b);
+        $l = ($max + $min) / 2;
+        if ($max == $min) {
+            $h = $s = 0;
+        } else {
+            $d = $max - $min;
+            $s = $l > 0.5 ? $d / (2 - $max - $min) : $d / ($max + $min);
+            switch ($max) {
+                case $r:
+                    $h = ($g - $b) / $d + ($g < $b ? 6 : 0);
+                    break;
+                case $g:
+                    $h = ($b - $r) / $d + 2;
+                    break;
+                case $b:
+                    $h = ($r - $g) / $d + 4;
+                    break;
+            }
+            $h /= 6;
+        }
+        $h = floor($h * 360);
+        $s = floor($s * 100);
+        $l = floor($l * 100);
+        return ['h' => $h, 's' => $s, 'l' => $l];
+    }
+
+    protected function hslToRGB ($h, $s, $l) {
+        $h += 360;
+        $c = ( 1 - abs( 2 * $l - 1 ) ) * $s;
+        $x = $c * ( 1 - abs( fmod( ( $h / 60 ), 2 ) - 1 ) );
+        $m = $l - ( $c / 2 );
+
+        if ( $h < 60 ) {
+            $r = $c;
+            $g = $x;
+            $b = 0;
+        } else if ( $h < 120 ) {
+            $r = $x;
+            $g = $c;
+            $b = 0;
+        } else if ( $h < 180 ) {
+            $r = 0;
+            $g = $c;
+            $b = $x;
+        } else if ( $h < 240 ) {
+            $r = 0;
+            $g = $x;
+            $b = $c;
+        } else if ( $h < 300 ) {
+            $r = $x;
+            $g = 0;
+            $b = $c;
+        } else {
+            $r = $c;
+            $g = 0;
+            $b = $x;
+        }
+
+        $r = ( $r + $m ) * 255;
+        $g = ( $g + $m ) * 255;
+        $b = ( $b + $m  ) * 255;
+
+        return array( 'r' => floor( $r ), 'g' => floor( $g ), 'b' => floor( $b ) );
+
+    }
+
+    //NOT USED
+    protected function rgbToHex($r, $g, $b) {
+        $hex = "#";
+        $hex .= str_pad(dechex($r), 2, "0", STR_PAD_LEFT);
+        $hex .= str_pad(dechex($g), 2, "0", STR_PAD_LEFT);
+        $hex .= str_pad(dechex($b), 2, "0", STR_PAD_LEFT);
+        return $hex;
+    }
+
+
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/GeoPattern.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGphp"></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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVG.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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVG.php                                (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVG.php  2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,94 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php namespace RedeyeVentures\GeoPattern;
+
+use RedeyeVentures\GeoPattern\SVGElements\Group;
+use RedeyeVentures\GeoPattern\SVGElements\Polyline;
+use RedeyeVentures\GeoPattern\SVGElements\Rectangle;
+use RedeyeVentures\GeoPattern\SVGElements\Circle;
+use RedeyeVentures\GeoPattern\SVGElements\Path;
+
+class SVG {
+
+    protected $width;
+    protected $height;
+    protected $svgString;
+
+    function __construct($options=array())
+    {
+        $this->width = 100;
+        $this->height = 100;
+        $this->svgString = '';
+    }
+
+    public function setWidth($width)
+    {
+        $this->width = floor($width);
+        return $this;
+    }
+
+    public function setHeight($height)
+    {
+        $this->height = floor($height);
+        return $this;
+    }
+
+    protected function getSvgHeader()
+    {
+        return "<?xml version=\"1.0\"?><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"{$this->width}\" height=\"{$this->height}\">";
+    }
+
+    protected function getSvgFooter()
+    {
+        return '</svg>';
+    }
+
+    public function addRectangle($x, $y, $width, $height, $args=array())
+    {
+        $rectangle = new Rectangle($x, $y, $width, $height, $args);
+        $this->svgString .= $rectangle;
+        return $this;
+    }
+
+    public function addCircle($cx, $cy, $r, $args=array())
+    {
+        $circle = new Circle($cx, $cy, $r, $args);
+        $this->svgString .= $circle;
+        return $this;
+    }
+
+    public function addPath($d, $args=array())
+    {
+        $path = new Path($d, $args);
+        $this->svgString .= $path;
+        return $this;
+    }
+
+    public function addPolyline($points, $args=array())
+    {
+        $polyline = new Polyline($points, $args);
+        $this->svgString .= $polyline;
+        return $this;
+    }
+
+    public function addGroup($group, $args=array())
+    {
+        if ($group instanceof Group)
+        {
+            $group->setArgs($args);
+            $this->svgString .= $group;
+            return $this;
+        }
+        throw new \InvalidArgumentException("The group provided is not a valid instance of Group.");
+    }
+
+    public function getString()
+    {
+        return $this->getSvgHeader().$this->svgString.$this->getSvgFooter();
+    }
+
+    public function __toString()
+    {
+        return $this->getString();
+    }
+
+
+}
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVG.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsBasephp"></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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Base.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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Base.php                           (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Base.php     2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,55 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php namespace RedeyeVentures\GeoPattern\SVGElements;
+
+abstract class Base
+{
+    protected $tag;
+    protected $elements;
+    protected $args;
+
+    function __construct($args)
+    {
+        $this->args = $args;
+    }
+
+    public function elementsToString()
+    {
+        $string = ' ';
+        foreach ($this->elements as $key => $value)
+        {
+            $string .= "$key=\"$value\" ";
+        }
+        return $string;
+    }
+
+    public function argsToString()
+    {
+        $string = '';
+        foreach ($this->args as $key => $value)
+        {
+            if (is_array($value))
+            {
+                $string .= "$key=\"";
+                foreach ($value as $k => $v)
+                {
+                    $string .= "$k:$v;";
+                }
+                $string .= '" ';
+            }
+            else
+            {
+                $string .= "$key=\"$value\" ";
+            }
+        }
+        return $string;
+    }
+
+    public function getString()
+    {
+        return "<{$this->tag}{$this->elementsToString()}{$this->argsToString()}/>";
+    }
+
+    function __toString()
+    {
+        return $this->getString();
+    }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Base.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsCirclephp"></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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Circle.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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Circle.php                         (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Circle.php   2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php namespace RedeyeVentures\GeoPattern\SVGElements;
+
+class Circle extends Base
+{
+    protected $tag = 'circle';
+
+    function __construct($cx, $cy, $r, $args=array())
+    {
+        $this->elements = [
+            'cx' => $cx,
+            'cy' => $cy,
+            'r' => $r,
+        ];
+        parent::__construct($args);
+    }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Circle.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsGroupphp"></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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Group.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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Group.php                          (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Group.php    2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,38 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php namespace RedeyeVentures\GeoPattern\SVGElements;
+
+class Group extends Base
+{
+    protected $tag = 'g';
+    protected $items;
+
+    function __construct($items=array(), $args=array())
+    {
+        $this->items = $items;
+        $this->args = $args;
+    }
+
+    function addItem($item)
+    {
+        $this->items[] = $item;
+        return $this;
+    }
+
+    function setArgs($args)
+    {
+        $this->args = $args;
+        return $this;
+    }
+
+    function getString()
+    {
+        $svgString = '';
+        $svgString .= "<{$this->tag} {$this->argsToString($this->args)}>";
+        foreach ($this->items as $item)
+        {
+            $svgString .= $item;
+        }
+        $svgString .= "</{$this->tag}>";
+
+        return $svgString;
+    }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Group.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsPathphp"></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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Path.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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Path.php                           (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Path.php     2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php namespace RedeyeVentures\GeoPattern\SVGElements;
+
+class Path extends Base
+{
+    protected $tag = 'path';
+
+    function __construct($d, $args=array())
+    {
+        $this->elements = [
+            'd' => $d,
+        ];
+        parent::__construct($args);
+    }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Path.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsPolylinephp"></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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Polyline.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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Polyline.php                               (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Polyline.php 2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php namespace RedeyeVentures\GeoPattern\SVGElements;
+
+class Polyline extends Base
+{
+    protected $tag = 'polyline';
+
+    function __construct($points, $args=array())
+    {
+        $this->elements = [
+            'points' => $points,
+        ];
+        parent::__construct($args);
+    }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Polyline.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110GeoPatternSVGElementsRectanglephp"></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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Rectangle.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/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Rectangle.php                              (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Rectangle.php        2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php namespace RedeyeVentures\GeoPattern\SVGElements;
+
+class Rectangle extends Base
+{
+    protected $tag = 'rect';
+
+    function __construct($x, $y, $width, $height, $args=array())
+    {
+        $this->elements = [
+            'x' => $x,
+            'y' => $y,
+            'width' => $width,
+            'height' => $height,
+        ];
+        parent::__construct($args);
+    }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/GeoPattern/SVGElements/Rectangle.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsplugindirectorylibsgeopattern110geopattern_loaderphp"></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/plugin-directory/libs/geopattern-1.1.0/geopattern_loader.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/plugin-directory/libs/geopattern-1.1.0/geopattern_loader.php                             (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/geopattern_loader.php       2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,11 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+// This file should only be used/included if you are not using Composer.
+
+require_once(__DIR__.'/GeoPattern/SVGElements/Base.php');
+require_once(__DIR__.'/GeoPattern/SVGElements/Circle.php');
+require_once(__DIR__.'/GeoPattern/SVGElements/Group.php');
+require_once(__DIR__.'/GeoPattern/SVGElements/Path.php');
+require_once(__DIR__.'/GeoPattern/SVGElements/Polyline.php');
+require_once(__DIR__.'/GeoPattern/SVGElements/Rectangle.php');
+require_once(__DIR__.'/GeoPattern/SVG.php');
+require_once(__DIR__.'/GeoPattern/GeoPattern.php');
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/geopattern-1.1.0/geopattern_loader.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgpluginsplugincardphp"></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-plugins/plugin-card.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-plugins/plugin-card.php 2016-02-23 01:40:44 UTC (rev 2554)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/plugin-card.php   2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,7 +1,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="plugin-card">
</span><span class="cx" style="display: block; padding: 0 10px">         <div class="plugin-card-top">
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                 <a href="<?php the_permalink(); ?>" class="plugin-icon"><style>#plugin-icon-<?php echo esc_attr( $post->post_name ); ?> { width:128px; height:128px; background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMTEiIGhlaWdodD0iMTI5IiB2aWV3Ym94PSIwIDAgMTExIDEyOSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0icmdiKDI0MSwgMjQxLCAyNDEpIiAvPjxyZWN0IHg9Ii0xMS44MzMzMzMzMzMzMzMiIHk9Ii0xMS44MzMzMzMzMzMzMzMiIHdpZHRoPSIyMy42NjY2NjY2NjY2NjciIGhlaWdodD0iMjMuNjY2NjY2NjY2NjY3IiBzdHJva2U9IiMwMDAiIHN0cm9rZS1vcGFjaXR5PSIwLjAyIiBmaWxsPSIjZGRkIiBmaWxsLW9wYWNpdHk9IjAuMDg5MzMzMzMzMzMzMzMzIiBzdHJva2Utd2lkdGg9IjEiIC8+PHJlY3QgeD0iMTAwLjE1ODUzNTc3OTEzIiB5PSItMTEuODMzMzMzMzMzMzMzIiB3aWR0aD0iMjMuNjY2NjY2NjY2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8+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjIzLjY2NjY2NjY2NjY2NyIgaGVpZ2h0PSIyMy42NjY2NjY2NjY2NjciIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLW9wYWNpdHk9IjAuMDIiIGZpbGw9IiMyMjIiIGZpbGwtb3BhY2l0eT0iMC4xNSIgc3Ryb2tlLXdpZHRoPSIxIiB0cmFuc2Zvcm09InNjYWxlKDEsIC0xKSB0cmFuc2xhdGUoMTEuODMzMzMzMzMzMzMzLCAtMTE3LjQ4MzczODIyNDkzKSByb3RhdGUoLTMwLCAwLCAwKSIgLz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMjMuNjY2NjY2NjY2NjY3IiBoZWlnaHQ9IjIzLjY2NjY2NjY2NjY2NyIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utb3BhY2l0eT0iMC4wMiIgZmlsbD0iIzIyMiIgZmlsbC1vcGFjaXR5PSIwLjA0NiIgc3Ryb2tlLXdpZHRoPSIxIiB0cmFuc2Zvcm09InNjYWxlKC0xLCAtMSkgdHJhbnNsYXRlKC0xMDAuMTU4NTM1Nzc5MTMsIC0xMTcuNDgzNzM4MjI0OTMpIHJvdGF0ZSgtMzAsIDAsIDApIiAvPjwvc3ZnPg==); background-size:128px 128px; }</style><div class='plugin-icon' id='plugin-icon-<?php echo esc_attr( $post->post
 _name ); ?>' style='float:left; margin: 3px 6px 6px 0px;'></div></a>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+          <a href="<?php the_permalink(); ?>" class="plugin-icon">
+                       <?php echo WPorg_Plugin_Directory_Template::get_plugin_icon( $post->post_name, 'html' ); ?>
+                </a>
</ins><span class="cx" style="display: block; padding: 0 10px">                  <div class="name column-name">
</span><span class="cx" style="display: block; padding: 0 10px">                         <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
</span><span class="cx" style="display: block; padding: 0 10px">                 </div>
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgpluginssinglepluginphp"></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-plugins/single-plugin.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-plugins/single-plugin.php       2016-02-23 01:40:44 UTC (rev 2554)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/single-plugin.php 2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,20 +1,33 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php the_post(); ?>
-<?php get_header(); ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+the_post();
+get_header();
+$plugin_banners = WPorg_Plugin_Directory_Template::get_plugin_banner( $post );
</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"> <div class="wrapper">
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        <div style="width: 772px; margin: 0 auto;" itemscope itemtype="http://schema.org/SoftwareApplication">
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                <div id="plugin-head" class="plugin-head-with-banner">
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         <div id="plugin-head" class="<?php echo $plugin_banners ? 'plugin-head-with-banner' : 'plugin-head-without-banner'; ?>">
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                <?php if ( $plugin_banners ): ?>
</ins><span class="cx" style="display: block; padding: 0 10px">                         <div id="plugin-title" class="with-banner">
</span><span class="cx" style="display: block; padding: 0 10px">                                <div class="vignette"></div>
</span><span class="cx" style="display: block; padding: 0 10px">                                <style type="text/css">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                #plugin-title { width:772px; height:250px; background-size:772px 250px; background-image: url(//ps.w.org/debug-bar/assets/banner-772x250.png?rev=478338); }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 #plugin-title { width:772px; height:250px; background-size:772px 250px; background-image: url('<?php echo esc_url( $plugin_banners['banner'] ); ?>'); }
+                                       <?php if ( ! empty( $plugin_banners['banner_2x'] ) ): ?>
+                                       @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 15/10), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
+                                               #plugin-title { background-image: url('<?php echo esc_url( $plugin_banners['banner_2x'] ); ?>'); }
+                                       }
+                                       <?php endif; ?>
</ins><span class="cx" style="display: block; padding: 0 10px">                                 </style>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                <h2 itemprop="name"><?php the_title(); ?></h2>
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                <?php else: ?>
+                       <div id="plugin-title"><h2 itemprop="name"><?php the_title(); ?></h2></div>
+               <?php endif; ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        <div id="plugin-description">
</span><span class="cx" style="display: block; padding: 0 10px">                                <p itemprop="description" class="shortdesc"><?php the_excerpt(); ?></p>
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgpluginsstylecss"></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-plugins/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-plugins/style.css       2016-02-23 01:40:44 UTC (rev 2554)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/style.css 2016-02-23 04:12:32 UTC (rev 2555)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -276,6 +276,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        font-family: "Helvetica Neue", sans-serif;
</span><span class="cx" style="display: block; padding: 0 10px">        font-size: 24px;
</span><span class="cx" style="display: block; padding: 0 10px">        font-weight: bold;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        margin: 0.5em;
</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"> #plugin-title.with-banner h2 {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -286,6 +287,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        left: 30px;
</span><span class="cx" style="display: block; padding: 0 10px">        bottom: 20px;
</span><span class="cx" style="display: block; padding: 0 10px">        padding: 8px 15px;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        margin: 0;
</ins><span class="cx" style="display: block; padding: 0 10px">         margin-bottom: 4px;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        color: #fff;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1074,6 +1076,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">        top: 10px;
</span><span class="cx" style="display: block; padding: 0 10px">        left: 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">+.plugin-icon .plugin-icon {
+       float:left;
+       margin: 3px 6px 6px 0px;
+}
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> .plugin-icon img {
</span><span class="cx" style="display: block; padding: 0 10px">        width: 128px;
</span></span></pre>
</div>
</div>

</body>
</html>