{script}{literal}OW.resizeImg($('.ow_oembed_attachment'),{width:'150'});{/literal}{/script} {style}{literal} div.ow_ajax_oembed_attachment { position: relative; /*padding-right: 20px;*/ border-width: 1px; padding: 4px; } .ow_oembed_attachment .two_column .attachment_left { float: left; max-width: 150px; margin-right: 8px; } .ow_oembed_attachment .two_column .attachment_right { display: inline-block; } .ow_oembed_attachment .video div.attachment_left { max-width: 160px; } .ow_oembed_attachment .video div.attachment_right { display: inline-block; } .ow_oembed_attachment .one_column .attachment_left { display: none; } .ow_oembed_attachment .attachment_left img { max-width: 100%; height: auto; max-width: none; } .ow_oembed_attachment .attachment_left embed, .ow_oembed_attachment .attachment_left object, .ow_oembed_attachment .attachment_left iframe { width: 300px; height: 220px; } .ow_oembed_attachment:hover .attachment_delete { display: block; } .attachment_delete { position: absolute; right: 0; width:12px; height:12px; display: none; } .ow_ajax_oembed_attachment .attachment_delete { right: 5px; } .attachment_other_images { text-align: center; margin-top: 10px; visibility: hidden; } .ow_ajax_oembed_attachment:hover .attachment_other_images { visibility: visible; } .attachment_other_images_fbcontent { } .attachment_image_item { float: left; margin: 2px; padding: 3px; width: 85px; height: 85px; border-width: 1px; text-align: center; cursor: pointer; } .attachment_image_item img { max-width: 100%; max-height: 100%; } .has_thumbnail .attachment_left { } {/literal}{/style}
{if !empty($data.thumbnail_url) } {elseif !empty($data.url)} {elseif !empty($data.html)} {$data.html} {/if} {if !empty($data.allImages) && count($data.allImages) > 1}
{text key="base+ajax_attachment_select_image"}
{text key="base+ajax_attachment_select_image_title"}
{foreach from=$data.allImages item="img"}
{/foreach}
{/if}
{if !empty($data.title)} {elseif $data.type != "photo"} {/if} {if !empty($data.description)}
{$data.description}
{/if}