summaryrefslogtreecommitdiff
path: root/smartyplugins/modifier.userlink.php
blob: 49b0aa0a6c36929237c562764017a7c636ab111e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
namespace Bitweaver\Plugins;

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * smarty_modifier_userlink
 */
function smarty_modifier_userlink($user,$class='username') {
   return '<a class="'.$class.'" href="'.USERS_PKG_URL.'index.php?home='.$user.'">'.$user.'</a>';
}

/* vim: set expandtab: */