SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php /* Template Name: Home page template */ ?> | |
| 2 | <?php get_header(); ?> | |
| 3 | <div id="carousel-area"> | |
| 4 | <script type="text/javascript"> | |
| 5 | jQuery(function($){
| |
| 6 | $('.bxslider').bxSlider({
| |
| 7 | auto: 'true', | |
| 8 | mode: 'fade' | |
| 9 | }); | |
| 10 | }); | |
| 11 | </script> | |
| 12 | <?php the_field('slider_text'); ?>
| |
| 13 | </div> | |
| 14 | <!-- MAIN TEXT AREA--> | |
| 15 | ||
| 16 | <div id="content"> | |
| 17 | ||
| 18 | <div id="main-text-col"> | |
| 19 | <?php the_field('intro_text'); ?>
| |
| 20 | ||
| 21 | <div class="news-head">News</div> | |
| 22 | ||
| 23 | <div class="post-excerpt-text"> | |
| 24 | - | <?php if ( have_posts() ): ?> |
| 24 | + | <?php query_posts('show_posts=3'); ?>
|
| 25 | <?php if ( have_posts() ): ?> | |
| 26 | <ol> | |
| 27 | <?php while ( have_posts() ) : the_post(); ?> | |
| 28 | <li> | |
| 29 | <div class="article"> | |
| 30 | ||
| 31 | <div class="excerpt_image"> | |
| 32 | <?php if(get_field('excerpt_image')): ?>
| |
| 33 | <?php | |
| 34 | $attachment_id = get_field('excerpt_image');
| |
| 35 | $size = "thumbnail"; // (thumbnail, medium, large, full or custom size) | |
| 36 | $image = wp_get_attachment_image_src( $attachment_id, $size ); | |
| 37 | ?> | |
| 38 | <img src="<?php echo $image[0]; ?>" /> | |
| 39 | <?php endif; ?> | |
| 40 | </div> | |
| 41 | ||
| 42 | <h3><a href="<?php esc_url( the_permalink() ); ?>" title="Permalink to <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h3> | |
| 43 | ||
| 44 | <?php the_excerpt(); ?> | |
| 45 | </div> | |
| 46 | </li> | |
| 47 | <?php endwhile; ?> | |
| 48 | </ol> | |
| 49 | <?php else: ?> | |
| 50 | <h1>No Posts to display.</h1> | |
| 51 | <?php endif; ?> | |
| 52 | </div> | |
| 53 | </div> | |
| 54 | ||
| 55 | <div id="sidecol"> | |
| 56 | ||
| 57 | <h2>Twittersphere</h2> | |
| 58 | ||
| 59 | ||
| 60 | <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> | |
| 61 | <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>
| |
| 62 | ||
| 63 | <p><a href="https://twitter.com/CcT" class="twitter-follow-button" data-show-count="false">Follow @CcT</a></p> | |
| 64 | ||
| 65 | </div> | |
| 66 | ||
| 67 | ||
| 68 | ||
| 69 | ||
| 70 | </div> | |
| 71 | ||
| 72 | <?php get_footer(); ?> |