PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
service-finder
<?php /***************************************************************************** * * copyright(c) - aonetheme.com - Service Finder Team * More Info: http://aonetheme.com/ * Coder: Service Finder Team * Email: contact@aonetheme.com * ******************************************************************************/ global $current_user, $service_finder_options; $post_type = get_post_type(get_the_id()); if ( post_password_required() ) { return; } ?> <div id='mycontent'> <div id='contentInner'> <div id="comments" class="comments-area"> <?php if ( have_comments() ) : ?> <h2 class="comments-title"> <?php if($post_type == 'sf_comment_rating'){ printf( _nx( 'One review on “%2$s”', '%1$s reviews on “%2$s”', get_comments_number(), 'review title', 'service-finder' ), number_format_i18n( get_comments_number() ), get_the_title() ); }else{ printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'service-finder' ), number_format_i18n( get_comments_number() ), get_the_title() ); } ?> </h2> <?php service_finder_comment_nav(); ?> <ol class="comment-list"> <?php if($post_type == 'sf_comment_rating'){ wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 56, 'max_depth' => 1, ) ); }else{ wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 56, ) ); } ?> </ol> <!-- .comment-list --> <?php service_finder_comment_nav(); ?> <?php endif; ?> <?php // If comments are closed and there are comments, let's leave a little note, shall we? if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <p class="no-comments"> <?php esc_html_e( 'Comments are closed.', 'service-finder' ); ?> </p> <?php endif; ?> <?php if($post_type == 'sf_comment_rating'){ if(is_user_logged_in() && $post_type == 'sf_comment_rating'){ $flag = 0; $providersreview = (!empty($service_finder_options['providers-review'])) ? $service_finder_options['providers-review'] : false; if($providersreview){ if(service_finder_getUserRole($current_user->ID) == 'Customer' || service_finder_getUserRole($current_user->ID) == 'Provider'){ $flag = 1; } }else{ if(service_finder_getUserRole($current_user->ID) == 'Customer'){ $flag = 1; } } if($flag == 1){ $usercomment = get_comments(array('user_id' => $current_user->ID, 'post_id' => get_the_id()) ); if($usercomment) { echo '<div class="alert alert-info">'.esc_html__('You have already posted your review for this profile', 'service-finder').'.</div>'; } else { comment_form(array('title_reply' => esc_html__( 'Leave a Review', 'service-finder' ))); } } } }else{ comment_form(); } ?> </div> </div> </div> <!-- .comments-area -->
[+]
..
[-] 404.php
[edit]
[-] style.css
[edit]
[-] content-category.php
[edit]
[+]
wp-job-manager-alerts
[-] content-none.php
[edit]
[-] page.php
[edit]
[-] single-sf_articles.php
[edit]
[+]
inc
[-] category.php
[edit]
[-] search.php
[edit]
[-] sidebar.php
[edit]
[-] README.md
[edit]
[-] screenshot.png
[edit]
[+]
plugins
[-] archive.php
[edit]
[-] comments.php
[edit]
[-] single.php
[edit]
[+]
wc-vendors
[-] single-sf_comment_rating.php
[edit]
[-] content-author.php
[edit]
[-] archive-sf_answers.php
[edit]
[-] index.php
[edit]
[-] archive-sf_questions.php
[edit]
[+]
lib
[-] header.php
[edit]
[-] styles.php
[edit]
[+]
languages
[+]
job_manager
[-] footer.php
[edit]
[+]
templates
[-] readme.txt
[edit]
[-] functions.php
[edit]
[-] content-search.php
[edit]
[+]
frontend
[+]
Demo
[-] favicon.ico
[edit]
[-] author.php
[edit]
[-] single-sf_questions.php
[edit]
[-] single-sf_answers.php
[edit]
[-] single-job_listing.php
[edit]