CoreFiles by mySites.guru
edit.php97 lines, 4,014 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
a1d7d10c5213f5e10c0b758561a664b7
sha1
05d236e425aac8adb2b31ff71be71154242a3689
sha256
a75c0803cecf9bc171cbf2e1d072cde3fa0f81d3647e632140c03edfdcef4ec9
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_languages
 *
 * @copyright   Copyright (C) 2005 - 2020 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;
use Joomla\CMS\Router\Route;

HTMLHelper::_('behavior.formvalidator');
HTMLHelper::_('behavior.keepalive');

$expired = ($this->state->get('cache_expired') == 1 ) ? '1' : '';

HTMLHelper::_('stylesheet', 'com_languages/overrider.css', array('version' => 'auto', 'relative' => true));

HTMLHelper::_('behavior.core');
HTMLHelper::_('script', 'com_languages/overrider.min.js', array('version' => 'auto', 'relative' => true));
HTMLHelper::_('script', 'com_languages/admin-override-edit-refresh-searchstring.js', ['version' => 'auto', 'relative' => true]);
?>

<form action="<?php echo Route::_('index.php?option=com_languages&id=' . $this->item->key); ?>" method="post" name="adminForm" id="override-form" class="form-validate">
	<div class="row mt-3">
		<div class="col-md-6">
			<fieldset id="fieldset-override" class="options-form">
				<legend><?php echo empty($this->item->key) ? Text::_('COM_LANGUAGES_VIEW_OVERRIDE_EDIT_NEW_OVERRIDE_LEGEND') : Text::_('COM_LANGUAGES_VIEW_OVERRIDE_EDIT_EDIT_OVERRIDE_LEGEND'); ?></legend>
				<div>
				<?php echo $this->form->renderField('language'); ?>
				<?php echo $this->form->renderField('client'); ?>
				<?php echo $this->form->renderField('key'); ?>
				<?php echo $this->form->renderField('override'); ?>

				<?php if ($this->state->get('filter.client') == 'administrator') : ?>
					<?php echo $this->form->renderField('both'); ?>
				<?php endif; ?>

				<?php echo $this->form->renderField('file'); ?>
				</div>
			</fieldset>

		</div>

		<div class="col-md-6">
			<fieldset id="fieldset-override-search" class="options-form">
				<legend><?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_SEARCH_LEGEND'); ?></legend>
				<div>
				<div class="alert alert-info">
					<span class="fas fa-info-circle" aria-hidden="true"></span><span class="sr-only"><?php echo Text::_('INFO'); ?></span>
					<?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_SEARCH_TIP'); ?>
				</div>
				<?php echo $this->form->renderField('searchtype'); ?>
				<div class="control-group">
					<div class="control-label">
						<?php echo $this->form->getLabel('searchstring'); ?>
					</div>
					<div class="controls">
						<div class="input-group">
							<?php echo $this->form->getInput('searchstring'); ?>
							<span class="input-group-append">
								<button type="submit" class="btn btn-primary" onclick="Joomla.overrider.searchStrings();return false;" formnovalidate>
									<?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_SEARCH_BUTTON'); ?>
								</button>
							</span>
							<span id="refresh-status" class="help-block">
								<span class="fas fa-sync fa-spin" aria-hidden="true"></span>
								<?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_REFRESHING'); ?>
							</span>
						</div>
					</div>
				</div>
				</div>
			</fieldset>

			<fieldset id="results-container" class="adminform">
				<legend><?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_RESULTS_LEGEND'); ?></legend>
				<div id="overrider-spinner" class="overrider-spinner text-center" data-search-string-expired="<?php echo $expired; ?>"><span class="fas fa-spinner fa-spin" aria-hidden="true"></span></div>
				<span id="more-results" class="mt-2">
					<button type="button" id="more-results-button" class="btn btn-secondary">
						<span id="overrider-spinner-btn" class="overrider-spinner-btn fas fa-spinner fa-spin" aria-hidden="true"></span>
						<?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_MORE_RESULTS'); ?>
					</button>
				</span>
			</fieldset>

			<input type="hidden" name="task" value="">
			<input type="hidden" name="id" value="<?php echo $this->item->key; ?>">

			<?php echo HTMLHelper::_('form.token'); ?>
		</div>
	</div>
</form>

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