|
|
@@ -43,17 +43,17 @@
|
|
|
<link rel="canonical" href="<?php echo "$proto$http_host"; ?>"/>
|
|
|
<link rel="author" href="<?php echo "$proto$http_host"; ?>"/>
|
|
|
<link rel="publisher" href="<?php echo "$proto$http_host"; ?>"/>
|
|
|
- <meta name="description" content="<?php echo $lng['index_description'];?>"/>
|
|
|
+ <meta name="description" content="<?php echo $lng['index_us_content'];?>"/>
|
|
|
<meta property="og:title" content="<?php echo $lng['index_title'];?>"/>
|
|
|
<meta property="og:url" content="<?php echo "$proto$http_host"; ?>"/>
|
|
|
- <meta property="og:description" content="<?php echo $lng['index_description'];?>"/>
|
|
|
+ <meta property="og:description" content="<?php echo $lng['index_us_content'];?>"/>
|
|
|
<meta property="og:image" content="<?php echo "$proto$http_host/img/logo/logo.png";?>"/>
|
|
|
<meta property="og:site_name" content="<?php echo $lng['index_title'];?>"/>
|
|
|
<meta property="og:type" content="website"/>
|
|
|
<meta property="og:locale" content="<?php echo $lang; ?>"/>
|
|
|
<meta name="twitter:card" content="summary"/>
|
|
|
<meta name="twitter:title" content="<?php echo $lng['index_title'];?>"/>
|
|
|
- <meta name="twitter:description" content="<?php echo $lng['index_description'];?>"/>
|
|
|
+ <meta name="twitter:description" content="<?php echo $lng['index_us_content'];?>"/>
|
|
|
<meta name="twitter:image" content="<?php echo "$proto$http_host/img/logo/logo.png";?>"/>
|
|
|
<meta name="twitter:url" content="<?php echo"$proto$http_host"; ?>"/>
|
|
|
<meta name="robots" content="index follow"/>
|
|
|
@@ -66,7 +66,8 @@
|
|
|
$year = date("Y");
|
|
|
$q_settings = mysqli_query($con, "SELECT value FROM settings WHERE name = 'festivals';");
|
|
|
$r_settings = mysqli_fetch_array($q_settings);
|
|
|
- if ($r_settings['value'] == 1){
|
|
|
+ $festivals = $r_settings['value'];
|
|
|
+ if ($festivals == 1){
|
|
|
echo "<div class='section' id='festivales' itemscope itemtype='$protoschema.org/Event'>\n";
|
|
|
echo "<meta itemprop='inLanguage' content='$lang'/>\n";
|
|
|
echo "<meta itemprop='name' content='$lng[index_festivals_header] $year'/>\n";
|
|
|
@@ -74,7 +75,7 @@
|
|
|
echo "<meta itemprop='startDate' content='$year-08-04'/>\n";
|
|
|
echo "<meta itemprop='endDate' content='$year-08-09'/>\n";
|
|
|
echo "<meta itemprop='url' content='$proto$http_host/lablanca/'/>\n";
|
|
|
- echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address name' content='Vitoria-Gasteiz'/></span>\n");
|
|
|
+ echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address' itemprop='name' content='Vitoria-Gasteiz'/></span>\n");
|
|
|
echo "<h3 class='section_title'>$lng[index_festivals_header] $year</h3>\n";
|
|
|
echo "<table class='festival_section_table'><tr>\n";
|
|
|
|
|
|
@@ -88,7 +89,7 @@
|
|
|
echo "<img id='festivals_image' alt=' ' src='$proto$http_host/img/fiestas/$r_festivals[img]'/>\n";
|
|
|
}
|
|
|
if ($r_festivals['summary'] != ''){
|
|
|
- echo "<span id='festivals_summary_text'><br/>$r_festivals[summary]</span>\n";
|
|
|
+ echo "<span class='entry_title' id='festivals_summary_text'><br/>$r_festivals[summary]</span>\n";
|
|
|
echo "<br/><br/><br/> <a href='$proto$http_host/lablanca/'>$lng[index_festivals_link]</a>\n";
|
|
|
}
|
|
|
else{
|
|
|
@@ -104,7 +105,7 @@
|
|
|
if (mysqli_num_rows($q_location) > 0){
|
|
|
$r_location = mysqli_fetch_array($q_location);
|
|
|
echo "<td><div class='entry' id='festival_entry_map'>\n";
|
|
|
- echo "<h3>$lng[index_festivals_location]</h3>\n";
|
|
|
+ echo "<h3 class='entry_title'>$lng[index_festivals_location]</h3>\n";
|
|
|
echo "<iframe src='https://www.google.com/maps/embed/v1/place?key=AIzaSyCZHP7t2on_G3eyyoCTfhGAlDx1mJnX7iI&q=$r_location[lat],$r_location[lon]' allowfullscreen></iframe>\n";
|
|
|
echo "</div>\n";
|
|
|
}
|
|
|
@@ -117,7 +118,7 @@
|
|
|
$q_sch_next = mysqli_query($con, "SELECT festival_event.id AS id, gm, title_$lang AS title, description_$lang AS description, host, place, date_format(start, '%H:%i') AS st, date_format(end, '%H:%i') AS end, DATE_FORMAT(start, '%Y-%m-%dT%H:%i:00') AS isostart, DATE_FORMAT(end, '%Y-%m-%dT%H:%i:00') AS isoend, place.name_$lang AS place, address_$lang AS address, lat, lon FROM festival_event, place WHERE place.id = festival_event.place AND gm = 1 AND start > NOW() AND start < NOW() + INTERVAL 240 MINUTE ORDER BY start LIMIT 1;");
|
|
|
if (mysqli_num_rows($q_sch_curr) > 0 || mysqli_num_rows($q_sch_next) > 0){
|
|
|
echo "<td><div class='entry festival_schedule'>\n";
|
|
|
- echo "<h3>$lng[index_festivals_gm_schedule]</h3>\n";
|
|
|
+ echo "<h3 class='entry_title'>$lng[index_festivals_gm_schedule]</h3>\n";
|
|
|
|
|
|
if (mysqli_num_rows($q_sch_curr) > 0){
|
|
|
$r_sch_curr = mysqli_fetch_array($q_sch_curr);
|
|
|
@@ -155,7 +156,7 @@
|
|
|
if (strlen($r_sch_curr['isoend']) > 0){
|
|
|
echo "<meta itemprop='endDate' content='$r_sch_next[isoend]'/>\n";
|
|
|
}
|
|
|
- echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address name'>Vitoria-Gasteiz</meta></span>\n");
|
|
|
+ echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address' itemprop='name'>Vitoria-Gasteiz</meta></span>\n");
|
|
|
echo "<span class='title'>$r_sch_next[title] - $r_sch_next[st]\n</span>";
|
|
|
if (strlen($r_sch_next["description"]) > 0 && $r_sch_next["description"] != $r_sch_next["title"]){
|
|
|
echo "<br/><span class='description'>$r_sch_next[description]</span>\n";
|
|
|
@@ -180,7 +181,7 @@
|
|
|
$q_sch_next = mysqli_query($con, "SELECT festival_event.id AS id, gm, title_$lang AS title, description_$lang AS description, host, place, date_format(start, '%H:%i') AS st, date_format(end, '%H:%i') AS end, DATE_FORMAT(start, '%Y-%m-%dT%H:%i:00') AS isostart, DATE_FORMAT(end, '%Y-%m-%dT%H:%i:00') AS isoend, place.name_$lang AS place, address_$lang AS address, lat, lon FROM festival_event, place WHERE place.id = festival_event.place AND gm = 0 AND start > NOW() AND start < NOW() + INTERVAL 240 MINUTE ORDER BY start LIMIT 1;");
|
|
|
if (mysqli_num_rows($q_sch_curr) > 0 || mysqli_num_rows($q_sch_next) > 0){
|
|
|
echo "<td><div class='entry festival_schedule' >\n";
|
|
|
- echo "<h3>$lng[index_festivals_city_schedule]</h3>\n";
|
|
|
+ echo "<h3 class='entry_title'>$lng[index_festivals_city_schedule]</h3>\n";
|
|
|
|
|
|
if (mysqli_num_rows($q_sch_curr) > 0){
|
|
|
$r_sch_curr = mysqli_fetch_array($q_sch_curr);
|
|
|
@@ -191,7 +192,7 @@
|
|
|
if (strlen($r_sch_curr['isoend']) > 0){
|
|
|
echo "<meta itemprop='endDate' content='$r_sch_curr[isoend]'/>\n";
|
|
|
}
|
|
|
- echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address name'>Vitoria-Gasteiz</meta></span>\n");
|
|
|
+ echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address' itemprop='name'>Vitoria-Gasteiz</meta></span>\n");
|
|
|
echo "<span class='title'>$r_sch_curr[title]\n</span>";
|
|
|
if (strlen($r_sch_curr["description"]) > 0 && $r_sch_curr["description"] != $r_sch_curr["title"]){
|
|
|
echo "<br/><span class='description'>$r_sch_curr[description]</span>\n";
|
|
|
@@ -218,7 +219,7 @@
|
|
|
if (strlen($r_sch_curr['isoend']) > 0){
|
|
|
echo "<meta itemprop='endDate' content='$r_sch_next[isoend]'/>\n";
|
|
|
}
|
|
|
- echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address name'>Vitoria-Gasteiz</meta></span>\n");
|
|
|
+ echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address' itemprop='name'>Vitoria-Gasteiz</meta></span>\n");
|
|
|
echo "<span class='title'>$r_sch_next[title] - ($r_sch_next[st])\n</span>";
|
|
|
if (strlen($r_sch_next["description"]) > 0 && $r_sch_next["description"] != $r_sch_next["title"]){
|
|
|
echo "<br/><span class='description'>$r_sch_next[description]</span>\n";
|
|
|
@@ -255,7 +256,7 @@
|
|
|
echo "<meta itemprop='name' content='$r_activity[title]'/>\n";
|
|
|
echo "<meta itemprop='description' content='$r_activity[text]'/>\n";
|
|
|
echo "<meta itemprop='startDate endDate' content='$r_activity[isodate]'/>\n";
|
|
|
- echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address name' content='$r_activity[city]'/></span>\n");
|
|
|
+ echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address' itemprop='name' content='$r_activity[city]'/></span>\n");
|
|
|
echo "<meta itemprop='url' content='$proto$http_host/actividades/$r_activity[permalink]'/>\n";
|
|
|
echo "<div class='hidden' itemprop='organizer' itemscope itemtype='http://schema.org/Organization'>\n";
|
|
|
echo "<meta itemprop='legalName' content='Asociación Cultural Recreativa Gasteizko Margolariak'/>\n";
|
|
|
@@ -278,7 +279,7 @@
|
|
|
echo "</div></div>\n";
|
|
|
}
|
|
|
echo "<div class='td'><div id='upcoming_text'>\n";
|
|
|
- echo "<h3><a itemprop='url' href='$proto$http_host/actividades/$r_activity[permalink]'>$r_activity[title]</a></h3>\n";
|
|
|
+ echo "<h3 class='entry_title'><a itemprop='url' href='$proto$http_host/actividades/$r_activity[permalink]'>$r_activity[title]</a></h3>\n";
|
|
|
echo "<p>". cutText($r_activity['text'], 250, "$lng[index_read_more]", "$http_host/actividades/$r_activity[permalink]") . "</p>\n";
|
|
|
echo "</div></div>\n";
|
|
|
echo "<div class='td'><div id='upcoming_details'>\n";
|
|
|
@@ -315,6 +316,16 @@
|
|
|
echo "</div>\n";//Section
|
|
|
}
|
|
|
?>
|
|
|
+ <div class='section' itemscope itemtype='http://schema.org/Organization'>
|
|
|
+ <meta itemprop='url' content='<?php echo("$proto$http_host"); ?>'/>
|
|
|
+ <h3 class='section_title' itemprop='name'><?php echo($lng['index_us']); ?></h3>
|
|
|
+ <div class='entry' id='us'>
|
|
|
+ <p itemprop='description'><?php echo($lng['index_us_content']); ?></p>
|
|
|
+ <div><img itemprop='logo' src='<?php echo("$proto$http_host/img/logo/GasteizkoMargolariak.png"); ?>'/></div>
|
|
|
+ </div>
|
|
|
+ <a class='go_to_section' href='<?php echo($proto.$http_host); ?>/nosotros/'><?php echo($lng['index_us_more']) ?></a>
|
|
|
+ <br/>
|
|
|
+ </div>
|
|
|
<div id='content_table'>
|
|
|
<div class='content_row'>
|
|
|
<div class='content_cell' id='cell_posts'>
|
|
|
@@ -323,7 +334,7 @@
|
|
|
echo "<h3 class='section_title'>$lng[index_latest_posts]</h3>\n";
|
|
|
$q_post = mysqli_query($con, "SELECT id, permalink, title_$lang AS title, text_$lang AS text, dtime, DATE_FORMAT(dtime, '%Y-%m-%dT%T') AS isodate FROM post WHERE visible = 1 ORDER BY dtime DESC LIMIT 2;");
|
|
|
if (mysqli_num_rows($q_post) == 0){
|
|
|
- echo "<div class='entry'>$lng[index_no_post]</div>\n";
|
|
|
+ echo "<div class='entry'><h3 class='entry_title'>$lng[index_no_post]</div>\n";
|
|
|
}
|
|
|
else{
|
|
|
while ($r_post = mysqli_fetch_array($q_post)){
|
|
|
@@ -347,7 +358,7 @@
|
|
|
echo "<meta itemprop='image' content='$proto$http_host/img/blog/preview/$r_post_image[image]'/>\n";
|
|
|
echo "<a href='$proto$http_host/blog/$r_post[permalink]'><img src='$proto$http_host/img/blog/miniature/$r_post_image[image]'/></a>\n";
|
|
|
}
|
|
|
- echo "<h3><a itemprop='url' href='$proto$http_host/blog/$r_post[permalink]'>$r_post[title]</a></h3>\n";
|
|
|
+ echo "<h3 class='entry_title'><a itemprop='url' href='$proto$http_host/blog/$r_post[permalink]'>$r_post[title]</a></h3>\n";
|
|
|
echo "<p>". cutText($r_post['text'], 100, "$lng[index_read_more]", "$proto$http_host/blog/$r_post[permalink]") . "</p>\n";
|
|
|
echo "<span>" . formatDate($r_post['dtime'], $lang, false) . "</span>\n";
|
|
|
echo "</div>\n";
|
|
|
@@ -405,7 +416,7 @@
|
|
|
echo "<meta itemprop='name' content='$r_activity[title]'/>\n";
|
|
|
echo "<meta itemprop='description' content='$r_activity[text]'/>\n";
|
|
|
echo "<meta itemprop='startDate endDate' content='$r_activity[isodate]'/>\n";
|
|
|
- echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address name'>$r_activity[city]</meta></span>\n");
|
|
|
+ echo("<span class='hidden' itemprop='location' itemscope itemtype='http://schema.org/Place'><meta itemprop='address' itemprop='name' content='$r_activity[city]'/><meta itemprop='name' content='$r_activity[city]'/></span>\n");
|
|
|
echo "<div class='hidden' itemprop='organizer' itemscope itemtype='http://schema.org/Organization'>\n";
|
|
|
echo "<meta itemprop='legalName' content='Asociación Cultural Recreativa Gasteizko Margolariak'/>\n";
|
|
|
echo "<meta itemprop='name' content='Gasteizko Margolariak'/>\n";
|
|
|
@@ -414,7 +425,7 @@
|
|
|
echo "<meta itemprop='telephone' content='+34637140371'/>\n";
|
|
|
echo "<meta itemprop='url' content='$proto$http_host'/>\n";
|
|
|
echo "</div>\n";
|
|
|
- echo "<h3><a itemprop='url' href='$proto$http_host/actividades/$r_activity[permalink]'>$r_activity[title]</a></h3>\n";
|
|
|
+ echo "<h3 class='entry_title'><a itemprop='url' href='$proto$http_host/actividades/$r_activity[permalink]'>$r_activity[title]</a></h3>\n";
|
|
|
echo "<table class='latest_activity'><tr>\n";
|
|
|
$q_activity_image = mysqli_query($con, "SELECT image FROM activity_image WHERE activity = $r_activity[id] ORDER BY idx LIMIT 1;");
|
|
|
if (mysqli_num_rows($q_activity_image) > 0){
|
|
|
@@ -442,9 +453,22 @@
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+ //Festivals section (if no festivals shown on top)
|
|
|
+ if ($festivals == 0){
|
|
|
+ ?>
|
|
|
+ <div class='section'>
|
|
|
+ <h3 class='section_title'><?php echo($lng['index_festivals_header']); ?></h3>
|
|
|
+ <div class='entry'>
|
|
|
+ <?php echo (cutText($lng['lablanca_no_content'] . '<br/>' . $lng['lablanca_no_content_2'], 300, "$lng[index_read_more]", "$proto$http_host/lablanca/")); ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
?>
|
|
|
</div>
|
|
|
<?php
|
|
|
+
|
|
|
+ //Footer
|
|
|
include("footer.php");
|
|
|
$ad = ad($con, $lang, $lng);
|
|
|
stats($ad, $ad_static, "index", "");
|