From ed81771d23473786d1fb43bae0ea5ca7f0b441ad Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 5 Dec 2010 19:36:32 +0000 Subject: added a convience function for the media content pattern - is elgg_view_media() a good name? git-svn-id: http://code.elgg.org/elgg/trunk@7538 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/object/blog.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'mod/blog/views/default') diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index 75df11b62..08e174063 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -92,13 +92,9 @@ if ($full) { HTML; - $params = array( - 'icon' => $owner_icon, - 'body' => $info, - ); - $blog_info = elgg_view('layout_elements/media', $params); + $blog_info = elgg_view_media($owner_icon, $info); -echo << @@ -124,9 +120,5 @@ HTML; HTML; - $params = array( - 'icon' => $owner_icon, - 'body' => $body, - ); - echo elgg_view('layout_elements/media', $params); + echo elgg_view_media($owner_icon, $body); } -- cgit v1.2.3