Advertisement
Guest User

PAGE-HOME

a guest
Mar 7th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. <?php
  2. /*Template Name: page-home*/
  3. get_header('');?>
  4. <div class="menu-superior-2">
  5. </div>
  6. <!--POST HOME 1-->
  7. <div id="caja-home-izquierda">
  8. <?php query_posts('p=1'); ?>
  9. <?php while (have_posts()) : the_post(); ?>
  10. <h1 class="entry-title-home-posts-izquierda"><?php the_title(); ?></h1>
  11. <?php the_content(); ?>
  12. <?php endwhile;?>
  13. </div>
  14. <!-- SLIDES POSTS CULTURA HOME -->
  15. <div id="caja-contenedor-slide-diapo">
  16. <div class="pix_diapo">
  17. <?php if (have_posts()) : ?>
  18. <?php query_posts('cat=3'); ?>
  19. <?php while (have_posts()) : the_post(); ?>
  20. <div>
  21. <!--CUSTOM FIELD IMAGEN-->
  22. <div class="post-custom-field-slider">
  23. <?php $foto = get_post_meta($post->ID, 'foto', true); ?>
  24. <?php if($foto): ?>
  25. <img src="<?php echo $foto ?>" alt="imagen"/>
  26. <?php endif; ?>
  27. </div>
  28. <!--TITULO POST-->
  29. <h1 class="entry-title-slider fromLeft"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h1>
  30. <h2 class="category-title-slider fromLeft">
  31. <?php
  32. foreach((get_the_category()) as $childcat) {
  33. if (cat_is_ancestor_of(3, $childcat)) {
  34. echo '<a href="'.get_category_link($childcat->cat_ID).'">';
  35. echo $childcat->cat_name . '</a>';
  36. }}
  37. ?>
  38. </h2>
  39. </div>
  40. <?php endwhile; ?>
  41. <?php endif; ?>
  42. </div>
  43. <!-- /SLIDES POSTS CULTURA HOME -->
  44. </div>
  45. <!--POST HOME 2-->
  46. <div id="caja-home-derecha">
  47. <?php query_posts('p=13'); ?>
  48. <?php while (have_posts()) : the_post(); ?>
  49. <h1 class="entry-title-home-posts-derecha"><?php the_title(); ?></h1>
  50. <?php the_content(); ?>
  51. <?php endwhile;?>
  52. </div>
  53. <!-- CAROSEL SLIDES POSTS HOME -->
  54. <div id="content-slider-carousel">
  55. <ul id="carousel-home" class="jcarousel-skin-tango">
  56. <?php if (have_posts()) : ?>
  57. <?php query_posts('cat=25'); ?>
  58. <?php while (have_posts()) : the_post(); ?>
  59. <li>
  60. <h1 class="entry-title-carosel"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h1>
  61. <h2 class="category-title-carosel">
  62. <?php
  63. foreach((get_the_category()) as $childcat) {
  64. if (cat_is_ancestor_of(25, $childcat)) {
  65. echo '<a href="'.get_category_link($childcat->cat_ID).'">';
  66. echo $childcat->cat_name . '</a>';
  67. }}
  68. ?>
  69. </h2>
  70. <div class="post-custom-field-carosel">
  71. <?php $foto = get_post_meta($post->ID, 'foto', true); ?>
  72. <?php if($foto): ?>
  73. <img src="<?php echo $foto ?>" alt="imagen" width="120" />
  74. <?php endif; ?>
  75. </div>
  76. </li>
  77. <?php endwhile; ?>
  78. <?php endif; ?>
  79. </ul>
  80. </div>
  81. <?php get_sidebar('links-footer'); ?>
  82. </div>
  83. <?php get_footer(''); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement