Beispiel #1
0
function showNextJustin($page)
{
    $shown = $page * 6 + count(getFeatured($page));
    $total = countFeatured();
    $left = $total - $shown;
    if ($left <= 0) {
        return false;
    }
    return true;
}
<!-- Featured Section -->
<?php 
if (!defined('MyConst')) {
    die('Direct access not permitted');
}
getFeatured();
echo "<div class='row' id='featured'>";
if (!empty($featuredHeading)) {
    echo "<div class='col-lg-12'>";
    echo "<h2 class='page-header featured'>" . $featuredHeading . "</h2>";
    echo "</div>";
}
if (!empty($featuredBlurb)) {
    echo "<div class='col-lg-12'>";
    echo "<p class='text-center'>" . $featuredBlurb . "</p>";
    echo "</div>";
}
if (!empty($featuredImage)) {
    if ($featuredImageAlign == "right") {
        echo "<div class='col-md-10'>";
        echo $featuredContent;
        echo "</div>";
        echo "<div class='col-md-2'>";
        echo $featuredImage;
        echo "</div>";
    } else {
        echo "<div class='col-md-2'>";
        echo $featuredImage;
        echo "</div>";
        echo "<div class='col-md-10'>";
        echo $featuredContent;