have_comments() ? /* translators:straing */ __( 'Add a review', 'be-store' ) : sprintf( __( 'Be the first to review “%s”', 'be-store' ), get_the_title() ), 'title_reply_to' => /* translators:straing */ __( 'Leave a Reply to %s', 'be-store' ), 'title_reply_before' => '

', 'title_reply_after' => '

', 'comment_notes_after' => '', 'fields' => array( 'author' =>'
' . '*
', 'email' => '
' . '*
' ), 'label_submit' => __( 'Submit Review ', 'be-store' ), 'logged_in_as' => '', 'comment_field' => '', 'class_submit' => 'submit-review', 'submit_button' => '
' ); if ( $account_page_url = wc_get_page_permalink( 'myaccount' ) ) { $comment_form['must_log_in'] = '

' . sprintf( /* translators:straing */ __( 'You must be logged in to post a review.', 'be-store' ), esc_url( $account_page_url ) ) . '

'; } if ( get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) { $comment_form['comment_field'] = '
'; } $comment_form['comment_field'] .='
'; return $comment_form; } endif; if( ! function_exists( 'bestore_read_more_link' ) ) : /** * Adds custom Read More. * */ function bestore_read_more_link( $more ) { return sprintf( '', get_permalink( get_the_ID() ), esc_html__( 'Continue Reading', 'be-store' ) ); } add_filter( 'the_content_more_link', 'bestore_read_more_link' ); endif; if( ! function_exists( 'bestore_excerpt_more' ) ) : /** * Filter the "read more" excerpt string link to the post. * * @param string $more "Read more" excerpt string. * @return string (Maybe) modified "read more" excerpt string. */ function bestore_excerpt_more( $more ) { if ( ! is_single() ) { $more = sprintf( '', get_permalink( get_the_ID() ), esc_html__( 'Continue Reading', 'be-store' ) ); } return $more; } add_filter( 'excerpt_more', 'bestore_excerpt_more' ); endif; if( ! function_exists( 'bestore_bellow_title_woocomerce_element_added' ) ) : /** * @return html. */ function bestore_bellow_title_woocomerce_element_added( ) { if( function_exists('is_product') && is_product() ){ if( function_exists('woocommerce_template_single_price') ) woocommerce_template_single_price(); if( function_exists('woocommerce_template_single_price') ) woocommerce_template_single_rating(); } } add_action( 'be_page_more_element_add', 'bestore_bellow_title_woocomerce_element_added' ); endif;