1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-09 12:06:29 +02:00

Comment sort pref added. Ajax comment submission complete.

This commit is contained in:
CaMer0n
2012-06-16 12:41:30 +00:00
parent 3c37643365
commit d778c98a38
7 changed files with 156 additions and 35 deletions

View File

@@ -28,7 +28,7 @@ class comment_shortcodes extends e_shortcode
if(vartrue($pref['nested_comments']))
{
return "<input class='tbox comment subject-input' type='text' placeholder='".COMLAN_324." name='subject' size='61' value='".$tp->toForm($this->var['subject'])."' maxlength='100' />";
return "<input class='tbox comment subject-input' type='text' placeholder='".COMLAN_324."' name='subject' size='61' value='".$tp->toForm($this->var['subject'])."' maxlength='100' />";
}
return;
@@ -196,9 +196,13 @@ class comment_shortcodes extends e_shortcode
function sc_comment_button($parm)
{
$pref = e107::getPref('comments_sort');
if($this->mode == 'edit')
{
return "<input class='button' type='submit' name='".$this->var['action']."submit' value='".(isset($this->var['eaction']) && $this->var['eaction'] == "edit" ? COMLAN_320 : COMLAN_9)."' />";
$value = (varset($this->var['eaction']) == "edit" ? COMLAN_320 : COMLAN_9);
return "<input data-sort='".$pref."' data-target='".e_BASE."comment.php' class='button e-comment-submit' type='submit' name='".$this->var['action']."submit' value='".$value."' />";
}
}
@@ -247,7 +251,7 @@ class comment_shortcodes extends e_shortcode
}
else
{
return e107::getForm()->textarea('comment',$this->var['comval'], 5, 80,$options);
return e107::getForm()->textarea('comment',$this->var['comval'], 3, 80,$options);
}
}