Fixed : Gravatar
Added : Classes for tags
This commit is contained in:
parent
ff20399b31
commit
66a799a1ab
2 changed files with 4 additions and 4 deletions
|
@ -158,9 +158,9 @@ class userquery extends CBCategory{
|
||||||
define('AVATAR_SMALL_SIZE',40);
|
define('AVATAR_SMALL_SIZE',40);
|
||||||
define('BG_SIZE',config('max_bg_width'));
|
define('BG_SIZE',config('max_bg_width'));
|
||||||
define('BACKGROUND_URL',config('background_url'));
|
define('BACKGROUND_URL',config('background_url'));
|
||||||
define("USE_GAVATAR",config('gravatars') ? config('gravatars') : false); //Use Gavatar
|
//define("USE_GAVATAR",config('gravatars') ? config('gravatars') : false); //Use Gavatar
|
||||||
define('BACKGROUND_COLOR',config('background_color'));
|
define('BACKGROUND_COLOR',config('background_color'));
|
||||||
|
define('USE_GAVATAR', false);
|
||||||
if(isSectionEnabled('channels'))
|
if(isSectionEnabled('channels'))
|
||||||
$Cbucket->search_types['channels'] = "userquery";
|
$Cbucket->search_types['channels'] = "userquery";
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@
|
||||||
/**
|
/**
|
||||||
* Function used to turn tags into links
|
* Function used to turn tags into links
|
||||||
*/
|
*/
|
||||||
function tags($input,$type,$sep=', ')
|
function tags($input,$type,$sep=', ',$class="")
|
||||||
{
|
{
|
||||||
//Exploding using comma
|
//Exploding using comma
|
||||||
$tags = explode(',',$input);
|
$tags = explode(',',$input);
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
foreach($tags as $tag)
|
foreach($tags as $tag)
|
||||||
{
|
{
|
||||||
$params = array('name'=>'tag','tag'=>trim($tag),'type'=>$type);
|
$params = array('name'=>'tag','tag'=>trim($tag),'type'=>$type);
|
||||||
$new_tags .= '<a href="'.cblink($params).'">'.$tag.'</a>';
|
$new_tags .= '<a href="'.cblink($params).'" class="'.$class.'">'.$tag.'</a>';
|
||||||
if($count<$total)
|
if($count<$total)
|
||||||
$new_tags .= $sep;
|
$new_tags .= $sep;
|
||||||
$count++;
|
$count++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue