aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-05 19:36:32 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-05 19:36:32 +0000
commited81771d23473786d1fb43bae0ea5ca7f0b441ad (patch)
tree10b3de9f27b8d4ce58f5da27a231b71b9fba26e8 /mod/blog/views
parent0a6e0702c71bb3aa50f0daae21c456c51a362b27 (diff)
downloadelgg-ed81771d23473786d1fb43bae0ea5ca7f0b441ad.tar.gz
elgg-ed81771d23473786d1fb43bae0ea5ca7f0b441ad.tar.bz2
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
Diffstat (limited to 'mod/blog/views')
-rw-r--r--mod/blog/views/default/object/blog.php14
1 files changed, 3 insertions, 11 deletions
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) {
</div>
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 <<<HTML
+ echo <<<HTML
$header
$blog_info
<div class="blog_post elgg-content">
@@ -124,9 +120,5 @@ HTML;
</div>
HTML;
- $params = array(
- 'icon' => $owner_icon,
- 'body' => $body,
- );
- echo elgg_view('layout_elements/media', $params);
+ echo elgg_view_media($owner_icon, $body);
}