Example #1
0
echo $period == 'this-month' ? "currentDateSelection" : "";
?>
">This Month</a> &middot; <a href="/tops.php?type=<?php 
echo $type;
?>
" class="select-period-link  <?php 
echo $period == 'all' ? "currentDateSelection" : "";
?>
">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 
Example #2
0
                    <?php 
}
?>
                </ul>                
            </div>
            
        </div>
        <div class="clear"></div>
        <!-- Top Images -->
        <h2 class="titles" style="margin-top: 0px;">Popular Images</h2>
        <div class="index_selectDates">
            <a class="select-period-link" href="/tops.php?type=image&period=today" data-type="top-images">Today</a> &middot; <a href="/tops.php?type=image&period=this-week" class="select-period-link" data-type="top-images">This Week</a> &middot; <a href="/tops.php?type=image&period=this-month" class="select-period-link" data-type="top-images">This Month</a> &middot; <a href="/tops.php?type=image" class="select-period-link" data-type="top-images">All Time</a>
        </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> &middot; <a href="/tops.php?type=text&period=this-week " class="select-period-link" data-type="top-posts">This Week</a> &middot; <a href="/tops.php?type=text&period=this-month" class="select-period-link" data-type="top-posts">This Month</a> &middot; <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 -->