<xen:if is="{$media.media_type} == 'image_upload'">
<a class="button smallButton toolButton Tooltip" title="{xen:phrase xengallery_fullsize_media}" href="{xen:link xengallery/full, $media}" rel="nofollow"><i class="fa fa-search-plus fa-lg"></i></a>
<span class="LightboxContainer" data-fetch-url="{xen:link xengallery/fetch, $media}" data-total-count="{$containerCount}">
<a href="{xen:link xengallery/full, $media, 'lightbox=1', 'last_edit_date={$media.last_edit_date}'}" rel="nofollow" class="mfp-image Lightbox JsOnly button smallButton toolButton Tooltip" title="{xen:phrase xengallery_view_media_in_lightbox}" data-type="image" data-media-title="{$media.media_title}" data-media-url="{xen:link xengallery, $media}" data-username="{$media.username}" data-user-url="{xen:link 'xengallery/users', $media}"><span></span><i class="fa fa-picture-o fa-lg"></i></a>
</span>
<xen:else />
<span class="LightboxContainer" data-fetch-url="{xen:link xengallery/fetch, $media}" data-total-count="{$containerCount}">
<a href="{xen:link xengallery/preview, $media}" class="mfp-iframe rel="nofollow" Lightbox JsOnly button smallButton toolButton Tooltip" title="{xen:phrase xengallery_view_media_in_lightbox}" data-type="image" data-media-title="{$media.media_title}" data-media-url="{xen:link xengallery, $media}" data-username="{$media.username}" data-user-url="{xen:link 'xengallery/users', $media}"><span></span><i class="fa fa-picture-o fa-lg"></i></a>
</span>
</xen:if>