* @package Componentz * @subpackage Componentz Theme * @since 1.0.0 */ namespace Componentz; // Do not allow direct access. if( ! defined( 'ABSPATH' ) ) { exit; } /* * If the current post is protected by a password and * the visitor has not yet entered the password we will * return early without loading the comments. */ if ( post_password_required() ) { return; } if ( comments_open() ) { $wrapper_class = 'comments-area'; } else { $wrapper_class = 'comments-area comments-closed'; } $discussion = componentz_get_discussion_data(); if ( $discussion->responses > 0 ) { $subwrapper_class = 'comments-title-wrap'; } else { $subwrapper_class = 'comments-title-wrap no-responses'; } ?>