1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 06:03:27 +02:00

User-settings shortcode and template cleanup. avatarpicker() function added to form handler. Other minor fixes.

This commit is contained in:
CaMer0n
2012-06-19 09:08:41 +00:00
parent 312ec063ba
commit aa4e5c0ee7
17 changed files with 705 additions and 519 deletions

View File

@@ -982,33 +982,36 @@ class comment
$comment = "<br /><div style='text-align:center'><b>".COMLAN_328."</b></div>";
}
if (!$return)
{
$search = array("{MODERATE}","{COMMENTS}","{COMMENTFORM}");
$replace = array($modcomment,"<div id='comments-container'>\n".$text."\n</div>",$comment);
$TEMPL = str_replace($search,$replace,$this->template['LAYOUT']);
$search = array("{MODERATE}","{COMMENTS}","{COMMENTFORM}");
$replace = array($modcomment,"<div id='comments-container'>\n".$text."\n</div>",$comment);
$TEMPL = str_replace($search,$replace,$this->template['LAYOUT']);
if(!$return)
{
if ($tablerender)
{
echo $ns->tablerender("<span id='e-comment-total'>".$this->totalComments."</span> ".COMLAN_99, $TEMPL, 'comment', TRUE);
echo $ns->tablerender("<span id='e-comment-total'>".$this->totalComments."</span> ".COMLAN_99, $TEMPL, 'comment', TRUE);
}
else
{
echo $TEMPL;
}
}
//echo $modcomment.$comment;
//echo $text;
}
$ret['comment'] = $text . $modcomment;
$ret['comment'] = "<div id='comments-container'>\n".$text."\n</div>";
$ret['comment_form'] = $comment;
$ret['caption'] = COMLAN_99;
$ret['caption'] = "<span id='e-comment-total'>".$this->totalComments."</span> ".COMLAN_99;
return (!$return) ? "" : $ret;
}