Example #1
0
    <?php 
$catid = get_ot('categoria_portada', '');
$post_per_page = get_ot('numero_categoria_portada', '');
//Consulta
$args = array('cat' => $catid, 'posts_per_page' => $post_per_page);
$consulta = new WP_Query($args);
?>
 
    <?php 
if ($consulta->have_posts()) {
    ?>
        <section class="articulos">
            
            <p class="articulos-titulo" href="#">
                <?php 
    print_ot('titulo_categoria_portada', '');
    ?>
            </p>
            
            <?php 
    while ($consulta->have_posts()) {
        $consulta->the_post();
        ?>
                         
                <?php 
        get_template_part('content', get_post_format());
        ?>
            <?php 
    }
    ?>
                
Example #2
0
    ?>
      
                </div><!-- #social-contacto --> 

            </div><!-- .contacto-datos -->	
                                    
            <div class="formulario">
            	<?php 
    echo do_shortcode(get_ot('formulario'));
    ?>
		
            </div><!-- .entry-content -->	
            
             <div class="mapa"> 
                    <?php 
    print_ot('mapa', '');
    ?>
												
          	 </div>
            
            <?php 
    the_social_share();
    ?>
        
        </article><!-- #post-<?php 
    the_ID();
    ?>
 -->
    <?php 
}
// end of the loop.
Example #3
0
<body <?php 
body_class();
?>
>

<div id= "header-wrapper" class="header-wrapper">
    <header id="header" class="header" role="banner" >
            
        <!-- Logo -->
        <a href="<?php 
inicio_url();
?>
" id="header-logo" class="logo">
            <img src="<?php 
print_ot('logo', get_plantilla_url() . '/images/logo.png');
?>
" alt="<?php 
bloginfo('name');
?>
">
        </a>
               
        <!-- Formulario de búsqueda -->
        <?php 
get_search_form();
?>

        <!-- Zona Privada -->
        <?php 
//Argumentos del formulario de login
        <a href="<?php 
    print_ot('tw_url', '');
    ?>
"title="Twitter" target="_blank"><i class="fa fa-twitter-square fa-3x"></i></a>
    <?php 
}
?>
    <!-- Youtube -->
    <?php 
if (get_ot('yt_url') != '') {
    ?>
        <a href="<?php 
    print_ot('yt_url', '');
    ?>
" title="Youtube" target="_blank"><i class="fa fa-youtube-square fa-3x"></i></a>
    <?php 
}
?>
    <!-- Google Plus -->
    <?php 
if (get_ot('gp_url') != '') {
    ?>
        <a href="<?php 
    print_ot('gp_url', '');
    ?>
" title="Google Plus" target="_blank"><i class="fa fa-google-plus-square fa-3x"></i></a>
    <?php 
}
?>
      
</div><!-- #social -->
Example #5
0
bloginfo('name');
?>
">
            </a>           
                      
             <!-- Menú principal -->
            <?php 
if (!is_user_logged_in()) {
    ?>
        
                <nav id="header-main-nav" class="main-nav" role="navigation">
                    <!-- Icono de menú para versión adaptativa -->
                    <a class="toggle-nav" href="#">MENU DE NAVEGACIÓN</a>
                    <!-- Menu WordPress -->
                    <?php 
    wp_nav_menu(array('theme_location' => 'primary', 'container' => '', 'menu_class' => 'activo', 'menu_id' => 'header-menu'));
    ?>
                </nav>
            <?php 
}
?>

    </header>
</div>

<main class="content-wrapper" style="background-image: url('<?php 
print_ot('bg_oficina', '');
?>
')">

    
						    </a>
						</div>
					</div>
				</div>
			</div>
		<?php 
            }
            ?>
		<?php 
        }
        ?>
	</div> <!-- #planeaciones -->
<?php 
    } else {
        //if (isset($_POST['consultar'])) {
        ?>
	<figure class="default-img">
		<img src="<?php 
        print_ot('imagen', '');
        ?>
" alt="">
	</figure>
<?php 
    }
    ?>
</section>
<?php 
}
// end of the loop.
filtrado();
get_footer();