front-page.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. <img src="https://macs.local/hp/wp-content/uploads/2017/02/Hospice-Store-ribbon-cutting-2015-website-1-scaled.jpg">
  24. <div class="col-sm-12 col-lg-6">
  25. <h5><a href="">Greenwood</a></h5>
  26. <p class="small">
  27. 864-229-9393<br />
  28. 217 North Creek Blvd<br />
  29. Greenwood, SC 29649</p>
  30. </div>
  31. <div class="col-sm-12 col-lg-6">
  32. <h5><a href="">Abbeville</a></h5>
  33. <p class="small">
  34. 864-366-0237<br />
  35. 811 West Greenwood Street<br />
  36. Abbeville, SC 29620</p>
  37. </div>
  38. <a href="" class="btn btn-outline-secondary">Learn More</a>
  39. </div>
  40. <header class="entry-header">
  41. <h2 class="entry-title mt-5">News</h2>
  42. </header>
  43. <div class="">
  44. <?php $mostrecentposts = new WP_Query();
  45. $mostrecentposts = get_posts('numberposts=1');
  46. foreach ($mostrecentposts as $post) : setup_postdata($post); ?>
  47. <div class="row no-gutters">
  48. <div class="col-md-12">
  49. <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
  50. <div class="image-wrapper float-left pr-3">
  51. <?php the_post_thumbnail('thumbnail', array('class' => 'rounded')); ?>
  52. </div>
  53. <div class="pull-right">
  54. <?php the_excerpt(); ?>
  55. </div>
  56. </div>
  57. </div>
  58. <?php endforeach;wp_reset_query();?>
  59. </div>
  60. <hr>
  61. <div class="">
  62. <?php $recentposts = get_posts(array('numberposts'=>5,'offset'=>1)); foreach ($recentposts as $post) : setup_postdata($post); ?>
  63. <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>
  64. <?php endforeach; ?>
  65. </div>
  66. </section>
  67. </div>
  68. </div>
  69. </div>
  70. <?php get_footer();?>