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( 'acommerce_page_template_parts_content' ); is added
* if is_page is false - do_action( 'acommerce_template_parts_content' ); is added.
* @since 1.0.0
* @return void
*/
public function loop_markup( $is_page = false ) {
?>
acommerce_related_post();
}
//is comment part
$this->template_parts_comments();
else:
if ( true == $is_page ) {
do_action( 'acommerce_page_template_parts_content' );
} else {
do_action( 'acommerce_template_parts_content' );
}
endif;
?>
term_id );
endforeach;
endif;
$acommerce_current_post_type = get_post_type( $acommerce_post_id );
$acommerce_query_args = array(
'category__in' => $acommerce_cat_ids,
'post_type' => $acommerce_current_post_type,
'post_not_in' => array( $acommerce_post_id ),
'posts_per_page' => $acommerce_related_post_count
);
//related cats post
$acommerce_related_cats_post = new WP_Query( $acommerce_query_args );
if($acommerce_related_cats_post->have_posts()):
?>
have_posts()): $acommerce_related_cats_post->the_post(); ?>
';
}
}
/**
* Add closing wrapper div for 'acommerce-row' after aCommerce template part.
*
* @since 1.0.0
* @return void
*/
public function acommerce_templat_part_wrap_close() {
if ( is_archive() || is_search() || is_home() ) {
echo '';
}
}
}
/**
* Initialize class object with 'get_instance()' method
*/
aCommerce_Loop::get_instance();
endif;