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 | |
/** | |
* Main plugin file. This plugin for Genesis Theme Framework allows modifying of default layouts for | |
* homepage, singular, archive, attachment, search, 404 and even bbPress 2.x pages via Genesis theme settings. | |
* | |
* @package GenesisLayoutExtras | |
* @author David Decker | |
* @origin Based on the work of @WPChildThemes for original plugin called "Genesis Layout Manager" (C) 2010 | |
* | |
* Plugin Name: Genesis Layout Extras |
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 | |
add_filter( 'wpspn_previous_post_link', 'custom_wpspn_previous_link' ); | |
/** | |
* WP Single Post Navigation: Add custom filters for "previous post link" | |
*/ | |
function custom_wpspn_previous_link() { | |
$args = array ( | |
'format' => '%link', // Change link format |
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 | |
add_filter( 'wpspn_next_post_link', 'custom_wpspn_next_link' ); | |
/** | |
* WP Single Post Navigation: Add custom filters for "next post link" | |
*/ | |
function custom_wpspn_next_link() { | |
$args = array ( | |
'format' => '%link', // Change link format |
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 | |
add_filter( 'gspn_previous_post_link', 'custom_gspn_previous_link' ); | |
/** | |
* Genesis Single Post Navigation: Add custom filters for "previous post link" | |
*/ | |
function custom_gspn_previous_link() { | |
$args = array ( | |
'format' => '%link', // Change link format (default: %link) |
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 | |
add_filter( 'gspn_next_post_link', 'custom_gspn_next_link' ); | |
/** | |
* Genesis Single Post Navigation: Add custom filters for "next post link" | |
*/ | |
function custom_gspn_next_link() { | |
$args = array ( | |
'format' => '%link', // Change link format (default: %link) |
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 | |
/** | |
* WP Single Post Navigation: Reverse link direction | |
*/ | |
define( 'WPSPN_REVERSE_LINK_DIRECTION', 'reverse_direction' ); | |
/** | |
* For other snippets see this Gist: |
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 | |
add_action( 'wp_before_admin_bar_render', 'ddw_bptb_admin_only' ); | |
/** | |
* BuddyPress Toolbar for Admins only | |
* | |
* NOTE: Should work fine for plugin versions 1.0 and 1.1 | |
* | |
* @author David Decker - DECKERWEB | |
* @link http://genesisthemes.de/en/ |
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 | |
/** Do NOT include the opening php tag */ | |
// Hooks: | |
add_action( 'wcaba_custom_group_items', 'wcaba_custom_additional_group_item' ); | |
/** | |
* BuddyPress Toolbar: Custom Resource Group Items | |
* |
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 | |
/** Capability filters & helper functions */ | |
add_filter( 'tstb_filter_capability_all', '__tstb_admin_only' ); | |
add_filter( 'tstb_filter_capability_all', '__tstb_role_editor' ); | |
add_filter( 'tstb_filter_capability_all', '__tstb_cap_switch_themes' ); | |
add_filter( 'tstb_filter_capability_all', '__tstb_cap_manage_options' ); | |
add_filter( 'tstb_filter_capability_all', '__tstb_cap_install_plugins' ); | |
add_filter( 'tstb_filter_capability_all', 'custom_tstb_capability_all' ); |
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 | |
// since plugin version v1.0: | |
/** Capability filters & helper functions */ | |
add_filter( 'gtbe_filter_capability_all', '__gtbe_admin_only' ); | |
add_filter( 'gtbe_filter_capability_all', '__gtbe_role_editor' ); | |
add_filter( 'gtbe_filter_capability_all', '__gtbe_cap_edit_theme_options' ); | |
add_filter( 'gtbe_filter_capability_all', '__gtbe_cap_manage_options' ); | |
add_filter( 'gtbe_filter_capability_all', '__gtbe_cap_install_plugins' ); |
OlderNewer