Skip to content

Instantly share code, notes, and snippets.

<?php
/**
/* This loop gives us back
/*
*/
$args = array(
'post_type' => 'larkin_event'
) ;
$my_query = new WP_Query($args) ;
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays the front page
*
* @package larkin square
*/
get_header('frontpage'); ?>
/**
* There's no getting around it:
* post meta in wordpress is insanely difficult
* even with a plugin or a library, wordpress post meta simply sucks to work with
*
*/
add_action( 'add_meta_boxes', 'truckpost_meta' );
Query(document).ready(function() {
var mobileNavMenu = $("#mobile-nav-menu");
var mobileNavButton = $(".mobile-nav-button");
var uberMenu = $("#ubermenu");
var uberMenu2 = $("#ubermenu2");
(function(){
window.larkinApp = {
$('#main-menu-top a,ul.slicknav_nav li a').click(function(event){
event.stopPropagation();
event.preventDefault();
if($(this).hasClass('active'))
return;
$('#main-menu-top a').removeClass('active').css('border-bottom-color', 'none');
$(this).addClass('active');
module.exports = function (grunt){
grunt.initConfig({
compass : {
dist : {
options : {
cssDir : 'sw-inc/css',
sassDir : 'sass'
}
?php
/*****
/* provides the row at the top of the page, containing logo and navigation
/*
*/
?>
<div id="identity-and-navigation" class="container">
<div class="nrow">
<div class="sw-logo-container">
<img src="<?php echo get_template_directory_uri() . "/sw-inc/img/logo-footer-blerter.png" ?>"
<nav id="main-menu-top">
<ul id="menu-res" class="main-menu"><li id="menu-item-216" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-216"><a href="#home">Home</a></li>
<li id="menu-item-207" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-207"><a href="#blerter">Blerter</a></li>
<li id="menu-item-201" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-201"><a href="#our-team">Our Team</a></li>
<li id="menu-item-221" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-221"><a href="#contact">Contact</a></li>
<li id="menu-item-252" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-252"><a href="https://itunes.apple.com/nz/app/blerter/id630319471?mt=8#">Download Blerter</a></li>
</ul> </nav>
jQuery(window).load(function() {
if(document.getElementById("all_click"))
document.getElementById("all_click").click();
jQuery('.mask-color').fadeOut('slow');
});
jQuery(document).ready(function($) {
// MENU RESPONSIVE
$('#menu-res').slicknav({
<?php
/**
* Template Name: Blerter Register
*/
get_header();?>
<div class="page-content">
<?php if ( have_posts() ) { ?>
<div class="container">
<div class="nrow post">