front-page.php 3.1 KB

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