Advertisement
RealEstateGuy

Index

Apr 2nd, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php get_sidebar(); ?>
  4.  
  5. <div id="main">
  6.  
  7. <div class="topstory">
  8.  
  9. <?php $the_query = new WP_Query('showposts=1');
  10.  
  11. if ($the_query->have_posts()) :
  12.  
  13. while ($the_query->have_posts()) : $the_query->the_post();
  14.  
  15. $do_not_duplicate = $post->ID;
  16.  
  17. ?>
  18.  
  19. <?php if(get_post_meta($post->ID, "newsworthy_image_value", $single = true) != "") { ?><img src="<?php echo get_post_meta($post->ID, "newsworthy_image_value", $single = true); ?>" alt="<?php the_title_attribute(); ?>" /><?php } ?>
  20.  
  21. <h1><?php the_title(); ?></h1>
  22.  
  23. <?php the_content(); ?>
  24.  
  25. <div class="postmeta"><a href="<?php the_permalink(); ?>" class="readmore">Read more...</a><a href="<?php comments_link(); ?>" class="comments">Comments (<?php comments_number('0', '1', '%'); ?>)</a><span class="category">Filed under: <?php the_category(', ') ?></span></div>
  26.  
  27. <?php endwhile; endif; ?>
  28.  
  29. </div>
  30.  
  31. <!--<div class="middle">
  32.  
  33. <?php //if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Home Middle") ) : ?>
  34.  
  35. <div class="box">
  36.  
  37. <h1>Middle</h1>
  38.  
  39. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus pretium pede eget neque.</p>
  40.  
  41. </div>
  42.  
  43. <img class="banner" src="<?php //bloginfo('template_url'); ?>/images/banner.jpg" alt="125x125 Banner" />
  44.  
  45. <?php //endif; ?>
  46.  
  47. </div>-->
  48.  
  49. <div id="left">
  50.  
  51. <?php // $the_query = new WP_Query('showposts=6&offset=1');
  52.  
  53. //$style_classes = array('first','second','third');
  54.  
  55. //$style_index = 0;
  56.  
  57. //if ($the_query->have_posts()) :
  58.  
  59. // while ($the_query->have_posts()) : $the_query->the_post();
  60.  
  61. // if ( $post->ID == $do_not_duplicate ) { continue; update_post_caches($posts); }
  62.  
  63. ?>
  64.  
  65. <!--<div class="substory<?php // $k = $style_index%3; echo " $style_classes[$k]"; $style_index++; ?>">
  66.  
  67. <?php // if(get_post_meta($post->ID, "newsworthy_image_value", $single = true) != "") { ?><img src="<?php // bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php //echo get_post_meta($post->ID, "newsworthy_image_value", $single = true); ?>&amp;h=53&amp;w=140&amp;zc=1 ?>" alt="<?php //the_title_attribute(); ?>" /><?php //} ?>
  68.  
  69. <h2><?php //the_title(); ?></h2>
  70.  
  71. <?php //the_content_limit(90, "more"); ?>
  72.  
  73. <div class="postmeta"><a href="<?php //the_permalink(); ?>" class="readmore">Read more...</a></div>
  74.  
  75. </div>-->
  76.  
  77. <?php
  78. //endwhile;
  79. //endif;
  80. ?>
  81.  
  82.  
  83.  
  84.  
  85.  
  86. <div class="clear">&nbsp;</div>
  87.  
  88.  
  89.  
  90. <!--<div class="halfcontent left">
  91.  
  92. <?php //if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Home Left") ) : ?>
  93.  
  94. <h2>About this template</h2>
  95.  
  96. <p><img class="left" src="<?php //bloginfo('template_url'); ?>/images/boat.jpg" alt="About Me" />Newsworthy is the 16th template from <a href="#">DemusDesign</a>. It's a magazine-style template built on a 6-column grid that's perfect as a news site or any site with a lot of information. It includes a demo of a <a href="#">blog post</a> and a <a href="#">style demo</a>.</p>
  97.  
  98. <?php// endif; ?>
  99.  
  100. </div>-->
  101.  
  102. <!--<div class="halfcontent left">
  103.  
  104. <?php //if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Home Right") ) : ?>
  105.  
  106. <h2>License and Use</h2>
  107.  
  108. <p>Newsworthy is released under the <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons 2.5</a> license, which means you can use it free, and even make derivative works, so long as you keep the attribution link back to <a href="http://demusdesign.com">DemusDesign</a> in the footer. If you do use it, contact me through my site to let me know. I love seeing my templates at work! Thanks.</p>
  109.  
  110. <?php // endif; ?>
  111.  
  112. </div>-->
  113.  
  114. </div>
  115. <?php if(function_exists('wp_paginate')) {
  116. wp_paginate();
  117. } ?>
  118.  
  119. <div class="clearboth">&nbsp;</div>
  120.  
  121. </div>
  122.  
  123.  
  124.  
  125. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement