Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created October 10, 2013 00:27
Show Gist options
  • Select an option

  • Save objectivehtml/6911007 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/6911007 to your computer and use it in GitHub Desktop.
{exp:stash:set}
{stash:page_title}Healthy Hamilton County{/stash:page_title}
{stash:page_class}homepage split-one-column{/stash:page_class}
{stash:page_quote}
{exp:entries:get url_title="homepage-quote"}
{page_content markdown="true"}
{/exp:entries:get}
{/stash:page_quote}
{stash:featured_content}
{if segment_1 == "thanks-for-subscribing"}
<h2 class="grand-tagline">Thanks for signing up for the private beta. Be sure to check your email and confirm your request.</h2>
{if:else}
<h2 class="grand-tagline">{sn_tagline}</h2>
<div class="featured-buttons text-center">
<a href="/events" class="button"><i class="icon-search"></i> Browse Events</a>
<a href="/dashboard" class="button"><i class="icon-user"></i> My Account</a>
</div>
{/if}
{/stash:featured_content}
{stash:page_content}
<div class="row">
<div class="eight columns">
{exp:entries:get channel="events" showtimes="true" end="never" status="Featured"}
<div class="featured-photo">
<a href="/events/details/{url_title}">{event_photo}</a>
<div class="featured-photo-banner"><h3><a href="/events/details/{url_title}">{title}</a></h3></div>
</div>
{/exp:entries:get}
<div class="panel radius digits-{exp:channel_search:char_count string='{exp:showtimes:total_entries channel="events" status="open|Featured"}' parse="inward"}">
<div class="row">
<div class="three mobile-two columns text-right"> <span class="vintage">{exp:showtimes:total_entries channel="events" status="open|Featured"}</span> </div>
<div class="three mobile-two columns"><span class="listed">Events Listed</span><a href="/events">Browse Events</a></div>
<div class="six columns">
<p class="search">
<label for="keywords">Find an event...</label>
</p>
<div class="row collapse">
{exp:channel_search:form id="Event Search" action="/events"}
<input type="text" name="q" id="keywords" placeholder="Keyword">
<button class="button block"><i class="icon-search"></i> Search</button>
{/exp:channel_search:form}
</div>
</div>
</div>
</div>
</div>
<div class="four columns">
<h3 class="no-top-margin">Welcome to Healthy Hamilton County</h3>
{exp:entries:get url_title="homepage"}
{page_content}
{/exp:entries:get}
<hr>
<h4>In the News</h4>
<ul class="icons news">
{exp:entries:get channel="blog" limit="4"}
<li><i class="icon-comment icon-large"></i> <span>{entry_date format="%m.%d.%Y"}</span> <a href="/news/article/{url_title}">{title}</a></li>
{/exp:entries:get}
</ul>
</div>
</div>
{/stash:page_content}
{stash:page_layout}
{stash:embed:layouts:split-one-column}
{/stash:page_layout}
{/exp:stash:set}
{stash:embed:structure:header}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment