98 lines
2.0 KiB
PHP
98 lines
2.0 KiB
PHP
<?php
|
|
/**
|
|
* Genesis Framework.
|
|
*
|
|
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
|
|
* Please do all modifications in the form of a child theme.
|
|
*
|
|
* @package Genesis\Framework
|
|
* @author StudioPress
|
|
* @license GPL-2.0+
|
|
* @link https://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();
|
|
|
|
/**
|
|
* Fires after the header, before the content sidebar wrap.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
do_action( 'genesis_before_content_sidebar_wrap' );
|
|
|
|
genesis_markup( array(
|
|
'open' => '<div %s>',
|
|
'context' => 'content-sidebar-wrap',
|
|
) );
|
|
|
|
/**
|
|
* Fires before the content, after the content sidebar wrap opening markup.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
do_action( 'genesis_before_content' );
|
|
|
|
genesis_markup( array(
|
|
'open' => '<main %s>',
|
|
'context' => 'content',
|
|
) );
|
|
|
|
/**
|
|
* Fires before the loop hook, after the main content opening markup.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
do_action( 'genesis_before_loop' );
|
|
|
|
/**
|
|
* Fires to display the loop contents.
|
|
*
|
|
* @since 1.1.0
|
|
*/
|
|
do_action( 'genesis_loop' );
|
|
|
|
/**
|
|
* Fires after the loop hook, before the main content closing markup.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
do_action( 'genesis_after_loop' );
|
|
|
|
genesis_markup( array(
|
|
'close' => '</main>', // End .content.
|
|
'context' => 'content',
|
|
) );
|
|
|
|
/**
|
|
* Fires after the content, before the main content sidebar wrap closing markup.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
do_action( 'genesis_after_content' );
|
|
|
|
genesis_markup( array(
|
|
'close' => '</div>',
|
|
'context' => 'content-sidebar-wrap',
|
|
) );
|
|
|
|
/**
|
|
* Fires before the footer, after the content sidebar wrap.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
do_action( 'genesis_after_content_sidebar_wrap' );
|
|
|
|
get_footer();
|
|
|
|
}
|