Files
kalsport.pl/modules/leobootstrapmenu/views/templates/hook/widgets/widget_twitter.tpl
2024-11-05 12:22:50 +01:00

35 lines
1.5 KiB
Smarty

{*
* @Module Name: Leo Bootstrap Menu
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
*}
<div class="leo-widget" data-id_widget="{$id_widget}">
{if isset($username)}
<div class="widget-twitter">
{if isset($widget_heading)&&!empty($widget_heading)}
<div class="menu-title">
{$widget_heading}
</div>
{/if}
<div class="widget-inner">
<a class="twitter-timeline" data-dnt="true" data-theme="{$theme}" data-link-color="#FFFFFF" width="{$width}" height="{$height}" data-chrome="{$chrome}" data-border-color="#{$border_color}" lang="EN" data-tweet-limit="{$count}" data-show-replies="{$show_replies}" href="https://twitter.com/{$username}" data-widget-id="{$twidget_id}">Tweets by @{$username}</a>
</div>
</div>
{literal}
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if (!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
{/literal}
{/if}
{if $show_widget_bo == 'admin'}
<div class="w-name">
<select name="inject_widget" class="inject_widget_name">
{foreach from=$widgets item=w}
<option value="{$w['key_widget']}">
{$w['name']}
</option>
{/foreach}
</select>
</div>
{/if}
</div>