📄 easycalendar.php
字号:
<?php/*** @package Easy Calendar* @copyright (C) 2006 Joomla-addons.org* @author Websmurf* * --------------------------------------------------------------------------------* All rights reserved. Easy Calender Component for Joomla!** This program is free software; you can redistribute it and/or* modify it under the terms of the Creative Commons - Attribution-NoDerivs 2.5 * license as published by the Creative Commons Organisation* http://creativecommons.org/licenses/by-nd/2.5/.** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * --------------------------------------------------------------------------------**/defined( '_VALID_MOS' ) or die( 'Restricted access' );require_once( $mainframe->getPath('class') );require_once( $mainframe->getPath('front_html') );if(file_exists($mainframe->getCfg('absolute_path') . '/components/com_easycalendar/language/'. $mainframe->getCfg('lang') . '.php')){ require_once($mainframe->getCfg('absolute_path') . '/components/com_easycalendar/language/'. $mainframe->getCfg('lang') . '.php');} else { require_once($mainframe->getCfg('absolute_path') . '/components/com_easycalendar/language/english.php');}/** Load menu parameters **/$menu = new mosMenu( $database );$menu->load( $Itemid );$params = new mosParameters( $menu->params );$params->set('back_button', $mainframe->getCfg('back_button'));$task = mosGetParam($_REQUEST, 'task');$cid = mosGetParam($_REQUEST, 'cid', $params->get('catid', 0));$id = mosGetParam($_REQUEST, 'id', 0);$view = mosGetParam($_REQUEST, 'view', $params->def( 'view', 'month' ));switch ($task){ case 'view': events::view($id, $params); break; default: events::frontView($cid, $view, $params); break;}HTML_easycalendar::showCopyright();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -