|
Revision 358, 0.9 kB
(checked in by dave, 3 years ago)
|
Wrapped own blog posts in the div: id=view_own_blog
Wrapped friends blog posts in the div: id=view_friends_blogs
Wrapped view all posts in the div: id=view_all_blog_posts
This allows for greater control over the layout of the different blog views.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
// Run includes |
|---|
| 6 |
require_once(dirname(dirname(__FILE__))."/includes.php"); |
|---|
| 7 |
|
|---|
| 8 |
run("profile:init"); |
|---|
| 9 |
run("weblogs:init"); |
|---|
| 10 |
run("friends:init"); |
|---|
| 11 |
|
|---|
| 12 |
define("context", "weblog"); |
|---|
| 13 |
templates_page_setup(); |
|---|
| 14 |
|
|---|
| 15 |
$title = run("profile:display:name") . " :: ". gettext("Friends blog"); |
|---|
| 16 |
|
|---|
| 17 |
$body = run("content:weblogs:view"); |
|---|
| 18 |
$body .= run("weblogs:friends:view"); |
|---|
| 19 |
|
|---|
| 20 |
$body = templates_draw(array( |
|---|
| 21 |
'context' => 'contentholder', |
|---|
| 22 |
'title' => $title, |
|---|
| 23 |
'body' => "<div id=\"view_friends_blogs\">" . $body . "</div>" |
|---|
| 24 |
) |
|---|
| 25 |
); |
|---|
| 26 |
|
|---|
| 27 |
echo templates_page_draw( array( |
|---|
| 28 |
$title, $body |
|---|
| 29 |
) |
|---|
| 30 |
); |
|---|
| 31 |
|
|---|
| 32 |
?> |
|---|