From ac79051db41dde86145e7b1e61e5c1d3752f7ab5 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 7 Nov 2015 18:25:48 +1300 Subject: [PATCH] definitively shunt shields to top --- rebuild.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rebuild.php b/rebuild.php index aa1bf22..9c9a3ff 100644 --- a/rebuild.php +++ b/rebuild.php @@ -172,6 +172,7 @@ class CProject { public $subtag = ''; public $lastupdate = 0; private $longdesc = ''; + private $prefix_html = ''; private $images = array(); private $downloads = array(); private $downloads_hashes = array(); @@ -209,17 +210,16 @@ class CProject { // Filter longdesc $prefix_html = ''; - $this->longdesc = preg_replace_callback('~Written in ([^\\r\\n]+)~', function($matches) use (&$prefix_html) { + $this->longdesc = preg_replace_callback('~\r?\nWritten in ([^\\r\\n]+)~ms', function($matches) use (&$prefix_html) { $prefix_html .= ( ''. (SHIELDS_PREFIX ? mkshield('build', 'success', 'brightgreen').' ' : ''). mkshield('written in', $matches[1], 'blue'). - '
'. '' ); return ''; }, $this->longdesc); - $this->longdesc = $prefix_html.$this->longdesc; + $this->prefix_html = $prefix_html; continue; } @@ -314,6 +314,10 @@ class CProject {
+prefix_html)) { ?> +

prefix_html?>

+ +

longdesc)?>