1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 00:06:55 +02:00

Bump version to 3.0.55 and a couple other minor adjustments

This commit is contained in:
Ryan Cramer
2017-03-10 12:46:01 -05:00
parent 8b96e6b060
commit 8018ecc7af
5 changed files with 26 additions and 6 deletions

View File

@@ -1104,7 +1104,7 @@ class Page extends WireData implements \Countable, WireMatchable {
*/ */
public function getField($field) { public function getField($field) {
$template = $this->template; $template = $this->template;
$fieldgroup = $template ? $this->template->fieldgroup : null; $fieldgroup = $template ? $template->fieldgroup : null;
if(!$fieldgroup) return null; if(!$fieldgroup) return null;
if($this->outputFormatting && $fieldgroup->hasFieldContext($field)) { if($this->outputFormatting && $fieldgroup->hasFieldContext($field)) {
$value = $fieldgroup->getFieldContext($field); $value = $fieldgroup->getFieldContext($field);
@@ -3826,5 +3826,23 @@ class Page extends WireData implements \Countable, WireMatchable {
$result = $this->wire('pages')->$method($selector, $options); $result = $this->wire('pages')->$method($selector, $options);
return $result; return $result;
} }
/*
public function remove($key) {
parent::remove($key);
if(isset($this->data[$key])) {
$a = parent::get('_statusCorruptedFields');
if(!is_array($a)) $a = array();
$k = array_search($key, $a);
if($k !== false) {
unset($a[$k]);
if(empty($a)) $this->removeStatus(self::statusCorrupted);
parent::set('_statusCorruptedFields', $a);
}
}
return $this;
}
*/
} }

View File

@@ -45,7 +45,7 @@ class ProcessWire extends Wire {
* Reversion revision number * Reversion revision number
* *
*/ */
const versionRevision = 54; const versionRevision = 55;
/** /**
* Version suffix string (when applicable) * Version suffix string (when applicable)

View File

@@ -22,6 +22,7 @@ $mainnav-width: 210px;
$mainnav-width-wide: 230px; // bigger sidebar for wide screen? $mainnav-width-wide: 230px; // bigger sidebar for wide screen?
$masthead-height: 52px; $masthead-height: 52px;
//noinspection CssInvalidPropertyValue
@mixin word-wrap() { @mixin word-wrap() {
overflow-wrap: break-word; overflow-wrap: break-word;
word-break: break-word; word-break: break-word;
@@ -1239,7 +1240,7 @@ body.pw-init .toggle-icon {
@media only screen and (max-width: 480px) { @media only screen and (max-width: 480px) {
#branding,{ #branding {
width: 100%; width: 100%;
} }

View File

@@ -104,7 +104,7 @@
.ui-state-highlight, .ui-state-highlight,
.ui-widget-content .ui-state-highlight, .ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight,{ .ui-widget-header .ui-state-highlight {
color: $highlight-color; color: $highlight-color;
background: $highlight-bg; background: $highlight-bg;
border: none; border: none;
@@ -188,6 +188,7 @@ p span.ui-state-error {
.ui-dialog-titlebar-close { .ui-dialog-titlebar-close {
top: 50%; top: 50%;
right: 15px; right: 15px;
//noinspection CssInvalidPropertyValue
background-color: none; background-color: none;
color: $white; color: $white;
} }

View File

@@ -444,7 +444,7 @@ class ProcessPageList extends Process implements ConfigurableModule {
'label' => $this->_('Show All') . ' ' . 'label' => $this->_('Show All') . ' ' .
'<small>' . sprintf($this->_('(%d pages)'), $items->getTotal()) . '</small>', '<small>' . sprintf($this->_('(%d pages)'), $items->getTotal()) . '</small>',
'icon' => 'arrow-circle-right', 'icon' => 'arrow-circle-right',
'className' => 'separator', 'className' => 'separator pw-pagelist-show-all',
); );
} }
@@ -453,7 +453,7 @@ class ProcessPageList extends Process implements ConfigurableModule {
'url' => $urls->admin . "page/add/?parent_id=$parentID", 'url' => $urls->admin . "page/add/?parent_id=$parentID",
'label' => __('Add New', '/wire/templates-admin/default.php'), 'label' => __('Add New', '/wire/templates-admin/default.php'),
'icon' => 'plus-circle', 'icon' => 'plus-circle',
'className' => 'separator', 'className' => 'separator pw-nav-add',
); );
} }