$smode = $default_view; } // XOOPヘッダ出力前の処理 if ($action == 'View') { $xoopsOption['template_main'] = "pical{$mydirnumber}_event_detail.html"; } else { // View以外ではコメント禁止 $xoopsModuleConfig['com_rule'] = 0; if ($smode == 'List' && $action != 'Edit') { $xoopsOption['template_main'] = "pical{$mydirnumber}_event_list.html"; } } // XOOPSヘッダ出力 include XOOPS_ROOT_PATH . '/header.php'; // embed style sheet の出力 (thx Ryuji) $xoopsTpl->assign("xoops_module_header", "<style><!-- \n" . $cal->get_embed_css() . "\n--></style>\n" . $xoopsTpl->get_template_vars("xoops_module_header")); // クローラーにリンクをへつらせない follow -> nofollow $meta_robots = str_replace(',follow', ',nofollow', $xoopsTpl->get_template_vars("xoops_meta_robots")); $xoopsTpl->assign("xoops_meta_robots", $meta_robots); // meta "description" $pical_meta_description = ""; // naao // モジュールID // added by naao $module_handler =& xoops_gethandler('module'); $this_module =& $module_handler->getByDirname($mydirname); $mid = $this_module->getVar('mid'); // モジュールconfig // added by naao $config_handler =& xoops_gethandler("config"); $mod_config = $config_handler->getConfigsByCat(0, $mid); $xoopsTpl->assign("moduleConfig", $mod_config); // 実行時間計測スタート