config flag "shields_prefix" to add a "build:success" shield to everything
This commit is contained in:
parent
f39a05ba59
commit
ad76f6fb7a
@ -209,7 +209,12 @@ class CProject {
|
||||
|
||||
// Filter longdesc
|
||||
$this->longdesc = preg_replace_callback('~Written in ([^\\r\\n]+)~', function($matches) {
|
||||
return '<html>'.mkshield('written in', $matches[1], 'blue').'</html>';
|
||||
return (
|
||||
'<html>'.
|
||||
(SHIELDS_PREFIX ? mkshield('build', 'success', 'brightgreen').' ' : '').
|
||||
mkshield('written in', $matches[1], 'blue').
|
||||
'</html>'
|
||||
);
|
||||
}, $this->longdesc);
|
||||
|
||||
continue;
|
||||
@ -540,6 +545,7 @@ function main($args) {
|
||||
define('INDEX_THUMB_H', intval($config['codesite']['index_thumb_h']));
|
||||
define('SHOW_BLURBS', !(isset($config['codesite']['blurbs']) && $config['codesite']['blurbs'] === 'off') );
|
||||
define('ARTICLE_HEADER', (isset($config['codesite']['article_header']) ? $config['codesite']['article_header'] : 'ABOUT') );
|
||||
define('SHIELDS_PREFIX', isset($config['codesite']['shields_prefix']));
|
||||
|
||||
// Perform build tasks
|
||||
|
||||
|
@ -5,6 +5,8 @@ page_thumb_h=60
|
||||
index_thumb_w=90
|
||||
index_thumb_h=32
|
||||
|
||||
shields_prefix=true
|
||||
|
||||
; n.b. Recommend a multiple of the JPEG iDCT block size for index_thumb_h
|
||||
|
||||
[redirect]
|
||||
|
Reference in New Issue
Block a user