1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Removed some LAN constant usage from core templates.

This commit is contained in:
Cameron
2021-02-23 12:58:51 -08:00
parent 76af210666
commit f30caaf18b
18 changed files with 178 additions and 233 deletions

View File

@@ -209,7 +209,7 @@
{
$FORUM_VIEWFORUM_TEMPLATE = varset($GLOBALS['FORUM_VIEWFORUM_TEMPLATE']);
return (defset('BOOTSTRAP') && !empty($FORUM_VIEWFORUM_TEMPLATE['iconkey'])) ? e107::getParser()->parseTemplate($FORUM_VIEWFORUM_TEMPLATE['iconkey'], true) : "
return (defset('BOOTSTRAP') && !empty($FORUM_VIEWFORUM_TEMPLATE['iconkey'])) ? e107::getParser()->parseTemplate($FORUM_VIEWFORUM_TEMPLATE['iconkey'], true, $this) : "
<table class='table table-bordered' style='width:100%'>
<tr>
<td style='vertical-align:middle; text-align:center; width:2%'>" . IMAGE_new_small . "</td>
@@ -806,9 +806,28 @@
return $this->gen->computeLapse($this->var['thread_datestamp'], time(), false, false, 'short'); // convert_date($thread_info['thread_datestamp'], 'forum');
}
function sc_icon()
private function keyIcon($parm)
{
$size = 'small';
if(!empty($parm['type']))
{
return deftrue('IMAGE_'.$parm['type'].'_'.$size);
}
}
function sc_icon($parm)
{
if(!empty($parm))
{
return $this->keyIcon($parm);
}
global $forum;
// global $forum, $FORUM_VIEW_FORUM, $FORUM_VIEW_FORUM_STICKY, $FORUM_VIEW_FORUM_ANNOUNCE, $gen, $menu_pref,
//$threadsViewed = $forum->threadGetUserViewed();