if ($xoops->isActiveModule('tag')) { include_once \XoopsBaseConfig::get('root-path') . '/modules/tag/include/tagbar.php'; $xoopsTpl->assign('tagbar', tagBar($itemid, $catid = 0)); } /** * Generating meta information for this page */ $publisher_metagen = new PublisherMetagen($itemObj->getVar('title'), $itemObj->getVar('meta_keywords', 'n'), $itemObj->getVar('meta_description', 'n'), $itemObj->getCategoryPath()); $publisher_metagen->createMetaTags(); // Include the comments if the selected ITEM supports comments if ($xoops->isActiveModule('comments') && ($itemObj->getVar('cancomment') == 1 || !$publisher->getConfig('perm_com_art_level')) && $publisher->getConfig('com_rule') != 0) { $xoopsTpl->assign('canComment', true); //Comments::getInstance()->renderView(); // Problem with url_rewrite and posting comments : /* $xoopsTpl->assign(array( 'editcomment_link' => PUBLISHER_URL . '/comment_edit.php?com_itemid=' . $com_itemid . '&com_order=' . $com_order . '&com_mode=' . $com_mode . $link_extra, 'deletecomment_link' => PUBLISHER_URL . '/comment_delete.php?com_itemid=' . $com_itemid . '&com_order=' . $com_order . '&com_mode=' . $com_mode . $link_extra, 'replycomment_link' => PUBLISHER_URL . '/comment_reply.php?com_itemid=' . $com_itemid . '&com_order=' . $com_order . '&com_mode=' . $com_mode . $link_extra)); $xoopsTpl->_tpl_vars['commentsnav'] = str_replace("self.location.href='", "self.location.href='" . PUBLISHER_URL . '/', $xoopsTpl->_tpl_vars['commentsnav']); */ } // Include support for AJAX rating if ($publisher->getConfig('perm_rating')) { $xoopsTpl->assign('rating_enabled', true); $item['ratingbar'] = PublisherUtils::ratingBar($itemid); $xoTheme->addScript(PUBLISHER_URL . '/js/behavior.js'); $xoTheme->addScript(PUBLISHER_URL . '/js/rating.js'); } $xoopsTpl->assign('item', $item); $xoops->footer();