芝麻web文件管理V1.00
';
}
}
/**
* Comment layout adjustments
*
* @since 1.2.7
* @return void
*/
public function comment_layout_adjustments() {
// Bail early if it is the WooCommerce product page, as on the WooCommerce product page reviews are shown in tabs.
if ( class_exists( 'WooCommerce' ) && 'product' === get_post_type() ) {
return;
}
$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();
}