Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/05/2015, 12:15
alejandromaringomez
 
Fecha de Ingreso: abril-2010
Mensajes: 267
Antigüedad: 14 años
Puntos: 1
Respuesta: ¿Fallo estructura?

No es spam, simplemente hago una pregunta, si entras y lo compruebas es cierto, es la primera vez que me pasa, mira:


Se me pasó dejar mi html:

index.php

Código:
<?php
	
	session_start();
	
	include('template.php');
	
	include('php/config/domain.php');
	
	html_header();
	
	template_header($menu_selected = 1);
	
	echo '		<main id="principal">';
	echo '			<section id="slider">';	
	echo '				<nav class="slider">';
	
	require('php/config/slider.php');
	
	foreach($main_slider as $title=>$image){
	
		echo '					<div style="background-image: url(' . $website_domain . '/' . $image . ');" alt="' . $title . '"></div>';
	
	}
	
	echo '				</nav>';
	echo '			</section>';
	echo '			<div class="clear"></div>';
	echo '		</main>';

	template_footer();

	html_footer();
			
?>
template.php

Código:
<?php

	session_start();
	
	function html_header() {
		
		session_start();

		include('php/config/domain.php');
		
		echo '<!DOCTYPE html>';
		echo '<html lang="' . $_SESSION['lang'] . '">';
		echo '	<head>';
		echo '		<meta http-equiv="cache-control" content="no-cache">';
		echo '		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
		echo '		<meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1" />';
		echo '		<meta http-equiv="expires" content="-1">';
		echo '		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">';
		echo '		<title>' . $website_title . '</title>';
		echo '		<meta name="robots" content="index, follow" />';
		echo '		<meta name="revisit-after" content="1 days">';
		echo '		<meta name="author" content="Alejandro Marín">';
		echo '		<meta name="description" content="' . $website_description . '" />';
		echo '		<meta name="keywords" content="' . $website_keywords . '" />';
		echo '		<meta name="twitter:card" content="summary" />';
		echo '		<meta name="twitter:title" content="' . $website_title . '" />';
		echo '		<meta name="twitter:description" content="' . $website_description . '" />';
		echo '		<meta name="twitter:image" content="' . $website_domain . '/images/logo.png" />';
		echo '		<meta name="twitter:url" content="http://www.dentalandmedicalcentre.com/" />';
		echo '		<meta name="twitter:creator" content="@alejandromaring" />';
		echo '		<meta property="fb:admins" content="100006008464502" />';
		echo '		<meta property="og:url" content="http://www.dentalandmedicalcentre.com/" />';
		echo '		<meta property="og:title" content="' . $website_title . '" />';
		echo '		<meta property="og:site_name" content="' . $website_title . '" />';
		echo '		<meta property="og:image" content="' . $website_domain . '/images/logo.png" />';
		echo '		<meta property="og:description" content="' . $website_description . '" />';
		echo '		<meta property="og:type" content="website" />';
		echo '		<link type="text/css" href="' . $website_domain . '/css/fonts.css" rel="stylesheet" />';
		echo '		<link type="text/css" href="' . $website_domain . '/css/reset.css" rel="stylesheet" />';
		echo '		<link type="text/css" href="' . $website_domain . '/css/styles.css" rel="stylesheet" />';
		echo '		<link type="text/css" href="' . $website_domain . '/css/adjust_handheld.css" rel="stylesheet" />';
		echo '		<script type="text/javascript" src="https://code.jquery.com/jquery.js"></script>';
		echo '		<script type="text/javascript">';
		echo '			var domain = "' . $website_domain . '";';
		echo '		</script>';
		echo '		<script type="text/javascript" src="' . $website_domain . '/jquery/general.js"></script>';
		echo '		<script type="text/javascript" src="' . $website_domain . '/jquery/slider.js"></script>';
		echo '		<script type="text/javascript" src="' . $website_domain . '/jquery/contact_form.js"></script>';
		echo '	</head>';
		echo '	<body>';
	
	}
	
	function template_header($menu_selected) {
		
		session_start();
		
		include('php/config/domain.php');
		
		echo '		<div id="bar_top">';
		echo '			<nav class="languages">';
		
		if($gestor = opendir('php/languages/')) {

			while(($archivo = readdir($gestor)) != false) {
				
				if(strpos($archivo, '.php') && $archivo != 'index.php') {
					
					$_GET['type'] = 'list';
						
					include('php/languages/' . $archivo);
						
					if($visible == true) {
					
						echo '				<a href="' . $website_domain . '/php/select_language.php?lang=' . substr($archivo, 0, -4) . '&redirect"><img src="' . $website_domain . '/images/flags/' . $flag . '" alt="' . $language . '" title="' . $language . '" height="23" border="0"></a>';
					
					}
				  
				}
				
			}
			  
			closedir($gestor);
			  
		}
		
		echo '			</nav>';
		echo '			<div class="clear"></div>';
		echo '		</div>';
		echo '		<div id="page">';
		echo '			<header>';
		echo '				<div class="logo">';
		echo '					<h3>' . $logo_text[0] . '</h3>';
		echo '					<h5>' . $logo_text[1] . '</h5>';
		echo '				</div>';
		echo '				<div class="logo_image">';
		echo '					<img src="' . $website_domain . '/images/logo.png" height="70" border="0">';
		echo '				</div>';
		echo '				<div class="details">';
		echo '					<div class="contact">';
		echo '						<div class="no_call">';
		echo '							<h6 class="telephone">' . $phone_number . '</h6>';
		echo '							<h6 class="mobile">' . $mobile_number . '</h6>';
		echo '						</div>';
		echo '						<div class="call">';
		echo '							<a href="tel:' . $phone_number . '"><h6 class="telephone">' . $phone_number . '</h6></a>';
		echo '							<a href="tel:' . $mobile_number . '"><h6 class="mobile">' . $mobile_number . '</h6></a>';
		echo '						</div>';
		echo '					</div>';
		echo '					<div class="clear"></div>';
		echo '					<address><a href="' . $website_domain . '/where_we_are.php">Calle Lepanto, 21, 03503 Benidorm, Alicante (Spain).</a></address>';
		echo '				</div>';
		echo '				<div class="clear"></div>';
		echo '				<nav>';
		
		require('php/config/menu.php');
		
		$main_menu_link_position = 0;
		
		foreach($main_menu as $title=>$url){
			
			$main_menu_link_position++;
			
			if($main_menu_link_position == $menu_selected) {
		
				echo '					<a href="' . $website_domain . '/' . $url . '" class="select">' . $title . '</a>';
			
			} else {
				
				echo '					<a href="' . $website_domain . '/' . $url . '">' . $title . '</a>';
				
			}
		
		}
		
		echo '				</nav>';
		echo '			</header>';
		
	}
	
	function template_footer() {
		
		session_start();
		
		include('php/config/domain.php');
		
		echo '			<footer>';
		echo '				<section class="grid grid_column_type_3 specialties">';
		echo '					<h6>Especialidades</h6>';
		echo '					<ul>';
		echo '						<li>Medicina Familiar</li>';
		echo '						<li>Implantes dentales</li>';
		echo '						<li>Prótesis dental (fijada en el día)</li>';
		echo '						<li>Bracketts</li>';
		echo '						<li>Odontología general</li>';
		echo '						<li>Odontopediatría</li>';
		echo '					</ul>';
		echo '				</section>';
		echo '				<section class="grid grid_column_type_3 specialties specialties_2">';
		echo '					<ul>';
		echo '						<li>Blanqueamiento y limpieza dental</li>';
		echo '						<li>Ortodoncia</li>';
		echo '						<li>Periodoncia</li>';
		echo '						<li>Cirugía Oral</li>';
		echo '						<li>Ácido hialurónico</li>';
		echo '					</ul>';
		echo '				</section>';
		echo '				<section class="grid grid_column_type_3 map">';
		echo '					<h6>¿Donde estamos?</h6>';
		echo '					<iframe src="' . $google_maps_location . '" style="border:0" frameborder="0"></iframe>';
		echo '				</section>';
		echo '				<div class="clear"></div>';
		echo '				<div class="footer">';
		echo '					<p>&copy; ' . $website_title . ' 2015</p>';
		echo '					<ul>';
		echo '						<li><a href="">Aviso legal</a></li>';
		echo '						<li><a href="">Pol&iacute;tica de privacidad</a></li>';
		echo '					</ul>';
		echo '				</div>';
		echo '				<div class="clear"></div>';
		echo '			</footer>';
		
	}
	
	function html_footer() {
		
		echo '		</div>';
		echo '	</body>';
		echo '</html>';
		
	}
	
?>