From 2c9ea2cd34a1dd782e165b163899d7ba1ec1f41c Mon Sep 17 00:00:00 2001 From: pete Date: Tue, 9 Mar 2010 18:17:16 +0000 Subject: Blogs updated to new UI (needs Brett to look over first) git-svn-id: http://code.elgg.org/elgg/trunk@5335 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/endpoint/index.php | 92 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 mod/blog/endpoint/index.php (limited to 'mod/blog/endpoint/index.php') diff --git a/mod/blog/endpoint/index.php b/mod/blog/endpoint/index.php new file mode 100644 index 000000000..013770e36 --- /dev/null +++ b/mod/blog/endpoint/index.php @@ -0,0 +1,92 @@ +" . list_user_objects($user_object->guid,'blog',10,false, false) . "
"; + set_context('blog'); + + //get some user details + $user_name = $user_object->name; + $user_desc = $user_object->briefdescription; + $user_location = $user_object->location; + + //get archive list + if ($dates = get_entity_dates('object','blog',$user_object->guid)) { + foreach($dates as $date) { + $timestamplow = mktime(0,0,0,substr($date,4,2),1,substr($date,0,4)); + $timestamphigh = mktime(0,0,0,((int) substr($date,4,2)) + 1,1,substr($date,0,4)); + $link = $CONFIG->wwwroot . 'pg/blog/' . $page_owner->username . '/archive/' . $timestamplow . '/' . $timestamphigh; + $year = substr($date,0,-2); + $month = date('F',mktime(0, 0, 0, substr($date,4,2), 1)); //substr($date,4,2); + $display_date = $month . " " . $year; + $archive_list .= "
  • " . $display_date . "
  • "; + } + } +?> + + +Brighton news blog + + + + + +
    +
    + +
    +
    +
    +
    +
    + +
    + + + + \ No newline at end of file -- cgit v1.2.3