Beispiel #1
0
 static function month()
 {
     return currentMonth();
 }

                <?php 
    currentMonth('sport');
    ?>
                
                <?php 
    currentMonth('friday');
    ?>
        
                <?php 
    currentMonth('saturday');
    ?>
                
                <?php 
    currentMonth('special');
    ?>
                
                
            
                                
                    
                        	<?php 
    $today = date('Ymd');
    $date = DateTime::createFromFormat('Ymd', $today);
    $date = $date->format('F');
    $args = array('post_type' => 'sunday', 'name' => $date);
    // The Query
    $query = new WP_Query($args);
    // The Loop
    if ($query->have_posts()) {
<?php

require_once '../api/requireConnected.php';
header('Content-Type: application/json');
require_once '../php/sql.php';
require_once '../api/lag.php';
require_once '../lib/general.php';
$currentMonth = currentMonth();
$currentRound = currentRound();
//Selection des classements par saison
$saison = array();
$result = runQuery('SELECT DISTINCT saison FROM result');
foreach ($result as $row) {
    $saison[] = array('label' => 'Saison ' . $row['saison'], 'value' => $row['saison']);
}
echo json_encode(array('saison' => $saison));