PKPTemplateManager::smartyHelp PHP Method

smartyHelp() public method

Custom Smarty function for displaying a context-sensitive help link.
public smartyHelp ( $params, $smarty ) : string
$smarty Smarty
return string the HTML for the generated link action
    function smartyHelp($params, $smarty)
    {
        assert(isset($params['file']));
        $params = array_merge(array('file' => null, 'section' => null, 'textKey' => 'help.help', 'text' => null, 'class' => null), $params);
        $this->assign(array('helpFile' => $params['file'], 'helpSection' => $params['section'], 'helpTextKey' => $params['textKey'], 'helpText' => $params['text'], 'helpClass' => $params['class']));
        return $this->fetch('common/helpLink.tpl');
    }