<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0"/>
<title><?php
global $page, $paged;
if($_GET['q']!=""){
echo ucfrst($_GET['q']).' | ';
bloginfo( 'name' );
}else{
wp_title( '|', true, 'right' );
// Nombre del blog
bloginfo( 'name' );
// descripcion
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
// numero de paginas
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . sprintf( __( 'Página %s', 'blogsbeta' ), max( $paged, $page ) );
}
?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link href="<?php echo get_template_directory_uri(); ?>/css/mediaqueries.css" rel="stylesheet" />
<link href="<?php echo get_template_directory_uri(); ?>/pagenavi-css.css" rel="stylesheet" />
<?php
$favicon = get_template_directory_uri().'/favicon.ico';
if($dto_theme['wimg_favicon']['src']!="") $favicon = $dto_theme['wimg_favicon']['src'];
?>
<link rel="shortcut icon" href="<?php echo $favicon; ?>" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/screen.css" type="text/css" media="screen, projection" />
<?php //comments_popup_script(); // off by default ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php if($dto_theme['anti_Iframes']){?><script type="text/javascript">if(top.location!=this.location) top.location=this.location;</script><?php } ?>
<?php wp_head(); ?>
<?php if($dto_theme['add_Header']!=""){ echo $dto_theme['add_Header']; } ?>
<!-- Facebook Open Graph Tags -->
<meta property="fb:app_id" content="307528616013968"/>
<meta property="fb:admins" content="100002681792260"/>
<!-- End Facebook Open Graph Tags -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
</head>
<body <?php body_class(); ?>>
<script type="text/javascript">
window.___gcfg = {lang: 'es'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<div id="fb-root"></div>
<script type="text/javascript">(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/es_ES/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id="header">
<div class="wrapper">
<?php if(!VerSiMobil()){ ?>
<div id="menutop">
<?php wp_nav_menu(array( 'sort_column' => 'menu_order', 'menu' => 'Categories', 'container_class' => 'horizontal-menu', 'container_id' => 'headermenu', 'theme_location' => 'top_menu') ); ?>
</div>
<?php } ?>
<?php
$logo = get_template_directory_uri().'/images/logo.png';
if($dto_theme['wimg_logo']['src']!="") $logo= $dto_theme['wimg_logo']['src'];
?>
<a class="logo" href="<?php echo home_url('/'); ?>"><img id="img_logo" src="<?php echo $logo; ?>" alt="<?php echo home_url('/'); ?>" /></a> <div class="hdright">
<div class="desc_box">
<?php if($dto_theme['sacar_desH']){?><div class="hd_descripcion">
<?=$dto_theme['des_Header'];?>
</div><?php } ?>
<div class="google_src">
<div class="gcse-searchbox"></div>
</div></div></div>
</div>
</div><!-- wrapper -->
<div id="wrap">
<?php
if (is_home() || is_archive()) { ?>
<?php } ?>