mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 04:12:00 +02:00
Comment fixes. Problem remains with SEF Urls
This commit is contained in:
@@ -74,10 +74,13 @@ class comment_shortcodes extends e_shortcode
|
||||
|
||||
|
||||
function sc_timedate($parm='')
|
||||
{
|
||||
global $TIMEDATE, $datestamp, $gen;
|
||||
$datestamp = $gen->convert_date($this->var['comment_datestamp'], "short");
|
||||
return $datestamp;
|
||||
{
|
||||
if($parm == 'relative')
|
||||
{
|
||||
return e107::getDate()->computeLapse($this->var['comment_datestamp'],time(),false, false, 'short');
|
||||
}
|
||||
|
||||
return e107::getDate()->convert_date($this->var['comment_datestamp'], "short");
|
||||
}
|
||||
|
||||
|
||||
@@ -251,7 +254,7 @@ class comment_shortcodes extends e_shortcode
|
||||
function sc_comment_input($parm='')
|
||||
{
|
||||
$options = array(
|
||||
'class' => 'tbox input comment-input',
|
||||
'class' => 'tbox input-xxlarge comment-input',
|
||||
'placeholder' => "Leave a message..." // TODO Lan
|
||||
);
|
||||
|
||||
|
@@ -42,13 +42,13 @@ function user_avatar_shortcode($parm='')
|
||||
|
||||
if (vartrue($image))
|
||||
{
|
||||
$img = (strpos($image,"://")!==false) ? $image : $tp->thumbUrl(e_MEDIA."avatars/".$image,"aw=".$width."&ah=".$height);
|
||||
$img = (strpos($image,"://")!==false) ? $image : $tp->thumbUrl(e_MEDIA."avatars/".$image,"w=".$width."&h=".$height);
|
||||
$text = "<img class='user-avatar e-tip' src='".$img."' alt='' style='width:".$width."px; height:".$height."px' />
|
||||
";
|
||||
}
|
||||
else
|
||||
{
|
||||
$img = $tp->thumbUrl(e_IMAGE."generic/blank_avatar.jpg","aw=".$width."&ah=".$height);
|
||||
$img = $tp->thumbUrl(e_IMAGE."generic/blank_avatar.jpg","w=".$width."&h=".$height);
|
||||
$text = "<img class='user-avatar' src='".$img."' alt='' />";
|
||||
}
|
||||
|
||||
|
@@ -129,7 +129,7 @@ $COMMENT_TEMPLATE['ITEM'] = '
|
||||
<div class="row-fluid">
|
||||
|
||||
<div class="comment-box-username span1">{USERNAME}</div>
|
||||
<div class="comment-box-date span2">{TIMEDATE}</div>
|
||||
<div class="comment-box-date span2">{TIMEDATE=relative}</div>
|
||||
<div class="comment-status span3">{COMMENT_STATUS}</div>
|
||||
<div class="comment-moderate span6">{COMMENT_RATE} {REPLY} {COMMENTEDIT} {COMMENT_MODERATE}</div>
|
||||
|
||||
|
Reference in New Issue
Block a user