Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*Template Name: page-home*/
- get_header('');?>
- <div class="menu-superior-2">
- </div>
- <!--POST HOME 1-->
- <div id="caja-home-izquierda">
- <?php query_posts('p=1'); ?>
- <?php while (have_posts()) : the_post(); ?>
- <h1 class="entry-title-home-posts-izquierda"><?php the_title(); ?></h1>
- <?php the_content(); ?>
- <?php endwhile;?>
- </div>
- <!-- SLIDES POSTS CULTURA HOME -->
- <div id="caja-contenedor-slide-diapo">
- <div class="pix_diapo">
- <?php if (have_posts()) : ?>
- <?php query_posts('cat=3'); ?>
- <?php while (have_posts()) : the_post(); ?>
- <div>
- <!--CUSTOM FIELD IMAGEN-->
- <div class="post-custom-field-slider">
- <?php $foto = get_post_meta($post->ID, 'foto', true); ?>
- <?php if($foto): ?>
- <img src="<?php echo $foto ?>" alt="imagen"/>
- <?php endif; ?>
- </div>
- <!--TITULO POST-->
- <h1 class="entry-title-slider fromLeft"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h1>
- <h2 class="category-title-slider fromLeft">
- <?php
- foreach((get_the_category()) as $childcat) {
- if (cat_is_ancestor_of(3, $childcat)) {
- echo '<a href="'.get_category_link($childcat->cat_ID).'">';
- echo $childcat->cat_name . '</a>';
- }}
- ?>
- </h2>
- </div>
- <?php endwhile; ?>
- <?php endif; ?>
- </div>
- <!-- /SLIDES POSTS CULTURA HOME -->
- </div>
- <!--POST HOME 2-->
- <div id="caja-home-derecha">
- <?php query_posts('p=13'); ?>
- <?php while (have_posts()) : the_post(); ?>
- <h1 class="entry-title-home-posts-derecha"><?php the_title(); ?></h1>
- <?php the_content(); ?>
- <?php endwhile;?>
- </div>
- <!-- CAROSEL SLIDES POSTS HOME -->
- <div id="content-slider-carousel">
- <ul id="carousel-home" class="jcarousel-skin-tango">
- <?php if (have_posts()) : ?>
- <?php query_posts('cat=25'); ?>
- <?php while (have_posts()) : the_post(); ?>
- <li>
- <h1 class="entry-title-carosel"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h1>
- <h2 class="category-title-carosel">
- <?php
- foreach((get_the_category()) as $childcat) {
- if (cat_is_ancestor_of(25, $childcat)) {
- echo '<a href="'.get_category_link($childcat->cat_ID).'">';
- echo $childcat->cat_name . '</a>';
- }}
- ?>
- </h2>
- <div class="post-custom-field-carosel">
- <?php $foto = get_post_meta($post->ID, 'foto', true); ?>
- <?php if($foto): ?>
- <img src="<?php echo $foto ?>" alt="imagen" width="120" />
- <?php endif; ?>
- </div>
- </li>
- <?php endwhile; ?>
- <?php endif; ?>
- </ul>
- </div>
- <?php get_sidebar('links-footer'); ?>
- </div>
- <?php get_footer(''); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement