From 83fb561f0c72b1a014ee467ec93f1ce791b5c40e Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 1 May 2006 03:12:17 +0000 Subject: [PATCH] Cleaning up the header a bit --- blog/lib.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/blog/lib.php b/blog/lib.php index c1f2990e38..0b75ffd3fc 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -89,16 +89,12 @@ global $CFG, $USER; $blogpage = optional_param('blogpage', 0, PARAM_INT); - $bloglimit = get_user_preferences('blogpagesize',10); // expose as user pref when MyMoodle comes around + $bloglimit = get_user_preferences('blogpagesize',10); // First let's see if the batchpublish form has submitted data $post = data_submitted(); $morelink = '
  '; - // show personal or general heading block as applicable - echo '
'; - - print "
"; //don't print title. blog_get_title_text(); $blogEntries = fetch_entries($userid, $postid, $limit, $start, $filtertype, $filterselect, $tagid, $tag, $sort='lastmodified DESC', $limit=true); @@ -107,7 +103,6 @@ if ($CFG->enablerssfeeds) { blog_rss_print_link($filtertype, $filterselect, $tag); } - print '
'; if (isloggedin() && !isguest()) { //the user's blog is enabled and they are viewing their own blog @@ -213,6 +208,7 @@ $blogtype = get_string('publishtoworld', 'blog'); break; default: + $blogtype = ''; break; } @@ -227,13 +223,16 @@ if ($blogtags = get_records_sql('SELECT t.* FROM '.$CFG->prefix.'tags t, '.$CFG->prefix.'blog_tag_instance ti WHERE t.id = ti.tagid AND ti.entryid = '.$blogEntry->id)) { - echo '

'; - print_string('tags'); - echo ': '; - foreach ($blogtags as $key => $blogtag) { - $taglist[] = ''.$blogtag->text.''; + echo '

'; + if ($blogtags) { + print_string('tags'); + echo ': '; + foreach ($blogtags as $key => $blogtag) { + $taglist[] = ''.$blogtag->text.''; + } + echo implode(', ', $taglist); } - echo implode(', ', $taglist); + echo '
'; } /// Commands -- 2.39.5