123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php get_header();?>
- <div id="content" class="site-content">
- <div class="container">
- <div class="row gx-5">
- <section id="primary" class="col-sm-12 col-lg-6">
- <?php if(is_front_page()): ?>
- <div class="container-fluid p-0 m-0">
- <?php if ( function_exists( 'soliloquy' ) ) { soliloquy( '3606' ); } ?>
- </div>
- <?php endif; ?>
- <div id="main" class="site-main" role="main">
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="entry-content">
- <?php the_content(); ?>
- </div>
- </article>
- <?php endwhile; ?>
- </div>
- </section>
- <section id="secondary" class="col-sm-12 col-lg-6 ms-auto">
- <?php $post = get_post(7); $output = apply_filters( 'the_content', $post->post_content ); echo $output; ?>
- <h2 class="entry-title mt-5">Hospice Stores</h2>
- <div class="row no-gutters">
- <?php $upload_dir = wp_upload_dir(); ?>
- <img src="<?php echo $upload_dir['baseurl']; ?>/2017/02/Hospice-Store-ribbon-cutting-2015-website-1-scaled.jpg">
- <div class="col-sm-12 col-lg-6">
- <h5><a href="">Greenwood</a></h5>
- <p class="small">
- 864-229-9393<br />
- 217 North Creek Blvd<br />
- Greenwood, SC 29649</p>
- </div>
- <div class="col-sm-12 col-lg-6">
- <h5><a href="">Abbeville</a></h5>
- <p class="small">
- 864-366-0237<br />
- 811 West Greenwood Street<br />
- Abbeville, SC 29620</p>
- </div>
- <a href="" class="btn btn-outline-secondary">Learn More</a>
- </div>
- <header class="entry-header">
- <h2 class="entry-title mt-5">News</h2>
- </header>
- <div class="">
- <?php $mostrecentposts = new WP_Query();
- $mostrecentposts = get_posts('numberposts=1');
- foreach ($mostrecentposts as $post) : setup_postdata($post); ?>
- <div class="row">
- <header class="entry-header">
- <h3 class="front-page m-0"><?php the_title( '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a>' );?></h3>
- <div class="entry-meta mt-0">
- <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>
- </div>
- </header>
- <div class="front-page-entry-content">
- <div class="post-thumbnail">
- <?php echo the_post_thumbnail(array(180,180), ['class' => 'p-2 float-end']); ?>
- </div>
- <?php the_excerpt();?>
- </div>
- </div>
- <?php endforeach;wp_reset_query();?>
- </div>
- <div class="">
- <?php $recentposts = get_posts(array('numberposts'=>5,'offset'=>1)); foreach ($recentposts as $post) : setup_postdata($post); ?>
- <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>
- <?php endforeach; ?>
- </div>
- </section>
- </div>
- </div>
- </div>
- <?php get_footer();?>
|