CoreFiles by mySites.guru
default_batch_body.php63 lines, 2,064 bytes, from Joomla_3.4.4-Stable-Full_Package.zip
Raw History Compare with 3.4.3
md5
ea00c2cf5b989d63037bdaa763e8b869
sha1
76b2df464fd253e242600c5a69e9652cfe63051a
sha256
4b97b15e64e86608866f4b187ec02a5966fe128c2b376cef77c8e165b6967046
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_modules
 *
 * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

$clientId  = $this->state->get('filter.client_id');

// Show only Module Positions of published Templates
$published = 1;
$positions = JHtml::_('modules.positions', $clientId, $published);
$positions['']['items'][] = ModulesHelper::createOption('nochange', JText::_('COM_MODULES_BATCH_POSITION_NOCHANGE'));
$positions['']['items'][] = ModulesHelper::createOption('noposition', JText::_('COM_MODULES_BATCH_POSITION_NOPOSITION'));

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

// Build field
$attr = array(
	'id'        => 'batch-position-id',
	'list.attr' => 'class="chzn-custom-value input-xlarge" '
		. 'data-custom_group_text="' . $customGroupText . '" '
		. 'data-no_results_text="' . JText::_('COM_MODULES_ADD_CUSTOM_POSITION') . '" '
		. 'data-placeholder="' . JText::_('COM_MODULES_TYPE_OR_SELECT_POSITION') . '" '
);

?>

<p><?php echo JText::_('COM_MODULES_BATCH_TIP'); ?></p>
<div class="row-fluid">
	<div class="control-group span6">
		<div class="controls">
			<?php echo JHtml::_('batch.language'); ?>
		</div>
	</div>
	<div class="control-group span6">
		<div class="controls">
			<?php echo JHtml::_('batch.access'); ?>
		</div>
	</div>
</div>
<div class="row-fluid">
	<?php if ($published >= 0) : ?>
		<div class="span6">
			<div class="controls">
				<label id="batch-choose-action-lbl" for="batch-choose-action">
					<?php echo JText::_('COM_MODULES_BATCH_POSITION_LABEL'); ?>
				</label>
				<div id="batch-choose-action" class="control-group">
					<?php echo JHtml::_('select.groupedlist', $positions, 'batch[position_id]', $attr) ?>
					<div id="batch-copy-move" class="control-group radio">
						<?php echo JHtml::_('modules.batchOptions'); ?>
					</div>
				</div>
			</div>
		</div>
	<?php endif; ?>
</div>

The same content is in 9 releases, Joomla 3.4.4-rc to 3.5.0-beta. See them all, or every version of this file.