This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.content-sidebar-wrap { | |
position: relative; | |
float: left; | |
width: 100%; | |
margin-bottom: 50px; | |
z-index: 99; /* needed for Safari 7 */ | |
} | |
.content:after, | |
.sidebar-primary:after { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LXB_AF_Checkbox extends WP_Customize_Control { | |
// I'm not sure where this gets used but it's in the codex. | |
public $type = 'checkbox_group'; | |
/** | |
* This method must be named, exactly, 'render_content', as that's | |
* expected by the WP core cusotmization class, which it extends. It | |
* outputs the HTML for our custom input. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Requirements: sed, grep, curl, pkill | |
# User configuration | |
LOCAL_INSTALL="/usr/lib/sublime-text-2" # Must be user-writable | |
REPO="dev" # "dev" for dev releases, or "2" for beta releases | |
TARGET_BUILD="Linux 32 bit" # can be one of "Windows", "Windows 64 bit", "OS X", "Linux 32 bit", "Linux 64 bit" | |
# Check if sublime text is running |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: MP6 Color Scheme | |
*/ | |
function kd_mp6_add_colors() { | |
// Check that MP6 exists and that our new function exists | |
if ( ! defined( 'MP6' ) || ! function_exists( 'mp6_add_admin_colors' ) ) | |
return; | |
mp6_add_admin_colors( 'sunset', array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Post Meta Box view/controller class. | |
* | |
* Extends from a form object base class. | |
* | |
* Creates a meta box. Fields can be related to the meta box, but | |
* all business logic lives within the field object. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ===================================== */ | |
/* Add This to Wordpress's /wp-content/yourtheme/functions.php file */ | |
define('MAGENTO_ROOT', '/Volumes/Storage/www/heartandsun/store/'); | |
define('MAGENTO_LOADER', MAGENTO_ROOT.'app/Mage.php'); | |
if (!class_exists('Mage')) { | |
require_once(MAGENTO_LOADER); | |
umask(0); | |
Mage::app("default"); | |
}; | |
/* ===================================== */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Task: attach_heads | |
* Description: Set the heads for all themes declared in themes.json | |
*/ | |
module.exports = function(grunt) { | |
'use strict'; | |
var fs = require('fs'); | |
var path = require('path'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @see: https://github.com/bueltge/Wordpress-Theme-Customizer-Custom-Controls | |
*/ | |
add_action( 'customize_register', 'fb_customize_register' ); | |
function fb_customize_register( $wp_customize ) { | |
require_once( 'class-taxonomy_dropdown_custom_control.php' ); | |
$wp_customize->add_section( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_woocommerce_loaded_function() { | |
global $woocommerce; | |
// remove WC generator tag from <head> | |
remove_action( 'wp_head', array( $woocommerce, 'generator' ) ); | |
} | |
// called only after woocommerce has finished loading | |
add_action( 'woocommerce_init', 'my_woocommerce_loaded_function' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The radio image customize control extends the WP_Customize_Control class. This class allows | |
* developers to create a list of image radio inputs. | |
* | |
* Note, the `$choices` array is slightly different than normal and should be in the form of | |
* `array( | |
* $value => array( 'url' => $image_url, 'label' => $text_label ), | |
* $value => array( 'url' => $image_url, 'label' => $text_label ), | |
* )` |
OlderNewer