Guest User

home page

a guest
Nov 28th, 2013
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. <?php /* Template Name: Home page template */ ?>
  2.  
  3. <?php get_header(); ?>
  4.  
  5.  
  6.  
  7.  
  8. <div id="carousel-area">
  9.  
  10. <script type="text/javascript">
  11. jQuery(function($){
  12. $('.bxslider').bxSlider({
  13. auto: 'true',
  14. mode: 'fade'
  15. });
  16. });
  17. </script>
  18.  
  19. <?php the_field('slider_text'); ?>
  20.  
  21.  
  22.  
  23.  
  24. </div>
  25.  
  26. <!-- MAIN TEXT AREA-->
  27.  
  28. <div id="content">
  29.  
  30. <div id="main-text-col">
  31.  
  32. <?php the_field('intro_text'); ?>
  33.  
  34.  
  35.  
  36. <div class="news-head">
  37.  
  38. News
  39.  
  40. </div>
  41.  
  42.  
  43. <div class="post-excerpt-text">
  44.  
  45. <?php
  46. $excerpts = new WP_Query( array(
  47. 'post_type' => 'post',
  48. 'post_status' => 'publish',
  49. 'posts_per_page' => 3
  50. ) );
  51.  
  52. if ( $excerpts->have_posts() ) :
  53. ?>
  54. <?php
  55. while ( $excerpts->have_posts() ) : $excerpts->the_post();
  56. ?><h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3><?php the_excerpt(); ?>
  57. <?php
  58. endwhile;
  59. wp_reset_postdata();
  60. ?>
  61. <?php
  62. endif;
  63. ?>
  64.  
  65. </div>
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. </div>
  73.  
  74. <div id="sidecol">
  75.  
  76. <h2>Twittersphere</h2>
  77.  
  78.  
  79. <p class="twitter"><a class="twitter-timeline" href="https://twitter.com/CcT" data-widget-id="402367432578133552" data-chrome="nofooter noheader noborders" width="271" height="500" data-tweet-limit="5">Tweets by @CcT</a>
  80. <script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></p>
  81.  
  82. <p><a href="https://twitter.com/CcT" class="twitter-follow-button" data-show-count="false">Follow @CcT</a></p>
  83.  
  84. </div>
  85.  
  86.  
  87.  
  88.  
  89. </div>
  90.  
  91. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment