Skip to content

Commit

Permalink
Use bdi element for version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 committed Oct 17, 2021
1 parent 1a58e2e commit f2187e4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<?php echo $item->type_translated; ?>
</td>
<td class="hidden-phone">
<?php echo @$item->version != '' ? $item->version : '&#160;'; ?>
<?php echo @$item->version != '' ? '<bdi>' . $item->version . '</bdi>' : '&#160;'; ?>
</td>
<td class="hidden-phone hidden-tablet">
<?php echo @$item->creationDate != '' ? $item->creationDate : '&#160;'; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
<?php $minorVersion = $version::MAJOR_VERSION . '.' . $version::MINOR_VERSION; ?>
<?php // Display a Note if language pack version is not equal to Joomla version ?>
<?php if (strpos($language->version, $minorVersion) !== 0 || strpos($language->version, $currentShortVersion) !== 0) : ?>
<span class="label label-warning hasTooltip" title="<?php echo JText::_('JGLOBAL_LANGUAGE_VERSION_NOT_PLATFORM'); ?>"><?php echo $language->version; ?></span>
<span class="label label-warning hasTooltip" title="<?php echo JText::_('JGLOBAL_LANGUAGE_VERSION_NOT_PLATFORM'); ?>"><?php echo '<bdi>' . $language->version . '</bdi>'; ?></span>
<?php else : ?>
<span class="label label-success"><?php echo $language->version; ?></span>
<span class="label label-success"><?php echo '<bdi>' . $language->version . '</bdi>'; ?></span>
<?php endif; ?>
</td>
<td class="small hidden-phone">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<?php echo $item->type_translated; ?>
</td>
<td class="hidden-phone">
<?php echo @$item->version != '' ? $item->version : '&#160;'; ?>
<?php echo @$item->version != '' ? '<bdi>' . $item->version . '</bdi>' : '&#160;'; ?>
</td>
<td class="hidden-phone hidden-tablet">
<?php echo @$item->creationDate != '' ? $item->creationDate : '&#160;'; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@
<?php echo $item->type_translated; ?>
</td>
<td class="hidden-phone center">
<span class="label label-warning"><?php echo $item->current_version; ?></span>
<span class="label label-warning"><?php echo '<bdi>' . $item->current_version . '</bdi>'; ?></span>
</td>
<td class="center">
<span class="label label-success"><?php echo $item->version; ?></span>
<span class="label label-success"><?php echo '<bdi>' . $item->version . '</bdi>'; ?></span>
</td>
<td class="hidden-phone center">
<?php echo $item->folder_translated; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@
<?php $minorVersion = $version::MAJOR_VERSION . '.' . $version::MINOR_VERSION; ?>
<?php // Display a Note if language pack version is not equal to Joomla version ?>
<?php if (strpos($row->version, $minorVersion) !== 0 || strpos($row->version, $currentShortVersion) !== 0) : ?>
<span class="label label-warning hasTooltip" title="<?php echo JText::_('JGLOBAL_LANGUAGE_VERSION_NOT_PLATFORM'); ?>"><?php echo $row->version; ?></span>
<span class="label label-warning hasTooltip" title="<?php echo JText::_('JGLOBAL_LANGUAGE_VERSION_NOT_PLATFORM'); ?>"><?php echo '<bdi>' . $row->version . '</bdi>'; ?></span>
<?php else : ?>
<span class="label label-success"><?php echo $row->version; ?></span>
<span class="label label-success"><?php echo '<bdi>' . $row->version . '</bdi>'; ?></span>
<?php endif; ?>
</td>
<td class="hidden-phone">
Expand Down

0 comments on commit f2187e4

Please sign in to comment.