loop_markup( true ); } /** * Template part loop * * @param boolean $is_page Loop outputs different content action for content page and default content. * if is_page is set to true - do_action( 'astra_page_template_parts_content' ); is added * if is_page is false - do_action( 'astra_template_parts_content' ); is added. * @since 1.2.7 * @return void */ public function loop_markup( $is_page = false ) { ?>
'; } } /** * Add closing wrapper div for 'ast-row' after Astra template part. * * @since 1.2.7 * @return void */ public function astra_templat_part_wrap_close() { if ( is_archive() || is_search() || is_home() ) { echo ''; } } /** * Comment layout adjustments * * @since 1.2.7 * @return void */ public function comment_layout_adjustments() { $comments_section_placement = astra_get_option( 'comments-box-placement', '' ); if ( '' !== $comments_section_placement ) { remove_action( 'astra_page_template_parts_content', array( $this, 'template_parts_comments' ), 15 ); remove_action( 'astra_template_parts_content', array( $this, 'template_parts_comments' ), 15 ); if ( 'outside' === $comments_section_placement ) { // Pop out of the content. add_action( 'astra_content_after', array( $this, 'template_parts_comments' ), 15 ); } else { // Insert it in the content. add_action( 'astra_entry_bottom', array( $this, 'template_parts_comments' ), 12 ); } } } } /** * Initialize class object with 'get_instance()' method */ Astra_Loop::get_instance(); endif;