CoreFiles by mySites.guru
tag.php44 lines, 1,565 bytes, from Joomla_6.3.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 6.2.0-alpha3
md5
a14e2ee076623221411a3e895ca80e95
sha1
950ed0b4f2159b4ad82a86797b70217343f8e0c8
sha256
ccde9663cbd66e9fdf8007df7237cdba0f69d436cd9388f6cdfe523690c29772
<?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>

The same content is in 52 releases, Joomla 6.0.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.