Skip to content

Commit

Permalink
[4.0] Changing title to tooltip fpr template preview
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Apr 25, 2021
1 parent 0039f50 commit 352b4c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,13 @@
<?php if ($this->preview) : ?>
<?php $client = (int) $item->client_id === 1 ? 'administrator' : 'site'; ?>
<!-- external link icon generated by css -->
<a href="<?php echo Route::link($client, 'index.php?tp=1&templateStyle=' . (int) $item->id); ?>" target="_blank" class="jgrid"
title="<?php echo Text::sprintf('JBROWSERTARGET_NEW_TITLE', $item->title); ?>">
<a href="<?php echo Route::link($client, 'index.php?tp=1&templateStyle=' . (int) $item->id); ?>" target="_blank" class="jgrid">
<span class="visually-hidden"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_PREVIEW'); ?></span>
</a>
<div role="tooltip" id="preview-<?php echo (int) $item->id; ?>"><?php echo Text::sprintf('JBROWSERTARGET_NEW_TITLE', $item->title); ?></div>
<?php else : ?>
<span class="icon-eye-slash" aria-hidden="true" title="<?php echo Text::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?>"></span>
<span class="icon-eye-slash" aria-hidden="true"></span>
<div role="tooltip" id="nopreview-<?php echo (int) $item->id; ?>"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?></div>
<span class="visually-hidden"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?></span>
<?php endif; ?>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@
<div>
<?php if ($this->preview) : ?>
<?php $client = (int) $item->client_id === 1 ? 'administrator' : 'site'; ?>
<a href="<?php echo Route::link($client, 'index.php?tp=1&template=' . $item->element); ?>"
target="_blank"
title="<?php echo Text::sprintf('JBROWSERTARGET_NEW_TITLE', Text::_($item->name)); ?>">
<?php echo Text::_('COM_TEMPLATES_TEMPLATE_PREVIEW'); ?>
<a href="<?php echo Route::link($client, 'index.php?tp=1&template=' . $item->element); ?> "target="_blank">
<?php echo Text::_('COM_TEMPLATES_TEMPLATE_PREVIEW'); ?>
</a>
<div role="tooltip" id="preview-<?php echo (int) $item->id; ?>"><?php echo Text::sprintf('JBROWSERTARGET_NEW_TITLE', $item->name); ?></div>
<?php else : ?>
<?php echo Text::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?>
<?php endif; ?>
Expand Down

0 comments on commit 352b4c3

Please sign in to comment.