Created
March 6, 2012 01:56
-
-
Save meancode/1982837 to your computer and use it in GitHub Desktop.
Asset Insertion template module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mt:Ignore>Asset Insertion template module</mt:Ignore> | |
<mt:Ignore>Modified Ken Edwards 03/05/2012 8:30p EST</mt:Ignore> | |
<mt:Asset id="$asset_id"> | |
<mt:if tag="AssetType" eq="image"> | |
<mt:SetVarBlock name="width" trim="1"> | |
<mt:AssetProperty property="image_width"> | |
</mt:SetVarBlock> | |
<mt:if name="width" gt="640"> | |
<mt:SetVarBlock name="href"><mt:AssetThumbnailURL width="640" height="640"></mt:SetVarBlock> | |
</mt:if> | |
<mt:Unless name="href"> | |
<mt:SetVarBlock name="href"><mt:AssetURL></mt:SetVarBlock> | |
</mt:Unless> | |
<div id="asset-<mt:Var name="asset_id">" class="entry_img_wrapper" style="text-align: left; width: <mt:var name="img_width">px;<mt:If name="align" eq="left"> float: left; margin-right: 10px;</mt:If><mt:If name="align" eq="right"> float: right; margin-left: 10px;</mt:If><mt:If name="align" eq="center"> margin: 0px auto;</mt:If>"><div class="entry_img_asset"><mt:If name="thumb"><a class="colorbox-img" href="<mt:var name="href">"><img src="<$mt:Var name="img_src"$>" width="<$mt:Var name="img_width"$>" height="<$mt:Var name="img_height"$>" /></a><mt:Else><img src="<$mt:Var name="img_src"$>" width="<$mt:Var name="img_width"$>" height="<$mt:Var name="img_height"$>" /></mt:If></div><mt:If name="caption"><div class="entry_img_caption"><mt:var name="caption" escape="html"></div></mt:If></div><mt:Else><mt:Var name="upload_html"></mt:If> | |
</mt:Asset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment