Skip to content

Commit

Permalink
New feature: In template editor, added a tip to explain how to displa…
Browse files Browse the repository at this point in the history
…y pictures in pstpl/css files
  • Loading branch information
LouisGac committed May 3, 2016
1 parent 9b9a692 commit e04ac13
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions application/views/admin/templates/templatesummary_view.php
Expand Up @@ -131,6 +131,37 @@
}
?>
</div>

<div class="">
<a href="#" data-toggle="modal" data-target="#fileHelp" />
<?php eT('Tip: How to display a file in your template?'); ?>
</a>
</div>
</div>

<!-- Modal -->
<div class="modal fade" id="fileHelp" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel"><?php eT('Tip: How to display a picture in your template?'); ?></h4>
</div>
<div class="modal-body">
<?php eT('To use a picture in a .pstpl file:');?><br/>
<code>&lt;img src="{TEMPLATEURL}/files/yourpicture.png" /&gt;</code><br/><br/>
<?php eT("To use a picture in a .css file: ");?><br/>
<code>background-image: url('../files/yourpicture.png');</code>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php eT("Close");?></button>
</div>
</div>
</div>
</div>



</div>
</div>
<?php endif;?>
Expand Down

0 comments on commit e04ac13

Please sign in to comment.