Skip to content

Instantly share code, notes, and snippets.

@anointed
Created July 25, 2012 20:34
Show Gist options
  • Save anointed/3178507 to your computer and use it in GitHub Desktop.
Save anointed/3178507 to your computer and use it in GitHub Desktop.
layout main content container
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