Skip to content

Commit

Permalink
поправил ошибку с интеграцией квантума
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriitux committed Aug 31, 2022
1 parent e7a82ef commit e62ee8d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 26 deletions.
45 changes: 20 additions & 25 deletions layouts/quantummanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,28 @@
$buttonsBun = [];
$fields = [
'quantumtreecatalogs' => [
'label' => '',
'directory' => $folderRoot,
'position' => 'left',
'cssClass' => 'quantumtreecatalogs-module-muted'
],
'quantumupload' => [
'maxsize' => QuantummanagerHelper::getParamsComponentValue('maxsize', '10'),
'dropAreaHidden' => QuantummanagerHelper::getParamsComponentValue('dropareahidden', '0'),
'directory' => $folderRoot
'position' => 'container-left',
],
'quantumtoolbar' => [
'position' => 'top',
'label' => '',
'position' => 'container-center-top',
'buttons' => 'all',
'buttonsBun' => '',
'cssClass' => 'quantummanager-module-height-1-1 quantumtoolbar-module-muted quantumtoolbar-padding-horizontal',
'cssClass' => 'qm-padding-small-left qm-padding-small-right qm-padding-small-top qm-padding-small-bottom',
],
'quantumupload' => [
'label' => '',
'position' => 'container-center-top',
'maxsize' => QuantummanagerHelper::getParamsComponentValue('maxsize', '10'),
'dropAreaHidden' => QuantummanagerHelper::getParamsComponentValue('dropareahidden', '0'),
'directory' => $folderRoot,
'cssClass' => 'qm-padding-small-left qm-padding-small-right qm-padding-small-bottom',
],
'quantumviewfiles' => [
'label' => '',
'position' => 'container-center-center',
'directory' => $folderRoot,
'view' => 'list-grid',
'onlyfiles' => '0',
Expand All @@ -67,28 +73,16 @@
'metafile' => QuantummanagerHelper::getParamsComponentValue('metafile' , '1'),
],
'quantumcropperjs' => [
'label' => '',
'position' => 'bottom'
]
],
];


if((int)QuantummanagerHelper::getParamsComponentValue('unsplash', '1'))
{
$fields['quantumunsplash'] = [
'position' => 'bottom'
];
}

if((int)QuantummanagerHelper::getParamsComponentValue('pexels', '1'))
{
$fields['quantumpexels'] = [
'label' => '',
'position' => 'bottom'
];
}

if((int)QuantummanagerHelper::getParamsComponentValue('pixabay', '1'))
{
$fields['quantumpixabay'] = [
'label' => '',
'position' => 'bottom'
];
}
Expand All @@ -113,6 +107,7 @@
$optionsForField = [
'name' => 'filemanager',
'label' => '',
'cssClass' => 'quantummanager-full-component-wrap',
'fields' => json_encode($fields)
];

Expand Down
2 changes: 1 addition & 1 deletion radicalmultifield.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<authorUrl>https://delo-design.ru</authorUrl>
<copyright>Copyright (C) 2018 "Delo Design". All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
<version>3.0.3</version>
<version>3.0.4</version>
<description>PLG_RADICAL_MULTI_FIELD_XML_DESCRIPTION</description>

<scriptfile>script.php</scriptfile>
Expand Down

0 comments on commit e62ee8d

Please sign in to comment.