X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fcalendar%2Ffunctions.php;h=29d507e20ef288899c27c3c1537ed9e125fd046d;hp=dedeb8ee938de31b41c6b448d8d37cf4dc7cceac;hb=821d1f1424ce74d60ae3b6e357a148658f17424e;hpb=1c7143ad75c08368ea25ec57b3242d762cee31ca diff --git a/plugins/calendar/functions.php b/plugins/calendar/functions.php index dedeb8ee..29d507e2 100644 --- a/plugins/calendar/functions.php +++ b/plugins/calendar/functions.php @@ -3,13 +3,28 @@ /** * Other calendar plugin functions. * - * @copyright © 2002-2006 The SquirrelMail Project Team + * @copyright 2002-2012 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins * @subpackage calendar */ +/** + * Add link to menu at top of content pane + * + * @return void + * + */ +function calendar_do() { + + global $oTemplate, $nbsp; + $output = makeInternalLink('plugins/calendar/calendar.php',_("Calendar"),'right') + . $nbsp . $nbsp; + return array('menuline' => $output); + +} + /** * Adds second layer of calendar links to upper menu * @return void @@ -17,15 +32,16 @@ function calendar_header() { global $color,$year,$day,$month; +// FIXME: Don't echo HTML from core. This whole function should probably be moved into a template file echo html_tag( 'table', '', '', $color[0], 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) . html_tag( 'tr' ) . html_tag( 'td', '', 'left', '', 'width="100%"' ); - displayInternalLink("plugins/calendar/calendar.php?year=$year&month=$month",_("Month View"),"right"); + echo makeInternalLink("plugins/calendar/calendar.php?year=$year&month=$month",_("Month View"),"right"); echo "  \n"; - displayInternalLink("plugins/calendar/day.php?year=$year&month=$month&day=$day",_("Day View"),"right"); + echo makeInternalLink("plugins/calendar/day.php?year=$year&month=$month&day=$day",_("Day View"),"right"); echo "  \n"; - // displayInternalLink("plugins/calendar/event_create.php?year=$year&month=$month&day=$day",_("Add Event"),"right"); + // echo makeInternalLink("plugins/calendar/event_create.php?year=$year&month=$month&day=$day",_("Add Event"),"right"); // echo "  \n"; echo ''; @@ -189,4 +205,3 @@ function select_option_day($selected) { } } -?> \ No newline at end of file