aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-25 16:34:22 -0700
committerCash Costello <cash.costello@gmail.com>2011-10-25 16:34:22 -0700
commit01119f1713739c4d9b0c2aaa00168a498569c37f (patch)
tree0a09b2166085b5f477761f7131c23e4e6f633958 /mod/blog
parent65bd37c1f0e3e3adb04bd48dad6183bcd3c7e26c (diff)
parent5c43ddc2d58dbe7a280742131f221e4947f73125 (diff)
downloadelgg-01119f1713739c4d9b0c2aaa00168a498569c37f.tar.gz
elgg-01119f1713739c4d9b0c2aaa00168a498569c37f.tar.bz2
Merge pull request #80 from cash/styling_content
Fixes #3960 and #2292 making it easier to style and extend content pages
Diffstat (limited to 'mod/blog')
-rw-r--r--mod/blog/views/default/object/blog.php17
1 files changed, 7 insertions, 10 deletions
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php
index b51b769a2..05ddf62c7 100644
--- a/mod/blog/views/default/object/blog.php
+++ b/mod/blog/views/default/object/blog.php
@@ -66,8 +66,6 @@ if ($full) {
'class' => 'blog-post',
));
- $header = elgg_view_title($blog->title);
-
$params = array(
'entity' => $blog,
'title' => false,
@@ -76,15 +74,14 @@ if ($full) {
'tags' => $tags,
);
$params = $params + $vars;
- $list_body = elgg_view('object/elements/summary', $params);
+ $summary = elgg_view('object/elements/summary', $params);
- $blog_info = elgg_view_image_block($owner_icon, $list_body);
-
- echo <<<HTML
-$header
-$blog_info
-$body
-HTML;
+ echo elgg_view('object/elements/full', array(
+ 'title' => $blog->title,
+ 'summary' => $summary,
+ 'icon' => $owner_icon,
+ 'body' => $body,
+ ));
} else {
// brief view