Skip to content

Instantly share code, notes, and snippets.

View stirlinghewitt's full-sized avatar

stirlinghewitt

View GitHub Profile
@stirlinghewitt
stirlinghewitt / Asset.txt
Created October 13, 2017 16:55
keep bootstrap dropdown open for hover tabs
<div class="col-xs-12">
<div class="row">
<div class="col-xs-12 col-sm-4 col-md-3">
<ul class="nav nav-pills nav-stacked sports-nav" role="tablist">
<li role="presentation" class="active"><a href="#tab-nfl" aria-controls="nfl" role="tab" data-toggle="pill" class="dd-keep">NFL</a></li>
<li role="presentation" ><a href="#tab-mlb" aria-controls="mlb" role="tab" data-toggle="pill" class="dd-keep">MLB</a></li>
<li role="presentation"><a href="#tab-nba" aria-controls="nba" role="tab" data-toggle="pill" class="dd-keep">NBA</a></li>
<li role="presentation"><a href="#tab-nhl" aria-controls="nhl" role="tab" data-toggle="pill" class="dd-keep">NHL</a></li>
<li role="presentation"><a href="#tab-soccer" aria-controls="soccer" role="tab" data-toggle="pill" class="dd-keep">MLS</a></li>
<li role="presentation"><a href="#tab-mma" aria-controls="mma" role="tab" data-toggle="pill" class="dd-keep">MMA/UF</a></li
@stirlinghewitt
stirlinghewitt / Asset.txt
Created October 13, 2017 16:33
keep bootstrap dropdown open for hover tabs
<div class="col-xs-12">
<div class="row">
<div class="col-xs-12 col-sm-4 col-md-3">
<ul class="nav nav-pills nav-stacked sports-nav" role="tablist">
<li role="presentation" class="active"><a href="#tab-nfl" aria-controls="nfl" role="tab" data-toggle="pill" class="dd-keep">NFL</a></li>
<li role="presentation" ><a href="#tab-mlb" aria-controls="mlb" role="tab" data-toggle="pill" class="dd-keep">MLB</a></li>
<li role="presentation"><a href="#tab-nba" aria-controls="nba" role="tab" data-toggle="pill" class="dd-keep">NBA</a></li>
<li role="presentation"><a href="#tab-nhl" aria-controls="nhl" role="tab" data-toggle="pill" class="dd-keep">NHL</a></li>
<li role="presentation"><a href="#tab-soccer" aria-controls="soccer" role="tab" data-toggle="pill" class="dd-keep">MLS</a></li>
<li role="presentation"><a href="#tab-mma" aria-controls="mma" role="tab" data-toggle="pill" class="dd-keep">MMA/UF</a></li
{atbslist id="6" assign=hec}
- You get the ID by looking at the url you are editing in the admin panel custom lists
<div class="lightOrangeBorder" id="rodeo">
{atbslist id="6" assign=hec}
<div class="listHeader">{$hec.0->ListName}</div>
<div class="clear"></div>
{foreach from=$hec key=k item=i name=i}
{if !$smarty.foreach.i.last}
@stirlinghewitt
stirlinghewitt / Fye nav Dropdown.js
Created February 26, 2016 21:23
Fye Nav Dropdown js
$(document).ready(function(){
$( 'li.menuitem' ).hover( function(e){ var sm = $( this ).find( '.submenu' ); sm.show(); if( sm.offset().left + sm.width() > $( window ).width() ) { sm.css( 'right','0px' ); } },function(e){ $( this ).find( '.submenu' ).hide(); } );
});
//new code
$(function() {
try {
$( 'li.menuitem' ).hover( function(e){ var sm = $( this ).find( '.submenu' ); sm.show(); if( sm.offset().left + sm.width() > $( window ).width() ) { sm.css( 'right','0px' ); } },function(e){ $( this ).find( '.submenu' ).hide(); } );
}
@stirlinghewitt
stirlinghewitt / fye nav CSS with floating header code.txt
Created February 26, 2016 21:23
fye nav CSS with floating header code
/* @group Nav */
#navBack {
background: rgb(13,156,65); /* Old browsers */
background: -moz-linear-gradient(top, rgba(13,156,65,1) 0%, rgba(0,119,53,1) 60%, rgba(0,79,39,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(13,156,65,1)), color-stop(60%,rgba(0,119,53,1)), color-stop(100%,rgba(0,79,39,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(13,156,65,1) 0%,rgba(0,119,53,1) 60%,rgba(0,79,39,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(13,156,65,1) 0%,rgba(0,119,53,1) 60%,rgba(0,79,39,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(13,156,65,1) 0%,rgba(0,119,53,1) 60%,rgba(0,79,39,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(13,156,65,1) 0%,rgba(0,119,53,1) 60%,rgba(0,79,39,1) 100%); /* W3C */
-pie-background: linear-gradient(top, rgba(13,156,65,1) 0%,rgba(0,119,53,1) 60%,rgba(0,79,39,1) 100%); /* IE10+ */
@stirlinghewitt
stirlinghewitt / Fye Nav HTML-Smarty.txt
Created February 26, 2016 21:23
Fye Nav HTML/Smarty
<div id="nav">
<ul id="menu">
<li class="menuitem" id="homeLink"><a class="menulink" href="/">HOME</a></li>
{atbslist list="Main Menu" assign=hec}
{section name=id loop=$hec}
<li {if $smarty.server.REDIRECT_URL == $hec[id].URL || $smarty.server.REQUEST_URI == $hec[id].URL} class="menuitem current"{else} class="menuitem" {/if}>
<a class="menulink" href="{$hec[id].URL}">{$hec[id].Name}</a>
{if !empty($hec[id].Description)} <div class="submenu" id="subitem{$smarty.section.id.index}">{$hec[id].Description}</div> {/if}
</li>
{/section}
@stirlinghewitt
stirlinghewitt / Asset.txt
Created February 19, 2016 23:35
top performer geoip list
{atbs_geoip lookup=location location=geoip}
{atbs_geoip lookup=events ParentCategoryID=2 max=100 location=geoip assign=geolist}
<div id="geoip">
<table style="width:100%;" cellspacing="1" cellpadding="1" id="geoip">
{foreach from=$geolist key=k item=geo}
{atbs_top_for_category ParentCategoryID=2 limit=200 assign=toplist}
{foreach from=$toplist key=k item=top}
{if $geo.Event == $top.Performer }
<tr class="{cycle values="geoodd,geoeven"}">
<td class="geoEvent"><a href="/{$geo.URL}">{$geo.Event} Tickets</a></td>
<span id="siteseal"><script type="text/javascript" src="https://seal.starfieldtech.com/getSeal?sealID=adbDK1h6FliicTeoAu5mYonDQXBLKowRnhDnyZzoj2IkoNINuhOo5QleMp3q"></script></span>
@stirlinghewitt
stirlinghewitt / Asset.txt
Created July 31, 2015 15:23
instructions for go live
ADMIN PANEL MESSAGE
-------------------
Hi %filltext:name=Name%,
I have created your sites control panel access for your login
UNTIL your site is live, you can login to your control panel at:
%filltext:name=sitename%/admin
ONCE your site is live, remove the dev domain part .atbspreview so you will login at:
@stirlinghewitt
stirlinghewitt / Asset.txt
Created May 22, 2015 17:01
Static Event Lists for TN and TE
ON TE IT IS {load_events City="New York"}
{load_events RecurseCategoryID=
Sports = 1, Concerts=54, Theatre=68
Braves vs Mets:
{atbs_static_event_list Keywords='Braves,Mets' include_js=true}
Braves vs Mets only at Turner Field:
{atbs_static_event_list Keywords='Braves,Mets' Venue='Turner Field' include_js=true}
Braves home games: