CoreFiles by mySites.guru
default_positions.php27 lines, 940 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
d38fbc9abe744f8f112c87eed87ccc78
sha1
6f65f5f08431414c2bb914cf3c2b1b7f4846d391
sha256
1d2e597b6d62888ea41e9d50850829b8954b075f689a9d25276e15c602cb01c2
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_config
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;;

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

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

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

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

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