Skip to content

Instantly share code, notes, and snippets.

View deckerweb's full-sized avatar
🏠
Working from home

David Decker deckerweb

🏠
Working from home
View GitHub Profile
@deckerweb
deckerweb / gist:2392882
Created April 15, 2012 13:46
Easy Digital Downloads Toolbar plugin v1.0+ -- filters and constants for customizing and branding
<?php
// Action hooks:
add_action( 'eddtb_custom_main_items', 'eddtb_add_custom_main_items' );
/**
* Easy Digital Downloads Toolbar: Add Custom Main Items
*/
function eddtb_add_custom_main_items() {
// Your custom stuff here, you might only use the WP Toolbar / Admin Bar API here!
@deckerweb
deckerweb / bbpress-search-widget.php
Created April 15, 2012 20:03
bbPress Search Widget plugin v1.1+ -- filters and constants for customizing and branding
<?php
/** bbPress Search Widget: Remove Search Label */
define( 'BBPSW_SEARCH_LABEL_DISPLAY', false );
add_filter( 'bbpsw_filter_label_string', 'custom_bbpsw_label_string' );
/**
* bbPress Search Widget: Custom Search Label
*/
@deckerweb
deckerweb / gwnf-helper-functions.php
Last active October 3, 2015 14:58
Genesis Widgetized Not Found & 404 plugin v1.0.0 or higher -- helper functions, plus filters for customizing and branding
<?php
/** Do NOT include the opening php tag */
// since plugin version v1.1.0:
/** Genesis Widgetized NotFound: 404 Error Page - Full-Width Layout */
add_action( 'genesis_meta', '__gwnf_layout_404_full_width' );
/** Genesis Widgetized NotFound: Search not found Page - Full-Width Layout */
@deckerweb
deckerweb / gist:2481017
Created April 24, 2012 16:03
Genesis Framework: Change Sidebar Names
<?php
add_action( 'widgets_init', 'ddw_change_sidebar_names', 20 );
/**
* Genesis Framework: Change Sidebar Names
*
* @author David Decker - DECKERWEB
* @link http://genesisthemes.de/en/
* @link http://twitter.com/deckerweb
*/
@deckerweb
deckerweb / gwfoot-helper-functions.php
Created April 26, 2012 08:12
Genesis Widgetized Footer plugin v1.0+ -- helper functions, plus filters for customizing and branding
<?php
// since plugin version v1.0:
/** Genesis Widgetized Footer: Reposition Disclaimer Widget to the Very Bottom */
add_action( 'genesis_before', '__gwfoot_footer_disclaimer_bottom' );
add_filter( 'gwfoot_filter_footer_one_widget_title', 'gwfoot_custom_footer_one_widget_title' );
/**
* Genesis Widgetized Footer: Custom 1st Footer Area Widget Title
@deckerweb
deckerweb / gist:2503953
Created April 26, 2012 22:58
WPML Plugin: Conditional Switching Languages - helper code
<?php
/**
* WPML: Conditional Switching Languages
*
* @author David Decker - DECKERWEB
* @link http://twitter.com/deckerweb
*
* @global mixed $sitepress
*/
@deckerweb
deckerweb / xotb-tweaks.php
Last active October 3, 2015 20:18
Xtreme One Toolbar plugin version 1.1.0 or higher -- filters and constants for customizing and branding
<?php
/** Do NOT include the opening php tag */
// since plugin version v1.1.0:
// Hooks:
add_action( 'xotb_custom_group_items', 'xotb_custom_additional_group_item' );
/**
@deckerweb
deckerweb / gist:2597157
Created May 4, 2012 19:25
Toolbar Buddy plugin v1.2+ -- hooks, filters and constants for customizing and branding
<?php
// since plugin version v1.2:
// Hooks:
add_action( 'tbb_custom_iresource_group_items', 'tbb_custom_additional_iresource_group_item' );
/**
* Toolbar Buddy: Custom iResource Group Items
*
@deckerweb
deckerweb / gist:2597190
Created May 4, 2012 19:30
Genesis Dashboard News plugin v1.0.0+ -- filters for customizing and branding
<?php
// since plugin version v1.0.0:
// Filters:
/** RSS cache lifetime */
add_filter( 'wp_feed_cache_transient_lifetime', create_function( '$a', 'return 300;' ) );
@deckerweb
deckerweb / gist:2627648
Created May 7, 2012 13:04
Genesis Social Profiles Menu Plugin -- test CSS rules
#home-widget-area ul.menu li.email-prl-s16 a,
#home-widget-area ul.menu li.facebook-prl-s16 a,
#home-widget-area ul.menu li.feed-prl-s16 a,
#home-widget-area ul.menu li.flickr-prl-s16 a,
#home-widget-area ul.menu li.github-prl-s16 a,
#home-widget-area ul.menu li.google-prl-s16 a,
#home-widget-area ul.menu li.google2-prl-s16 a,
#home-widget-area ul.menu li.linkedin-prl-s16 a,
#home-widget-area ul.menu li.pinterest-prl-s16 a,
#home-widget-area ul.menu li.slideshare-prl-s16 a,