mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +02:00
Merge branch 'teppokoivula-feature-comments-manager-tweaks' into dev
This commit is contained in:
@@ -23,7 +23,7 @@ class ProcessCommentsManager extends Process {
|
|||||||
return array(
|
return array(
|
||||||
'title' => 'Comments',
|
'title' => 'Comments',
|
||||||
'summary' => 'Manage comments in your site outside of the page editor.',
|
'summary' => 'Manage comments in your site outside of the page editor.',
|
||||||
'version' => 6,
|
'version' => 7,
|
||||||
'author' => 'Ryan Cramer',
|
'author' => 'Ryan Cramer',
|
||||||
'icon' => 'comments',
|
'icon' => 'comments',
|
||||||
'requires' => 'FieldtypeComments',
|
'requires' => 'FieldtypeComments',
|
||||||
@@ -583,7 +583,7 @@ class ProcessCommentsManager extends Process {
|
|||||||
if($cnt) {
|
if($cnt) {
|
||||||
$button = $this->modules->get('InputfieldSubmit');
|
$button = $this->modules->get('InputfieldSubmit');
|
||||||
$button->attr('name', 'processComments');
|
$button->attr('name', 'processComments');
|
||||||
$buton->showInHeader();
|
$button->showInHeader();
|
||||||
$button = $button->render();
|
$button = $button->render();
|
||||||
} else $button = '';
|
} else $button = '';
|
||||||
|
|
||||||
@@ -592,7 +592,11 @@ class ProcessCommentsManager extends Process {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!count($comments)) {
|
if(!count($comments)) {
|
||||||
return "<h2>" . $this->_('None to display') . "</h2>";
|
return
|
||||||
|
"<form>" .
|
||||||
|
$tabsOut .
|
||||||
|
"<h2>" . $this->_('None to display') . "</h2>" .
|
||||||
|
"</form>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$commentsHeader = $this->renderCommentsHeader($limit, $field->useVotes, $field->useStars);
|
$commentsHeader = $this->renderCommentsHeader($limit, $field->useVotes, $field->useStars);
|
||||||
|
Reference in New Issue
Block a user