| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
// Run includes |
|---|
| 6 |
require_once(dirname(dirname(__FILE__))."/includes.php"); |
|---|
| 7 |
|
|---|
| 8 |
run("profile:init"); |
|---|
| 9 |
run("friends:init"); |
|---|
| 10 |
run("weblogs:init"); |
|---|
| 11 |
|
|---|
| 12 |
define("context", "weblog"); |
|---|
| 13 |
templates_page_setup(); |
|---|
| 14 |
|
|---|
| 15 |
$title = __gettext("All blogs"); |
|---|
| 16 |
|
|---|
| 17 |
$body = run("content:weblogs:view"); |
|---|
| 18 |
|
|---|
| 19 |
$body .= "<p>" . __gettext("You can filter this page to certain types of posts:") . "</p>"; |
|---|
| 20 |
$body .= '<ul>'; |
|---|
| 21 |
$body .= '<li><a href="everyone.php?filter=people">' . __gettext('Personal blog posts') . '</a></li>'; |
|---|
| 22 |
$body .= '<li><a href="everyone.php?filter=communities">' . __gettext('Community blog posts') . '</a></li>'; |
|---|
| 23 |
$body .= '<li><a href="everyone.php?filter=commented">' . __gettext('Posts with comments') . '</a></li>'; |
|---|
| 24 |
$body .= '<li><a href="everyone.php?filter=uncommented">' . __gettext('Posts with no comments') . '</a></li>'; |
|---|
| 25 |
$body .= '</ul>'; |
|---|
| 26 |
|
|---|
| 27 |
$body .= run("weblogs:everyone:view"); |
|---|
| 28 |
|
|---|
| 29 |
$body = templates_draw(array( |
|---|
| 30 |
'context' => 'contentholder', |
|---|
| 31 |
'title' => $title, |
|---|
| 32 |
'body' => "<div id=\"view_all_blog_posts\">" . $body . "</div>" |
|---|
| 33 |
) |
|---|
| 34 |
); |
|---|
| 35 |
|
|---|
| 36 |
echo templates_page_draw( array( |
|---|
| 37 |
$title, $body |
|---|
| 38 |
) |
|---|
| 39 |
); |
|---|
| 40 |
|
|---|
| 41 |
?> |
|---|