[xiph-commits] r14955 - in branches/dir.xiph.org: css templates
balbinus at svn.xiph.org
balbinus at svn.xiph.org
Sun May 25 14:34:33 PDT 2008
Author: balbinus
Date: 2008-05-25 14:34:33 -0700 (Sun, 25 May 2008)
New Revision: 14955
Modified:
branches/dir.xiph.org/css/style.css
branches/dir.xiph.org/templates/head.tpl
branches/dir.xiph.org/templates/menu_right.tpl
branches/dir.xiph.org/templates/streams_list.tpl
Log:
SEO... sort of.
Modified: branches/dir.xiph.org/css/style.css
===================================================================
--- branches/dir.xiph.org/css/style.css 2008-05-25 21:33:28 UTC (rev 14954)
+++ branches/dir.xiph.org/css/style.css 2008-05-25 21:34:33 UTC (rev 14955)
@@ -164,6 +164,12 @@
font-size: 0.9em;
}
+table.servers-list td.tune-in p.format span.stream {
+ position: absolute;
+ left: -999px;
+ width: 990px;
+}
+
/* Tag list */
.inline-tags {
list-style-type: none;
Modified: branches/dir.xiph.org/templates/head.tpl
===================================================================
--- branches/dir.xiph.org/templates/head.tpl 2008-05-25 21:33:28 UTC (rev 14954)
+++ branches/dir.xiph.org/templates/head.tpl 2008-05-25 21:34:33 UTC (rev 14955)
@@ -3,11 +3,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
- <title>Streaming directory</title>
+ <meta name="description" value="MP3 streams, webradios, Ogg Vorbis streams... If you want to listen to music, free music, this stream directory is the right place for you. Icecast YP is just like Shoutcast.com, featuring radio listings." />
+ <title>Streaming directory -- streams & radios</title>
<link rel="icon" href="http://www.icecast.org/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="http://www.icecast.org/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="http://www.xiph.org/css/screen.css" type="text/css"/>
- <link rel="stylesheet" href="/css/style.css" type="text/css" />
+ <link rel="stylesheet" href="/css/style.css?20080525" type="text/css" />
</head>
<body>
<div id="xiphbar_outer" style="@import url(/common/xiphbar.css);">
Modified: branches/dir.xiph.org/templates/menu_right.tpl
===================================================================
--- branches/dir.xiph.org/templates/menu_right.tpl 2008-05-25 21:33:28 UTC (rev 14954)
+++ branches/dir.xiph.org/templates/menu_right.tpl 2008-05-25 21:34:33 UTC (rev 14955)
@@ -26,7 +26,7 @@
{if !empty($tag_cloud)}
<ul class="tag-cloud">
{foreach item=tag from=$tag_cloud}
- <li class="popularity-{$tag.popularity}"><span class="context">{$tag.tag_usage} streams tagged with </span><a href="{$root_url}/by_genre/{$tag.tag_name|capitalize:true|escape}" class="tag">{$tag.tag_name|capitalize:true|escape}</a></li>
+ <li class="popularity-{$tag.popularity}"><span class="context">{$tag.tag_usage} <a href="http://dir.xiph.org/">radio</a> <a href="http://dir.xiph.org/">streams</a> tagged with </span><a href="{$root_url}/by_genre/{$tag.tag_name|capitalize:true|escape}" class="tag" title="{$tag.tag_name|capitalize:true|escape} radios">{$tag.tag_name|capitalize:true|escape}</a></li>
{/foreach}
</ul>
{else}
Modified: branches/dir.xiph.org/templates/streams_list.tpl
===================================================================
--- branches/dir.xiph.org/templates/streams_list.tpl 2008-05-25 21:33:28 UTC (rev 14954)
+++ branches/dir.xiph.org/templates/streams_list.tpl 2008-05-25 21:34:33 UTC (rev 14955)
@@ -7,7 +7,7 @@
{/if}
<td class="description">
<p class="stream-name">
- <span class="name">{if $stream->getUrl() != ''}<a href="{if substr($stream->getUrl(), 0, 4) == 'http'}{$stream->getUrl()|escape}{else}http://{$stream->getUrl()|escape}{/if}">{/if}{$stream->getStreamName()|escape}{if $stream->getUrl() != ''}</a>{/if}</span>
+ <span class="name">{if $stream->getUrl() != ''}<a href="{if substr($stream->getUrl(), 0, 4) == 'http'}{$stream->getUrl()|escape}{else}http://{$stream->getUrl()|escape}{/if}" onclick="javascript:pageTracker._trackPageview('/stream/website');">{/if}{$stream->getStreamName()|escape}{if $stream->getUrl() != ''}</a>{/if}</span>
<span class="listeners">[{$stream->getListeners()|intval} listener{if (($stream->getListeners()|intval) != 1)}s{/if}]</span>
</p>
{*if $stream->getIcon()}
@@ -24,7 +24,7 @@
<div class="stream-tags"><strong>Tags:</strong>
<ul class="inline-tags">
{foreach item=tag_name key=tag_id from=$tags}
- <li><a href="{$root_url}/by_genre/{$tag_name|capitalize:true|escape}">{$tag_name|capitalize|escape}</a></li>
+ <li><a href="{$root_url}/by_genre/{$tag_name|capitalize:true|escape}" title="{$tag_name|capitalize:true|escape} radios">{$tag_name|capitalize:true|escape}</a></li>
{/foreach}
</ul>
</div>
@@ -32,10 +32,10 @@
</td>
<td class="tune-in">
<p class="format">Tune in:</p>
- <p>[ <a href="{$root_url}/listen/{$stream->getId()}/listen.m3u" title="Listen to '{$stream->getStreamName()|truncate:20:"...":true|escape}'"{* class="tune-in-button"*}>M3U</a> | <a href="{$root_url}/listen/{$stream->getId()}/listen.xspf" title="Listen to '{$stream->getStreamName()|truncate:20:"...":true|escape}'"{* class="tune-in-button"*}>XSPF</a> ]</p>
+ <p>[ <a href="{$root_url}/listen/{$stream->getId()}/listen.m3u" title="Listen to '{$stream->getStreamName()|truncate:20:"...":true|escape}'"{* class="tune-in-button"*} onclick="javascript:pageTracker._trackPageview('/stream/listen/m3u');">M3U</a> | <a href="{$root_url}/listen/{$stream->getId()}/listen.xspf" title="Listen to '{$stream->getStreamName()|truncate:20:"...":true|escape}'"{* class="tune-in-button"*} onClick="javascript:pageTracker._trackPageview('/stream/listen/xspf');">XSPF</a> ]</p>
{if $stream->getMediaTypeId() != ''}
<p class="format"{if $stream->getBitrate() != ''} title="{if is_numeric($stream->getBitrate())}{$stream->getBitrate()|intval} kbps{else}{$stream->getBitrate()}{/if}"{/if}>
- {$stream->getMediaTypeId()|get_media_type}
+ <a href="{$root_url}/by_format/{$stream->getMediaTypeId()|get_media_type_url}" title="More {$stream->getMediaTypeId()|get_media_type} streams">{$stream->getMediaTypeId()|get_media_type}<span class="stream"> stream</span></a>
{*if (!empty($stream.channels) && is_numeric($stream.channels))}{if ($stream.channels == 1)}mono{elseif $stream.channels == 2}stereo{else}{$stream.channels} ch{/if}{/if*}
</p>
{/if}
More information about the commits
mailing list