function showNext($page) { $shown = $page * 6 + count(getPopular($page)); $total = countPopular(); $left = $total - $shown; if ($left <= 0) { return false; } return true; }
<h2><?php _l('Popular'); ?> </h2> <?php $popular = getPopular(5); if ($popular) { ?> <ol class="list"> <?php foreach ($popular as $id => $data) { ?> <li> <div class="screen screen-small"> <a href="<?php _u("/{$id}"); ?> " title="<?php _e($data['name']); ?> "> <img src="<?php _u("/img/{$id}/thumb"); ?> " alt="<?php _e($data['name']); ?> " /> </a> </div> <div class="info">
<?php require "hypem.class.php"; header("Content-Type: application/rss+xml"); echo '<?xml version="1.0" encoding="UTF-8"?>'; $hypes = getPopular(); ?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"> <channel> <title>Popular Blog Tracks - Hypem</title> <link>http://hypem.com/</link> <description>popular blog tracks from the past 3 days</description> <language>en</language> <lastBuildDate><?php echo date('D, d M Y H:i:s'); ?> </lastBuildDate> <generator>happylinks</generator> <ttl>60</ttl> <image> <url>http://happylinks.nl/hypem/img/hypem.png</url> <title>Popular Blog Tracks - The Hype Machine</title> <link>http://hypem.com/</link> </image> <itunes:author>Hypem.com</itunes:author> <itunes:summary>Discover music blogs worth listening to. Create your own music stream with your favorite artists, blogs & friends.</itunes:summary> <itunes:owner> <itunes:name>Hypem.com</itunes:name> <itunes:email>contact@hypem.com</itunes:email>