mirror of
https://github.com/processwire/processwire.git
synced 2025-08-17 20:11:46 +02:00
Bump version to 3.0.126 plus some other minor adjustments
This commit is contained in:
@@ -44,7 +44,7 @@ class ProcessWire extends Wire {
|
||||
* Reversion revision number
|
||||
*
|
||||
*/
|
||||
const versionRevision = 125;
|
||||
const versionRevision = 126;
|
||||
|
||||
/**
|
||||
* Version suffix string (when applicable)
|
||||
|
@@ -15192,7 +15192,7 @@ em {
|
||||
color: inherit;
|
||||
}
|
||||
#pw-mastheads {
|
||||
position: relative;
|
||||
/*position: relative;*/
|
||||
}
|
||||
#pw-masthead,
|
||||
#pw-masthead-mobile {
|
||||
|
File diff suppressed because one or more lines are too long
@@ -240,6 +240,8 @@ class InputfieldSelect extends Inputfield {
|
||||
protected function addOptionLabelsString($str, $languageID = 0) {
|
||||
foreach(explode("\n", $str) as $line) {
|
||||
$line = trim($line);
|
||||
$line = ltrim($line, '+');
|
||||
if(strpos($line, 'disabled:') === 0) list(,$line) = explode('disabled:', $line, 2);
|
||||
if(!strpos($line, '=')) continue; // 0 or false OK
|
||||
list($key, $label) = explode('=', $line, 2);
|
||||
if($languageID) {
|
||||
@@ -326,8 +328,12 @@ class InputfieldSelect extends Inputfield {
|
||||
|
||||
if($this instanceof InputfieldHasArrayValue) {
|
||||
// multiple selection
|
||||
/** @var InputfieldSelect $this */
|
||||
return in_array($value, $this->attr('value'));
|
||||
$selected = false;
|
||||
foreach($valueAttr as $v) {
|
||||
$selected = "$v" === "$value";
|
||||
if($selected) break;
|
||||
}
|
||||
return $selected;
|
||||
}
|
||||
|
||||
return "$value" == (string) $this->value;
|
||||
|
@@ -853,6 +853,9 @@ class ProcessPageEdit extends Process implements WirePageEditor, ConfigurableMod
|
||||
$tabWrap->attr('title', $tabOpen->getSetting('label'));
|
||||
$tabWrap->id = $tabOpen->attr('id');
|
||||
$tabWrap->collapsed = $tabOpen->getSetting('collapsed');
|
||||
// @todo support description in fieldset tab: works but needs styles for each admin theme, so commented out for now
|
||||
// $tabWrap->description = $inputfield->description;
|
||||
$tabWrap->notes = $inputfield->notes;
|
||||
$contentTab->remove($inputfield);
|
||||
if(!$tabViewable) continue;
|
||||
|
||||
|
Reference in New Issue
Block a user