Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. <div id="content_wrapper">
  2. <div class="one_fourth home_left">
  3. <ul class="sidebar_widget">
  4. <?php dynamic_sidebar('Home Left Sidebar'); ?>
  5. </ul>
  6. </div>
  7.  
  8. <div class="one_half home">
  9. <div id="featured_posts" class="rubrica_ev">
  10.  
  11. <?php
  12. $the_query = new WP_Query( 'posts_per_page=1&tag=rubrica-in-evidenza' );
  13. while ( $the_query->have_posts() ) : $the_query->the_post();
  14.  
  15. ?>
  16. <?php
  17. $category = get_the_category();
  18. echo $category[0]->cat_name;
  19. ?>
  20. <a href="<?php echo get_category_link($category[0]->cat_ID); ?>" title="<?php echo $category[0]->cat_name; ?>">Leggi tutti</a>
  21. <h3>
  22. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  23. <?php the_title(); ?>
  24. </a>
  25.  
  26. </h3>
  27.  
  28. <div>
  29.  
  30. <?php
  31. if( get_post_meta(get_the_ID(), 'blog_thumb_image_url', true) ) :
  32. $image_thumb = get_post_meta(get_the_ID(), 'blog_thumb_image_url', true);
  33. ?>
  34. <img src="<?php bloginfo( 'stylesheet_directory' ); ?>/timthumb.php?src=<?php echo $image_thumb; ?>&amp;h=300&amp;w=460&amp;zc=1" alt=""/>
  35. <?php endif; ?>
  36. <?php
  37. print_custom_field('videopreview:wrapper'
  38. , '<iframe width="470" height="269" src="[+content+]" frameborder="0" allowfullscreen></iframe>'
  39. , '<em></em>');
  40. ?>
  41. <br/><br/>
  42. <?php new_excerpt(300); ?>
  43. <br/><br/>
  44. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><strong>Read Full Article</strong></a>
  45. <br/><br/><hr/>
  46. </div>
  47. <?php endwhile; ?>
  48.  
  49. </div><!--.rubrica_ev-->
  50.  
  51. <div id="featured_posts" class="videopagina_ev">
  52.  
  53. <?php
  54. $args = array( 'post_type' => 'videopagine', 'posts_per_page' => 1, 'tag'=>videopagina-in-evidenza );
  55. $loop = new WP_Query( $args );
  56. while ( $loop->have_posts() ) : $loop->the_post();
  57. ?>
  58.  
  59. <?php
  60. $category = get_the_category();
  61. echo $category[0]->cat_name;
  62. ?>
  63. <a href="<?php echo get_category_link($category[0]->cat_ID); ?>" title="<?php echo $category[0]->cat_name; ?>">Leggi tutti</a>
  64. <h3>
  65. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  66. <?php the_title(); ?>
  67. </a>
  68.  
  69. </h3>
  70.  
  71. <div>
  72.  
  73. <?php
  74. if( get_post_meta(get_the_ID(), 'blog_thumb_image_url', true) ) :
  75. $image_thumb = get_post_meta(get_the_ID(), 'blog_thumb_image_url', true);
  76. ?>
  77. <img src="<?php bloginfo( 'stylesheet_directory' ); ?>/timthumb.php?src=<?php echo $image_thumb; ?>&amp;h=300&amp;w=460&amp;zc=1" alt=""/>
  78. <?php endif; ?>
  79. <?php
  80. print_custom_field('videopreview:wrapper'
  81. , '<iframe width="470" height="269" src="[+content+]" frameborder="0" allowfullscreen></iframe>'
  82. , '<em></em>');
  83. ?>
  84. <br/><br/>
  85. <?php new_excerpt(300); ?>
  86. <br/><br/>
  87. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><strong>Read Full Article</strong></a>
  88. <br/><br/><hr/>
  89. </div>
  90. <?php endwhile; ?>
  91.  
  92. </div><!--.videopagina_ev-->
  93.  
  94. <br class="clear"/><br/>
  95. <ul class="sidebar_widget">
  96. <?php dynamic_sidebar('Home Center Sidebar'); ?>
  97. </ul>
  98. </div>
  99.  
  100. <div class="one_fourth home last">
  101. <ul class="sidebar_widget">
  102. <?php dynamic_sidebar('Home Right Sidebar'); ?>
  103. </ul>
  104. </div>
  105. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement