/** * Create metada and assign it to template */ public function createMetaTags() { $publisher_metagen = new PublisherMetagen($this->title(), $this->meta_keywords(), $this->meta_description(), $this->_category->_categoryPath); $publisher_metagen->createMetaTags(); }
$xoopsTpl->assign('categoryPath', $item['categoryPath'] . ' > ' . $item['title']); $xoopsTpl->assign('commentatarticlelevel', $publisher->getConfig('perm_com_art_level')); $xoopsTpl->assign('com_rule', $publisher->getConfig('com_rule')); $xoopsTpl->assign('other_items', $publisher->getConfig('item_other_items_type')); $xoopsTpl->assign('itemfooter', $myts->displayTarea($publisher->getConfig('item_footer'), 1)); $xoopsTpl->assign('perm_author_items', $publisher->getConfig('perm_author_items')); // tags support if (xoops_isActiveModule('tag')) { include_once $GLOBALS['xoops']->path('modules/tag/include/tagbar.php'); $xoopsTpl->assign('tagbar', tagbar($itemId, $catid = 0)); } /** * Generating meta information for this page */ $publisherMetagen = new PublisherMetagen($itemObj->getVar('title'), $itemObj->getVar('meta_keywords', 'n'), $itemObj->getVar('meta_description', 'n'), $itemObj->getCategoryPath()); $publisherMetagen->createMetaTags(); // Include the comments if the selected ITEM supports comments if ($publisher->getConfig('com_rule') != 0 && ($itemObj->cancomment() == 1 || !$publisher->getConfig('perm_com_art_level'))) { include_once $GLOBALS['xoops']->path('include/comment_view.php'); // 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'] = publisherRatingBar($itemId); $xoTheme->addScript(PUBLISHER_URL . '/assets/js/behavior.js'); $xoTheme->addScript(PUBLISHER_URL . '/assets/js/rating.js'); } $xoopsTpl->assign('item', $item);
/** * */ public function createMetaTags() { $publisherMetagen = new PublisherMetagen($this->name(), $this->meta_keywords(), $this->meta_description()); $publisherMetagen->createMetaTags(); }
/** * */ public function createMetaTags() { $publisher_metagen = new PublisherMetagen($this->getVar('name'), $this->getVar('meta_keywords'), $this->getVar('meta_description')); $publisher_metagen->createMetaTags(); }