2011-12-15 16:48:50 +01:00
|
|
|
{* oembed.tpl last modified 2011-12-01 *}
|
|
|
|
<span class="serendipity_oembed">
|
2011-12-18 00:44:57 +01:00
|
|
|
{if $oembed.type=='rich'} {* =================================================== RICH *}
|
|
|
|
{if $oembed.provider_name|stripos:"Wikipedia" !== false}
|
|
|
|
<blockquote>{$oembed.html}</blockquote>
|
|
|
|
{elseif $oembed.provider_name|stripos:"IMDB" !== false} {* beautify IMDB content *}
|
|
|
|
<blockquote>{$oembed.html|replace:"<h2>":"<strong>"|replace:"</h2>":"</strong>"|replace:"<img":"<img align='right'"}</blockquote>
|
|
|
|
{elseif $oembed.provider-name|stripos:"Soundcloud" !== false} {* beautify SoundCloud *}
|
|
|
|
{$oembed.html|replace:"</object>":"</object><br/>"}
|
|
|
|
{else}
|
2011-12-15 16:48:50 +01:00
|
|
|
{$oembed.html}
|
2011-12-18 00:44:57 +01:00
|
|
|
{/if}
|
|
|
|
{elseif $oembed.type=='video'} {* =================================================== VIDEO *}
|
2011-12-15 16:48:50 +01:00
|
|
|
{$oembed.html}
|
2011-12-18 00:44:57 +01:00
|
|
|
{elseif $oembed.type=='image'} {* =================================================== IMAGE *}
|
2011-12-16 11:44:55 +01:00
|
|
|
<a href="{$oembed.url}"><img src="{$oembed.thumbnail_url}""{if $oembed.title} title="{$oembed.title}" alt="{$oembed.title}"{/if}/></a>
|
2011-12-18 00:44:57 +01:00
|
|
|
{elseif $oembed.type=='photo'} {* =================================================== PHOTO *}
|
2011-12-16 11:44:55 +01:00
|
|
|
<img src="{$oembed.url}"{if $oembed.title} title="{$oembed.title}" alt="{$oembed.title}"{/if}/>
|
2011-12-18 00:44:57 +01:00
|
|
|
{elseif $oembed.type=='link'} {* =================================================== LINK *}
|
|
|
|
{if $oembed.description}
|
|
|
|
{if $oembed.title}<strong>{$oembed.title}</strong><br/>{/if}
|
|
|
|
<p>{if $oembed.thumbnail_url}<img src="{$oembed.thumbnail_url}" align="left">{/if}{$oembed.description}</p>
|
|
|
|
{else}
|
2011-12-15 16:48:50 +01:00
|
|
|
<a href="{$oembedurl}" title="{$oembed.title}">{$oembed.author_name}</a>
|
2011-12-18 00:44:57 +01:00
|
|
|
{/if}
|
2011-12-15 16:48:50 +01:00
|
|
|
{else}
|
2011-12-18 00:44:57 +01:00
|
|
|
<a href="{$oembedurl}" target="_blank">{if $oembed.error}{$oembed.error}{else}{$oembedurl}{/if}</a>
|
2011-12-15 16:48:50 +01:00
|
|
|
{/if}
|
|
|
|
</span>
|