function mapasdevista_page_template_redirect() { if (is_page()) { $page = get_queried_object(); if (get_post_meta($page->ID, '_mapasdevista', true)) { mapasdevista_get_template('template/main-template'); exit; } } }
function mapasdevista_get_post_ajax($p = null) { if (is_null($p) || !$p || strlen($p) == 0) { $p = $_POST['post_id']; } if (!is_numeric($p)) { die('error'); } query_posts('post_type=any&p=' . $p); if (have_posts()) { while (have_posts()) { the_post(); mapasdevista_get_template('mapasdevista-loop-opened'); } } else { die('error'); } die; }
?> " class="result clearfix"> <div class="balloon"> <div class="content"> <p class="metadata bottom"> <span class="date"><?php the_time(get_option('date_format')); ?> </span> </p> <h1 class="bottom"><a class="js-link-to-post" id="balloon-post-link-<?php the_ID(); ?> " href="<?php the_permalink(); ?> " onClick="mapasdevista.linkToPost(this); return false;"><?php the_title(); ?> </a></h1> <?php mapasdevista_get_template('mapasdevista-bubble', get_post_format()); ?> </div> </div> </div> <?php } ?> </div>
$site_description = get_bloginfo('description', 'display'); ?> </title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?> " /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <style type="text/css"> <?php include mapasdevista_get_template('template/style.css', null, false); ?> </style> <?php wp_head(); ?> </head> <body <?php body_class(); ?> > <div id="post_overlay"> <a id="close_post_overlay" title="Fechar"><?php
<?php include mapasdevista_get_template('template/_init-vars', null, false); include mapasdevista_get_template('template/_load-js', null, false); include mapasdevista_get_template('template/_filter-menus', null, false); include mapasdevista_get_template('template/_header', null, false); include mapasdevista_get_template('mapasdevista-loop', 'filter', false); include mapasdevista_get_template('mapasdevista-loop', 'bubble', false); include mapasdevista_get_template('template/_filters', null, false); include mapasdevista_get_template('template/_footer', null, false);
</p> <h1 class="bottom"><?php the_title(); ?> </h1> <p class="metadata author"><?php _e('Published by', 'mapasdevista'); ?> <a class="js-filter-by-author-link" href="<?php echo get_author_posts_url(get_the_ID()); ?> " id="post_overlay-author-link-<?php the_author_ID(); ?> " title="<?php esc_attr(the_author()); ?> "><?php the_author(); ?> </a> | <?php edit_post_link(__('Edit', 'mapasdevista'), '<span class="edit-link">', '</span>'); ?> </p> <?php mapasdevista_get_template('mapasdevista-content'); ?> </div>