Skip to content

Commit

Permalink
Merge branch 'plegall-master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Bayfield committed Mar 20, 2016
2 parents 4ca1b92 + 9cf2927 commit 2d4b68a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions template/picture.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,22 @@
</li>
{/if}
{if isset($current.U_DOWNLOAD)}
{if empty($current.formats)}
<li>
<a href="{$current.U_DOWNLOAD}" title="{'Download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
<span class="glyphicon glyphicon-download-alt"></span><span class="glyphicon-text">{'Download'|@translate}</span>
</a>
{else}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-download-alt"></span><span class="glyphicon-text">{'Download'|@translate}</span><span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
{foreach from=$current.formats item=format}
<li><a href="{$format.download_url}" rel="nofollow">{$format.label}<span class="downloadformatDetails"> ({$format.filesize})</span></a></li>
{/foreach}
</ul>
{/if} {* has formats *}
</li>
{/if}
{if isset($PLUGIN_PICTURE_BUTTONS)}{foreach from=$PLUGIN_PICTURE_BUTTONS item=button}{$button}{/foreach}{/if}
Expand Down
5 changes: 5 additions & 0 deletions template/search.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
<label class="checkbox-inline">
<input type="checkbox" name="fields[]" value="file" checked="checked"> {'File name'|translate}
</label>
{if isset($TAGS)}
<label class="checkbox-inline">
<input type="checkbox" name="search_in_tags" value="tags"> {'Tags'|translate}
</label>
{/if}
</div>
</div>
</div>
Expand Down

0 comments on commit 2d4b68a

Please sign in to comment.