/** * 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. * * This function is used to initialize the framework in the various * template files. It pulls in all the basic, necessary components * like Header/Footer, the basic markup structure, and hooks. * * @since 1.3 */ function genesis() { get_header(); genesis_before_content_sidebar_wrap(); ?> <div id="content-sidebar-wrap"> <?php genesis_before_content(); ?> <div id="content" class="hfeed"> <?php genesis_before_loop(); genesis_loop(); genesis_after_loop(); ?> </div><!-- end #content --> <?php genesis_after_content(); ?> </div><!-- end #content-sidebar-wrap --> <?php genesis_after_content_sidebar_wrap(); get_footer(); }
if (!dynamic_sidebar('Homepage')) { ?> <div class="widget"> <h4><?php _e("Homepage", 'genesis'); ?> </h4> <div class="wrap"> <p><?php _e("This is a widgeted area which is called Homepage. It is using the Genesis - Featured Posts widget to display what you see on the Going Green child theme demo site. To get started, log into your WordPress dashboard, and then go to the Appearance > Widgets screen. There you can drag the Genesis - Featured Posts widget into the Homepage widget area on the right hand side. To get the image to display, simply upload an image through the media uploader on the edit page screen and publish your page. The Featured Posts widget will know to display the post image as long as you select that option in the widget interface.", 'genesis'); ?> </p> </div><!-- end .wrap --> </div><!-- end .widget --> <?php } ?> </div><!-- end #featured-home --> </div><!-- end #content --> <?php genesis_after_content(); ?> </div><!-- end #content-sidebar-wrap --> <?php genesis_after_content_sidebar_wrap(); ?> <?php get_footer();