<div class=”ja-day”>
<?php
$day = date(“l”);
$daynum = date(“j”);
$month = date(“M”);
switch($day)
{
case “Monday”: $day = “Lunedi”; break;
case “Tuesday”: $day = “Martedi”; break;
case “Wednesday”: $day = “Mercoledi”; break;
case “Thursday”: $day = “Giovedi”; break;
case “Friday”: $day = “Venerdi”; break;
case “Saturday”: $day = “Sabato”; break;
case “Sunday”: $day = “Domenica”; break;
default: $day = “Ignoto”; break;
}
switch($month)
{
case “January”: $month = “Gennaio”; break;
case “February”: $month = “Febbraio”; break;
case “March”: $month = “Marzo”; break;
case “April”: $month = “Aprile”; break;
case “May”: $month = “Maggio”; break;
case “June”: $month = “Giugno”; break;
case “July”: $month = “Luglio”; break;
case “August”: $month = “Agosto”; break;
case “September”: $month = “Settembre”; break;
case “October”: $month = “Ottobre”; break;
case “November”: $month = “Novembre”; break;
case “December”: $month = “Dicembre”; break;
default: $month = “Ignoto”; break;
}
echo “<span>”.$day.”</span>”;
echo ” <div>”.$daynum.” “.$month.”</div>”; ?>
</div>