diff --git a/system/htmly.php b/system/htmly.php index 3af95d9..c0f0e25 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -133,7 +133,7 @@ get('/:year/:month/:name', function($year, $month, $name){ render('post',array( 'head_contents' => head_contents($current->title .' - ' . blog_title(), $description = get_description($current->body), $current->url), 'p' => $current, - 'authorinfo' => '
', + 'authorinfo' => authorinfo($bio->title, $bio->body), 'bodyclass' => 'inpost', 'breadcrumb' => '' .config('breadcrumb.home'). ' » '. $current->tagb . ' » ' . $current->title, 'prev' => has_prev($prev), diff --git a/system/includes/functions.php b/system/includes/functions.php index d58c3db..7f1f535 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1346,6 +1346,13 @@ function blog_copyright() { return config('blog.copyright'); } +// Return author info +function authorinfo($title=null, $body=null) { + if (config('author.info') == 'true') { + return ''; + } +} + function head_contents($title, $description, $canonical) { $output = ''; $title = '