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

Commit 83f8c33f authored by mattl's avatar mattl

Mobile theme no longer needed.

parent 8c0ea3dc
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
{include file='header.tpl'}
{if ($logged_in)}
<p>{t escape=no}Android phone? Install <b>LibreDroid</b> and <b>Simple Last.fm Scrobbler</b> to report your listening habits from your phone!{/t}</p>
<p>{t escape=no userurl=$this_user->getURL() statsurl=$this_user->getURL('stats')}<a href="%1">Go to your profile</a> or <a href="%2">view your listening statistics</a>.{/t}</p>
{else}
<h2>Welcome to Libre.fm!</h2>
<ul>
<li>{t escape=no}100&#37; indie artists.{/t}
<ul>
<li>{t}Libre.fm actively supports the creation of music by independent artists.{/t}</li>
</ul>
</li>
<li>{t}You own your own listening data.{/t}
<ul>
<li>{t}Everything you put into Libre.fm is yours, not ours. Take it away and do cool things!{/t}</li>
</ul>
</li>
<li>{t}Legally download and share any track.{/t}
<ul>
<li>{t escape=no}Every song on Libre.fm is made by musicians who <b>want</b> you to share their music.{/t}</li>
</ul>
</li>
<li>{t}Your privacy, taken care of.{/t}
<ul>
<li>{t escape=no}Our <a href="http://libre.fm/more.html#privacy">privacy policy</a> is awesome. We don't even log your IP address! Privacy is important.{/t}</li>
</ul>
</li>
</ul>
<ul id="buttons">
<li><a href="{$base_url}/register.php"><img src="{$img_url}/signup-button.png" alt="{t}Sign up now{/t}" /></a></li>
</ul>
<h4>{t escape=no}That's not all! The code that powers Libre.fm is <a href="http://www.gnu.org/philosophy/free-sw.html">free software</a> &mdash; <a href="http://gitorious.org/foocorp/gnu-fm">take it</a>, run your own site and <a href="http://lists.nongnu.org/mailman/listinfo/librefm-discuss">join the development community!{/t}</a></h4>
{/if}
{include file='footer.tpl'}
{include file='header.tpl'}
<h2 property="dc:title">{t}Profile deleted{/t}</h2>
<p>{t}Your account has been deleted.{/t}</p>
{include file='footer.tpl'}
{include file='header.tpl'}
<h2>Admin panel</h2>
<hr>
{if isset($sent)}
<b>{t}Email was sent successfully!{/t}</b><br/ >
{/if}
<b>{t}Requests for invites{/t}</b>
<ul id="invites">
{section name=i loop=$emails}
{if ($emails[i].status == '0')}
<li>
<dl>
<dt><a href="admin.php?action=invite&email={$emails[i].email|stripslashes|urlencode}">
{$emails[i].email|stripslashes}</a></dt>
</dl>
</li>
{/if}
{/section}
</ul><br />
<b>{t}Invited people{/t}</b>
<ul id="invitees">
{section name=i loop=$emails}
{if ($emails[i].status == '1')}
<li>
<dl>
<dt><a href="admin.php?action=invite&email={$emails[i].email|stripslashes|urlencode}">
{$emails[i].email|stripslashes}</a></dt>
</dl>
</li>
{/if}
{/section}
</ul>
{include file='footer.tpl'}
{include file='header.tpl'}
{if isset($errors)}
<div id="errors">
{section loop=$errors name=error}
<p>{$errors[error]}</p>
{/section}
</div>
{/if}
<div about="{$id}" typeof="mo:Record" class="haudio">
<div class="vcard">
<form action='' method='post'>
<div><h3><label for='name'>{t}Album Name{/t}</h3>
<div class='formHelp'>{t}The name of the album{/t}</div>
<input type='text' name='name' id='name' value='{$name|escape:'htmlall'}' />
</div>
<div><h3><label for='image'>{t}Cover Image{/t}</h3>
<div class='formHelp'>{t}Address linking to the album's cover image{/t}</div>
<input type='text' name='image' id='image' value='{$image|escape:'htmlall'}' />
</div>
<br />
<p><input type='submit' name='submit' value='{t}Create Album{/t}' /></p>
</form>
</div>
</div>
{include file='footer.tpl'}
<h2>
<span rel="foaf:maker" rev="foaf:made" class="contributor">
<a about="{$artist->id}" typeof="mo:MusicArtist" property="foaf:name" class="url fn org"
rel="foaf:page" rev="foaf:primaryTopic" href="{$artist->getURL()}">{$artist->name}</a>
</span>
&#8212;
<span class="album" property="dc:title" rel="foaf:page" rev="foaf:primaryTopic" resource="">{$name}</span>
</h2>
{include file='header.tpl'}
<div about="{$id}" typeof="mo:Record" class="haudio">
<div{if $album->image != false} rel="foaf:depiction"{/if}>
<img class="albumart" {if $album->image == false} src="{$img_url}/qm160.png"{else} src="{$album->image}"{/if}
alt="{$album->name|escape:'html':'UTF-8'}" title="{$album->name|escape:'html':'UTF-8'}" width="160" />
</div>
<ul id="tracks" rel="mo:track">
{section name=i loop=$tracks}
<li about="{$tracks[i]->id}" typeof="mo:Track" class="item">
<a class="fn url" href="{$tracks[i]->getURL()}" rel="foaf:page" property="dc:title">{$tracks[i]->name}</a>
</li>
{/section}
{if $add_track_link}<li><a href='{$add_track_link}'><strong>[{t}Add new track{/t}]</strong></a></li>{/if}
</ul>
</div>
<div class="cleaner">&nbsp;</div>
{include file='footer.tpl'}
{include file='header.tpl'}
{include file='tc-all.inc'}
{include file='footer.tpl'}
<h2 class="fn org" property="foaf:name" rel="foaf:page" rev="foaf:primaryTopic" resource="">{$name|escape:'html':'UTF-8'}{if $manage_link} <a href="{$manage_link}"><small>[{t}Edit{/t}]</small></a>{/if}</h2>
{include file='header.tpl'}
{if isset($errors)}
<div id="errors">
{section loop=$errors name=error}
<p>{$errors[error]}</p>
{/section}
</div>
{/if}
<div about="{$id}" typeof="mo:MusicArtist">
<div class="vcard">
<form action='' method='post'>
<div><h3><label for='homepage'>Home Page</h3>
<div class='formHelp'>A link to the {$name|escape:'htmlall'}'s website.</div>
<input type='text' name='homepage' id='homepage' value='{$homepage|escape:'htmlall'}' />
</div>
<div><h3><label for='bio_summary'>Short Biography</h3>
<div class='formHelp'>Provide a short summary of {$name|escape:'htmlall'}'s biography.</div>
<textarea name='bio_summary' id='bio_summary'>{$bio_summary|escape:'html':'UTF-8'}</textarea>
</div>
<div><h3><label for='bio_content'>Full Biography</h3>
<div class='formHelp'>Provide a more detailed biography of {$name|escape:'htmlall'}.</div>
<textarea name='bio_content' id='bio_content'>{$bio_content|escape:'html':'UTF-8'}</textarea>
</div>
<div><h3><label for='image'>Image</h3>
<div class='formHelp'>Provide a link to an image of {$name|escape:'htmlall'}, this should be no larger than 256x256 pixels. If you need somewhere to upload your image we recommend <a href='http://imgur.com'>Imgur</a>, <a href='http://www.flickr.com'>Flickr</a> or <a href='http://www.archive.org'>Archive.org</a>.</div>
<input type='text' name='image' id='image' value='{$image|escape:'htmlall'}' />
</div>
<div><h3><label for='flattr_uid'>Flattr Username</h3>
<div class='formHelp'>If you have a <a href='http://flattr.com'>flattr account</a> simply enter your flattr username and we'll automatically put flattr buttons on your artist and track pages. This way your fans will be able to show their appreciation with the occasional tip.</div>
<input type='text' name='flattr_uid' id='flattr_uid' value='{$flattr_uid|escape:'htmlall'}' />
</div>
<br />
<p><input type='submit' name='submit' value='Update' /></p>
</div>
<ul>
{section name=i loop=$albums}
{if $albums[i]->name}
<li about="{$albums[i]->id}" property="dc:title" content="{$albums[i]->name|escape:'html':'UTF-8'}" typeof="mo:Record" class="haudio">
<a rel="foaf:page" href="{$albums[i]->getURL()}">{$albums[i]->name|escape:'html':'UTF-8'}</a>
</li>
{/if}
{/section}
</ul>
<br />
</div>
{include file='footer.tpl'}
{include file='header.tpl'}
<div about="{$id}" typeof="mo:MusicArtist">
{if !empty($tagcloud)}
<h3 style='text-align: center; clear: left;'>{t}Popular tags other people used to describe this artist{/t}</h3>
<ul class="tagcloud">
{section name=i loop=$tagcloud}
<li style='font-size:{$tagcloud[i].size}'><a href='/tag/{$tagcloud[i].tag|urlencode}' title='{t uses=$tagcloud[i].count}This tag was used %1 times{/t}' rel='tag'>{$tagcloud[i].tag}</a></li>
{/section}
</ul>
{/if}
{if !empty($mytags)}
<h3 style='text-align: center; clear: left;'>{t}Tags you've used for this artist{/t}</h3>
<ul class="tagcloud">
{section name=i loop=$mytags}
<li>{$mytags[i].tag},</li>
{/section}
</ul>
{/if}
<br />
<form action='' method='post'>
<b><label for='tags'>{t}Add tags:{/t}</label></b><br />
<br />
<input type='text' name='tags' id='tags' /><br />
<br />
<input type='submit' name='tag' id='tag' value='{t}Tag{/t}' />
</form>
{literal}
<script type='text/javascript'>
$(document).ready(function(){
$("#tags").placeholdr({placeholderText: "{/literal}{t}e.g. guitar, violin, female vocals, piano{/t}{literal}"});
});
</script>
{/literal}
<br />
</div>
{include file='footer.tpl'}
{include file='header.tpl'}
{if $flattr_uid}
{include file='flattr.tpl'}
{/if}
<div about="{$id}" typeof="mo:MusicArtist">
<div class="vcard">
{if $streamable}
<div id='player-container'>
{include file='player.tpl'}
<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>
</div>
{/if}
{if $image}
<center><p id='artist_image' style='float: left; width: 256px;'>
<img style='max-height: 256px; max-width: 256px;' src="{$image|escape:'htmlall'}" /><br />
{if $homepage}<a href="{$homepage|escape:'htmlall'}">{$name|escape:'html':'UTF-8'}'s homepage</a>{/if}
</p></center><br />
{else}
{if $homepage}<p style='clear: both;'><a href="{$homepage|escape:'htmlall'}">{t name=$name|escape:'html':'UTF-8'}%1's homepage{/t}</a></P>{/if}
{/if}
{if $bio_summary}
<div class="note" id="bio" property="bio:olb" datatype="" style='clear: left;'>
<h4>{t}Biography{/t}</h4>
<p>{$bio_summary}</p>
{if $bio_content}
<a href='#' onclick='$("#show_more_bio").toggle(500); $("#bio_content").toggle(500);' id='show_more_bio'>{t}Show more...{/t}</a>
<p id='bio_content' style='display: none;'>{$bio_content}</p>
{/if}
</div>
{/if}
</div>
{if $flattr_uid}
<div class="flattr" style="float: right; padding-right: 2em;">
<a class="FlattrButton" style="display:none;"
title="{$name|escape:'htmlall'}"
rev="flattr;uid:{$flattr_uid|escape:'htmlall'};category:audio;tags:music,creative commons,free,libre.fm;"
{if $bio_summary}
href="{$url}">{$bio_summary|escape:'htmlall'}</a>
{else}
href="{$url}">{$name|escape:'htmlall'} makes their music freely available on Libre.fm for you to listen to, share and remix however you like.</a>
{/if}
</div>
{/if}
<h3>{t}Albums{/t}</h3>
<ul>
{section name=i loop=$albums}
{if $albums[i]->name}
<li about="{$albums[i]->id}" property="dc:title" content="{$albums[i]->name|escape:'html':'UTF-8'}" typeof="mo:Record" class="haudio">
<a rel="foaf:page" href="{$albums[i]->getURL()}">{$albums[i]->name|escape:'html':'UTF-8'}</a>
</li>{/if}
{/section}
{if $add_album_link}<li><a href='{$add_album_link}'><strong>[{t}Add new album{/t}]</strong></a></li>{/if}
</ul>
<br />
{if !empty($similarArtists)}
<h3 style='text-align: center; clear: left;'>{t}Similar free artists{/t}</h3>
<ul class="tagcloud">
{section name=i loop=$similarArtists}
<li style='font-size:{$similarArtists[i].size}'><a href='{$similarArtists[i].url}'>{$similarArtists[i].artist}</a></li>
{/section}
</ul>
{/if}
<br />
{if !empty($tagcloud)}
<h3 style='text-align: center; clear: left;'>{t}Tags used to describe this artist{/t}</h3>
<ul class="tagcloud">
{section name=i loop=$tagcloud}
<li style='font-size:{$tagcloud[i].size}'><a href='/tag/{$tagcloud[i].tag|urlencode}' title='{t uses=$tagcloud[i].count}This tag was used %1 times{/t}' rel='tag'>{$tagcloud[i].tag}</a></li>
{/section}
</ul>
{/if}
<br />
</div>
{include file='footer.tpl'}
{include file='header.tpl'}
<h2 property="dc:title">{t}Remove your profile{/t}</h2>
<p><strong>Confirmation mail has been sent to email on file for {$this_user->name}. Thank you.</strong></p>
{include file='footer.tpl'}
{include file='header.tpl'}
{if $newform}
<h2 property="dc:title">{t}Create a group{/t}</h2>
<form action="{$base_url}/edit_group.php" method="post">
<p style="display:center">
<label for="new">{t}Address for the group:{/t}</label><br />
<b>{$base_url}/group/</b><input id="new" name="new" size="12" /></p>
<p>Please remember that Libre.fm is focused on freedom, so try to
create groups that can help that goal. Also be mindful of the power of
words and the importance of framing the issues we discuss and work on
in the best possible terms.</p>
<p>
<input name="group" value="new" type="hidden" />
<input type="submit" value=" {t}Create{/t} " />
</p>
</form>
{else}
<h2 property="dc:title">{t}Edit your group{/t}</h2>
<p><strong>{t}The form below is still very experimental. Using this may wreck your group!{/t}</strong></p>
<form action="{$base_url}/edit_group.php" method="post" class="notcrazy">
<table>
<tr>
<th align="right" valign="top"><label for="fullname">{t}Full name:{/t}</label></th>
<td><input name="fullname" id="fullname" value="{$fullname|escape:'html':'UTF-8'}" /></td>
<td>&nbsp;</td>
</tr>
<tr>
<th align="right" valign="top"><label for="homepage">{t}Website address:{/t}</label></th>
<td><input name="homepage" id="homepage" value="{$homepage|escape:'html':'UTF-8'}" /></td>
<td>&nbsp;</td>
</tr>
<tr>
<th align="right" valign="top"><label for="avatar_uri">{t}Logo address:{/t}</label></th>
<td><input name="avatar_uri" id="avatar_uri" value="{$avatar_uri|escape:'html':'UTF-8'}" /></td>
<td><a href="#dfn_avatar_uri" rel="glossary">{t}What's this?{/t}</a></td>
</tr>
<tr>
<th align="right" valign="top"><label for="bio">{t}Description:{/t}</label></th>
<td><textarea name="bio" id="bio" rows="6" cols="30" style="width:100%;min-width:20em">{$bio|escape:'html':'UTF-8'}</textarea></td>
<td>&nbsp;</td>
</tr>
<tr>
<th align="right" valign="top"><label for="owner">Leader:</label></th>
<td>
<select name="owner" id="owner">
{foreach from=$members item=me}
<option {if $me->name==$owner->name}selected="selected"{/if}
value="{$me->name|escape:'html':'UTF-8'}"
>{$me->fullname|escape:'html':'UTF-8'} ({$me->name|escape:'html':'UTF-8'})</option>
{/foreach}
</select>
</td>
<td><a href="#dfn_owner" rel="glossary">What's this?</a> <strong>Important!</strong></td>
</tr>
<tr>
<td colspan="3" align="center">
<input type="submit" value="Change" />
<input name="submit" value="1" type="hidden" />
<input name="group" value="{$group|escape:'html':'UTF-8'}" type="hidden" />
</td>
</tr>
</table>
</form>
<h3>Help</h3>
<dl>
<dt id="dfn_avatar_uri">Logo address</dt>
<dd>{t}The web address for a picture to represent your group on libre.fm. It should
not be more than 80x80 pixels. (64x64 is best.){/t}</dd>
<dt id="dfn_owner">Leader</dt>
<dd>{t}The group leader 'owns' the group and is able to make changes to the group.
A group can only have one leader, so if you make someone else the leader, you will
no longer be able to edit this group. You will not be able to undo this change!{/t}</dd>
</dl>
{/if}
{include file='footer.tpl'}
{include file='header.tpl'}
{$details|escape:'htmlall'}
{include file='footer.tpl'}
{include file='header.tpl'}
<h2>{t}Explore popular artists{/t}</h2>
<ul id="topartists" class="listcloud">
{section name=popular loop=$topartists}
<li>
<dl>
<dt><a href="{$topartists[popular].artisturl}">
{$topartists[popular].artist|stripslashes}</a></dt>
<dd>{$topartists[popular].c} gobbles</dd>
</dl>
</li>
{/section}
</ul>
<div class="cleaner">&nbsp;</div>
{include file='footer.tpl'}
{literal}
<script type="text/javascript">
/* <![CDATA[ */
(function() {
var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
t.parentNode.insertBefore(s, t);
})();
/* ]]> */
</script>
{/literal}
<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>
<p>{t escape=no}A <a href='http://foocorp.net'>FooCorp</a> thing. Since 1997 the good people of FooCorp have been making entertaining things for the web.{/t}</p>
</body>
</html>
{include file='header.tpl'}
<h2 property="dc:title">{t}All Groups{/t}</h2>
<div about="#groups" typeof="foaf:Group" property="foaf:name" content="{t}All Groups{/t}">
<ul rel="foaf:member" class="userlist">
{foreach from=$groups item=g}
<li about="{$g->id}" typeof="foaf:Group" class="vcard">
<span rel="foaf:depiction"><img src="{$g->getAvatar()|escape:'html':'UTF-8'}" alt="avatar" class="photo" width="48" height="48" /></span>
<a class="fn org url"
rel="foaf:homepage" rev="foaf:primaryTopic" href="{$g->getURL()|escape:'html':'UTF-8'}"
property="foaf:name">{$g->fullname|escape:'html':'UTF-8'}</a>
&mdash;
<span class="note" property="dc:description">{t members='$g->count}%1 members{/t}</span>
</li>
{/foreach}
</ul>
</div>
{include file='footer.tpl'}
{include file='header.tpl'}
<h2 property="dc:title">{t}Group:{/t} {$fullname|escape:'html':'UTF-8'}</h2>
<div about="{$id}" typeof="foaf:Group">
<div class="group vcard">
<div class="avatar" rel="foaf:depiction">
<img src="{$avatar|escape:'html':'UTF-8'}" alt="avatar" class="photo" width="64" height="64" />
</div>
{if $logged_in}
{if $ismember}
{if $isowner}
<a class="edit" href="{$link_edit}">[{t}edit{/t}]</a>
{else}
<form class="edit" action="{$link}" method="get"><div><input type="hidden" name="action" value="leave" /><input type="submit" value=" {t}leave{/t} " /></div></form>
{/if}
{else}
<form class="edit" action="{$link}" method="get"><div><input type="hidden" name="action" value="join" /><input type="submit" value=" {t}join{/t} " /></div></form>
{/if}
{/if}
<dl>
<dt>
<span class="fn org" property="foaf:name">{$fullname|escape:'html':'UTF-8'}</span>
(<span class="nickname" property="foaf:nick">{$group|escape:'html':'UTF-8'}</span>)
</dt>
<dd>{if $homepage}<a class="url" rel="foaf:page" href="{$homepage|escape:'html':'UTF-8'}">{$homepage|escape:'html':'UTF-8'}</a>{/if}</dd>
<dd class="note" property="dc:abstract">{$bio|escape:'html':'UTF-8'}</dd>
</dl>
<hr style="border: 1px solid transparent; clear: both;" rel="foaf:homepage" rev="foaf:primaryTopic" resource="" />
</div>
<ul rel="foaf:member" class="userlist">
{foreach from=$userlist item=me}
<li>{include file='miniprofile.tpl'}</li>
{/foreach}
</ul>
</div>
<!-- Column break -->
</div></div><div class="yui-u" id="sidebar"><div style="padding: 10px;">
<h3>{t}Top artists{/t}</h3>
<ul class="tagcloud" about="{$id}">
{section name=i loop=$group_tagcloud}
<li style="font-size:{$group_tagcloud[i].size}"><a
href="{$group_tagcloud[i].pageurl|escape:'html':'UTF-8'}" rel="{if $group_tagcloud[i].size|substr:-5 ==
'large'}foaf:interest {/if}tag">{$group_tagcloud[i].artist|escape:"html":"UTF-8"}</a></li>
{/section}
</ul>
{include file='footer.tpl'}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Libre.fm</title>
{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 content="width=320" name="viewport" />
<link rel="stylesheet" href="/themes/mobile/m.css" />
</head>
<body>
<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'}
<h2>Invite</h2>
{if isset($errors)}
<p id='errors'>{$errors}</p>
{/if}
{if isset($sent)}
<p>{t}Your invitation has been sent, pretty soon your friend should be thanking you profusely.{/t}</p>
{else}