front-page.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php get_header();?>
  2. <div id="content" class="site-content">
  3. <div class="container">
  4. <div class="row gx-5">
  5. <section id="primary" class="col-sm-12 col-lg-6">
  6. <?php if(is_front_page()): ?>
  7. <div class="container-fluid p-0 m-0">
  8. <?php if ( function_exists( 'soliloquy' ) ) { soliloquy( '3606' ); } ?>
  9. </div>
  10. <?php endif; ?>
  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="col-sm-12 col-lg-6 ms-auto">
  22. <?php $post = get_post(7); $output = apply_filters( 'the_content', $post->post_content ); echo $output; ?>
  23. <h2 class="entry-title mt-5">Hospice Stores</h2>
  24. <div class="row no-gutters">
  25. <?php $upload_dir = wp_upload_dir(); ?>
  26. <img src="<?php echo $upload_dir['baseurl']; ?>/2017/02/Hospice-Store-ribbon-cutting-2015-website-1-scaled.jpg">
  27. <div class="col-sm-12 col-lg-6">
  28. <h5><a href="">Greenwood</a></h5>
  29. <p class="small">
  30. 864-229-9393<br />
  31. 217 North Creek Blvd<br />
  32. Greenwood, SC 29649</p>
  33. </div>
  34. <div class="col-sm-12 col-lg-6">
  35. <h5><a href="">Abbeville</a></h5>
  36. <p class="small">
  37. 864-366-0237<br />
  38. 811 West Greenwood Street<br />
  39. Abbeville, SC 29620</p>
  40. </div>
  41. <a href="" class="btn btn-outline-secondary">Learn More</a>
  42. </div>
  43. <header class="entry-header">
  44. <h2 class="entry-title mt-5">News</h2>
  45. </header>
  46. <div class="">
  47. <?php $mostrecentposts = new WP_Query();
  48. $mostrecentposts = get_posts('numberposts=1');
  49. foreach ($mostrecentposts as $post) : setup_postdata($post); ?>
  50. <div class="row">
  51. <header class="entry-header">
  52. <h3 class="front-page m-0"><?php the_title( '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a>' );?></h3>
  53. <div class="entry-meta mt-0">
  54. <time datetime="<?php echo get_the_date('c'); ?>" itemprop="datePublished"><i class="bi bi-calendar-date m2-1"></i> <?php echo get_the_date(); ?></time>
  55. </div>
  56. </header>
  57. <div class="front-page-entry-content">
  58. <div class="post-thumbnail">
  59. <?php echo the_post_thumbnail(array(180,180), ['class' => 'p-2 float-end']); ?>
  60. </div>
  61. <?php the_excerpt();?>
  62. </div>
  63. </div>
  64. <?php endforeach;wp_reset_query();?>
  65. </div>
  66. <div class="">
  67. <?php $recentposts = get_posts(array('numberposts'=>5,'offset'=>1)); foreach ($recentposts as $post) : setup_postdata($post); ?>
  68. <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>
  69. <?php endforeach; ?>
  70. </div>
  71. </section>
  72. </div>
  73. </div>
  74. </div>
  75. <?php get_footer();?>