[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_menus 6 * 7 * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Factory; 14 use Joomla\CMS\HTML\HTMLHelper; 15 use Joomla\CMS\Language\Multilanguage; 16 use Joomla\CMS\Language\Text; 17 use Joomla\CMS\Layout\LayoutHelper; 18 19 $options = [ 20 HTMLHelper::_('select.option', 'c', Text::_('JLIB_HTML_BATCH_COPY')), 21 HTMLHelper::_('select.option', 'm', Text::_('JLIB_HTML_BATCH_MOVE')) 22 ]; 23 $published = (int) $this->state->get('filter.published'); 24 $clientId = (int) $this->state->get('filter.client_id'); 25 $menuType = Factory::getApplication()->getUserState('com_menus.items.menutype', ''); 26 27 if ($clientId == 1) { 28 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 29 $wa = $this->document->getWebAssetManager(); 30 $wa->useScript('com_menus.batch-body'); 31 $wa->useScript('joomla.batch-copymove'); 32 } 33 ?> 34 <div class="p-3"> 35 <?php if (strlen($menuType) && $menuType != '*') : ?> 36 <?php if ($clientId != 1) : ?> 37 <div class="row"> 38 <?php if (Multilanguage::isEnabled()) : ?> 39 <div class="form-group col-md-6"> 40 <div class="controls"> 41 <?php echo LayoutHelper::render('joomla.html.batch.language', []); ?> 42 </div> 43 </div> 44 <?php endif; ?> 45 <div class="form-group col-md-6"> 46 <div class="controls"> 47 <?php echo LayoutHelper::render('joomla.html.batch.access', []); ?> 48 </div> 49 </div> 50 </div> 51 <?php endif; ?> 52 <div class="row"> 53 <?php if ($published >= 0) : ?> 54 <div class="form-group col-md-6"> 55 <div class="control-group"> 56 <label id="batch-choose-action-lbl" for="batch-menu-id"> 57 <?php echo Text::_('COM_MENUS_BATCH_MENU_LABEL'); ?> 58 </label> 59 <select class="form-select" name="batch[menu_id]" id="batch-menu-id"> 60 <option value=""><?php echo Text::_('JLIB_HTML_BATCH_NO_CATEGORY'); ?></option> 61 <?php 62 $opts = array( 63 'published' => $this->state->get('filter.published'), 64 'checkacl' => (int) $this->state->get('menutypeid'), 65 'clientid' => (int) $clientId, 66 ); 67 echo HTMLHelper::_('select.options', HTMLHelper::_('menu.menuitems', $opts)); 68 ?> 69 </select> 70 </div> 71 72 <div id="batch-copy-move"> 73 <?php echo Text::_('JLIB_HTML_BATCH_MOVE_QUESTION'); ?> 74 <?php echo HTMLHelper::_('select.radiolist', $options, 'batch[move_copy]', '', 'value', 'text', 'm'); ?> 75 </div> 76 </div> 77 <?php endif; ?> 78 79 <?php if ($published < 0 && $clientId == 1) : ?> 80 <p><?php echo Text::_('COM_MENUS_SELECT_MENU_FILTER_NOT_TRASHED'); ?></p> 81 <?php endif; ?> 82 </div> 83 <?php else : ?> 84 <div class="row"> 85 <p><?php echo Text::_('COM_MENUS_SELECT_MENU_FIRST'); ?></p> 86 </div> 87 <?php endif; ?> 88 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |