/** * Returns an instance of this class. */ public static function get_instance() { if (null == self::$instance) { self::$instance = new MSDSectionedPage(); } return self::$instance; }
add_action('wp_print_footer_scripts', array('MSDSectionedPage', 'sectioned_page_footer_js')); genesis(); } else { //not genesis. Do things kind of the old fashioend way. get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php // Start the loop. while (have_posts()) { the_post(); // Include the page content template. get_template_part('content', 'page'); MSDSectionedPage::sectioned_page_output(); // If comments are open or we have at least one comment, load up the comment template. if (comments_open() || get_comments_number()) { comments_template(); } // End the loop. } ?> </main><!-- .site-main --> </div><!-- .content-area --> <?php get_footer(); }