Last active
March 21, 2018 04:45
-
-
Save braddalton/514e9c988a5759e36597 to your computer and use it in GitHub Desktop.
genesis(); function https://wpsites.net/wordpress-themes/the-genesis-function/
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 | |
/** | |
* Genesis Framework. | |
* | |
* @package Genesis\Framework | |
* @author StudioPress | |
* @license GPL-2.0+ | |
* @link http://my.studiopress.com/themes/genesis/ | |
*/ | |
/** | |
* Used to initialize the framework in the various template files. | |
* | |
* It pulls in all the necessary components like header and footer, the basic | |
* markup structure, and hooks. | |
* | |
* @since 1.3.0 | |
*/ | |
function genesis() { | |
get_header(); | |
do_action( 'genesis_before_content_sidebar_wrap' ); | |
genesis_markup( array( | |
'html5' => '<div %s>', | |
'xhtml' => '<div id="content-sidebar-wrap">', | |
'context' => 'content-sidebar-wrap', | |
) ); | |
do_action( 'genesis_before_content' ); | |
genesis_markup( array( | |
'html5' => '<main %s>', | |
'xhtml' => '<div id="content" class="hfeed">', | |
'context' => 'content', | |
) ); | |
do_action( 'genesis_before_loop' ); | |
do_action( 'genesis_loop' ); | |
do_action( 'genesis_after_loop' ); | |
genesis_markup( array( | |
'html5' => '</main>', //* end .content | |
'xhtml' => '</div>', //* end #content | |
) ); | |
do_action( 'genesis_after_content' ); | |
echo '</div>'; //* end .content-sidebar-wrap or #content-sidebar-wrap | |
do_action( 'genesis_after_content_sidebar_wrap' ); | |
get_footer(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment