This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="indexCard indexCard-alt"> | |
<div class="indexCard__image"> | |
<img src="http://lorempixel.com/360/360/sports/"> | |
</div> | |
<div class="indexCard__bottom"> | |
<h3 class="h3 indexCard__heading"><a href="#">Heading</a></h3> | |
<div class="indexCard__content"> | |
<p>iberal Expensing Limits Can Create Major...</p> | |
<a href="#" class="indexCard__link">Read Article</a> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- PLACE DIRECTLY UNDER HEADER. MAKE SURE TO SET THE --> | |
<div class="intro intro-color section-block"> | |
<div class="intro__inner"> | |
<h2 class="intro__heading h1">Learning Center</h2> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="section-block"> | |
<div class="section-block__inner"> | |
STUFF HERE | |
</div> | |
</section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HEADER --> | |
<div class="fixedTop-space"></div> | |
<div id="contentAnchor" class="contentAnchor"></div> | |
<div id="mainContent" class="mainContent"> | |
<section class="fullWidth grid-row"> | |
<div class="fullWidth__left fullWidth__item nb-8"> | |
<div class="fullWidth__content section-block"> | |
<div class="intro intro-alt"> | |
<h2 class="intro__heading h1"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Functions file | |
function is_old_post($days = 5) { | |
$days = (int) $days; | |
$offset = $days*60*60*24; | |
if ( get_post_time() < date('U') - $offset ) | |
return true; | |
return false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function ($) { | |
$(function () { | |
var onClass = "on"; | |
var showClass = "show"; | |
var labelOn = "labelOn"; | |
$(".js-floatInput").bind("checkval", function () { | |
var label = $(this).closest('.formGroup ').find(".js-floatLabel"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global $ai1ec_registry; | |
$events = new WP_Query( 'post_type=ai1ec_event'); | |
if ($events->have_posts()): | |
while($events->have_posts()): | |
$events->the_post(); | |
$event = new Ai1ec_Event( $ai1ec_registry ); | |
$event->initialize_from_id( $post-> ID ); | |
$event_start = $event->get( 'start' )->format('Y-m-d')); | |
$event_title = $event->get('post')->post_title; | |
$event_name = $event->get('post')->post_name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SMOOTH SCROLLING | |
$("a").on('click', function(event) { | |
// Make sure this.hash has a value before overriding default behavior | |
if (this.hash !== "") { | |
// Prevent default anchor click behavior | |
event.preventDefault(); | |
// Store hash | |
var hash = this.hash; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.navMain{ | |
list-style:none; | |
padding:0; | |
display: table; | |
width: 100%; | |
>li{ | |
border:1px solid red; | |
display: table-cell; | |
text-align: center; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wpc_order_post_type_archive( $query ) { | |
if($query->is_main_query() && is_post_type_archive('success-stories' )){ | |
$query->set('posts_per_page', -1); | |
$query->set('orderby', 'menu_order title'); | |
$query->set('order', 'ASC'); | |
} | |
} | |
add_action( 'pre_get_posts', 'wpc_order_post_type_archive' ); |