CoreFiles by mySites.guru
default_positions.php30 lines, 1,011 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
0fda841d626610a070a2a15db154f623
sha1
ca0be3562a13999a702fdc911e33d301c6443113
sha256
4d6570407c6f176789c43878c1b109a6f162f9340d7465563ae80a4e9403712a
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_config
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @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;

HTMLHelper::_('formbehavior.chosen', '#jform_position', null, array('disable_search_threshold' => 0));

// Add custom position to options
$customGroupText = Text::_('COM_MODULES_CUSTOM_POSITION');

// Build field
$attr = array(
	'id'          => 'jform_position',
	'list.select' => $this->item['position'],
	'list.attr'   => 'class="chosen-custom-value custom-select" '
		. 'data-custom_group_text="' . $customGroupText . '" '
		. 'data-no_results_text="' . Text::_('COM_MODULES_ADD_CUSTOM_POSITION') . '" '
		. 'data-placeholder="' . Text::_('COM_MODULES_TYPE_OR_SELECT_POSITION') . '" '
);

echo HTMLHelper::_('select.groupedlist', $this->positions, 'jform[position]', $attr);

No other release has this exact content. See every version of this file.