mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-27 22:38:28 +00:00
Merge pull request #176 from andrepereiradasilva/ux-language
Adds language flags to weblinks listing tables
This commit is contained in:
commit
51a9d7f7ca
@ -139,7 +139,7 @@ class WeblinksModelWeblinks extends JModelList
|
|||||||
$query->from($db->quoteName('#__weblinks') . ' AS a');
|
$query->from($db->quoteName('#__weblinks') . ' AS a');
|
||||||
|
|
||||||
// Join over the language
|
// Join over the language
|
||||||
$query->select('l.title AS language_title')
|
$query->select('l.title AS language_title, l.image AS language_image')
|
||||||
->join('LEFT', $db->quoteName('#__languages') . ' AS l ON l.lang_code = a.language');
|
->join('LEFT', $db->quoteName('#__languages') . ' AS l ON l.lang_code = a.language');
|
||||||
|
|
||||||
// Join over the users for the checked out user.
|
// Join over the users for the checked out user.
|
||||||
|
@ -111,7 +111,7 @@ JFactory::getDocument()->addScriptDeclaration('
|
|||||||
<th width="5%" class="nowrap center hidden-phone">
|
<th width="5%" class="nowrap center hidden-phone">
|
||||||
<?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
|
<?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
|
||||||
</th>
|
</th>
|
||||||
<th width="5%" class="nowrap hidden-phone">
|
<th width="10%" class="nowrap hidden-phone">
|
||||||
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_LANGUAGE', 'a.language', $listDirn, $listOrder); ?>
|
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_LANGUAGE', 'a.language', $listDirn, $listOrder); ?>
|
||||||
</th>
|
</th>
|
||||||
<th width="1%" class="nowrap center hidden-phone">
|
<th width="1%" class="nowrap center hidden-phone">
|
||||||
@ -188,7 +188,7 @@ JFactory::getDocument()->addScriptDeclaration('
|
|||||||
<?php if ($item->language == '*'):?>
|
<?php if ($item->language == '*'):?>
|
||||||
<?php echo JText::alt('JALL', 'language'); ?>
|
<?php echo JText::alt('JALL', 'language'); ?>
|
||||||
<?php else:?>
|
<?php else:?>
|
||||||
<?php echo $item->language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
|
<?php echo $item->language_title ? JHtml::_('image', 'mod_languages/' . $item->language_image . '.gif', $item->language_title, array('title' => $item->language_title), true) . ' ' . $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
</td>
|
</td>
|
||||||
<td class="center hidden-phone">
|
<td class="center hidden-phone">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user