コード例 #1
0
ファイル: category.php プロジェクト: BackupTheBerlios/soopa
$xoopsTpl->assign('whereInSection', $myts->displayTarea($xoopsModule->getVar('name')));
$xoopsTpl->assign('modulename', $xoopsModule->dirname());
$xoopsTpl->assign('lang_category_summary', sprintf(_MD_SS_CATEGORY_SUMMARY, $categoryObj->name()));
$xoopsTpl->assign('lang_category_summary_info', sprintf(_MD_SS_CATEGORY_SUMMARY_INFO, $categoryObj->name()));
$xoopsTpl->assign('lang_items_title', sprintf(_MD_SS_ITEMS_TITLE, $categoryObj->name()));
$xoopsTpl->assign('lang_items_info', _MD_SS_ITEMS_INFO);
$xoopsTpl->assign('module_home', ss_module_home($xoopsModuleConfig['linkedPath']));
$xoopsTpl->assign('categoryPath', $category['categoryPath']);
$xoopsTpl->assign('lang_name_column', _MD_SS_NAME);
$xoopsTpl->assign('lang_empty', _MD_SS_EMPTY);
$xoopsTpl->assign('lang_view_more', _MD_SS_VIEW_MORE);
//$xoopsTpl->assign('lang_items_list', _MD_SS_ITEMS_LIST);
//$xoopsTpl->assign('lang_link_xplain', _MD_SS_LINK_XPLAIN);
// The Navigation Bar
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
$pagenav = new XoopsPageNav($thiscategory_itemcount, $xoopsModuleConfig['indexperpage'], $start, 'start', 'categoryid=' . $categoryObj->getVar('categoryid'));
if ($xoopsModuleConfig['useimagenavpage'] == 1) {
    $category['navbar'] = '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>';
} else {
    $category['navbar'] = '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>';
}
//echo  $category['last_title_link'];exit;
$xoopsTpl->assign('category', $category);
// MetaTag Generator
smartsection_createMetaTags($categoryObj->name(), '', $categoryObj->description());
//code to include smartie
if (file_exists(XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php')) {
    include_once XOOPS_ROOT_PATH . '/modules/smarttie/smarttie_links.php';
}
//end code for smarttie
include_once XOOPS_ROOT_PATH . "/footer.php";