This commit is contained in:
AlexBa16
2026-06-08 15:29:52 +02:00
commit 27903eed4a
9931 changed files with 1535659 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2026 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Layout variables
* -----------------
* @var array $displayData Array with all the given attributes for the audio element.
* Eg: src, class, controls, controlslist, autoplay, loop, style, data-*
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
*/
defined('_JEXEC') or die;
use Joomla\Utilities\ArrayHelper;
if (array_key_exists('src', $displayData) && !empty($displayData['src'])) {
$displayData['src'] = $this->escape($displayData['src']);
}
echo '<audio ' . ArrayHelper::toString($displayData) . '></audio>';
@@ -0,0 +1,29 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
?>
<label id="batch-access-lbl" for="batch-access">
<?php echo Text::_('JLIB_HTML_BATCH_ACCESS_LABEL'); ?>
</label>
<?php echo HTMLHelper::_(
'access.assetgrouplist',
'batch[assetgroup_id]',
'',
'class="form-select"',
[
'title' => Text::_('JLIB_HTML_BATCH_NOCHANGE'),
'id' => 'batch-access'
]
);
@@ -0,0 +1,23 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
?>
<label id="batch-language-lbl" for="batch-language-id">
<?php echo Text::_('JLIB_HTML_BATCH_LANGUAGE_LABEL'); ?>
</label>
<select name="batch[language_id]" class="form-select" id="batch-language-id">
<option value=""><?php echo Text::_('JLIB_HTML_BATCH_LANGUAGE_NOCHANGE'); ?></option>
<?php echo HTMLHelper::_('select.options', HTMLHelper::_('adminlanguage.existing', true, true), 'value', 'text'); ?>
</select>
@@ -0,0 +1,56 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
extract($displayData);
/**
* Layout variables
* -----------------
* @var string $extension The extension name
*/
// Create the copy/move options.
$options = [
HTMLHelper::_('select.option', 'c', Text::_('JLIB_HTML_BATCH_COPY')),
HTMLHelper::_('select.option', 'm', Text::_('JLIB_HTML_BATCH_MOVE'))
];
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
$wa->useScript('joomla.batch-copymove');
?>
<label id="batch-choose-action-lbl" for="batch-category-id">
<?php echo Text::_('JLIB_HTML_BATCH_MENU_LABEL'); ?>
</label>
<div id="batch-choose-action" class="control-group">
<select name="batch[category_id]" class="form-select" id="batch-category-id">
<option value=""><?php echo Text::_('JLIB_HTML_BATCH_NO_CATEGORY'); ?></option>
<?php if (isset($addRoot) && $addRoot) : ?>
<?php echo HTMLHelper::_('select.options', HTMLHelper::_('category.categories', $extension)); ?>
<?php else : ?>
<?php echo HTMLHelper::_('select.options', HTMLHelper::_('category.options', $extension)); ?>
<?php endif; ?>
</select>
</div>
<div id="batch-copy-move" class="control-group radio">
<fieldset id="batch-copy-move-id">
<legend>
<?php echo Text::_('JLIB_HTML_BATCH_MOVE_QUESTION'); ?>
</legend>
<?php echo HTMLHelper::_('select.radiolist', $options, 'batch[move_copy]', '', 'value', 'text', 'm'); ?>
</fieldset>
</div>
@@ -0,0 +1,23 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
?>
<label id="batch-language-lbl" for="batch-language-id">
<?php echo Text::_('JLIB_HTML_BATCH_LANGUAGE_LABEL'); ?>
</label>
<select name="batch[language_id]" class="form-select" id="batch-language-id">
<option value=""><?php echo Text::_('JLIB_HTML_BATCH_LANGUAGE_NOCHANGE'); ?></option>
<?php echo HTMLHelper::_('select.options', HTMLHelper::_('contentlanguage.existing', true, true), 'value', 'text'); ?>
</select>
@@ -0,0 +1,44 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
// Create the add/remove tag options.
$options = [
HTMLHelper::_('select.option', 'a', Text::_('JLIB_HTML_BATCH_TAG_ADD')),
HTMLHelper::_('select.option', 'r', Text::_('JLIB_HTML_BATCH_TAG_REMOVE'))
];
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
$wa->useScript('joomla.batch-tag-addremove');
?>
<label id="batch-tag-choose-action-lbl" for="batch-tag-id">
<?php echo Text::_('JLIB_HTML_BATCH_TAG_LABEL'); ?>
</label>
<div id="batch-tag-choose-action" class="control-group">
<select name="batch[tag]" class="form-select" id="batch-tag-id">
<option value=""><?php echo Text::_('JLIB_HTML_BATCH_TAG_NOCHANGE'); ?></option>
<?php echo HTMLHelper::_('select.options', HTMLHelper::_('tag.tags', ['filter.published' => [1]]), 'value', 'text'); ?>
</select>
</div>
<div id="batch-tag-addremove" class="control-group radio">
<fieldset id="batch-tag-addremove-id">
<legend>
<?php echo Text::_('JLIB_HTML_BATCH_TAG_ADDREMOVE_QUESTION'); ?>
</legend>
<?php echo HTMLHelper::_('select.radiolist', $options, 'batch[tag_addremove]', '', 'value', 'text', 'a'); ?>
</fieldset>
</div>
@@ -0,0 +1,39 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* @deprecated 5.3 without replacement will be removed in 7.0
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
extract($displayData);
/**
* Layout variables
* -----------------
* @var boolean $noUser Inject an option for no user?
*/
$optionNo = '';
if ($noUser) {
$optionNo = '<option value="0">' . Text::_('JLIB_HTML_BATCH_USER_NOUSER') . '</option>';
}
?>
<label id="batch-user-lbl" for="batch-user-id">
<?php echo Text::_('JLIB_HTML_BATCH_USER_LABEL'); ?>
</label>
<select name="batch[user_id]" class="form-select" id="batch-user-id">
<option value=""><?php echo Text::_('JLIB_HTML_BATCH_USER_NOCHANGE'); ?></option>
<?php echo $optionNo; ?>
<?php echo HTMLHelper::_('select.options', HTMLHelper::_('user.userlist'), 'value', 'text'); ?>
</select>
@@ -0,0 +1,34 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
?>
<label id="batch-workflowstage-lbl" for="batch-workflowstage-id">
<?php echo Text::_('JLIB_HTML_BATCH_WORKFLOW_STAGE_LABEL'); ?>
</label>
<?php
$attr = [
'id' => 'batch-workflowstage-id',
'group.label' => 'text',
'group.items' => null,
'list.attr' => [
'class' => 'form-select'
]
];
$groups = HTMLHelper::_('workflowstage.existing', ['title' => Text::_('JLIB_HTML_BATCH_WORKFLOW_STAGE_NOCHANGE')]);
echo HTMLHelper::_('select.groupedlist', $groups, 'batch[workflowstage_id]', $attr);
+44
View File
@@ -0,0 +1,44 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Layout variables
* -----------------
* @var array $displayData Array with all the given attributes for the image element.
* Eg: src, class, alt, width, height, loading, decoding, style, data-*
* Note: only the alt and src attributes are escaped by default!
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\Utilities\ArrayHelper;
$img = HTMLHelper::_('cleanImageURL', $displayData['src']);
$displayData['src'] = $this->escape($img->url);
if (isset($displayData['alt'])) {
if ($displayData['alt'] === false) {
unset($displayData['alt']);
} else {
$displayData['alt'] = $this->escape($displayData['alt']);
}
}
if ($img->attributes['width'] > 0 && $img->attributes['height'] > 0) {
$displayData['width'] = $img->attributes['width'];
$displayData['height'] = $img->attributes['height'];
if (empty($displayData['loading'])) {
$displayData['loading'] = 'lazy';
}
}
echo '<img ' . ArrayHelper::toString($displayData) . '>';
@@ -0,0 +1,25 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
extract($displayData);
/**
* Layout variables
* -----------------
* @var integer $level The level of the item in the tree like structure.
*
* @since 3.6.0
*/
if ($level > 1) {
echo '<span class="text-muted">' . str_repeat('&#8942;&nbsp;&nbsp;&nbsp;', (int) $level - 2) . '</span>&ndash;&nbsp;';
}
+40
View File
@@ -0,0 +1,40 @@
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2026 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Layout variables
* -----------------
* @var array $displayData Array with all the given attributes for the video element.
* Eg: src, class, controls, width, height, autoplay, decoding, style, data-*
* Note: <source> tags for <video> - is array of arrays with `src` and `type` keys.
* $displayData['source'] = [ ['src' => 'path/to/video.mp4', 'type' => 'video/mp4'] ];
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
*/
defined('_JEXEC') or die;
use Joomla\Utilities\ArrayHelper;
if (array_key_exists('src', $displayData) && !empty($displayData['src'])) {
$displayData['src'] = $this->escape($displayData['src']);
}
$source = [];
if (isset($displayData['source']) && is_array($displayData['source'])) {
$source = $displayData['source'];
unset($displayData['source']);
}
echo '<video ' . ArrayHelper::toString($displayData) . '>';
if (!empty($source)) {
foreach ($source as $sourceData) {
echo '<source src="' . $this->escape($sourceData['src']) . '" type="' . $sourceData['type'] . '" />';
}
}
echo '</video>';