optional 'blurbs=off' directive in site's config.ini file

This commit is contained in:
mappu 2015-09-06 11:01:13 +12:00
parent 7480da7568
commit 9de0095c8d

View File

@ -448,8 +448,9 @@ function buildcommon() {
<a href="<?=hesc(urlencode($pr->projname))?>.html"><?=(is_null($handle_lookup[$pr->projname]) ? '<div class="no-image"></div>' : '<div class="homeimage homeimage-sprite" style="background-position:0 -'.($handle_lookup[$pr->projname]*INDEX_THUMB_H).'px"></div>')?></a>
</td>
<td>
<strong><?=hesc($pr->projname)?></strong>,
<strong><?=hesc($pr->projname)?></strong><?php if (SHOW_BLURBS) { ?> ,
<?=hesc($pr->shortdesc)?>
<?php } ?>
<a href="<?=hesc(urlencode($pr->projname))?>.html">more...</a>
<?php if (strlen($pr->subtag) || count($pr->tags)) { ?>
<br>
@ -510,6 +511,7 @@ function main($args) {
define('PAGE_THUMB_H', intval($config['codesite']['page_thumb_h']));
define('INDEX_THUMB_W', intval($config['codesite']['index_thumb_w']));
define('INDEX_THUMB_H', intval($config['codesite']['index_thumb_h']));
define('SHOW_BLURBS', !(isset($config['codesite']['blurbs']) && $config['codesite']['blurbs'] === 'off') );
// Perform build tasks