Commit 26868141 authored by Clint Adams's avatar Clint Adams

merge some additions that someone made to stable but not trunk

parent f645e0d0
<?
require_once('database.php');
require_once('templating.php');
require_once('data/sanitize.php');
require_once('data/Server.php');
require_once('data/TagCloud.php');
$n=$_GET['n'];
$n=(int)$n;
if ($n < 1) {
$n=1000000;
}
try {
$aTagCloud = TagCloud::GenerateTagCloud('free_scrobbles', 'artist', $n);
$smarty->assign('tagcloud', $aTagCloud);
} catch (exception $e) {}
$smarty->assign('errors', $errors);
$smarty->display('tagcloud.tpl');
?>
\ No newline at end of file
{include file='header.tpl'}
{include file='tc-all.inc'}
{include file='footer.tpl'}
<ul>
<li>No ads for logged in users. We're trying this out... seeing how much it affects how much we're getting from AdBard.</li>
<li>Bringing back a tag-cloud in some fashion. This will be cached and generated every 30 minutes, but it could be pretty cool to have this back.</li>
<li>Overhaul artist pages completely.</li>
<li>Integrate the wiki pages straight into the site.</li>
</ul>
\ No newline at end of file
<table>
<tr>
<td>
<label for='username'>{t}Username{/t}<span>&nbsp;</span></label>
<input id='username' name='username' type='text' value='{$username}' maxlength='64' />
</td>
<td>
<label for='password'>{t}Password{/t}<span>&nbsp;</span></label>
<input id='password' name='password' type='password' value=''/>
<input type='submit' name='login' value='{t}Login{/t}' />
<input name="return" type="hidden" value="{$return|htmlentities}" />
</td>
</tr>
</table>
\ No newline at end of file
<h3>Now playing</h3>
<dl class='now-playing'>
{section name=np loop=$nowplaying}
{if $nowplaying[np].license > 0}
<dt class='artist-name libre'>
{else}
<dt class='artist-name'>
{/if}
<a href='{$nowplaying[np].artisturl}'>{$nowplaying[np].artist|stripslashes|htmlspecialchars}</a>
</dt>
<dd class='track-name'>
{if $nowplaying[np].mbid <> ''}
<a href='http://musicbrainz.org/track/{$nowplaying[np].mbid}.html'>
{else}
<a href="{$nowplaying[np].trackurl}">
{/if}
{$nowplaying[np].track|stripslashes|htmlspecialchars}
</a>
</dd>
<dd class='username'><a href='{$nowplaying[np].userurl}'>{$nowplaying[np].username|stripslashes|htmlspecialchars}</a></dd>
<dd>using <span class='gobbler'>{$nowplaying[np].clientstr}</span></dd>
{/section}
</dl>
<h3>Explore popular artists</h3>
<ul class="tagcloud">
{section name=i loop=$tagcloud}
<li style='font-size:{$tagcloud[i].size}'><a href='/artist/{$tagcloud[i].artist|urlencode}' title='This artist was played {$tagcloud[i].count} times' rel='tag'>{$tagcloud[i].artist}</a></li>
{/section}
</ul>
\ No newline at end of file
<table>
<tr>
<td>
<label for='username'>{t}Username:{/t}</label></td>
<td> <input id='username' name='username' type='text' value='{$username}' maxlength='16' autocomplete="off" /></td>
</tr>
<tr>
<td><label for='email'>{t}Your e-mail:{/t}<span>{t}(must be valid!){/t}</span></label></td>
<td><input id='email' name='email' type='text' value='{$email}' maxlength='64' autocomplete='off' /></td>
</tr>
<tr>
<td><label for='password'>{t}New password:{/t}</label></td>
<td><input id='password' name='password' type='password' value='' autocomplete="off"/></td>
</tr>
<tr>
<td><label for='password-repeat'>{t}Password again:{/t}</label></td>
<td><input id='password-repeat' name='password-repeat' type='password' autocomplete="off" value=''/></td>
</tr>
</table>
<p>{t}We won't sell, swap or give away your email address. You can optionally include personal data on your profile, which is displayed publicly.{/t}</p>
<p><input type='submit' name='register' value="{t}Sign up{/t}" /></p>
<ul class="tagcloud">
{section name=i loop=$tagcloud}
<li style='font-size:{$tagcloud[i].size}'><a href='/artist/{$tagcloud[i].artist|urlencode}' title='This artist was played {$tagcloud[i].count} times' rel='tag'>{$tagcloud[i].artist}</a></li>
{/section}
</ul>
\ No newline at end of file
<h3>What's hot? Recently played.</h3>
<dl class='recent-tracks'>
{section name=recent loop=$recenttracks}
{if $recenttracks[recent].license > 0}
<dt class='artist-name libre'><a title="Libre artist" href='{$recenttracks[recent].artisturl}'>
{$recenttracks[recent].artist|stripslashes|htmlspecialchars}</a>:
{else}
<dt class='artist-name'><a href='{$recenttracks[recent].artisturl}'>
{$recenttracks[recent].artist|stripslashes|htmlspecialchars}</a>:
{/if}
<span class='track-name'><a href="{$recenttracks[recent].trackurl}">{$recenttracks[recent].track|stripslashes|htmlspecialchars}</a></span> &mdash;
<span class='username'><a href='{$recenttracks[recent].userurl}'>{$recenttracks[recent].username|stripslashes|htmlspecialchars}</a></span></dd>
{/section}
</dl>
<div class='cleaner'>&nbsp;</div>
\ No newline at end of file
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