Skip to content

Commit

Permalink
Merge pull request #39 from JPathRu/dev
Browse files Browse the repository at this point in the history
update to v4.0.0
  • Loading branch information
dmitriitux authored Jun 24, 2024
2 parents 3f657a4 + 5ac9064 commit 0224933
Show file tree
Hide file tree
Showing 41 changed files with 556 additions and 1,451 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

3 changes: 2 additions & 1 deletion language/en-GB/en-GB.plg_fields_radicalmultifield.sys.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PLG_RADICAL_MULTI_FIELD="Field - MultiField"
PLG_RADICAL_MULTI_FIELD_XML_DESCRIPTION="Field that implements the enumerated array of data fields"
PLG_RADICAL_MULTI_FIELD_WRONG_PHP="You need PHP version at least 5.6"
PLG_RADICAL_MULTI_FIELD_WRONG_PHP="You need PHP version at least %s"
PLG_RADICAL_MULTI_FIELD_WRONG_JOOMLA="You need Joomla version at least %s"
3 changes: 2 additions & 1 deletion language/fr-FR/fr-FR.plg_fields_radicalmultifield.sys.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PLG_RADICAL_MULTI_FIELD="Champ - Radical MultiField"
PLG_RADICAL_MULTI_FIELD_XML_DESCRIPTION="Champ répétable amélioré"
PLG_RADICAL_MULTI_FIELD_WRONG_PHP="Vous devez utiliser au moins PHP version 5.6"
PLG_RADICAL_MULTI_FIELD_WRONG_PHP="Vous devez utiliser au moins PHP version %s"
PLG_RADICAL_MULTI_FIELD_WRONG_JOOMLA="Vous devez utiliser au moins Joomla version %s"
3 changes: 2 additions & 1 deletion language/ru-RU/ru-RU.plg_fields_radicalmultifield.sys.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PLG_RADICAL_MULTI_FIELD="Поле - Radical MultiField"
PLG_RADICAL_MULTI_FIELD_XML_DESCRIPTION="Мультиполе для Joomla"
PLG_RADICAL_MULTI_FIELD_WRONG_PHP="Нужна версия PHP не ниже 5.6"
PLG_RADICAL_MULTI_FIELD_WRONG_PHP="Нужна версия PHP не ниже %s"
PLG_RADICAL_MULTI_FIELD_WRONG_JOOMLA="Нужна версия Joomla не ниже %s"
15 changes: 8 additions & 7 deletions layouts/joomla4/import.php → layouts/import.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php
defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Uri\Uri;
use Joomla\Component\QuantumManager\Administrator\Field\QuantumuploadField;

extract($displayData);
$i = mt_rand(11111111, 99999999);
Expand All @@ -13,14 +14,14 @@
<div class="import-wrap" data-modal-id="<?php echo $class_select_button ?>">

<?php
JLoader::register('JFormFieldQuantumupload', JPATH_ADMINISTRATOR . '/components/com_quantummanager/fields/quantumupload.php');
$field = '<field dropAreaHidden="0" directory="' . $field_path . '" />';
$upload = new JFormFieldQuantumupload();
$upload = new QuantumuploadField();
$upload->__set('scope', 'images');
$upload->__set('directory', $field_path);
$upload->setup(new SimpleXMLElement($field), '');
echo $upload->getInput();

$buttons = '';
$buttons .= '<button type="button" class="btn btn-secondary button-insert" type="button">'
$buttons = '<button type="button" class="btn btn-secondary button-insert" type="button">'
. Text::_('JSELECT') . '</button>';
$buttons .= '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">'
. Text::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</button>';
Expand All @@ -29,7 +30,7 @@
'selector' => $class_select_button,
'params' => [
'title' => Text::_('PLG_RADICAL_MULTI_FIELD_FIELD_IMPORT_SELECT'),
'url' => JUri::root() . 'administrator/index.php?option=com_ajax&plugin=radicalmultifield&group=fields&format=html&tmpl=component&name=' . $field_name,
'url' => Uri::root() . 'administrator/index.php?option=com_ajax&plugin=radicalmultifield&group=fields&format=html&tmpl=component&name=' . $field_name,
'height' => '250px',
'width' => '400px',
'bodyHeight' => 70,
Expand All @@ -46,7 +47,7 @@
</button>
<button
class="btn btn-secondary btn-radicalmiltifield-select <?php echo $class_select_button ?>"
type="button"
type="button">
<span class="icon-folder large-icon"></span> <?php echo Text::_('PLG_RADICAL_MULTI_FIELD_FIELD_IMPORT_SELECT') ?>
</button>
</div>
Expand Down
39 changes: 0 additions & 39 deletions layouts/joomla3/import.php

This file was deleted.

140 changes: 0 additions & 140 deletions layouts/joomla3/quantummanager.php

This file was deleted.

104 changes: 0 additions & 104 deletions layouts/joomla3/repeatable-cards.php

This file was deleted.

Loading

0 comments on commit 0224933

Please sign in to comment.