[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage Layout 6 * 7 * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\HTML\HTMLHelper; 14 use Joomla\CMS\Language\Text; 15 use Joomla\CMS\Router\Route; 16 17 ?> 18 19 <?php if (!empty($displayData['item']->associations)) : ?> 20 <?php $associations = $displayData['item']->associations; ?> 21 22 <dd class="association"> 23 <span class="icon-globe icon-fw" aria-hidden="true"></span> 24 <?php echo Text::_('JASSOCIATIONS'); ?> 25 <?php foreach ($associations as $association) : ?> 26 <?php if ($displayData['item']->params->get('flags', 1) && $association['language']->image) : ?> 27 <?php $flag = HTMLHelper::_('image', 'mod_languages/' . $association['language']->image . '.gif', $association['language']->title_native, array('title' => $association['language']->title_native), true); ?> 28 <a href="<?php echo Route::_($association['item']); ?>"><?php echo $flag; ?></a> 29 <?php else : ?> 30 <?php $class = 'btn btn-secondary btn-sm btn-' . strtolower($association['language']->lang_code); ?> 31 <a class="<?php echo $class; ?>" title="<?php echo $association['language']->title_native; ?>" href="<?php echo Route::_($association['item']); ?>"><?php echo $association['language']->lang_code; ?> 32 <span class="visually-hidden"><?php echo $association['language']->title_native; ?></span> 33 </a> 34 <?php endif; ?> 35 <?php endforeach; ?> 36 </dd> 37 <?php endif; ?>
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 |