Skip to content

Commit

Permalink
make thumbs of picture lists (eg. flickr) clickable to show full scre…
Browse files Browse the repository at this point in the history
…en image

git-svn-id: file:///home/awy/mirror/slim/7.6/trunk/server@32880 62299810-d8cb-41fd-93b7-d32162e5a4a4
  • Loading branch information
mherger committed Jul 26, 2011
1 parent 5cbb700 commit 6e566b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HTML/Default/cmdwrappers_Default
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
<a href="[% item.weblink %]" target="_blank">
[% ELSIF item.type != 'text' %]
<a href="[% path %]?[% searchquery %]index=[% index _ (start + loop.index) %]&amp;player=[% player | uri %][% IF sess %]&amp;sess=[% sess; END %]" class="browseItemLink">
[% ELSIF item.type == "text" && item.image %]
<a href="[% item.image %]" target="_blank">
[% END %]
[% PROCESS $itemImg height="$item.size" %]</a>

Expand Down
9 changes: 9 additions & 0 deletions HTML/Default/xmlbrowser.html
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,20 @@
[% END %]
[% ELSIF !item.type.match('^text') %]
<a href="[% path %]?[% multiquery %][% searchquery | replace("'", "%27") | uri %]index=[% (item.index || index _ (start + loop.index)) | replace("'", "%27") | uri %]&amp;player=[% player | uri %]&amp;sess=[% sess %]" class="browseItemLink">
[% ELSIF item.type == "text" && item.image %]
<a href="[% item.image %]" target="_blank">
[% END %]

[% content %]

[% IF item.weblink || item.link || !item.type.match('^text') %]
</a>
[% ELSIF item.type == "text" && item.image;
details = [];
IF item.owner; details.push(item.owner); END;
IF item.date; details.push(item.date); END;
IF details.size; "(" _ details.join(' - ') _ ")"; END;
%]
</a>
[% END %]
[% END %]

0 comments on commit 6e566b7

Please sign in to comment.