本文整理汇总了PHP中TemplateManager::smartyUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP TemplateManager::smartyUrl方法的具体用法?PHP TemplateManager::smartyUrl怎么用?PHP TemplateManager::smartyUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TemplateManager
的用法示例。
在下文中一共展示了TemplateManager::smartyUrl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addNavigationItem
/**
* Add additional navigation items.
*/
function addNavigationItem($hookName, $params)
{
$smarty =& $params[1];
$output =& $params[2];
$journal =& $smarty->get_template_vars('currentJournal');
if ($this->getSetting($journal->getId(), 'enableBrowseBySections')) {
$output .= '<li><a href="' . TemplateManager::smartyUrl(array('page' => 'browseSearch', 'op' => 'sections'), $smarty) . '"}">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.browse.search.sections'), $smarty) . '</a></li>';
}
if ($this->getSetting($journal->getId(), 'enableBrowseByIdentifyTypes')) {
$output .= '<li><a href="' . TemplateManager::smartyUrl(array('page' => 'browseSearch', 'op' => 'identifyTypes'), $smarty) . '"}">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.browse.search.identifyTypes'), $smarty) . '</a></li>';
}
return false;
}
示例2: displaySearchLink
function displaySearchLink($hookName, $params)
{
if ($this->getEnabled()) {
$smarty =& $params[1];
$output =& $params[2];
$currentJournal = $smarty->get_template_vars('currentJournal');
if (!empty($currentJournal)) {
$output .= '<a href="' . TemplateManager::smartyUrl(array('page' => 'thesis'), $smarty) . '" class="action">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.thesis.searchLink'), $smarty) . '</a><br /><br />';
}
}
return false;
}
示例3: displayAuthorHomeLink
/**
* Display books for review links in author home.
*/
function displayAuthorHomeLink($hookName, $params)
{
if ($this->getEnabled()) {
$smarty =& $params[1];
$output =& $params[2];
$output .= '<br /><div class="separator"></div><h3>' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.booksForReview.author.booksForReview'), $smarty) . '</h3><ul class="plain"><li>» <a href="' . TemplateManager::smartyUrl(array('page' => 'author', 'op' => 'booksForReview'), $smarty) . '">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.booksForReview.author.myBooksForReview'), $smarty) . '</a></li><li>» <a href="' . TemplateManager::smartyUrl(array('page' => 'booksForReview'), $smarty) . '">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.booksForReview.author.availableBooksForReview'), $smarty) . '</a></li></ul><br />';
}
return false;
}