diff options
-rw-r--r-- | include/comanche.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/comanche.php b/include/comanche.php index fc4e4004b..1c9fad8f1 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -167,12 +167,21 @@ function comanche_block($s, $class = '') { dbesc($name) ); + //print_r($r); killme(); + if($r) { $o .= (($var['wrap'] == 'none') ? '' : '<div class="' . $class . '">'); - if($r[0]['title']) + + if($r[0]['title'] && trim($r[0]['title']) != '$content') { $o .= '<h3>' . $r[0]['title'] . '</h3>'; + } + + if($r[0]['title'] && trim($r[0]['title']) === '$content') { + $o .= '<h3>' . get_app()->data['webpage'][0]['title'] . '</h3>'; + } + - if($r[0]['body'] === '$content') { + if(trim($r[0]['body']) === '$content') { $o .= prepare_text(get_app()->data['webpage'][0]['body'], get_app()->data['webpage'][0]['mimetype']); } else { |