PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/stockphotos.kerihosting.com/wp-content/plugins/edd-reviews/templates/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/stockphotos.kerihosting.com/wp-content/plugins/edd-reviews/templates/reviews.php

<?php

/**
 * Reviews Template
 *
 * The template used to display the reviews on each download. This template is
 * extendable via filters and hooks but can be completely changed using the EDD
 * templating engine and placing a file called reviews.php in the edd_templates
 * directory in your theme folder.
 *
 * @package EDD_Reviews
 * @subpackage Templates
 * @copyright Copyright (c) 2013, Sunny Ratilal
 * @author Sunny Ratilal
 * @since 1.0
 */

?>

<?php defined( 'ABSPATH' ) or die(); ?>

<?php if ( comments_open() ) : ?>

	<div id="edd_reviews">

		<div id="comments" class="comments-area">

			<?php edd_reviews()->maybe_show_review_breakdown(); ?>

			<?php
			$total_reviews = edd_reviews()->count_reviews();
			$total_ratings = edd_reviews()->count_ratings();
			?>

			<?php if ( $total_reviews > 0 ) : ?>

				<?php $average_rating = number_format( $total_ratings / $total_reviews, 2 ); ?>

				 <?php edd_reviews()->reviews_title( $average_rating, $total_reviews ); ?>

			<?php else : ?>

				<?php edd_reviews()->reviews_title(); ?>

			<?php endif; ?>

			<?php if ( have_comments() ) : ?>

				<ol class="commentlist comment-list">
					<?php wp_list_comments( array( 'callback' => 'edd_reviews_callback' ) ); ?>
				</ol><!-- /.commentlist -->

				<?php if ( 1 > get_comment_pages_count() && get_option( 'page_comments' ) ) : ?>

				<div class="navigation edd-reviews-navigation">

					<div class="nav-previous edd-reviews-nav-prev"><?php previous_comments_link( sprintf( __( '%s&larr;%s Previous', 'edd-reviews' ), '<span class="meta-nav">', '</span>' ) ); ?></div>
					<div class="nav-next edd-reviews-nav-next"><?php next_comments_link( sprintf( __( 'Next %s&rarr;%s', 'edd-reviews' ), '<span class="meta-nav">', '</span>' ) ); ?></div>

				</div><!-- /.edd-reviews-navigation -->

				<?php endif; ?>

			<?php else : ?>

				<p><?php echo sprintf( apply_filters( 'edd_reviews_no_reviews_message', __( 'No reviews yet! Be the first to review this %s!', 'edd-reviews' ) ), edd_get_label_singular( true ) ); ?></p>

			<?php endif; ?>

			<?php edd_reviews()->reviews_form(); ?>

		</div><!-- /#comments -->

	</div><!-- /#edd_reviews -->

<?php endif; ?>