-
Notifications
You must be signed in to change notification settings - Fork 1
/
inc_widget_html.txt
37 lines (33 loc) · 1.61 KB
/
inc_widget_html.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{if $smarty.get.mini}
{assign var='w' value=80}
{assign var='h' value=15}
{assign var='src' value='browser_mini.gif'}
{else}
{assign var='w' value=143}
{assign var='h' value=54}
{assign var='src' value='browser.gif'}
{/if}
{assign var='menu_w' value=200}
{math assign='menu_offset_x' equation="0-((menu_w-w)/2)" w=$w menu_w=$menu_w}
{math assign='menu_offset_y' equation="h+5" h=$h}
<div id="london-bloggers-widget-{$uid}" style="position: relative; width: {$w}px;">
<div style="position: relative;">
<a href="{$cfg.abs_root_url}" onclick="return ToggleTubeMenu('{$uid}');"><img border="0" style="border: 0" src="{$cfg.abs_root_url}images/{$src}" width="{$w}" height="{$h}"></a>
</div>
<div id="london-bloggers-widget-menu-{$uid}" style="position: absolute; left: {$menu_offset_x}px; top: {$menu_offset_y}px; background-color: #fff; width: {$menu_w}px; display: none; z-index: 2">
<div style="border: 1px solid #666666; font-size: 11px; font-family: Arial, Helvetica, sans-serif; padding: 8px; color: #000">
{foreach from=$stations item='station'}
<b>Weblogs at <a href="{$cfg.abs_root_url}stations/{$station.id}/" style="color: blue; text-decoration: underline">{$station.name|escape}</a>:</b><br>
<br>
{foreach from=$station.weblogs item='weblog'}
• <a href="{$weblog.blog_url|escape}" style="color: blue; text-decoration: underline">{$weblog.blog_name|escape}</a><br>
{/foreach}
{if $station.more}
• and {$station.more} more...<br>
{/if}
<br>
{/foreach}
<b><a href="{$cfg.abs_root_url}" style="color: blue; text-decoration: underline">Are you a London Blogger?</a></b>
</div>
</div>
</div>