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 ParentFunctions { | |
function setup() { | |
// Cleverness goes here | |
} | |
/* Giddyup */ | |
public function ParentFunctions() { | |
// Actions and filters: | |
add_action( 'after_setup_theme', array( &$this, 'setup' ) ); |
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 ChildFunctions extends ParentFunctions { | |
function setup() { | |
// No need to declare another name for this function, simple rewrite it as necessary | |
} | |
/* Giddyup */ | |
public function ChildFunctions() { | |
parent::ParentFunctions(); | |
} | |
} |
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 product_category_filter() { | |
global $typenow; | |
if ($typenow == 'product') : | |
$args = array( | |
'show_option_all' => "Show All Categories", | |
'taxonomy' => 'product_category', | |
'name' => 'product_category', | |
'value_field' => 'slug', | |
'selected' => !empty( $_GET['product_category'] ) ? $_GET['product_category'] : null | |
); |
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
/* | |
// For archives of taxonomies that allow them, this function will organize posts by | |
// the subterm of a term. | |
// var int $term_id: Not necessary for term archives, but for tax archives or other | |
// uses, this is the term you want to work with. | |
// var str $loop: Use this to specify a loop-$loop.php file. Defaults to the post type. | |
// var str $post_type: The correct post type to query for posts. | |
// var str $tax: The taxonomy to use. | |
// | |
*/ |
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
// Icon Fonts: | |
foreach( ReactiveCustomizer::$icon_fonts as $slug=>$name ) : | |
$wp_customize->add_setting( 'hn_icon_fonts_' . $slug , array( | |
'default' => '0' | |
) ); | |
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'icon_fonts_' . $slug, array( | |
'label' => __( $name, 'hn-reactive' ), | |
'section' => 'icon_fonts', | |
'settings' => 'hn_icon_fonts_' . $slug, | |
'type' => 'checkbox' |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
#outlook a { | |
padding:0; | |
} | |
body{ | |
width:100% !important; |
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
public function hn_insert_image( $html, $id, $caption, $title, $align, $url ) { | |
$html5 = "<figure id='post-$id media-$id' class='align-$align'>"; | |
$html5 .= "<img src='$url' alt='$title' />"; | |
$html5 .= "<figcaption class="wp-caption">$caption</figcaption>"; | |
$html5 .= "</figure>"; | |
return $html5; | |
} | |
add_filter( 'image_send_to_editor', array( &$this, 'hn_insert_image' ), 10, 9 ); |
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
alias foundation5='/usr/local/bin/foundation' | |
alias foundation6='/usr/bin/foundation' |
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
[wp-tabbitygroup title="This is the Title for the layout. Leave this blank to not use it"] | |
[wp-tabbity title="Tab One"]Contents of Tab One[/wp-tabbity] | |
[wp-tabbity title="Tab Two"]Contents of Tab Two[/wp-tabbity] | |
[wp-tabbity title="Tab Three"]Contents of Tab Three[/wp-tabbity] | |
[/wp-tabbitygroup] |
OlderNewer