$r_festivals[summary]\n"; echo "
$lng[index_festivals_link]\n"; } else{ echo "
" . cutText($r_festivals['text'], 300, "$lng[index_read_more]", "http://$http_host/lablanca/") . "\n"; echo "
$lng[index_festivals_link]\n"; } echo "
"> "/> "/> "/> "/> "/> "/> "/>
\n";
$r_festivals = mysqli_fetch_array($q_festivals);
if ($r_festivals['img'] != ''){
echo " $r_festivals[summary]\n"; echo " $lng[index_festivals_link]\n"; } else{ echo " " . cutText($r_festivals['text'], 300, "$lng[index_read_more]", "http://$http_host/lablanca/") . "\n"; echo " $lng[index_festivals_link]\n"; } echo " | \n";
}
//Location
$q_location = mysqli_query($con, "SELECT lat, lon FROM location WHERE action = 'report' AND dtime > NOW() - INTERVAL 30 MINUTE ORDER BY dtime DESC LIMIT 1;");
if (mysqli_num_rows($q_location) > 0){
$r_location = mysqli_fetch_array($q_location);
echo "\n";
echo " \n";
}
echo "$lng[index_festivals_location]\n"; echo "\n"; echo " |
![]() | \n";
//If name and address are the same, show only name
if ($r_sch_next['place'] == $r_sch_next['address']){
echo "$r_sch_next[place] |
![]() | \n";
//If name and address are the same, show only name
if ($r_sch_curr['place'] == $r_sch_curr['address']){
echo "$r_sch_curr[place] |
![]() | \n";
//If name and address are the same, show only name
if ($r_sch_next['place'] == $r_sch_next['address']){
echo "$r_sch_next[place] |
". cutText($r_activity['text'], 250, "$lng[index_read_more]", "http://$http_host/actividades/$r_activity[permalink]") . "
\n"; echo "| \n"; echo "$lng[index_upcoming_activity_date] | " . formatDate($r_activity['date'], $lang, false) . "\n"; echo " | ||
| $lng[index_upcoming_activity_price] | "; if ($r_activity['price'] == 0){ echo "$lng[index_upcoming_activity_free]\n"; echo " | \n"; echo "||
| $lng[index_upcoming_activity_inscription] | "; if ($r_activity['inscription'] == 1) echo "$lng[yes] | \n"; else echo "$lng[no] | \n"; } else{ echo "$r_activity[price] €\n"; echo " | \n"; } echo "
| $lng[index_upcoming_activity_max_people] | $r_activity[max_people] |
". cutText($r_post['text'], 100, "$lng[index_read_more]", "http://$http_host/blog/$r_post[permalink]") . "
\n"; echo "" . formatDate($r_post['dtime'], $lang, false) . "\n"; echo "| \n";
echo "\n";
echo "\n";
echo "\n";
echo " | \n";
$i ++;
if ($i % 2 == 0)
echo "
| \n";
echo "\n";
echo " | \n";
}
//echo "" . cutText($r_activity['text'], 300, "$lng[index_read_more]", "http://$http_host/actividades/$r_activity[permalink]") . " | \n"; } else{ echo "" . cutText($r_activity['after'], 300, "$lng[index_read_more]", "http://$http_host/actividades/$r_activity[permalink]") . " | \n"; } echo "