foreach ($itemsObj as $itemObj) { $xoopsTpl->append('items', $itemObj->toArray($publisher->getConfig('idxcat_items_display_type'), $publisher->getConfig('item_title_size'), 300, true)); //if no summary truncate body to 300 } $xoopsTpl->assign('show_subtitle', $publisher->getConfig('index_disp_subtitle')); unset($allcategories); } unset($itemsObj); } // Language constants $xoopsTpl->assign('title_and_welcome', $publisher->getConfig('index_title_and_welcome')); //SHINE ADDED DEBUG mainintro txt $xoopsTpl->assign('lang_mainintro', $myts->displayTarea($publisher->getConfig('index_welcome_msg'), 1)); $xoopsTpl->assign('sectionname', $publisher->getModule()->getVar('name')); $xoopsTpl->assign('whereInSection', $publisher->getModule()->getVar('name')); $xoopsTpl->assign('module_home', PublisherUtils::moduleHome(false)); $xoopsTpl->assign('indexfooter', $myts->displayTarea($publisher->getConfig('index_footer'), 1)); $xoopsTpl->assign('lang_category_summary', _MD_PUBLISHER_INDEX_CATEGORIES_SUMMARY); $xoopsTpl->assign('lang_category_summary_info', _MD_PUBLISHER_INDEX_CATEGORIES_SUMMARY_INFO); $xoopsTpl->assign('lang_items_title', _MD_PUBLISHER_INDEX_ITEMS); $xoopsTpl->assign('indexpage', true); // Category Navigation Bar $pagenav = new XoopsPageNav($totalCategories, $publisher->getConfig('idxcat_cat_perpage'), $catstart, 'catstart', ''); if ($publisher->getConfig('format_image_nav') == 1) { $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>'); } else { $xoopsTpl->assign('catnavbar', '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'); } // ITEM Navigation Bar $pagenav = new XoopsPageNav($real_total_items, $publisher->getConfig('idxcat_index_perpage'), $start, 'start', ''); if ($publisher->getConfig('format_image_nav') == 1) {
$category['last_title_link'] = $last_itemObj[$categoryObj->getVar('categoryid')]->getItemLink(false, $lastitemsize); } $xoopsTpl->assign('show_subtitle', $publisher->getConfig('cat_disp_subtitle')); } $categories = array(); $categories[] = $category; $xoopsTpl->assign('category', $category); $xoopsTpl->assign('categories', $categories); // Language constants $xoopsTpl->assign('sectionname', $publisher->getModule()->getVar('name')); $xoopsTpl->assign('whereInSection', $publisher->getModule()->getVar('name')); $xoopsTpl->assign('modulename', $publisher->getModule()->getVar('dirname')); $xoopsTpl->assign('lang_category_summary', sprintf(_MD_PUBLISHER_CATEGORY_SUMMARY, $categoryObj->getVar('name'))); $xoopsTpl->assign('lang_category_summary_info', sprintf(_MD_PUBLISHER_CATEGORY_SUMMARY_INFO, $categoryObj->getVar('name'))); $xoopsTpl->assign('lang_items_title', sprintf(_MD_PUBLISHER_ITEMS_TITLE, $categoryObj->getVar('name'))); $xoopsTpl->assign('module_home', PublisherUtils::moduleHome($publisher->getConfig('format_linked_path'))); $xoopsTpl->assign('categoryPath', $category['categoryPath']); $xoopsTpl->assign('selected_category', $categoryid); // The Navigation Bar $pagenav = new XoopsPageNav($thiscategory_itemcount, $publisher->getConfig('idxcat_index_perpage'), $start, 'start', 'categoryid=' . $categoryObj->getVar('categoryid')); if ($publisher->getConfig('format_image_nav') == 1) { $navbar = '<div style="text-align:right;">' . $pagenav->renderImageNav() . '</div>'; } else { $navbar = '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; } $xoopsTpl->assign('navbar', $navbar); /** * Generating meta information for this page */ $publisher_metagen = new PublisherMetagen($categoryObj->getVar('name'), $categoryObj->getVar('meta_keywords', 'n'), $categoryObj->getVar('meta_description', 'n'), $categoryObj->getCategoryPathForMetaTitle()); $publisher_metagen->createMetaTags();