Skip to content

Commit

Permalink
😡
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Sep 3, 2016
1 parent 3c318fe commit d472643
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,14 @@
<?php if ($showPreview && !$showAsTooltip) : ?>
<div class="field-media-preview" style="width: <?php echo $previewWidth; ?>px; max-height: <?php echo $previewHeight; ?>px;"></div>
<?php endif; ?>
<?php if ($showPreview && $showAsTooltip) : ?>
<div class="input-prepend input-append">
<?php if ($showPreview && $showAsTooltip) : ?>
<span rel="popover" class="add-on pop-helper field-media-preview"
title="<?php echo JText::_('JLIB_FORM_MEDIA_PREVIEW_SELECTED_IMAGE'); ?>" data-content="<?php echo JText::_('JLIB_FORM_MEDIA_PREVIEW_EMPTY'); ?>"
data-original-title="<?php echo JText::_('JLIB_FORM_MEDIA_PREVIEW_SELECTED_IMAGE'); ?>" data-trigger="hover">
<i class="icon-eye"></i>
</span>
</div>
<?php else: ?>
<div class="input-append">
<?php endif; ?>
Expand Down
3 changes: 2 additions & 1 deletion templates/protostar/html/layouts/joomla/form/field/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,14 @@
<?php if ($showPreview && !$showAsTooltip) : ?>
<div class="field-media-preview" style="width: <?php echo $previewWidth; ?>px; height: <?php echo $previewHeight; ?>px;"></div>
<?php endif; ?>
<?php if ($showPreview && $showAsTooltip) : ?>
<div class="input-prepend input-append">
<?php if ($showPreview && $showAsTooltip) : ?>
<span rel="popover" class="add-on pop-helper field-media-preview"
title="<?php echo JText::_('JLIB_FORM_MEDIA_PREVIEW_SELECTED_IMAGE'); ?>" data-content="<?php echo JText::_('JLIB_FORM_MEDIA_PREVIEW_EMPTY'); ?>"
data-original-title="<?php echo JText::_('JLIB_FORM_MEDIA_PREVIEW_SELECTED_IMAGE'); ?>" data-trigger="hover">
<i class="icon-eye"></i>
</span>
</div>
<?php else: ?>
<div class="input-append">
<?php endif; ?>
Expand Down

0 comments on commit d472643

Please sign in to comment.