Skip to content

Instantly share code, notes, and snippets.

@JuanRangel
JuanRangel / style.scss
Created May 16, 2015 02:31
Main SCSS stylesheet
/*
Theme Name: THEME NAME
Theme URI: VSELLIS
Description: VSELLIS shoreline description.
Version: 1.0
Author: VSELLIS
Author URI: vsellis.com
Template: genesis
*/
@JuanRangel
JuanRangel / boiler
Created April 19, 2015 19:34
JavaScript Boilerplate
(function () {
'use strict';
}());
@JuanRangel
JuanRangel / helper-functions.php
Last active August 29, 2015 14:17
Get all terms from a taxonomy and use a select options
function get_tax_options( $taxonomy, $field ) {
$terms = get_terms( $taxonomy );
$current = ( isset($_POST[$field]) ) ? $_POST[$field] : '';
$options = array();
$options[] = '<option value="">-- ' . ucwords( $taxonomy ) .' --</option>';
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
foreach ( $terms as $term ) {
$options[] = sprintf( '<option value="%s" %s>%s</option>', $term->slug ,selected( $current, $term->slug ), $term->name );
}
$color-dribbble: #ea4c89;
$color-facebook: #3b5998;
$color-flickr: #ff0084;
$color-googleplus: #dd4b39;
$color-instagram: #517fa4;
$color-linkedin: #007bb6;
$color-pinterest: #cb2027;
$color-tumblr: #32506d;
$color-twitter: #00aced;
$color-vimeo: #1ab7ea;