From e62ee8d62f6b7bbd422accd44b6513db3cb568e2 Mon Sep 17 00:00:00 2001 From: Dmitrii Cymbal Date: Wed, 31 Aug 2022 17:02:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D1=83=20=D1=81=20=D0=B8?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D0=B5=D0=B9=20?= =?UTF-8?q?=D0=BA=D0=B2=D0=B0=D0=BD=D1=82=D1=83=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/quantummanager.php | 45 +++++++++++++++++--------------------- radicalmultifield.xml | 2 +- 2 files changed, 21 insertions(+), 26 deletions(-) diff --git a/layouts/quantummanager.php b/layouts/quantummanager.php index 32323de..001a787 100644 --- a/layouts/quantummanager.php +++ b/layouts/quantummanager.php @@ -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', @@ -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' ]; } @@ -113,6 +107,7 @@ $optionsForField = [ 'name' => 'filemanager', 'label' => '', + 'cssClass' => 'quantummanager-full-component-wrap', 'fields' => json_encode($fields) ]; diff --git a/radicalmultifield.xml b/radicalmultifield.xml index 2d325a0..57c5250 100644 --- a/radicalmultifield.xml +++ b/radicalmultifield.xml @@ -7,7 +7,7 @@ https://delo-design.ru Copyright (C) 2018 "Delo Design". All rights reserved. GNU General Public License version 3 or later; see LICENSE.txt - 3.0.3 + 3.0.4 PLG_RADICAL_MULTI_FIELD_XML_DESCRIPTION script.php