} else { if (isset($_POST['output_ics_confirm']) && !empty($_POST['ids']) && is_array($_POST['ids'])) { echo $cal->output_ics_confirm("{$mod_url}/"); } else { switch ($smode) { case 'Yearly': echo $cal->get_yearly(); break; case 'Weekly': echo $cal->get_weekly(); break; case 'Daily': echo $cal->get_daily(); break; case 'List': $cal->assign_event_list($xoopsTpl); break; case 'Monthly': default: echo $cal->get_monthly(); break; } } } } // For XCL 2.2 Call addMeta //naao if ($pical_meta_description) { if (defined('LEGACY_MODULE_VERSION') && version_compare(LEGACY_MODULE_VERSION, '2.2', '>=')) { $xclRoot =& XCube_Root::getSingleton(); $headerScript = $xclRoot->mContext->getAttribute('headerScript'); $headerScript->addMeta('description', $pical_meta_description);
$smode = isset($_GET['smode']) ? $myts->stripSlashesGPC($_GET['smode']) : ''; $event_id = isset($_GET['event_id']) ? intval($_GET['event_id']) : 0; if( ! empty( $event_id ) ) { $tpl->assign('contents', $cal->get_schedule_view_html( true ) ) ; } else switch( $smode ) { case 'Yearly' : $tpl->assign('for_event_list', false ) ; $tpl->assign('contents', $cal->get_yearly( '' , '' , true ) ) ; break ; case 'Weekly' : $tpl->assign('for_event_list', false ) ; $tpl->assign('contents', $cal->get_weekly( '' , '' , true ) ) ; break ; case 'Daily' : $tpl->assign('for_event_list', false ) ; $tpl->assign('contents', $cal->get_daily( '' , '' , true ) ) ; break ; case 'List' : $tpl->assign('for_event_list', true ) ; $cal->assign_event_list( $tpl ) ; break ; case 'Monthly' : default : $tpl->assign('for_event_list', false ) ; $tpl->assign('contents', $cal->get_monthly( '' , '' , true ) ) ; break ; } $tpl->display("db:pical{$mydirnumber}_print.html"); ?>