Skip to content

Commit

Permalink
Forum shortcodes cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rica-carv authored Aug 18, 2024
1 parent e5595af commit e6a5d32
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions e107_plugins/forum/shortcodes/batch/forum_shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,41 +32,41 @@ function sc_forumtitle()
}

// LEGACY shortcodes, to be deprecated & directly handled in template file???
function sc_threadtitle()
/* function sc_threadtitle()
{
return LAN_FORUM_0002;
}

function sc_replytitle()
*/
/* function sc_replytitle()
{
return LAN_FORUM_0003;
}

function sc_lastpostitle()
*/
/* function sc_lastpostitle()
{
return LAN_FORUM_0004;
}

function sc_infotitle()
*/
/* function sc_infotitle()
{
return LAN_FORUM_0009;
}

function sc_newthreadtitle()
*/
/* function sc_newthreadtitle()
{
return LAN_FORUM_0075;
}

function sc_postedtitle()
*/
/* function sc_postedtitle()
{
return LAN_FORUM_0074;
}

function sc_tracktitle()
*/
/* function sc_tracktitle()
{
return LAN_FORUM_0073;
}

*/
function sc_statlink()
{
return "<a href='".e107::url('forum','stats')."'>".LAN_FORUM_0017."</a>\n";
Expand All @@ -84,7 +84,11 @@ function sc_iconkey()
return null;
}

return "
// global $FORUM_TEMPLATE;
// if($FORUM_TEMPLATE['iconkey']){return $FORUM_TEMPLATE['iconkey'];}
$FORUM_TEMPLATE = varset($GLOBALS['FORUM_TEMPLATE']);
return (defset('BOOTSTRAP') && !empty($FORUM_TEMPLATE['iconkey'])) ? e107::getParser()->parseTemplate($FORUM_TEMPLATE['iconkey'], true, $this) :
"
<table class='table table-bordered' style='width:100%'>\n<tr>
<td style='width:2%'>".defset('IMAGE_new_small')."</td>
<td style='width:10%'><span class='smallblacktext'>".LAN_FORUM_0039."</span></td>
Expand Down Expand Up @@ -510,7 +514,9 @@ function sc_lastpostuser()

function sc_lastpostdate()
{
return $this->sc_lastpost(array('type'=>'datelink'));
echo "<hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr><hr>";

return $this->sc_lastpost(array('type'=>'datelink'));
}


Expand Down

0 comments on commit e6a5d32

Please sign in to comment.