Simple status box for the sidebar.
[elgg_plugins.git] / calendar / _calendar / index.php
blob09cf8510118ac8a0af593a2b85afa7426b2c2b74
1 <?php
2 require("../includes.php");
4 run("calendar:init");
5 run("profile:init");
6 run("friends:init");
8 define("context", "calendar");
10 $title = run("profile:display:name") . " :: " . gettext("Calendar");
12 if(!isset($_REQUEST["selected_month"]) || !isset($_REQUEST["selected_year"])){
13 $body = run("calendar:display:monthly", array($_REQUEST["context"]));
15 }else if(isset($_REQUEST["selected_month"]) && isset($_REQUEST["selected_year"])){
16 $body = run("calendar:display:monthly", array($_REQUEST["selected_month"],
17 $_REQUEST["selected_year"],
18 $_REQUEST["context"]));
21 $body = run("templates:draw", array(
22 'context' => 'contentholder',
23 'title' => $title,
24 'body' => $body
28 echo run("templates:draw:page", array(
29 $title, $body