Skip to content

Instantly share code, notes, and snippets.

View seandogg's full-sized avatar

Sean Orfila seandogg

View GitHub Profile
@seandogg
seandogg / gist:ae0c448535c3053b93cb
Created December 28, 2014 19:51
swatch.liquid CB
{% comment %}
Set the extension of your color files below. Use 'png', 'jpeg', 'jpg' or 'gif'.
{% endcomment %}
{% assign file_extension = 'png' %}
{% if swatch == blank %}
<div class="swatch error">
<p>You must include the snippet swatch.liquid with the name of a product option.</p>
<p>Use: <code>{% raw %}{% include 'swatch' with 'name of your product option here' %}{% endraw %}</code></p>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
/**********************************************
* Ink v1.0.5 - Copyright 2013 ZURB Inc *
**********************************************/
<?php
/**
* Template Name: Home Page
* Description: Loads some custom code for the homepage.
* @package Blink
*/
get_header(); ?>
<?php
/**
* @package Blink
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-grid-content">
<a href="<?php the_permalink(); ?>" class="item-link"></a>
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
<?php
/**
* Blink functions and definitions
*
* @package Blink
*/
/**
* The current version of the theme.
*
<?php //Posts Loop
$args=array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => get_option( 'posts_per_page' ),
'orderby' => 'menu_order',
'order' => 'ASC'
);
$blog_query = new WP_Query($args);
/*
Error: File to import not found or unreadable: util/util.
Load paths:
/Users/juan_pedro/Documents/Websites/www.highlandparkplace.dev/wp-content/themes/grizzlypoppy/stylesheets
/Users/juan_pedro/Documents/Websites/www.highlandparkplace.dev/bower_components/foundation/scss
/Users/juan_pedro/Documents/Websites/www.highlandparkplace.dev/bower_components/foundation-sites/scss
/Users/juan_pedro/Documents/Websites/www.highlandparkplace.dev/bower_components/foundation-sites
/Users/juan_pedro/Documents/Websites/www.highlandparkplace.dev/bower_components/motion-ui
Sass::Globbing::Importer
on line 11 of /Users/juan_pedro/Documents/Websites/www.highlandparkplace.dev/wp-content/themes/grizzlypoppy/stylesheets/foundation.scss
@seandogg
seandogg / frontend-experiments.html.twig
Created July 14, 2016 22:16
Frontend Scratch Paper
{# Frontend Experiments #}
<div class="row">
<div class="col-xs-12 text-center">
<canvas id="drawing"></canvas>
</div>
</div>
<div class="row">
{% if page.metafields.c_f.b1_image != blank %}
<!-- Horizontal Image-->
<div class="long">
{% if page.metafields.c_f.b1_image_link != blank %}<a href="{{ page.metafields.c_f.b1_image_link }}" alt="Shop This Look">{% endif %}
<img class="lazy" data-original="{{ page.metafields.c_f.b1_image }}" src="{{ 'Placeholder.png' | asset_url }}" alt="Shop This Look" />
{% if page.metafields.c_f.b1_image_link != blank %}
<div class="long-over">
<div class="long-double">
{% if page.metafields.c_f.b1_image_title != blank %}