mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 10:15:28 +02:00
Bump version to 3.0.80
This commit is contained in:
@@ -45,7 +45,7 @@ class ProcessWire extends Wire {
|
|||||||
* Reversion revision number
|
* Reversion revision number
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
const versionRevision = 79;
|
const versionRevision = 80;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Version suffix string (when applicable)
|
* Version suffix string (when applicable)
|
||||||
|
@@ -21,8 +21,8 @@ class ProcessCommentsManager extends Process {
|
|||||||
*/
|
*/
|
||||||
public static function getModuleInfo() {
|
public static function getModuleInfo() {
|
||||||
return array(
|
return array(
|
||||||
'title' => 'Comments',
|
'title' => __('Comments', __FILE__),
|
||||||
'summary' => 'Manage comments in your site outside of the page editor.',
|
'summary' => __('Manage comments in your site outside of the page editor.', __FILE__),
|
||||||
'version' => 7,
|
'version' => 7,
|
||||||
'author' => 'Ryan Cramer',
|
'author' => 'Ryan Cramer',
|
||||||
'icon' => 'comments',
|
'icon' => 'comments',
|
||||||
@@ -82,6 +82,14 @@ class ProcessCommentsManager extends Process {
|
|||||||
*/
|
*/
|
||||||
protected $headline = '';
|
protected $headline = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Translated 'All' label
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected $labelAll = 'All';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the comments manager and define the statuses
|
* Initialize the comments manager and define the statuses
|
||||||
*
|
*
|
||||||
@@ -101,6 +109,7 @@ class ProcessCommentsManager extends Process {
|
|||||||
Comment::statusSpam => $this->_('Spam'),
|
Comment::statusSpam => $this->_('Spam'),
|
||||||
Comment::statusDelete => $this->_('Delete')
|
Comment::statusDelete => $this->_('Delete')
|
||||||
);
|
);
|
||||||
|
$this->labelAll = $this->_('All');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -173,7 +182,8 @@ class ProcessCommentsManager extends Process {
|
|||||||
$session->redirect($this->wire('page')->url . "list/$field->name/all/");
|
$session->redirect($this->wire('page')->url . "list/$field->name/all/");
|
||||||
}
|
}
|
||||||
$statusNum = array_search($status, $this->statuses);
|
$statusNum = array_search($status, $this->statuses);
|
||||||
$headline = $statusNum !== false ? $this->statusTranslations[$statusNum] : ucfirst($status);
|
$headline = $statusNum !== false ? $this->statusTranslations[$statusNum] : $status;
|
||||||
|
if($headline === 'all') $headline = $this->labelAll;
|
||||||
$this->breadcrumb('../', $field->getLabel());
|
$this->breadcrumb('../', $field->getLabel());
|
||||||
|
|
||||||
$limit = (int) $this->wire('input')->get('limit');
|
$limit = (int) $this->wire('input')->get('limit');
|
||||||
@@ -567,7 +577,7 @@ class ProcessCommentsManager extends Process {
|
|||||||
$wireTabs = $this->modules->get('JqueryWireTabs');
|
$wireTabs = $this->modules->get('JqueryWireTabs');
|
||||||
$tabs = array();
|
$tabs = array();
|
||||||
$class = $this->input->urlSegment3 == 'all' ? 'on' : '';
|
$class = $this->input->urlSegment3 == 'all' ? 'on' : '';
|
||||||
$tabs["tabStatusAll"] = "<a class='$class' href='../all/'>" . $this->_('All') . "</a>";
|
$tabs["tabStatusAll"] = "<a class='$class' href='../all/'>" . $this->labelAll . "</a>";
|
||||||
|
|
||||||
foreach($this->statuses as $status => $name) {
|
foreach($this->statuses as $status => $name) {
|
||||||
if($status == Comment::statusDelete) continue;
|
if($status == Comment::statusDelete) continue;
|
||||||
|
Reference in New Issue
Block a user