Переглянути джерело

'Us' and 'La Blanca' sections previews added to the home page.

seavenois 9 роки тому
батько
коміт
783538003a
3 змінених файлів з 40 додано та 1 видалено
  1. 16 0
      www/css/index.css
  2. 22 1
      www/index.php
  3. 2 0
      www/lang/lang_es.php

+ 16 - 0
www/css/index.css

@@ -145,6 +145,22 @@ div#upcoming_details table td{
 	padding:	0.3em;
 }
 
+/* Us section */
+div#us p{
+	display:		inline-block;
+	width:			70%;
+	vertical-align:	top;
+}
+
+div#us div{
+	display:	inline-block;
+	width:		20%;
+}
+
+div#us div img{
+	opacity:	0.5;
+}
+
 /* Table to present posts and photos on the same row */
 div#content_table{
 	display:	table;

+ 22 - 1
www/index.php

@@ -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";
@@ -315,6 +316,13 @@
 					echo "</div>\n";//Section
 				}
 			?>
+			<div class='section'>
+				<h3 class='section_title'><?php echo($lng['index_us']); ?></h3>
+				<div class='entry' id='us'>
+					<p><?php echo($lng['index_us_content']); ?></p>
+					<div><img src='<?php echo("$proto$http_host/img/logo/GasteizkoMargolariak.png"); ?>'/></div>
+				</div>
+			</div>
 			<div id='content_table'>
 				<div class='content_row'>
 					<div class='content_cell' id='cell_posts'>
@@ -442,9 +450,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", "");

+ 2 - 0
www/lang/lang_es.php

@@ -47,6 +47,8 @@
 	$lng['index_no_photos'] = 'No hay fotos';
 	$lng['index_see_all_photos'] = 'Ir a la galer&iacute;a';
 	$lng['index_read_more'] = 'Seguir leyendo';
+	$lng['index_us'] = 'Gasteizko Margolariak';
+	$lng['index_us_content'] = 'Gasteizko Margolariak somos una Cuadrilla de Blusas y Neskas de Vitoria-Gasteiz';
 	$lng['index_'] = '';
 	
 	// /header.php