Update to Kirby 3.7.5
This commit is contained in:
@@ -101,7 +101,6 @@ return [
|
||||
|
||||
// check if the thumb already exists
|
||||
if (file_exists($thumbRoot) === false) {
|
||||
|
||||
// if not, create job file
|
||||
$job = $mediaRoot . '/.jobs/' . $thumbName . '.json';
|
||||
|
||||
|
@@ -110,7 +110,6 @@ return [
|
||||
|
||||
if (empty($this->columns)) {
|
||||
foreach ($this->fields as $field) {
|
||||
|
||||
// Skip hidden and unsaveable fields
|
||||
// They should never be included as column
|
||||
if ($field['type'] === 'hidden' || $field['saveable'] === false) {
|
||||
|
@@ -71,7 +71,6 @@ return [
|
||||
|
||||
// transform into value-text objects
|
||||
return array_map(function ($option) use ($options) {
|
||||
|
||||
// already a valid object
|
||||
if (is_array($option) === true && isset($option['value'], $option['text']) === true) {
|
||||
return $option;
|
||||
|
@@ -10,6 +10,7 @@ return [
|
||||
*/
|
||||
'converter' => null,
|
||||
'counter' => null,
|
||||
'pattern' => null,
|
||||
'spellcheck' => null,
|
||||
|
||||
/**
|
||||
|
@@ -3,7 +3,6 @@
|
||||
use Kirby\Toolkit\I18n;
|
||||
|
||||
return function (array $props) {
|
||||
|
||||
// load the general templates setting for all sections
|
||||
$templates = $props['templates'] ?? null;
|
||||
|
||||
|
@@ -107,7 +107,6 @@ return function ($kirby) {
|
||||
if ($kirby->multilang() === true) {
|
||||
$after = LanguageRoutes::create($kirby);
|
||||
} else {
|
||||
|
||||
// Single-language home
|
||||
$after[] = [
|
||||
'pattern' => '',
|
||||
|
@@ -214,7 +214,6 @@ return [
|
||||
'title'
|
||||
],
|
||||
'html' => function ($tag) {
|
||||
|
||||
// get and sanitize the username
|
||||
$username = str_replace('@', '', $tag->value);
|
||||
|
||||
@@ -246,6 +245,7 @@ return [
|
||||
'height',
|
||||
'loop',
|
||||
'muted',
|
||||
'playsinline',
|
||||
'poster',
|
||||
'preload',
|
||||
'style',
|
||||
@@ -288,12 +288,13 @@ return [
|
||||
// booleans: autoplay, controls, loop, muted
|
||||
// strings : poster, preload
|
||||
// for ex : `autoplay` will not work if `false` is a `string` instead of a `boolean`
|
||||
$attrs['autoplay'] = $autoplay = Str::toType($tag->autoplay, 'bool');
|
||||
$attrs['controls'] = Str::toType($tag->controls ?? true, 'bool');
|
||||
$attrs['loop'] = Str::toType($tag->loop, 'bool');
|
||||
$attrs['muted'] = Str::toType($tag->muted ?? $autoplay, 'bool');
|
||||
$attrs['poster'] = $tag->poster;
|
||||
$attrs['preload'] = $tag->preload;
|
||||
$attrs['autoplay'] = $autoplay = Str::toType($tag->autoplay, 'bool');
|
||||
$attrs['controls'] = Str::toType($tag->controls ?? true, 'bool');
|
||||
$attrs['loop'] = Str::toType($tag->loop, 'bool');
|
||||
$attrs['muted'] = Str::toType($tag->muted ?? $autoplay, 'bool');
|
||||
$attrs['playsinline'] = Str::toType($tag->playsinline ?? $autoplay, 'bool');
|
||||
$attrs['poster'] = $tag->poster;
|
||||
$attrs['preload'] = $tag->preload;
|
||||
}
|
||||
|
||||
// handles local and remote video file
|
||||
|
Reference in New Issue
Block a user