-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-sublanding-themed-simple.php
72 lines (52 loc) · 2.18 KB
/
page-sublanding-themed-simple.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* Template Name: Simple Themed Sub Landing
* Template Post Type: page
*
* @package WordPress
* @subpackage UWS Media
* @since 1.0.0
*/
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="header-banner simple-themed">
<div class="container">
<h1 class="banner-title"><?php the_title(); ?></h1>
<div class="banner-content">
<?php echo html_entity_decode( get_post_meta( get_the_ID(), 'banner_content' , true ) ); ?>
</div>
<div class="banner-search">
<input type="hidden" name="postGroupId" value="<?php echo get_post_meta( get_the_ID(), 'post_group_id' , true ) ?>" />
<input type="hidden" name="bloginfo" value="<?php echo get_bloginfo( 'url' ); ?>" />
<form class="row d-flex justify-content-center" role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div class="col-12 col-sm-12 col-md-6 autocomplete-search-wrapper">
<div class="input-group">
<input type="text" name="s" id="autoComplete" class="form-control autocomplete-search" placeholder="What can we help with?" autocomplete="off">
<button type="submit" class="search-btn">
<i class="bi bi-search" aria-hidden="true"></i>
<span class="screen-reader-text">What can we help with?</span>
</button>
</div>
</div>
</form>
</div>
</div>
</div>
<main class="container" role="main">
<section>
<?php if ( has_post_thumbnail() ) : ?>
<img src="<?php the_post_thumbnail_url(); ?>" alt="" />
<?php endif; ?>
<div class="entry-content-page">
<?php the_content(); ?>
</div>
<p class="published-date">Published on
<?php echo get_the_date( 'F d, Y' ) . ' at ' . get_the_date( 'g:i:s a T' ); ?>. Last modified on
<?php echo get_the_modified_time( 'F d, Y' ) . ' at ' . get_the_modified_time( 'g:i:s a T' ); ?></p>
</section>
<?php
endwhile;
wp_reset_query();
?>
</main>
<?php get_footer(); ?>