[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Installation 5 * 6 * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 defined('_JEXEC') or die; 11 12 use Joomla\CMS\HTML\HTMLHelper; 13 use Joomla\CMS\Language\Text; 14 use Joomla\CMS\Uri\Uri; 15 16 HTMLHelper::_('behavior.formvalidator'); 17 18 /** @var \Joomla\CMS\Installation\View\Remove\HtmlView $this */ 19 ?> 20 <div id="installer-view" data-page-name="remove"> 21 22 <fieldset id="installCongrat" class="j-install-step active"> 23 <legend class="j-install-step-header"> 24 <span class="icon-trophy" aria-hidden="true"></span> <?php echo Text::_('INSTL_COMPLETE_CONGRAT'); ?> 25 </legend> 26 <div class="j-install-step-form" id="customInstallation"> 27 <h2><?php echo Text::_('INSTL_COMPLETE_TITLE'); ?></h2> 28 <div class="mb-3 mt-4"> 29 <button class="btn btn-primary w-100" id="installAddFeatures"> 30 <?php echo Text::_('INSTL_COMPLETE_ADD_EXTRA_LANGUAGE'); ?> <span class="icon-chevron-right" aria-hidden="true"></span> 31 </button> 32 </div> 33 </div> 34 35 <?php if (count($this->installed_languages->administrator) > 1) : ?> 36 <div id="defaultLanguage" 37 class="j-install-step-form flex-column mt-5 border rounded" 38 > 39 <?php else : ?> 40 <div id="defaultLanguage" 41 class="j-install-step-form flex-column mt-5 border rounded d-none" 42 > 43 <?php endif; ?> 44 <p><?php echo Text::_('INSTL_DEFAULTLANGUAGE_DESC'); ?></p> 45 <table class="table table-sm"> 46 <thead> 47 <tr> 48 <th> 49 <?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_SELECT'); ?> 50 </th> 51 <th> 52 <?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_LANGUAGE'); ?> 53 </th> 54 <th> 55 <?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_TAG'); ?> 56 </th> 57 </tr> 58 </thead> 59 <tbody> 60 <?php foreach ($this->installed_languages->administrator as $i => $lang) : ?> 61 <tr> 62 <td> 63 <input 64 class="form-check-input" 65 id="admin-language-cb<?php echo $i; ?>" 66 type="radio" 67 name="administratorlang" 68 value="<?php echo $lang->language; ?>" 69 <?php if ($lang->published) { 70 echo 'checked="checked"'; 71 } ?> 72 /> 73 </td> 74 <td> 75 <label for="admin-language-cb<?php echo $i; ?>"> 76 <?php echo $lang->name; ?> 77 </label> 78 </td> 79 <td> 80 <?php echo $lang->language; ?> 81 </td> 82 </tr> 83 <?php endforeach; ?> 84 </tbody> 85 </table> 86 <p><?php echo Text::_('INSTL_DEFAULTLANGUAGE_DESC_FRONTEND'); ?></p> 87 <table class="table table-sm"> 88 <thead> 89 <tr> 90 <th> 91 <?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_SELECT'); ?> 92 </th> 93 <th> 94 <?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_LANGUAGE'); ?> 95 </th> 96 <th> 97 <?php echo Text::_('INSTL_DEFAULTLANGUAGE_COLUMN_HEADER_TAG'); ?> 98 </th> 99 </tr> 100 </thead> 101 <tbody> 102 <?php foreach ($this->installed_languages->frontend as $i => $lang) : ?> 103 <tr> 104 <td> 105 <input 106 class="form-check-input" 107 id="site-language-cb<?php echo $i; ?>" 108 type="radio" 109 name="frontendlang" 110 value="<?php echo $lang->language; ?>" 111 <?php if ($lang->published) { 112 echo 'checked="checked"'; 113 } ?> 114 /> 115 </td> 116 <td> 117 <label for="site-language-cb<?php echo $i; ?>"> 118 <?php echo $lang->name; ?> 119 </label> 120 </td> 121 <td> 122 <?php echo $lang->language; ?> 123 </td> 124 </tr> 125 <?php endforeach; ?> 126 </tbody> 127 </table> 128 <button id="defaultLanguagesButton" class="btn w-100 mt-4 btn-primary"> 129 <?php echo Text::_('INSTL_DEFAULTLANGUAGE_SET_DEFAULT_LANGUAGE'); ?> <span class="icon-chevron-right" aria-hidden="true"></span> 130 </button> 131 <?php echo HTMLHelper::_('form.token'); ?> 132 </div> 133 </fieldset> 134 135 <div id="installRecommended" class="j-install-step active"> 136 <div class="j-install-step-form"> 137 <?php $displayTable = false; ?> 138 <?php foreach ($this->phpsettings as $setting) : ?> 139 <?php if ($setting->state !== $setting->recommended) : ?> 140 <?php $displayTable = true; ?> 141 <?php endif; ?> 142 <?php endforeach; ?> 143 <?php 144 if ($displayTable) : ?> 145 <table class="table table-sm"> 146 <caption> 147 <?php echo Text::_('INSTL_PRECHECK_RECOMMENDED_SETTINGS_DESC'); ?> 148 </caption> 149 <thead> 150 <tr> 151 <th scope="col"> 152 <?php echo Text::_('INSTL_PRECHECK_DIRECTIVE'); ?> 153 </th> 154 <th scope="col"> 155 <?php echo Text::_('INSTL_PRECHECK_RECOMMENDED'); ?> 156 </th> 157 <th scope="col"> 158 <?php echo Text::_('INSTL_PRECHECK_ACTUAL'); ?> 159 </th> 160 </tr> 161 </thead> 162 <tbody> 163 <?php foreach ($this->phpsettings as $setting) : ?> 164 <?php if ($setting->state !== $setting->recommended) : ?> 165 <tr> 166 <th scope="row"> 167 <?php echo $setting->label; ?> 168 </th> 169 <td> 170 <span class="badge bg-success disabled"> 171 <?php echo Text::_($setting->recommended ? 'JON' : 'JOFF'); ?> 172 </span> 173 </td> 174 <td> 175 <span class="badge bg-<?php echo ($setting->state === $setting->recommended) ? 'success' : 'warning'; ?>"> 176 <?php echo Text::_($setting->state ? 'JON' : 'JOFF'); ?> 177 </span> 178 </td> 179 </tr> 180 <?php endif; ?> 181 <?php endforeach; ?> 182 </tbody> 183 </table> 184 185 <?php endif; ?> 186 <?php if ($this->development) : ?> 187 <div class="alert flex-column mb-1" id="removeInstallationTab"> 188 <span class="mb-1 font-weight-bold"><?php echo Text::_('INSTL_SITE_DEVMODE_LABEL'); ?></span> 189 <button class="btn btn-danger mb-1" id="removeInstallationFolder"><?php echo Text::sprintf('INSTL_COMPLETE_REMOVE_FOLDER', 'installation'); ?></button> 190 </div> 191 <?php endif; ?> 192 <?php echo HTMLHelper::_('form.token'); ?> 193 194 <div class="form-group j-install-last-step d-grid gap-2"> 195 <button type="button" class="complete-installation btn btn-primary w-100" 196 data-href="<?php echo Uri::root(); ?>" <?php if ($this->development) : 197 ?>data-development<?php 198 endif; ?>> 199 <span class="icon-eye" aria-hidden="true"></span> <?php echo Text::_('INSTL_COMPLETE_SITE_BTN'); ?> 200 </button> 201 <button type="button" class="complete-installation btn btn-primary w-100" 202 data-href="<?php echo Uri::root(); ?>administrator/" <?php if ($this->development) : 203 ?>data-development<?php 204 endif; ?>> 205 <span class="icon-lock" aria-hidden="true"></span> <?php echo Text::_('INSTL_COMPLETE_ADMIN_BTN'); ?> 206 </button> 207 </div> 208 </div> 209 </div> 210 211 <fieldset id="installLanguages" class="j-install-step"> 212 <legend class="j-install-step-header"> 213 <span class="icon-comment-dots" aria-hidden="true"></span> <?php echo Text::_('INSTL_LANGUAGES'); ?> 214 </legend> 215 <div class="j-install-step-form"> 216 <?php if (!$this->items) : ?> 217 <p><?php echo Text::_('INSTL_LANGUAGES_WARNING_NO_INTERNET'); ?></p> 218 <p> 219 <a href="#" 220 class="btn btn-primary" 221 onclick="return Joomla.goToPage('remove');"> 222 <span class="icon-arrow-left icon-white" aria-hidden="true"></span> 223 <?php echo Text::_('INSTL_LANGUAGES_WARNING_BACK_BUTTON'); ?> 224 </a> 225 </p> 226 <p><?php echo Text::_('INSTL_LANGUAGES_WARNING_NO_INTERNET2'); ?></p> 227 <?php else : ?> 228 <form action="index.php" method="post" id="languagesForm" class="form-validate"> 229 <p id="wait_installing" class="hidden"> 230 <?php echo Text::_('INSTL_LANGUAGES_MESSAGE_PLEASE_WAIT'); ?><br> 231 <div id="wait_installing_spinner" class="spinner spinner-img hidden"></div> 232 </p> 233 <table class="table table-sm"> 234 <caption id="install_languages_desc"><?php echo Text::_('INSTL_LANGUAGES_DESC'); ?></caption> 235 <thead> 236 <tr> 237 <th scope="col"> 238 <span class="visually-hidden"><?php echo Text::_('INSTL_LANGUAGES_COLUMN_HEADER_LANGUAGE_SELECT'); ?></span> 239 </th> 240 <th scope="col"> 241 <?php echo Text::_('INSTL_LANGUAGES_COLUMN_HEADER_LANGUAGE'); ?> 242 </th> 243 <th scope="col"> 244 <?php echo Text::_('INSTL_LANGUAGES_COLUMN_HEADER_LANGUAGE_TAG'); ?> 245 </th> 246 <th scope="col" class="text-center"> 247 <?php echo Text::_('INSTL_LANGUAGES_COLUMN_HEADER_VERSION'); ?> 248 </th> 249 </tr> 250 </thead> 251 <tbody> 252 <?php $version = new \Joomla\CMS\Version(); ?> 253 <?php $currentShortVersion = preg_replace('#^([0-9\.]+)(|.*)$#', '$1', $version->getShortVersion()); ?> 254 <?php foreach ($this->items as $i => $language) : ?> 255 <?php // Get language code and language image. ?> 256 <?php preg_match('#^pkg_([a-z]{2,3}-[A-Z]{2})$#', $language->element, $element); ?> 257 <?php $language->code = $element[1]; ?> 258 <tr> 259 <td> 260 <input class="form-check-input" type="checkbox" id="cb<?php echo $i; ?>" name="cid[]" value="<?php echo $language->update_id; ?>"> 261 </td> 262 <th scope="row"> 263 <label for="cb<?php echo $i; ?>"><?php echo $language->name; ?></label> 264 </th> 265 <td> 266 <?php echo $language->code; ?> 267 </td> 268 <td class="text-center"> 269 <?php // Display a Note if language pack version is not equal to Joomla version ?> 270 <?php if (substr($language->version, 0, 3) != $version::MAJOR_VERSION . '.' . $version::MINOR_VERSION || substr($language->version, 0, 5) != $currentShortVersion) : ?> 271 <span class="badge bg-warning hasTooltip" title="<?php echo Text::_('JGLOBAL_LANGUAGE_VERSION_NOT_PLATFORM'); ?>"><?php echo $language->version; ?></span> 272 <?php else : ?> 273 <span class="badge bg-success"><?php echo $language->version; ?></span> 274 <?php endif; ?> 275 </td> 276 </tr> 277 <?php endforeach; ?> 278 </tbody> 279 </table> 280 <?php echo HTMLHelper::_('form.token'); ?> 281 <?php endif; ?> 282 <div class="form-group d-grid gap-2"> 283 <button id="installLanguagesButton" class="btn btn-primary w-100"> 284 <?php echo Text::_('INSTL_LANGUAGES_SELECTED'); ?> 285 </button> 286 <button id="skipLanguages" class="btn btn-secondary w-100"> 287 <?php echo Text::_('JSKIP'); ?> 288 </button> 289 </div> 290 </form> 291 </div> 292 </fieldset> 293 294 <fieldset id="installFinal" class="j-install-step"> 295 <legend class="j-install-step-header"> 296 <span class="icon-joomla" aria-hidden="true"></span> <?php echo Text::_('INSTL_COMPLETE_FINAL'); ?> 297 </legend> 298 <div class="j-install-step-form"> 299 <p><?php echo Text::_('INSTL_COMPLETE_FINAL_DESC'); ?></p> 300 </div> 301 </fieldset> 302 303 304 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |