public
Last active

Genesis Layout Extras plugin - list of Hooks, Filters, Constansts and helper functions for customizations; since plugin version 2.0.0 // Plugin page at WordPress.org: http://wordpress.org/plugins/genesis-layout-extras/

  • Download Gist
gle-functions.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
<?php
/** Do NOT include the opening php tag! */
 
 
/**
* Adding additional custom layouts to the layout select drop-down for plugin
* "Genesis Layout Extras".
*
* NOTE: This requires the Genesis Framework, plus the plugin "Genesis Layout
* Extras" (available via: http://wordpress.org/plugins/genesis-layout-extras/)
*
* @author David Decker - DECKERWEB.de
* @link http://genesisthemes.de/en/wp-plugins/genesis-layout-extras/
* @link http://deckerweb.de/twitter
*/
if ( defined( 'GLE_SETTINGS_FIELD' ) && function_exists( 'genesis_get_layout' ) ) {
 
add_action( 'gle_layouts_drop_down', 'custom_gle_select_layout_option', 10, 1 );
/**
* Helper function to add additional <option> markup to select drop-down.
*
* @uses ddw_gle_layout_select_option()
*/
function custom_gle_select_layout_option( $gle_layout_option ) {
 
ddw_gle_layout_select_option(
'my-custom-layout-type-id',
__( 'My Custom Layout Name', 'your-text-domain' ),
'#990000',
$gle_layout_option
);
 
} // function
 
} // if
 
 
/** Genesis Layout Extras: Remove Export/ Import Info meta box */
define( 'GLE_NO_EXPORT_IMPORT_INFO', TRUE );
 
 
/** Genesis Layout Extras: Remove HNCS layout option */
define( 'GLE_NO_HNCS_LAYOUT_OPTION', TRUE );

Note: The above codes work with plugin version 2.0.0 or higher!

Extended explanation can be found at the plugin's page "FAQ" section:
http://wordpress.org/plugins/genesis-layout-extras/faq/

Download "Genesis Layout Extras" plugin at WordPress.org:
http://wordpress.org/plugins/genesis-layout-extras/

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.