- md5
- 01ac3d06f5d69dadce73c2699e850c17
- sha1
- deca924619b21854ea115679818d7cf717abbe9c
- sha256
- 91f0508bac75a37f306adf884275d99cf53dcba0ce20bb04b5eef8a9fcc6641e
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
<?php
/**
* @package Joomla.Installation
*
* @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\Uri\Uri;
HTMLHelper::_('behavior.formvalidator');
/** @var \Joomla\CMS\Installation\View\Remove\HtmlView $this */
?>
<div id="installer-view" data-page-name="remove">
<fieldset id="installCongrat" class="j-install-step active">
<legend class="j-install-step-header">
<span class="fas fa-trophy" aria-hidden="true"></span> <?php echo Text::_('INSTL_COMPLETE_CONGRAT'); ?>
</legend>
<div class="j-install-step-form" id="customInstallation">
<h2><?php echo Text::_('INSTL_COMPLETE_TITLE'); ?></h2>
<div class="form-group">
<button class="btn btn-primary btn-block" id="installAddFeatures">
<?php echo Text::_('INSTL_COMPLETE_ADD_EXTRA_LANGUAGE'); ?> <span class="fas fa-chevron-right" aria-hidden="true"></span>
</button>
</div>
</div>
<?php if (count($this->installed_languages->administrator) > 1) : ?>
<div id="defaultLanguage"
class="j-install-step-form flex-column mt-5 border rounded"
>
<?php else : ?>
<div id="defaultLanguage"
class="j-install-step-form flex-column mt-5 border rounded d-none"
>
<?php endif; ?>
<p><?php echo Text::_('INSTL_DEFAULTLANGUAGE_DESC'); ?></p>
<table class="table table-sm">
<thead>
<tr>
<th>
<?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_SELECT'); ?>
</th>
<th>
<?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_LANGUAGE'); ?>
</th>
<th>
<?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_TAG'); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->installed_languages->administrator as $i => $lang) : ?>
<tr>
<td>
<input
id="admin-language-cb<?php echo $i; ?>"
type="radio"
name="administratorlang"
value="<?php echo $lang->language; ?>"
<?php if ($lang->published) echo 'checked="checked"'; ?>
/>
</td>
<td>
<label for="admin-language-cb<?php echo $i; ?>">
<?php echo $lang->name; ?>
</label>
</td>
<td>
<?php echo $lang->language; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<p><?php echo Text::_('INSTL_DEFAULTLANGUAGE_DESC_FRONTEND'); ?></p>
<table class="table table-sm">
<thead>
<tr>
<th>
<?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_SELECT'); ?>
</th>
<th>
<?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_LANGUAGE'); ?>
</th>
<th>
<?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_TAG'); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->installed_languages->frontend as $i => $lang) : ?>
<tr>
<td>
<input
id="site-language-cb<?php echo $i; ?>"
type="radio"
name="frontendlang"
value="<?php echo $lang->language; ?>"
<?php if ($lang->published) echo 'checked="checked"'; ?>
/>
</td>
<td>
<label for="site-language-cb<?php echo $i; ?>">
<?php echo $lang->name; ?>
</label>
</td>
<td>
<?php echo $lang->language; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<button id="defaultLanguagesButton" class="btn btn-block btn-primary">
<?php echo Text::_('INSTL_DEFAULTLANGUAGE_SET_DEFAULT_LANGUAGE'); ?> <span class="fas fa-chevron-right" aria-hidden="true"></span>
</button>
<?php echo HTMLHelper::_('form.token'); ?>
</div>
</fieldset>
<div id="installRecommended" class="j-install-step active">
<div class="j-install-step-form">
<?php $displayTable = false; ?>
<?php foreach ($this->phpsettings as $setting) : ?>
<?php if ($setting->state !== $setting->recommended) : ?>
<?php $displayTable = true; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php
if ($displayTable) : ?>
<p class="install-text"><?php echo Text::_('INSTL_PRECHECK_RECOMMENDED_SETTINGS_DESC'); ?></p>
<table class="table table-sm">
<thead>
<tr>
<th>
<?php echo Text::_('INSTL_PRECHECK_DIRECTIVE'); ?>
</th>
<th>
<?php echo Text::_('INSTL_PRECHECK_RECOMMENDED'); ?>
</th>
<th>
<?php echo Text::_('INSTL_PRECHECK_ACTUAL'); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->phpsettings as $setting) : ?>
<?php if ($setting->state !== $setting->recommended) : ?>
<tr>
<td>
<?php echo $setting->label; ?>
</td>
<td>
<span class="badge badge-success disabled">
<?php echo Text::_($setting->recommended ? 'JON' : 'JOFF'); ?>
</span>
</td>
<td>
<span class="badge badge-<?php echo ($setting->state === $setting->recommended) ? 'success' : 'warning'; ?>">
<?php echo Text::_($setting->state ? 'JON' : 'JOFF'); ?>
</span>
</td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<td colspan="3"></td>
</tr>
</tfoot>
</table>
<?php endif; ?>
<?php if ($this->development) : ?>
<div class="alert flex-column mb-1" id="removeInstallationTab">
<span class="mb-1 font-weight-bold"><?php echo Text::_('INSTL_SITE_DEVMODE_LABEL'); ?></span>
<button class="btn btn-danger mb-1" id="removeInstallationFolder"><?php echo Text::sprintf('INSTL_COMPLETE_REMOVE_FOLDER', 'installation'); ?></button>
</div>
<?php endif; ?>
<?php echo HTMLHelper::_('form.token'); ?>
<div class="form-group j-install-last-step">
<a class="btn btn-primary btn-block" href="<?php echo Uri::root(); ?>" title="<?php echo Text::_('JSITE'); ?>"><span class="fas fa-eye" aria-hidden="true"></span> <?php echo Text::_('INSTL_COMPLETE_SITE_BTN'); ?></a>
<a class="btn btn-primary btn-block" href="<?php echo Uri::root(); ?>administrator/" title="<?php echo Text::_('JADMINISTRATOR'); ?>"><span class="fas fa-lock" aria-hidden="true"></span> <?php echo Text::_('INSTL_COMPLETE_ADMIN_BTN'); ?></a>
</div>
</div>
</div>
<fieldset id="installLanguages" class="j-install-step">
<legend class="j-install-step-header">
<span class="fas fa-comment-dots" aria-hidden="true"></span> <?php echo Text::_('INSTL_LANGUAGES'); ?>
</legend>
<div class="j-install-step-form">
<?php if (!$this->items) : ?>
<p><?php echo Text::_('INSTL_LANGUAGES_WARNING_NO_INTERNET'); ?></p>
<p>
<a href="#"
class="btn btn-primary"
onclick="return Install.goToPage('remove');">
<span class="fas fa-arrow-left icon-white" aria-hidden="true"></span>
<?php echo Text::_('INSTL_LANGUAGES_WARNING_BACK_BUTTON'); ?>
</a>
</p>
<p><?php echo Text::_('INSTL_LANGUAGES_WARNING_NO_INTERNET2'); ?></p>
<?php else : ?>
<form action="index.php" method="post" id="languagesForm" class="form-validate">
<p id="wait_installing" class="hidden">
<?php echo Text::_('INSTL_LANGUAGES_MESSAGE_PLEASE_WAIT'); ?><br>
<div id="wait_installing_spinner" class="spinner spinner-img hidden"></div>
</p>
<table class="table table-sm">
<caption id="install_languages_desc"><?php echo Text::_('INSTL_LANGUAGES_DESC'); ?></caption>
<thead>
<tr>
<td>
</td>
<th scope="col">
<?php echo Text::_('INSTL_LANGUAGES_COLUMN_HEADER_LANGUAGE'); ?>
</th>
<th scope="col">
<?php echo Text::_('INSTL_LANGUAGES_COLUMN_HEADER_LANGUAGE_TAG'); ?>
</th>
<th scope="col" class="text-center">
<?php echo Text::_('INSTL_LANGUAGES_COLUMN_HEADER_VERSION'); ?>
</th>
</tr>
</thead>
<tbody>
<?php $version = new \Joomla\CMS\Version; ?>
<?php $currentShortVersion = preg_replace('#^([0-9\.]+)(|.*)$#', '$1', $version->getShortVersion()); ?>
<?php foreach ($this->items as $i => $language) : ?>
<?php // Get language code and language image. ?>
<?php preg_match('#^pkg_([a-z]{2,3}-[A-Z]{2})$#', $language->element, $element); ?>
<?php $language->code = $element[1]; ?>
<tr>
<td>
<input type="checkbox" id="cb<?php echo $i; ?>" name="cid[]" value="<?php echo $language->update_id; ?>">
</td>
<th scope="row">
<label for="cb<?php echo $i; ?>"><?php echo $language->name; ?></label>
</th>
<td>
<?php echo $language->code; ?>
</td>
<td class="text-center">
<?php // Display a Note if language pack version is not equal to Joomla version ?>
<?php if (substr($language->version, 0, 3) != $version::MAJOR_VERSION . '.' . $version::MINOR_VERSION || substr($language->version, 0, 5) != $currentShortVersion) : ?>
<span class="badge badge-warning hasTooltip" title="<?php echo Text::_('JGLOBAL_LANGUAGE_VERSION_NOT_PLATFORM'); ?>"><?php echo $language->version; ?></span>
<?php else : ?>
<span class="badge badge-success"><?php echo $language->version; ?></span>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="form-group">
<?php echo HTMLHelper::_('form.token'); ?>
<?php endif; ?>
<button id="installLanguagesButton" class="btn btn-block btn-primary">
<?php echo Text::_('JNEXT'); ?>
</button>
<button id="skipLanguages" class="btn btn-block btn-secondary">
<?php echo Text::_('JSKIP'); ?>
</button>
</div>
</form>
</div>
</fieldset>
<fieldset id="installFinal" class="j-install-step">
<legend class="j-install-step-header">
<span class="fab fa-joomla" aria-hidden="true"></span> <?php echo Text::_('INSTL_COMPLETE_FINAL'); ?>
</legend>
<div class="j-install-step-form">
<p><?php echo Text::_('INSTL_COMPLETE_FINAL_DESC'); ?></p>
</div>
</fieldset>
</div>
The same content is in 4 releases, Joomla 4.0.0-beta to 4.0.0-beta4. See them all, or every version of this file.