">All Time</a> </div> <?php if ($type == 'image') { ?> <div class="top-images"> <?php render_top_images($results); ?> </div> <?php } elseif ($type == 'video') { ?> <div class="top-videos"> <?php render_top_videos($results); ?> </div> <?php } elseif ($type == 'text') { ?> <div class="top-posts"> <?php render_top_posts($results); ?> </div> <?php } ?> <div class="clear"></div>
</div> <div id="top-images-this-week" class="top-images"> <?php render_top_images($popularImages); ?> </div> <div class="clear"></div> <!-- Top Posts --> <h2 class="titles">Popular Posts</h2> <div class="index_selectDates"> <a class="select-period-link" href="/tops.php?type=text&period=today" data-type="top-posts">Today</a> · <a href="/tops.php?type=text&period=this-week " class="select-period-link" data-type="top-posts">This Week</a> · <a href="/tops.php?type=text&period=this-month" class="select-period-link" data-type="top-posts">This Month</a> · <a href="/tops.php?type=text" class="select-period-link" data-type="top-posts">All Time</a> </div> <div id="top-posts-this-week" class="top-posts"> <?php render_top_posts($popularPosts); ?> </div> <div class="clear"></div> <!-- Top Videos --> <h2 class="titles">Popular Videos</h2> <div class="index_selectDates"> <a class="select-period-link" href="/tops.php?type=video&period=today" data-type="top-videos">Today</a> · <a href="/tops.php?type=video&period=this-week" class="select-period-link" data-type="top-videos">This Week</a> · <a href="/tops.php?type=video&period=this-month" class="select-period-link" data-type="top-videos">This Month</a> · <a href="/tops.php?type=video" class="select-period-link" data-type="top-videos">All Time</a> </div> <div id="top-videos-this-week" class="top-videos"> <?php render_top_videos($popularVideos); ?> </div> <div class="clear"></div> </section> </section>