Created
July 25, 2012 20:34
-
-
Save anointed/3178507 to your computer and use it in GitHub Desktop.
layout main content container
This file contains hidden or 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 tumble_layout_main_content_container($args) { | |
$defaults = array ( | |
'before' => '<div id="' . tumble_get_context() . '" class="' .tumble_get_current_page_layout(). '" >', | |
'after' => '</div>', | |
); | |
$args = wp_parse_args( $args, $defaults ); | |
extract( $args, EXTR_SKIP ); | |
echo $before; | |
do_action( 'tumble_before_main_content' ); | |
do_action( 'tumble_open_main_content' ); | |
do_action( 'tumble_close_main_content' ); | |
do_action( 'tumble_after_main_content' ); | |
echo $after; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment