git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 3aaac0a4 authored by Mike Sheldon's avatar Mike Sheldon

Merge branch 'master' of gitorious.org:foocorp/librefm

parents 0a469553 80ffd247
body, h1, h2, h3, h4, h5, h6 {
font-size: 11px;
font-family: Arial, sans-serif;
color: #333;
background-color: white;
}
h1, h2, h3, h4, h5, h6 {font-weight: bold; line-height: 14px;}
\ No newline at end of file
<ol>
{include file='menu.tpl'}
<li>{include file='submenu.tpl'}</li>
</ol>
{include file='search-box.tpl'}
<hr />
{include file='sidebar-ads.tpl'}
<hr />
<p>{t escape=no}Powered by <a href="https://savannah.gnu.org/projects/librefm/">GNU FM{/t}</a></p>
......
......@@ -6,26 +6,36 @@
{section name=i loop=$extra_head_links}
<link rel="{$extra_head_links[i].rel|escape:'html':'UTF-8'}" href="{$extra_head_links[i].href|escape:'UTF-8'}" type="{$extra_head_links[i].type|escape:'html':'UTF-8'}" title="{$extra_head_links[i].title|escape:'html':'UTF-8'}" />
{/section}
<meta name=”viewport” content=”width=320,user-scalable=true” />
<style type="text/css">
body {font: 11px sans-serif; color: #333;}
</style>
<meta content="width=320" name="viewport" />
<link rel="stylesheet" href="/themes/mobile/m.css" />
</head>
<body>
<p><small>This is our new minimal, mobile interface. You like?</small></p>
<p id="mobile-banner">This is our new minimal, mobile interface. You like?</p>
<p>
{include file='menu.tpl'}
</p>
<hr />
<h1><a href="{$base_url}">Libre.fm</a></h1>
{include file='submenu.tpl'}
{include file='search-box.tpl'}
<hr />
{if isset($headerfile)}
{include file="$headerfile"}
{/if}
{if isset($pageheading)}
<h2>{$pageheading}</h2>
{/if}
......
{include file='header.tpl'}
<center>
{if isset($radio_session)}
{include file='flattr.tpl'}
{include file='player.tpl'}
<div id='error'></div>
<script type="text/javascript">
{if isset($this_user)}
playerInit(false, "{$this_user->getScrobbleSession()}", "{$this_user->getWebServiceSession()}", "{$radio_session}");
{else}
playerInit(false, false, false, "{$radio_session}");
{/if}
</script>
<br /><br />
<div id='flattrstream' style='width: 50%; display: none;'>
<div id='flattr'></div>
<p>{t escape=no}Hey! If you really like this artist you can show your appreciation by donating to them via <a href='http://flattr.com'>flattr</a>.{/t}</p>
</div>
</center>
{else}
<h3>{t escape=no}Listen to 100&#37; libre music right here in your web browser!{/t}</h3>
<p>{t}To get started, simply enter the type of music you'd like to hear or select one of the common tags below:{/t}</p>
<p><a href="?tag=folk">Folk</a> <a href="?tag=rock">Rock</a> <a href="?tag=metal">Metal</a> <a href="?tag=classical">Classical</a> <a href="?tag=pop">Pop</a> <a href="?tag=blues">Blues</a> <a href="?tag=jazz">Jazz</a> <a href="?tag=punk">Punk</a> <a href="?tag=ambient">Ambient</a> <a href="?tag=electronic">Electronic</a></p>
<form method='get' action=''>
<div><label for="tag">{t}Custom tag:{/t}</label><input type="text" id="tag" name="tag" /></div><br />
<div><input type="checkbox" id="only_loved" name="only_loved" style="width: auto;" /> <label for="only_loved">{t}Only play me songs that other people love{/t}</label></div><br />
<div><input type="submit" value="{t}Listen{/t}" /></div></form>
<br />
<p>{t escape=no}Or listen to a random selection of the whole libre.fm community's favourite music on the <a href="?station=librefm://community/loved">Libre.fm Community Station</a>{/t}</p>
{/if}
<p id="android">Got an Android phone? Download LibreDroid from <a
href="http://f-droid.org/FDroid.apk">F-Droid</a> (recommended) or <a
href="http://mikeasoft.com/~mike/libredroid.apk">directly</a>.</p>
{include file='footer.tpl'}
{if ($logged_in)}
<li><a href="{$this_user->getURL()}">{t}Profile{/t}</a></li>
<li><a href="{$base_url}/listen.php">{t}Listen{/t}</a></li>
<li><a href="{$base_url}">{t}Popular{/t}</a></li>
<li><a href="{$base_url}/login.php?action=logout">{t}Logout{/t}</a></li>
<a href="{$this_user->getURL()}">{t}Profile{/t}</a> &nbsp;
<a href="{$base_url}/listen.php">{t}Listen{/t}</a> &nbsp;
<a href="{$base_url}">{t}Popular{/t}</a> &nbsp;
<a href="{$base_url}/login.php?action=logout">{t}Logout{/t}</a>
{else}
<li><a href="{$base_url}/login.php">{t}Log in{/t}</a></li>
<li><a href="{$base_url}/listen.php">{t}Listen{/t}</a></li>
<li><a href="{$base_url}/popular-page.php">{t}Popular{/t}</a></li>
<li><a href="{$base_url}/register.php">{t}Sign up now{/t}</a></li>
<a href="{$base_url}/login.php">{t}Log in{/t}</a>&nbsp;
<a href="{$base_url}/listen.php">{t}Listen{/t}</a> &nbsp;
<a href="{$base_url}/popular-page.php">{t}Popular{/t}</a> &nbsp;
<a href="{$base_url}/register.php">{t}Sign up now{/t}</a> &nbsp;
{/if}
{if isset($submenu)}
<ol>
<p>
{section name=i loop=$submenu}
<li {if $submenu[i].active}class='active'{/if}>
<a href='{$submenu[i].url}'>{$submenu[i].name}</a>
</li>
<span {if $submenu[i].active}class='active'{/if}>
<a href='{$submenu[i].url}'>{$submenu[i].name}</a> &nbsp;
</span>
{/section}
</ol>
</p>
{/if}
{include file='header.tpl'}
{if $me->bio}
<div id='bio'>
<blockquote>{$me->bio|escape:'html':'UTF-8'}</blockquote>
</div>
<p><i>{$me->bio|escape:'html':'UTF-8'}</i></p>
{/if}
<br />
{if $nowplaying|@count > 0}
<h3>{t}Now Playing:{/t}</h3>
{section name=i loop=$nowplaying}
<p><a href="{$nowplaying[i].trackurl|escape:'html':'UTF-8'}">{$nowplaying[i].track|escape:'html':'UTF-8'}</a> by <span class='artist-name'><a href='{$nowplaying[i].artisturl|escape:'html':'UTF-8'}'>{$nowplaying[i].artist|escape:'html':'UTF-8'}</a></span> with <span class='gobbler'>{$nowplaying[i].clientstr}</span> {if $nowplaying[i].loved}<img src='{$img_url}/love-small.png' alt='{t}Loved{/t}' title='{t}Loved{/t}' />{/if}</p>
<p class="nowplaying"><a href="{$nowplaying[i].trackurl|escape:'html':'UTF-8'}">{$nowplaying[i].track|escape:'html':'UTF-8'}</a> by <span class='artist-name'><a href='{$nowplaying[i].artisturl|escape:'html':'UTF-8'}'>{$nowplaying[i].artist|escape:'html':'UTF-8'}</a></span> with <span class='gobbler'>{$nowplaying[i].clientstr}</span> {if $nowplaying[i].loved}<img src='{$img_url}/love-small.png' alt='{t}Loved{/t}' title='{t}Loved{/t}' />{/if}</p>
{/section}
{/if}
<h3>{t plays=$scrobbles|@count}Latest %1 Plays:{/t}</h3>
<h4>{t plays=$scrobbles|@count}Latest %1 Plays:{/t}</h4>
<ol class="gobbles" about="{$me->id|escape:'html':'UTF-8'}" rev="gob:user">
......@@ -28,23 +26,17 @@
</ol>
{if !empty($lovedArtists)}
<br />
<h3 style='text-align: center; clear: left;'>{t name=$me->name}Free artists that %1 loves{/t}</h3>
<ul class="tagcloud">
<h5>{t name=$me->name}Free artists that %1 loves{/t}</h5>
{section name=i loop=$lovedArtists}
<li style='font-size:{$lovedArtists[i].size}'><a href='{$lovedArtists[i].url}'>{$lovedArtists[i].artist}</a></li>
<a href='{$lovedArtists[i].url}'>{$lovedArtists[i].artist}</a>&nbsp;
{/section}
</ul>
{/if}
{if !empty($recommendedArtists)}
<br />
<h3 style='text-align: center; clear: left;'>{t name=$me->name}Free artists that %1 might like{/t}</h3>
<ul class="tagcloud">
<h5>{t name=$me->name}Free artists that %1 might like{/t}</h5>
{foreach from=$recommendedArtists item=artist}
<li style='font-size:{$artist.size}'><a href='{$artist.url}'>{$artist.artist}</a></li>
<a href='{$artist.url}'>{$artist.artist}</a>&nbsp;
{/foreach}
</ul>
{/if}
{include file='footer.tpl'}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment