Advertisement
Guest User

lemondrop drama

a guest
Sep 28th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: news
  4. MultiEdit: One centered column with no sidebar
  5. */
  6.  
  7. get_header(); ?>
  8.  
  9. <div id="content">
  10. <div class="contentTop2 newspad">
  11.  
  12. <div id="newsTitle"><a href="<?php echo home_url(); ?>/news/">Latest News</a></div>
  13.  
  14.  
  15.  
  16.  
  17. <?php
  18. $args = array( 'numberposts' => 1, 'post_status'=>"publish",'post_type'=>"post",'orderby'=>"post_date");
  19. $postslist = get_posts( $args );
  20.  
  21. foreach ($postslist as $post) : setup_postdata($post); ?>
  22. <div class="postNews">
  23.  
  24. <?php if ( has_post_thumbnail() ) { /* loads the post's featured thumbnail, requires Wordpress 3.0+ */
  25. echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>';
  26. } ?>
  27.  
  28. <div class="newsRightPost">
  29.  
  30. <div class="newsTitle"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
  31. <div class="newsDate">Posted&nbsp;<?php the_date(); ?></div>
  32. <div class="newsExcerpt"><?php the_excerpt(); ?></div>
  33.  
  34. <div class="sharetext">Share This:&nbsp;&nbsp;</div>
  35. <div class="tweetButton"><a href="https://twitter.com/share" class="twitter-share-button" data-via="lemondropdrama" data-related="_spaceandtime" data-hashtags="drama">Tweet</a>
  36. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></div>
  37.  
  38. <div class="fbButton"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Flemondropdrama.co.uk%2F&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35&amp;appId=159796134099543" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe></div>
  39. </div>
  40.  
  41. </div>
  42. <?php endforeach; ?>
  43.  
  44. <div class="clearBoth">&nbsp;</div>
  45. </div>
  46.  
  47.  
  48.  
  49. <?php
  50.  
  51.  
  52.  
  53. global $post;
  54. $myposts = get_posts('numberposts=10&offset=1&category=');
  55. foreach($myposts as $post) :
  56. setup_postdata($post);
  57.  
  58.  
  59.  
  60. ?>
  61.  
  62. <div class="postNews2">
  63. <?php if ( has_post_thumbnail() ) { /* loads the post's featured thumbnail, requires Wordpress 3.0+ */
  64. echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>';
  65. } ?>
  66.  
  67. <div class="newsRightPost">
  68.  
  69. <div class="newsTitle"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
  70. <div class="newsDate">Posted&nbsp;<?php the_date(); ?></div>
  71. <div class="newsExcerpt"><?php the_excerpt(); ?></div>
  72.  
  73. <div class="sharetext">Share This:&nbsp;&nbsp;</div>
  74. <div class="tweetButton"><a href="https://twitter.com/share" class="twitter-share-button" data-via="lemondropdrama" data-related="_spaceandtime" data-hashtags="drama">Tweet</a>
  75. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></div>
  76.  
  77. <div class="fbButton"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Flemondropdrama.co.uk%2F&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35&amp;appId=159796134099543" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe></div>
  78. </div>
  79.  
  80. </div>
  81.  
  82.  
  83. <?php endforeach; ?>
  84. <?php query_posts( 'posts_per_page=1' ); ?>
  85. <div class="oldernewer">
  86. <p class="older"><?php next_posts_link('&laquo; Older Entries') ?></p>
  87. <p class="newer"><?php previous_posts_link('Newer Entries &raquo;') ?></p>
  88. </div><!--.oldernewer-->
  89.  
  90.  
  91.  
  92. <?php // end of content bottom ?>
  93. <div class="roundededge">&nbsp;</div>
  94. <div class="clearBoth">&nbsp;</div>
  95. </div><!--#content-->
  96.  
  97.  
  98.  
  99. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement