本文整理汇总了PHP中TemplateManager::smartyTranslate方法的典型用法代码示例。如果您正苦于以下问题:PHP TemplateManager::smartyTranslate方法的具体用法?PHP TemplateManager::smartyTranslate怎么用?PHP TemplateManager::smartyTranslate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TemplateManager
的用法示例。
在下文中一共展示了TemplateManager::smartyTranslate方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: displayManagerLink
/**
* Display management link for JM.
* @param $hookName string
* @param $params array
*/
function displayManagerLink($hookName, $params)
{
if ($this->getEnabled()) {
$smarty =& $params[1];
$output =& $params[2];
$output .= '<li>» <a href="' . $this->smartyPluginUrl(array('op' => 'plugin', 'path' => 'feeds'), $smarty) . '">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.externalFeed.manager.feeds'), $smarty) . '</a></li>';
}
return false;
}
示例4: 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;
}
示例5: getDescription
function getDescription()
{
$this->addLocaleData();
return TemplateManager::smartyTranslate(array('key' => 'plugins.generic.pid.description'), $smarty);
}