have_comments() ? esc_html__( 'Add a review', 'alagu' ) : sprintf( esc_html__( 'Be the first to review %s', 'alagu' ), '“'.get_the_title().'”' ),
/* translators: %s is product title */
'title_reply_to' => esc_html__( 'Leave a Reply to %s', 'alagu' ),
'title_reply_before' => '',
'comment_notes_after' => '',
'fields' => array(
'author' => '
',
'email' => '
',
),
'label_submit' => esc_html__( 'Submit', 'alagu' ),
'logged_in_as' => '',
'comment_field' => '',
);
$account_page_url = wc_get_page_permalink( 'myaccount' );
if ( $account_page_url ) {
/* translators: %s opening and closing link tags respectively */
$comment_form['must_log_in'] = '
' . sprintf( esc_html__( 'You must be %slogged in%S to post a review.', 'alagu' ), '', '' ) . '
';
}
if ( wc_review_ratings_enabled() ) {
$comment_form['comment_field'] = '
';
}
$comment_form['comment_field'] .= '
';
} else {
$commenter = wp_get_current_commenter();
$comment_form = array(
/* translators: %s is product title */
'title_reply' => have_comments() ? esc_html__( 'Add a review', 'alagu' ) : sprintf( esc_html__( 'Be the first to review %s', 'alagu' ), '“'.get_the_title().'”' ),
/* translators: %s is product title */
'title_reply_to' => esc_html__( 'Leave a Reply to %s', 'alagu' ),
'title_reply_before' => '',
'comment_notes_after' => '',
'fields' => array(
'author' => '
',
'email' => '
',
),
'label_submit' => esc_html__( 'Submit', 'alagu' ),
'logged_in_as' => '',
'comment_field' => '',
);
$account_page_url = wc_get_page_permalink( 'myaccount' );
if ( $account_page_url ) {
/* translators: %s opening and closing link tags respectively */
$comment_form['must_log_in'] = '
' . sprintf( esc_html__( 'You must be %slogged in%S to post a review.', 'alagu' ), '', '' ) . '
';
}
if ( wc_review_ratings_enabled() ) {
$comment_form['comment_field'] = '
';
}
$comment_form['comment_field'] .= '
';
}
comment_form( apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) );
?>
get_review_count(); if ( $count && wc_review_ratings_enabled() ) { /* translators: 1: reviews count 2: product name */ $reviews_title = sprintf( esc_html( _n( '%1$s review for %2$s', '%1$s reviews for %2$s', $count, 'alagu' ) ), esc_html( $count ), '' . get_the_title() . '' ); echo apply_filters( 'woocommerce_reviews_title', $reviews_title, $count, $product ); // WPCS: XSS ok. } else { esc_html_e( 'Reviews', 'alagu' ); } ?>
'woocommerce_comments' ) ) ); ?>
1 && get_option( 'page_comments' ) ) : echo ''; endif; ?>