Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="row news" style="margin-top: 60px;">
- <div class="col-md-4" >
- <div style="background: rgb(203,203,203);height:350px;"></div>
- </div>
- <div class="col-md-8 content">
- <?php
- //the loop starts here//
- if( have_posts() ) while( have_posts() ) { the_post(); ?>
- <div <?php post_class(); ?>>
- <h2><?php the_title(); ?></h2>
- <?php the_content(); ?>
- </div>
- <?php }
- //the loop ends here//
- ?>
- </div>
- </div>
- <div class="row">
- <div class="col-md-4">
- <div class="left inner-col">
- <div class="top-block">
- <h2>Quick Links</h2>
- <h4>Become a member</h4>
- <div>It's easy and quick</div>
- <a class="join-now" href="#">Join Now</a>
- <i class="demo-icon icon-angle-right"></i>
- </div>
- <div class="sep"></div>
- <div class="bottom-block">
- <h4>Make a Payment</h4>
- <div>Secure and Simple</div>
- <a href="#">Join Now</a>
- <i class="demo-icon icon-angle-right"></i>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="middle inner-col">
- <?php
- $args = array( 'post_type' => 'calendar',
- 'posts_per_page' => 2,
- 'orderby' => 'date',
- 'order' => 'DESC', );
- $calendars = query_posts( $args );
- if ($calendars) :
- ?>
- <div class="top-block">
- <h2>Calendar</h2>
- <i class="demo-icon icon-calendar-empty"></i><?php echo date('M jS h:ia', $calendars[0]->post_date); ?><br/>
- <b><?php echo $calendars[0]->post_title; ?></b><br/>
- <?php if (strlen($calendars[0]->post_content) >= 100) {
- echo substr($calendars[0]->post_content, 0, 97) . '...';
- } else {
- echo $calendars[0]->post_content;
- } ?>
- </div>
- <div class="sep"></div>
- <div class="bottom-block">
- <i class="demo-icon icon-calendar-empty"></i><?php echo date('M jS h:ia', $calendars[1]->post_date); ?><br/>
- <b><?php echo $calendars[1]->post_title; ?></b><br/>
- <?php if (strlen($calendars[1]->post_content) >= 100) {
- echo substr($calendars[1]->post_content, 0, 97) . '...';
- } else {
- echo $calendars[1]->post_content;
- } ?>
- </div>
- <!--a class="all-event" href="#">All Events</a-->
- <?php endif;?>
- </div>
- </div>
- <div class="col-md-4">
- <div class="right inner-col">
- <?php
- $args=array(
- 'posts_per_page' => 2,
- 'orderby' => 'date',
- 'order' => 'DESC',
- );
- $posts=get_posts($args);
- if ($posts):
- ?>
- <div class="top-block">
- <h2>News</h2>
- <b><?php echo $posts[0]->post_title;?></b><br/>
- <?php if (strlen($posts[0]->post_content) >= 100) {
- echo substr($posts[0]->post_content, 0, 97) . '...';
- } else {
- echo $posts[0]->post_content;
- } ?>
- <a href="<?php echo esc_url(get_permalink($posts[0]->ID)); ?>">Full Story</a>
- </div>
- <div class="sep"></div>
- <div class="bottom-block">
- <b><?php echo $posts[1]->post_title;?></b><br/>
- <?php if (strlen($posts[1]->post_content) >= 100) {
- echo substr($posts[1]->post_content, 0, 97) . '...';
- } else {
- echo $posts[1]->post_content;
- } ?>
- <a href="<?php echo esc_url(get_permalink($posts[1]->ID)); ?>">Full Story</a>
- </div>
- <!--a class="all-event" href="#">All Articles</a-->
- <?php endif;?>
- </div>
- </div>
- </div>
- <div class="row member">
- <div class="col-md-12">
- <h2>A Proud member of</h2>
- <div class="logo"></div>
- <a href="#">View Welcome Letter </a>
- </div>
- </div>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment