Explorar el Código

Fixed onClick events for iOS devices

seavenois hace 10 años
padre
commit
1844d70c80

+ 3 - 3
www/ayuda/index.php

@@ -111,7 +111,7 @@
 					</div>
 				</div>
 				<div class="content_cell">
-					<div class="section" id="section_association">
+					<div class="section" id="section_license">
 						<h3><?php echo $lng['help_license_title']; ?></h3>
 						<div class="entry">
 							<?php echo $lng['help_license']; ?>
@@ -121,7 +121,7 @@
 			</div>
 			<div class="content_row">
 				<div class="content_cell">
-					<div class="section" id="section_association">
+					<div class="section" id="section_privacy">
 						<h3><?php echo $lng['help_privacy_title']; ?></h3>
 						<div class="entry">
 							<?php echo $lng['help_privacy']; ?>
@@ -129,7 +129,7 @@
 					</div>
 				</div>
 				<div class="content_cell">
-					<div class="section" id="section_association">
+					<div class="section" id="section_cookie">
 						<h3><?php echo $lng['help_cookie_title']; ?></h3>
 						<div class="entry">
 							<?php echo $lng['help_cookie']; ?>

+ 4 - 0
www/css/index.css

@@ -36,6 +36,10 @@ table.festival_section_table tr td div#festival_entry_map{
 	text-align:	center;
 }
 
+div.festival_event{
+	margin-left:	1.5em;
+}
+
 table.festival_section_table tr td div#festival_entry_map h3{
 	text-align:	left;
 }

+ 28 - 0
www/css/m/ui.css

@@ -229,3 +229,31 @@ div#ad div.entry div#ad_image_container{
 div#ad div.entry a{
 	font-size:		100%;
 }
+
+/******************************************
+* Styles for the annoying cookie popup.   *
+******************************************/
+div#cookie_popup{
+	font-size:					80%;
+/* 	display:					inline-block; */
+	color:						#dddddd;
+	text-align:					center;
+	position:					fixed;
+	background-color:			#4c9ed8;
+	border:						0.5em solid #265774;
+	padding:					1em 4em 1em 4em;
+	left:						0em;
+	right:						0em;
+	bottom:						0em;
+/* 	width:						100%; */
+	-ms-transform:				rotate(0deg); /* IE 9 */
+	-ms-transform-origin:		0% 0%; /* IE 9 */
+	-webkit-transform:			rotate(00deg); /* Chrome, Safari, Opera */
+	-webkit-transform-origin:	0% 0%; /* Chrome, Safari, Opera */
+	-moz-transform:				rotate(00deg); 
+	-moz-transform-origin:		0% 0%; /* Chrome, Safari, Opera */
+	transform:					rotate(00deg);
+	transform-origin:			0% 0%;
+	box-shadow:					0 0 3em #265774;
+	transition:					bottom .5s ease-in-out;
+}

+ 5 - 4
www/css/ui.css

@@ -357,19 +357,20 @@ div#cookie_popup{
 	transition:					bottom .5s ease-in-out;
 }
 
-div#cookie_popup span.button{
+div#cookie_popup span.button a{
 	font-weight:	bold;
 	font-size:		100%;
 	border:			0.2em solid #133442;
 	border-radius:	0.2em;
-	padding:		0.1em;
+	padding:		0.2em;
+	color:			#dddddd;
 }
 
-div#cookie_popup span#button_ok{
+div#cookie_popup span#button_ok a{
 	background-color:	#338833;
 }
 
-div#cookie_popup span#button_more{
+div#cookie_popup span#button_more a{
 	background-color:	#883333;
 }
 

+ 3 - 3
www/footer.php

@@ -41,7 +41,7 @@
 				<br class="mobile"/><br class="mobile"/><br class="mobile"/>
 			</div>
 			<div  class="td" id="footer_right" class="desktop">
-				<a href="<?php echo "http://$_SERVER[HTTP_HOST]/ayuda/";?>"><?php echo $lng['footer_help']; ?></a>&nbsp;&nbsp;&nbsp;<a href="<?php echo "http://$_SERVER[HTTP_HOST]/ayuda/#privacidad";?>"><?php echo $lng['footer_privacy'];?></a>
+				<a href="<?php echo "http://$_SERVER[HTTP_HOST]/ayuda/";?>"><?php echo $lng['footer_help']; ?></a>&nbsp;&nbsp;&nbsp;<a href="<?php echo "http://$_SERVER[HTTP_HOST]/ayuda/#section_privacy";?>"><?php echo $lng['footer_privacy'];?></a>
 				<br/><br class='mobile'/>
 				<img class='lang' alt='Espanol' src='/img/lang/es.gif' onClick='changeLanguage("es", "<?php echo $http_host; ?>");'/>
 				<img class='lang' alt='English' src='/img/lang/en.gif' onClick='changeLanguage("en", "<?php echo $http_host; ?>");'/>
@@ -58,8 +58,8 @@
 ?>
 <div id='cookie_popup'>
 	<span id='message'><?php echo $lng['cookie_message']; ?></span><br/><br/>
-	<span class='button pointer' onClick="dismissCookiePopUp('<?php echo $http_host; ?>');" id='button_ok'><?php echo $lng['cookie_ok']; ?></span>
-	<span class='button pointer' onClick="dismissCookiePopUp('<?php echo $http_host; ?>', true);" id='button_more'><?php echo $lng['cookie_more']; ?></span>
+	<span class='button pointer' style="cursor:pointer" id='button_ok'><a href="#" onClick="dismissCookiePopUp('<?php echo $http_host; ?>', false);" ><?php echo $lng['cookie_ok']; ?></a></span>
+	<span class='button pointer' style="cursor:pointer" id='button_more'><a href="#" onClick="dismissCookiePopUp('<?php echo $http_host; ?>', true);" ><?php echo $lng['cookie_more']; ?></a></span>
 </div>
 <?php
 }

+ 3 - 1
www/functions.php

@@ -346,7 +346,9 @@
 					echo("</div>\n");
 				}
 				echo($r['text']);
-				echo("<br/><br/><a target='_blank' href='https://www.google.es/maps/@$r[lat],$r[lon],14z'><img id='ad_pinpoint' src='/img/misc/pinpoint.png'\>$r[address]</a>\n");
+				if(strlen($r["address"]) > 0){
+					echo("<br/><br/><a target='_blank' href='https://www.google.es/maps/@$r[lat],$r[lon],14z'><img id='ad_pinpoint' src='/img/misc/pinpoint.png'\>$r[address]</a>\n");
+				}
 				echo("</div>\n");
 				echo("</div>\n");
 				echo("<script type='text/javascript'>showAd();</script>\n");

BIN
www/img/spo/miniature/zeppelin.jpg


+ 2 - 2
www/img/spo/script

@@ -1,6 +1,6 @@
 for file in *.jpg;do
-	#convert "$file" -resize 800x800  "view/$file"
-	#convert "$file" -resize 600x600  "preview/$file"
+	convert "$file" -resize 800x800  "view/$file"
+	convert "$file" -resize 600x600  "preview/$file"
 	convert "$file" -resize 340x340  "miniature/$file"
 	convert "$file" -resize 180x180  "thumb/$file"
 done

BIN
www/img/spo/thumb/zeppelin.jpg


BIN
www/img/spo/zeppelin.jpg


+ 2 - 3
www/index.php

@@ -181,7 +181,7 @@
 					
 						if (mysqli_num_rows($q_sch_curr) > 0){
 							$r_sch_curr = mysqli_fetch_array($q_sch_curr);
-							echo "<div id='festival_event' itemprop='subEvent' itemscope itemtype='http://schema.org/Event'><h4>$lng[index_festivals_schedule_now]</h4>\n";
+							echo "<div class='festival_event' itemprop='subEvent' itemscope itemtype='http://schema.org/Event'><h4>$lng[index_festivals_schedule_now]</h4>\n";
 							echo "<meta itemprop='inLanguage' content='$lang'/>\n";
 							echo "<meta itemprop='name' content='$r_sch_curr[title]'/>\n";
 							echo "<meta itemprop='startDate' content='$r_sch_curr[isostart]'/>\n";
@@ -208,8 +208,7 @@
 						
 						if (mysqli_num_rows($q_sch_next) > 0){
 							$r_sch_next = mysqli_fetch_array($q_sch_next);
-							echo "<div id='festival_event' itemprop='subEvent' itemscope itemtype='http://schema.org/Event'><h4>$lng[index_festivals_schedule_next]</h4>\n";
-							echo "<div id='festival_event' itemprop='subEvent' itemscope itemtype='http://schema.org/Event'><h4>$lng[index_festivals_schedule_now]</h4>\n";
+							echo "<div class='festival_event' itemprop='subEvent' itemscope itemtype='http://schema.org/Event'><h4>$lng[index_festivals_schedule_next]</h4>\n";
 							echo "<meta itemprop='inLanguage' content='$lang'/>\n";
 							echo "<meta itemprop='name' content='$r_sch_next[title]'/>\n";
 							echo "<meta itemprop='startDate' content='$r_sch_next[isostart]'/>\n";

+ 1 - 1
www/lang/lang_es.php

@@ -147,7 +147,7 @@
 	$lng['us_activities_content'] = 'Excursiones, partidos, causas ben&eacute;ficas... No solo se nos ve en fiestas.<br/><br/>Creemos que, como Cuadrilla de Blusas y Neskas, existimos por y para la ciudad, y por eso organizamos actividades durante todo el a&ntilde;o, para todo aquel que quiera acompa&ntilde;arnos<br/><br/>Si quieres saber lo que hacemos, te sugerimos que eches un vistazo a nuestra <a href="/galeria/">galer&iacute;a</a>. Y si quieres conocernos, apuntate a la siguiente <a href="/actividades/">actividad</a>!';
 	$lng['us_transparency'] = 'Transparencia';
 	//$lng['us_transparency_content'] = '¿Te preocupa saber d&oacute;nde va tu dinero? En Gasteizko Margolariak queremos que est&eacute;s tranquilo.<br/><br/>Muchas de nuestras actividades son gratuitas. Otras, como las fiestas de La Blanca, tienen una cuota de inscripci&oacute;n. Gasteizko Margolariak no es una empresa, es una Asociaci&oacute;n cultural, y como tal, no tenemos beneficios.<br/><br/>Queremos ser transparentes, y por eso ponemos a tu disposici&oacute;n nuestras cuentas de manera online, para que sepas que cada euro se reinvierte en ti.';
-	$lng['us_transparency_content'] = '¿Te preocupa saber d&oacute;nde va tu dinero? En Gasteizko Margolariak queremos que est&eacute;s tranquilo.<br/><br/>Muchas de nuestras actividades son gratuitas. Otras, como las fiestas de La Blanca, tienen una cuota de inscripci&oacute;n. Gasteizko Margolariak no es una empresa, es una Asociaci&oacute;n cultural, y como tal, no tenemos beneficios.<br/><br/>Queremos ser transparentes, y por eso, empezanod en 2016, pondremos a tu disposici&oacute;n nuestras cuentas de manera online, para que sepas que cada euro se reinvierte en t&iacute;.';
+	$lng['us_transparency_content'] = '¿Te preocupa saber d&oacute;nde va tu dinero? En Gasteizko Margolariak queremos que est&eacute;s tranquilo.<br/><br/>Muchas de nuestras actividades son gratuitas. Otras, como las fiestas de La Blanca, tienen una cuota de inscripci&oacute;n. Gasteizko Margolariak no es una empresa, es una Asociaci&oacute;n cultural, y como tal, no tenemos beneficios.<br/><br/>Queremos ser transparentes, y por eso, empezando en 2016, pondremos a tu disposici&oacute;n nuestras cuentas de manera online, para que sepas que cada euro se reinvierte en t&iacute;.';
 	$lng['us_'] = '';
 	
 	// /galeria/index.php

+ 0 - 2
www/robots.txt

@@ -13,8 +13,6 @@ Disallow: /script/
 Disallow: /lang/
 Disallow: /functions.php
 Disallow: /langtranslate.php
-
-User-agent: Googlebot-Image
 Disallow: /img/spo/
 Disallow: /img/social/
 Disallow: /img/misc/

+ 4 - 2
www/script/ui.js

@@ -48,7 +48,7 @@ function toggleMobileMenu(){
 	}
 }
 
-function dismissCookiePopUp(host, open = false){
+function dismissCookiePopUp(host, open){
 	//Set cookie
 	var date = new Date();
 	date.setTime(date.getTime() + (365 * 24 * 60 * 60 * 1000));
@@ -58,9 +58,11 @@ function dismissCookiePopUp(host, open = false){
 	document.getElementById('cookie_popup').style.bottom = '-20em';
 	// Open the help window if required
 	if (open){
-		var win = window.open('http://' + host + '/ayuda/#privacidad', '_blank');
+		var win = window.open('http://' + host + '/ayuda/#section_cookie', '_blank');
 		win.focus();
 	}
+	return false;
+	return true;
 }
 
 function showAd(){