- md5
- 7ebc934d56156ef4075fd2e030a83042
- sha1
- a946ab0e5404cf8a5946a23139904bf2f3bbcc85
- sha256
- 590ba3acc12252c81f45b8b0e18e23b395950b6fd3966ccb614fe60c0e362689
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
<?php
/**
* @package Joomla.Administrator
* @subpackage com_languages
*
* @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;
$notice_homes = $this->homes == 2 || $this->homes == 1 || $this->homes - 1 != count($this->contentlangs) && ($this->language_filter || $this->switchers != 0);
$notice_disabled = !$this->language_filter && ($this->homes > 1 || $this->switchers != 0);
$notice_switchers = !$this->switchers && ($this->homes > 1 || $this->language_filter);
?>
<div class="mod-multilangstatus">
<?php if (!$this->language_filter && $this->switchers == 0) : ?>
<?php if ($this->homes == 1) : ?>
<div class="alert alert-info"><?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_NONE'); ?></div>
<?php else : ?>
<div class="alert alert-info"><?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_USELESS_HOMES'); ?></div>
<?php endif; ?>
<?php else : ?>
<table class="table table-striped table-sm">
<tbody>
<?php if ($this->defaultHome == true) : ?>
<tr class="table-warning">
<td>
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('WARNING'); ?></span>
</td>
<td>
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_DEFAULT_HOME_MODULE_PUBLISHED'); ?>
</td>
</tr>
<?php endif; ?>
<?php if ($notice_homes) : ?>
<tr class="table-warning">
<td>
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('WARNING'); ?></span>
</td>
<td>
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_HOMES_MISSING'); ?>
</td>
</tr>
<?php endif; ?>
<?php if ($notice_disabled) : ?>
<tr class="table-warning">
<td>
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('WARNING'); ?></span>
</td>
<td>
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_LANGUAGEFILTER_DISABLED'); ?>
</td>
</tr>
<?php endif; ?>
<?php if ($notice_switchers) : ?>
<tr class="table-warning">
<td>
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('WARNING'); ?></span>
</td>
<td>
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_LANGSWITCHER_UNPUBLISHED'); ?>
</td>
</tr>
<?php endif; ?>
<?php foreach ($this->contentlangs as $contentlang) : ?>
<?php if (array_key_exists($contentlang->lang_code, $this->homepages) && (!array_key_exists($contentlang->lang_code, $this->site_langs) || !$contentlang->published)) : ?>
<tr class="table-warning">
<td>
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('WARNING'); ?></span>
</td>
<td>
<?php echo JText::sprintf('COM_LANGUAGES_MULTILANGSTATUS_ERROR_CONTENT_LANGUAGE', $contentlang->lang_code); ?>
</td>
</tr>
<?php endif; ?>
<?php if (!array_key_exists($contentlang->lang_code, $this->site_langs)) : ?>
<tr class="table-warning">
<td>
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('WARNING'); ?></span>
</td>
<td>
<?php echo JText::sprintf('COM_LANGUAGES_MULTILANGSTATUS_ERROR_LANGUAGE_TAG', $contentlang->lang_code); ?>
</td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
<?php if ($this->listUsersError) : ?>
<tr class="info">
<td>
<span class="fa fa-help" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('JHELP'); ?></span>
</td>
<td>
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_CONTACTS_ERROR_TIP'); ?>
<ul>
<?php foreach ($this->listUsersError as $user) : ?>
<li>
<?php echo JText::sprintf('COM_LANGUAGES_MULTILANGSTATUS_CONTACTS_ERROR', $user->name); ?>
</li>
<?php endforeach; ?>
</ul>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<table class="table table-striped table-sm">
<thead>
<tr>
<th>
<?php echo JText::_('JDETAILS'); ?>
</th>
<th class="text-center">
<?php echo JText::_('JSTATUS'); ?>
</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_LANGUAGEFILTER'); ?>
</th>
<td class="text-center">
<?php if ($this->language_filter) : ?>
<?php echo JText::_('JENABLED'); ?>
<?php else : ?>
<?php echo JText::_('JDISABLED'); ?>
<?php endif; ?>
</td>
</tr>
<tr>
<th scope="row">
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_LANGSWITCHER_PUBLISHED'); ?>
</th>
<td class="text-center">
<?php if ($this->switchers != 0) : ?>
<?php echo $this->switchers; ?>
<?php else : ?>
<?php echo JText::_('JNONE'); ?>
<?php endif; ?>
</td>
</tr>
<tr>
<th scope="row">
<?php if ($this->homes > 1) : ?>
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_HOMES_PUBLISHED_INCLUDING_ALL'); ?>
<?php else : ?>
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_HOMES_PUBLISHED'); ?>
<?php endif; ?>
</th>
<td class="text-center">
<?php if ($this->homes > 1) : ?>
<?php echo $this->homes; ?>
<?php else : ?>
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_HOMES_PUBLISHED_ALL'); ?>
<?php endif; ?>
</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-sm">
<thead>
<tr>
<th>
<?php echo JText::_('JGRID_HEADING_LANGUAGE'); ?>
</th>
<th class="text-center">
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_SITE_LANG_PUBLISHED'); ?>
</th>
<th class="text-center">
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_CONTENT_LANGUAGE_PUBLISHED'); ?>
</th>
<th class="text-center">
<?php echo JText::_('COM_LANGUAGES_MULTILANGSTATUS_HOMES_PUBLISHED'); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->statuses as $status) : ?>
<?php if ($status->element) : ?>
<tr>
<td>
<?php echo $status->element; ?>
</td>
<?php endif; ?>
<?php // Published Site languages ?>
<?php if ($status->element) : ?>
<td class="text-center">
<span class="fa fa-check" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('JYES'); ?></span>
</td>
<?php else : ?>
<td class="text-center">
<?php echo JText::_('JNO'); ?>
</td>
<?php endif; ?>
<?php // Published Content languages ?>
<?php if ($status->lang_code && $status->published) : ?>
<td class="text-center">
<span class="fa fa-check" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('JYES'); ?></span>
</td>
<?php else : ?>
<td class="text-center">
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('WARNING'); ?></span>
</td>
<?php endif; ?>
<?php // Published Home pages ?>
<?php if ($status->home_language) : ?>
<td class="text-center">
<span class="fa fa-check" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('JYES'); ?></span>
</td>
<?php else : ?>
<td class="text-center">
<span class="fa fa-times" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('JNO'); ?></span>
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<?php foreach ($this->contentlangs as $contentlang) : ?>
<?php if (!array_key_exists($contentlang->lang_code, $this->site_langs)) : ?>
<tr>
<td>
<?php echo $contentlang->lang_code; ?>
</td>
<td class="text-center">
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('WARNING'); ?></span>
</td>
<td class="text-center">
<?php if ($contentlang->published) : ?>
<span class="fa fa-check" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('JYES'); ?></span>
<?php elseif (!$contentlang->published && array_key_exists($contentlang->lang_code, $this->homepages)) : ?>
<span class="fa fa-times" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('JNO'); ?></span>
<?php elseif (!$contentlang->published) : ?>
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('WARNING'); ?></span>
<?php endif; ?>
</td>
<td class="text-center">
<?php if (!array_key_exists($contentlang->lang_code, $this->homepages)) : ?>
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('WARNING'); ?></span>
<?php else : ?>
<span class="fa fa-check" aria-hidden="true"></span>
<span class="sr-only"><?php echo JText::_('JYES'); ?></span>
<?php endif; ?>
</td>
<?php endif; ?>
<?php endforeach; ?>
</tr>
</tbody>
</table>
<?php endif; ?>
</div>
No other release has this exact content. See every version of this file.