Skip to content

Instantly share code, notes, and snippets.

@thinkingcap
Last active May 4, 2018 06:37
Show Gist options
  • Save thinkingcap/ef19e29994f591db872d5b4996bf3038 to your computer and use it in GitHub Desktop.
Save thinkingcap/ef19e29994f591db872d5b4996bf3038 to your computer and use it in GitHub Desktop.
<!-- Page title -->
<section id="page-title" style="background-image: url('[%asset_url type:'content' thumb:'thumb' id:'[@content_id@]' default:'/assets/images/default_category_header.jpg' /%]'); background-repeat: no-repeat">
<div>
<div class="page-title">
<h1>
Search EarthingOz
</h1>
</div>
</div>
</section>
<!-- end: Page title -->
<!-- Shop products -->
<section id="page-content" class="sidebar-right">
<div class="container">
<div class="row">
[%breadcrumb%]
[%PARAM *header%]
<div class="breadcrumb fancy">
<ul itemscope itemtype="http://schema.org/BreadcrumbList" aria-label="Breadcrumb">
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a href="[@config:home_url@]" itemprop="item" content="Home"><i class="fa fa-home"></i></a>
</li>
[%/PARAM%]
[%PARAM *body%]
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a href="[@url@]" itemprop="item"><span itemprop="name">[@name@]</span></a>
</li>
[%/PARAM%]
[%PARAM *body_current%]
<li class="active" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a href="[@url@]" itemprop="item"><span itemprop="name">[@name@]</span></a>
</li>
[%/PARAM%]
[%PARAM *footer%]
</ul>
</div>
[%/PARAM%]
[%/breadcrumb%]
<!-- Content-->
[%if [@content_description1@]%]
<div class="content col-md-12">
[@content_description1@]
</div>
[%/if%]
<div class="content col-md-12">
<form name="productsearch" method="get" action="[@config:CURRENT_URL@]">
<div class="row">
<div class="form-group col-md-12">
<label class="control-label">Keywords or Item Number</label>
<input type="hidden" name="rf" value="kw" />
<input class="form-control ajax_search" id="name_search" placeholder="Enter keywords" autocomplete="off" name="kw" value="[%NOHTML%][%FILTER ID:'keywords'/%][%/NOHTML%]" type="search" nsearch-init="yes" nsearch-id="1"/>
</div>
</div>
<div class="form-group" role="group">
<button type="submit" class="btn btn-lg" aria-label="Search site">
<i class="fa fa-search"></i>Search</button>
</div>
</form>
</div>
<!-- End Content -->
<div class="col-md-12">
<!--Product list-->
[%FILTER ID:'keywords' if:'ne' value:' '%]
[%THUMB_LIST type:'products' limit:'[@config:THUMB_LIMIT@]'%]
[%PARAM template%][%VIEWBY type:'products' default:'list'%][%/VIEWBY%][%/PARAM%]
[%PARAM *header%]
<div class="shop">
<div class="grid-layout grid-3-columns" data-item="grid-item">
[%/PARAM%]
[%PARAM *footer%]
</div>
[%IF [@total_results@] > [@config:thumb_limit@]%]
<div class="pagination pagination-simple">
<ul class="" aria-label="Pagination navigation">
[%paging limit:'3'%]
[%PARAM *previous_page%]<li><a href="[@URL@]" aria-label="Previous"><span aria-hidden="true"><i class="fa fa-angle-left"></i></span></a></li>[%/PARAM%]
[%PARAM *goback_pages%]<li><a href="[@URL@]" aria-label="Go to page [@PAGE@]">[@PAGE@]</a></li>[%/PARAM%]
[%PARAM *current_page%]<li class="active"><a href="#" aria-label="Current page">[@PAGE@]</a></li>[%/PARAM%]
[%PARAM *gonext_pages%]<li><a href="[@URL@]" aria-label="Go to page [@PAGE@]">[@PAGE@]</a></li>[%/PARAM%]
[%PARAM *next_page%]<li><a href="[@URL@]" aria-label="Next"><span aria-hidden="true"><i class="fa fa-angle-right"></i></span></a></li>[%/PARAM%]
[%/paging%]
</ul>
</div>
[%/IF%]
</div>
[%/PARAM%]
[%PARAM *ifempty%]
<div class="row">
<div class="col-xs-12">
<p>This search term is empty! Please try another category or use our search function to find what you are looking for. If you require further assistance please contact us.</p>
</div>
</div>
[%/PARAM%]
[%/THUMB_LIST%]
[%/FILTER%]
<!--End Product list-->
</div>
</div>
</div>
</section>
<!-- small panel strip -->
[%content_zone id:'category_features_bar'%][%end content_zone%]
<!-- end small panel strip-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment