forked from newscoop/theme-Liquid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor_image.tpl
21 lines (18 loc) · 1.01 KB
/
editor_image.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{ dynamic }}
<figure class="cms-image {{ $imageDetails['align'] }}" {{ if $imageDetails['percentage'] }}style="max-width:{{ $imageDetails['percentage'] }};"{{ /if }} {{ if !$imageDetails['percentage'] && $imageDetails['width']}}style="max-width:{{ $imageDetails['width'] }}px;"{{ /if }}>
<img src="{{ $uri->uri }}" style="max-width: 100%" rel="resizable" alt="{{ $imageDetails['alt'] }}" />
{{ if $gimme->image->photographer|strip !== "" OR $gimme->image->description|strip !== "" OR isset($imageDetails['sub']) }}
<figcaption>{{ if isset($imageDetails['sub']) }}
{{$imageDetails['sub']}}
{{else}}
{{$gimme->image->description}}
{{/if}}
{{ if $gimme->image->photographer|strip !== "" }}
<span class="photographer">
© {{ if $gimme->image->photographer_url }}<a style="display: inline" href="{{ $gimme->image->photographer_url }}">{{ $gimme->image->photographer }}</a>{{ else }}{{ $gimme->image->photographer }}{{ /if }}
</span>
{{ /if }}
</figcaption>
{{/if}}
</figure>
{{ /dynamic }}