/** * Standard loop, meant to be executed without modification in most circumstances where content needs to be displayed. * * It outputs basic wrapping HTML, but uses hooks to do most of its content output like title, content, post information * and comments. * * The action hooks called are: * * - `genesis_before_entry` * - `genesis_entry_header` * - `genesis_before_entry_content` * - `genesis_entry_content` * - `genesis_after_entry_content` * - `genesis_entry_footer` * - `genesis_after_endwhile` * - `genesis_loop_else` (only if no posts were found) * * @since 1.1.0 * * @uses genesis_html5() Check for HTML5 support. * @uses genesis_legacy_loop() XHTML loop. * @uses genesis_attr() Contextual attributes. * * @return null Return early after legacy loop if not supporting HTML5. */ function genesis_standard_loop() { //* Use old loop hook structure if not supporting HTML5 if (!genesis_html5()) { genesis_legacy_loop(); return; } if (have_posts()) { do_action('genesis_before_while'); while (have_posts()) { the_post(); do_action('genesis_before_entry'); printf('<article %s>', genesis_attr('entry')); do_action('genesis_entry_header'); do_action('genesis_before_entry_content'); printf('<div %s>', genesis_attr('entry-content')); do_action('genesis_entry_content'); echo '</div>'; do_action('genesis_after_entry_content'); do_action('genesis_entry_footer'); echo '</article>'; do_action('genesis_after_entry'); } //* end of one post do_action('genesis_after_endwhile'); } else { //* if no posts exist do_action('genesis_loop_else'); } //* end loop }
function lpop_ma_archive_loop() { //* Use old loop hook structure if not supporting HTML5 if (!genesis_html5()) { genesis_legacy_loop(); return; } do_action('genesis_before_entry'); printf('<article %s>', genesis_attr('entry')); do_action('genesis_entry_header'); do_action('genesis_before_entry_content'); printf('<div %s>', genesis_attr('entry-content')); lpop_miniaudit_reports(); // Make this part of an entry content echo '</div>'; //* end .entry-content do_action('genesis_after_entry_content'); do_action('genesis_entry_footer'); echo '</article>'; do_action('genesis_after_entry'); }