Skip to content

Commit

Permalink
added image width support
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Apr 27, 2015
1 parent a7a8dba commit b080d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newscoop/themes/system_templates/editor_image.tpl
@@ -1,6 +1,6 @@
{{ dynamic }}
{{ if $imageDetails['align'] }} <div align="center"> {{ /if }}
<div class="cs_img {{ if $imageDetails['align'] }}cs_fl_{{ $imageDetails['align'] }}{{ /if }}" {{ if $imageDetails['percentage'] }}style="width:{{ $imageDetails['percentage'] }};"{{ /if }}>
<div class="cs_img {{ if $imageDetails['align'] }}cs_fl_{{ $imageDetails['align'] }}{{ /if }}" {{ if $imageDetails['percentage'] }}style="width:{{ $imageDetails['percentage'] }};"{{ /if }} {{ if !$imageDetails['percentage'] && $imageDetails['width']}}style="width:{{ $imageDetails['width'] }}px;"{{ /if }}>
{{ if strlen($imgZoomLink) > 0 }} <p><a href="{{ $imgZoomLink }}" class="photoViewer" title="{{ $imageDetails['sub'] }}"> {{ else }}<p> {{ /if }}
<img src="{{ $uri->uri }}" {{ if isset($imageDetails['alt']) }}alt="{{ $imageDetails['alt'] }}"{{ /if }} {{ if isset($imageDetails['sub']) }}title="{{ $imageDetails['alt'] }}" {{ /if }} border="0"/>
{{ if strlen($imgZoomLink) > 0 }} </a></p> {{ else }}</p> {{ /if }}
Expand Down

0 comments on commit b080d76

Please sign in to comment.