Skip to content

Instantly share code, notes, and snippets.

@spigotdesign
Created April 28, 2017 18:31
Show Gist options
  • Save spigotdesign/8c4c1b8265e233ddce004f65942cc8e2 to your computer and use it in GitHub Desktop.
Save spigotdesign/8c4c1b8265e233ddce004f65942cc8e2 to your computer and use it in GitHub Desktop.
<?php
/**
* Template Name: Dealer Locator
*
* This is the template used for displaying the home page.
*
* @package windsorone
* @subpackage Template
*/
get_header(); ?>
<?php if ( have_posts() ) : // Checks if any posts were found. ?>
<?php while ( have_posts() ) : // Begins the loop through found posts. ?>
<?php the_post(); // Loads the post data. ?>
<main class="content" itemprop="mainContentOfPage">
<div class="page-content">
<?php //the_content(); ?>
<div class="bh-sl-container">
<div class="bh-sl-form-container">
<form id="bh-sl-user-location" method="post" action="#">
<div class="form-input">
<label for="bh-sl-address">Enter Address or Zip Code:</label>
<input type="text" id="bh-sl-address" name="bh-sl-address" />
<button id="bh-sl-submit" type="submit">Submit</button>
</div>
</form>
</div>
<div class="bh-sl-filters-container">
<ul id="category-filters-container" class="bh-sl-filters">
<li><h3>Categories</h3></li>
<li>
<label>
<input type="radio" name="bl_sl_loc_cat" value="Distributor"> Distributor
</label>
</li>
<li>
<label>
<input type="radio" name="bl_sl_loc_cat" value="Dealer"> Dealer
</label>
</li>
</ul>
</div>
<div id="bh-sl-map-container" class="bh-sl-map-container">
<div id="bh-sl-map" class="bh-sl-map"></div>
<div class="bh-sl-loc-list">
<ul class="list"></ul>
</div>
</div>
</div>
</div>
<?php endwhile; // End found posts loop. ?>
<?php endif; // End check for posts. ?>
<?php get_footer(); // Loads the footer.php template. ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment