%k25u25%fgd5n!
<?php
add_action( 'windoor_after_main_css', 'comment_style' );
function comment_style() {
if ( (class_exists( 'WooCommerce' ) && is_product()) || ( is_singular('post') || is_singular('page') || is_attachment() ) && get_option( 'thread_comments' ) ) {
wp_enqueue_style( 'windoor-comments', get_theme_file_uri('/modules/comments/assets/css/comments.css'), false, WINDOOR_THEME_VERSION, 'all');
}
}
if( ! function_exists('include_comments_template') ) {
function include_comments_template() {
echo '<section class="commententries rounded">';
comments_template();
echo '</section>';
}
add_action( 'windoor_after_single_page_content_wrap', 'include_comments_template' );
}
if( ! function_exists( 'load_comments_template' ) ) {
function load_comments_template() {
windoor_template_part( 'comments', 'templates/comments' );
}
add_action( 'windoor_comments_template', 'load_comments_template' );
}