Skip to content

Instantly share code, notes, and snippets.

<?php if ($features == 'option1') {
get_template_part( 'inc/blocks/blog-layout', '1' );
} elseif ($features == 'option2') {
get_template_part( 'inc/blocks/blog-layout', '2' );
} else {
get_template_part( 'inc/blocks/blog-layout', '3' );
}
?>
<?php
/**
* Shortcode handler
*/
$classes = array( 'my-second-element' );
$classes[] = $features;
?>
<?php
/**
* Element Controls
*/
return array(
@DannyOutlaw
DannyOutlaw / oto
Last active January 19, 2016 16:28
OTO Test
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
@DannyOutlaw
DannyOutlaw / css_resources.md
Last active August 29, 2015 14:11 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides