Skip to content

Instantly share code, notes, and snippets.

View Firestorm-Graphics's full-sized avatar

Firestorm Graphics Firestorm-Graphics

View GitHub Profile
@Firestorm-Graphics
Firestorm-Graphics / layout-group-radio
Created February 26, 2012 10:04
layout radio function
// This sets up the layouts and styles selected from the devins options panel (old version)
if (!function_exists('genevai7framework_wp_head')) {
function genevai7framework_wp_head() {
global $data;
// Layouts
$layout = $data['layout'];
@Firestorm-Graphics
Firestorm-Graphics / wp-alchemy-group-radio
Created February 26, 2012 10:07
group-radio-wp-alchemy
// from sidebar-meta.php
<?php $sidebar_mb = array(
'default.css',
'2c-l-fixed.css',
'2c-r-fixed.css',
'1col-fixed.css'
);
?>
@Firestorm-Graphics
Firestorm-Graphics / EmptyWidget.php
Created May 14, 2012 19:14 — forked from jonathonbyrdziak/CustomWidgetFile.php
Plugin code to create a single widget in wordpress.
<?php
/**
* @package RedRokk
* @version 1.0.0
*
* Plugin Name: Empty Widget
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Empty_Widget keyword to rebrand this class for your needs.
* Author: RedRokk Interactive Media
* Version: 1.0.0
* Author URI: http://www.redrokk.com
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@Firestorm-Graphics
Firestorm-Graphics / nice tabs
Created June 5, 2012 16:34
example nice tabs foundation
<dl class="tabs contained">
<dd><a href="#simpleContained1" class=""> title 1 </a></dd>
<dd><a href="#simpleContained2" class="active"> A long title 2 </a></dd>
<dd><a href="#simpleContained3" class=""> title 3 </a></dd>
<dd><a href="#simpleContained4" class=""> title 4 </a></dd>
</dl>
<ul class="tabs-content contained">
<li class="" id="simpleContained1Tab"> tabcontent 1 </li>
<li class="active" id="simpleContained2Tab"> tabcontent 2 &#8211; This is an example of a content contained tab set </li>
<li class="" id="simpleContained3Tab"> tabcontent 3 </li>
@Firestorm-Graphics
Firestorm-Graphics / EmptyWidget.php
Created June 8, 2012 01:22 — forked from jonathonbyrdziak/CustomWidgetFile.php
Plugin code to create a single widget in wordpress.
<?php
/**
* @package RedRokk
* @version 1.0.0
*
* Plugin Name: Empty Widget
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Empty_Widget keyword to rebrand this class for your needs.
* Author: RedRokk Interactive Media
* Version: 1.0.0
* Author URI: http://www.redrokk.com
@Firestorm-Graphics
Firestorm-Graphics / functions.options.php (smof)
Last active December 1, 2015 11:51
Dynamic sidebars for use with ( custom metaboxes & fields for wordpress, https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress) along with smof options panel or options far,work by devin - Allows you to select how many automatically generated sidebars you want & select the sidebar of your choice per page from a metabox (cmb meta…
/* Author: Dan Beaven
* Company: Firestorm Graphics
* Web: http://firestorm-graphics.com
*/
* Released under the GPL license
* http://www.opensource.org/licenses/gpl-license.php
*
* This is an add-on for WordPress
* http://wordpress.org/
*
@Firestorm-Graphics
Firestorm-Graphics / sidebar_select.php
Created June 11, 2012 21:53 — forked from c3mdigital/sidebar_select.php
Sidebar Select Meta Box for cmb_meta_boxes
<?php
/**
* Adds a new sidebar_select field type to CMB Metaboxes
*
* Builds the select box from all registered sidebars.
* Use in themes to create per page or post layout options without having to create new templates
*
* @see https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress.git
*
*/
@Firestorm-Graphics
Firestorm-Graphics / gist:2959626
Created June 20, 2012 12:17 — forked from retlehs/gist:2785401
Display YouTube thumbnail from embed URL
<?php
/**
* Display a thumbnail from YouTube based off the embed code saved in the
* video post format metabox used by the CF Post Formats plugin
*
* @link https://github.com/crowdfavorite/wp-post-formats
* @link http://stackoverflow.com/a/6382259
*/
global $post;
@Firestorm-Graphics
Firestorm-Graphics / foundation wp link pages
Created July 6, 2012 01:24
custom wp_link_pages() for Foundation