front-page.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php get_header();?>
  2. <div id="content" class="site-content">
  3. <div class="container">
  4. <div class="row">
  5. <section id="primary" class="content-area col-sm-12 col-lg-5">
  6. <div id="main" class="site-main" role="main">
  7. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <div class="entry-content">
  10. <?php the_content(); ?>
  11. </div>
  12. </article>
  13. <?php endwhile; ?>
  14. </div>
  15. </section>
  16. <section id="secondary" class="content-area col-sm-12 col-lg-6 offset-lg-1">
  17. <header class="entry-header">
  18. <h2 class="entry-title">Get Involved</h2>
  19. <?php $post = get_post(7); $output = apply_filters( 'the_content', $post->post_content ); echo $output; ?>
  20. </header>
  21. <h2 class="entry-title mt-5">Hospice Stores</h2>
  22. <div class="row no-gutters">
  23. <?php $upload_dir = wp_upload_dir(); ?>
  24. <img src="<?php echo $upload_dir['baseurl']; ?>/2017/02/Hospice-Store-ribbon-cutting-2015-website-1-scaled.jpg">
  25. <div class="col-sm-12 col-lg-6">
  26. <h5><a href="">Greenwood</a></h5>
  27. <p class="small">
  28. 864-229-9393<br />
  29. 217 North Creek Blvd<br />
  30. Greenwood, SC 29649</p>
  31. </div>
  32. <div class="col-sm-12 col-lg-6">
  33. <h5><a href="">Abbeville</a></h5>
  34. <p class="small">
  35. 864-366-0237<br />
  36. 811 West Greenwood Street<br />
  37. Abbeville, SC 29620</p>
  38. </div>
  39. <a href="" class="btn btn-outline-secondary">Learn More</a>
  40. </div>
  41. <header class="entry-header">
  42. <h2 class="entry-title mt-5">News</h2>
  43. </header>
  44. <div class="">
  45. <?php $mostrecentposts = new WP_Query();
  46. $mostrecentposts = get_posts('numberposts=1');
  47. foreach ($mostrecentposts as $post) : setup_postdata($post); ?>
  48. <div class="row no-gutters">
  49. <div class="col-md-12">
  50. <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
  51. <div class="image-wrapper float-left pr-3">
  52. <?php the_post_thumbnail('thumbnail', array('class' => 'rounded')); ?>
  53. </div>
  54. <div class="pull-right">
  55. <?php the_excerpt(); ?>
  56. </div>
  57. </div>
  58. </div>
  59. <?php endforeach;wp_reset_query();?>
  60. </div>
  61. <hr>
  62. <div class="">
  63. <?php $recentposts = get_posts(array('numberposts'=>5,'offset'=>1)); foreach ($recentposts as $post) : setup_postdata($post); ?>
  64. <li style="color:#777;list-style:none;"><?php echo get_the_date('m/d/y'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  65. <?php endforeach; ?>
  66. </div>
  67. </section>
  68. </div>
  69. </div>
  70. </div>
  71. <?php get_footer();?>