コード例 #1
0
/**
 * Returns all press items related to shaft, sorted by date
 * @return array wp_posts of press releases
 */
function sortedPressItems()
{
    $pressItems = getShaftPressItems();
    usort($pressItems, "compareReleaseDays");
    return $pressItems;
}
コード例 #2
0
" data-index="0">PHOTOS</div>
            <?php 
    }
    ?>
            <?php 
    if (!empty(shaftVideos())) {
        ?>
              <div class="link media-link col-sm-<?php 
        echo 12 / mediaHeaderWidth();
        ?>
" data-index="1">VIDEOS</div>
            <?php 
    }
    ?>
            <?php 
    if (!empty(getShaftPressItems())) {
        ?>
              <div class="link media-link col-sm-<?php 
        echo 12 / mediaHeaderWidth();
        ?>
" data-index="2">PRESS</div>
            <?php 
    }
    ?>
            <?php 
    if (!empty(shaftTourWins())) {
        ?>
              <div class="link media-link col-sm-<?php 
        echo 12 / mediaHeaderWidth();
        ?>
" data-index="3">TOUR</div>