32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2025-01-27 06:18:29 +00:00

Merge pull request #176 from andrepereiradasilva/ux-language

Adds language flags to weblinks listing tables
This commit is contained in:
Puneet Kala 2016-04-27 00:18:18 +05:30
commit 51a9d7f7ca
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ class WeblinksModelWeblinks extends JModelList
$query->from($db->quoteName('#__weblinks') . ' AS a');
// 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 over the users for the checked out user.

View File

@ -111,7 +111,7 @@ JFactory::getDocument()->addScriptDeclaration('
<th width="5%" class="nowrap center hidden-phone">
<?php echo JHtml::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
</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); ?>
</th>
<th width="1%" class="nowrap center hidden-phone">
@ -188,7 +188,7 @@ JFactory::getDocument()->addScriptDeclaration('
<?php if ($item->language == '*'):?>
<?php echo JText::alt('JALL', 'language'); ?>
<?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) . '&nbsp;' . $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
<?php endif;?>
</td>
<td class="center hidden-phone">