PATH:
home
/
thecwrif
/
public_html
/
wp-content
/
plugins
/
jeg-elementor-kit
/
class
/
elements
/
views
<?php /** * Post Comment View Class * * @package jeg-elementor-kit * @author Jegtheme * @since 1.5.0 */ namespace Jeg\Elementor_Kit\Elements\Views; /** * Class Post_Comment_View * * @package Jeg\Elementor_Kit\Elements\Views */ class Post_Comment_View extends View_Abstract { /** * Build block content */ public function build_content() { add_filter( 'comment_form_default_fields', array( $this, 'custom_comment_form_fields' ) ); if ( jeg_is_editor_elementor() ) { add_filter( 'comments_open', function( $open, $post_id ) { return array( true, $post_id ); }, null, 2 ); } ob_start(); comments_template(); $content = ob_get_contents(); ob_end_clean(); return $this->render_wrapper( 'post-comment', $content ); } /** * Custom Comment Form Fields */ public function custom_comment_form_fields( $fields ) { if ( isset( $fields['cookies'] ) ) { $commenter = wp_get_current_commenter(); $consent = empty( $commenter['comment_author_email'] ) ? '' : 'checked'; $fields['cookies'] = sprintf( '<p class="comment-form-cookies-consent">%s %s</p>', sprintf( '<input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"%s />%s', $consent, sprintf( '<label for="wp-comment-cookies-consent"><span class="checkmark">%s</span></label>', $this->render_icon_element( $this->attribute['st_form_checkbox_icon'] ) ) ), sprintf( '<label for="wp-comment-cookies-consent">%s</label>', esc_html__( 'Save my name, email, and website in this browser for the next time I comment.', 'jeg-elementor-kit' ) ) ); } remove_filter( 'comment_form_default_fields', array( $this, 'custom_comment_form_fields' ) ); return $fields; } }
[-] class-view-abstract.php
[edit]
[-] class-post-terms-view.php
[edit]
[-] class-post-title-view.php
[edit]
[-] class-pie-chart-view.php
[edit]
[-] class-product-carousel-view.php
[edit]
[-] class-image-box-view.php
[edit]
[-] class-animated-text-view.php
[edit]
[-] class-feature-list-view.php
[edit]
[-] class-post-date-view.php
[edit]
[-] class-contact-form-7-view.php
[edit]
[-] class-post-featured-image-view.php
[edit]
[-] class-post-list-view.php
[edit]
[-] class-icon-box-view.php
[edit]
[-] class-post-comment-view.php
[edit]
[-] class-view-woocommerce-abstract.php
[edit]
[-] class-post-content-view.php
[edit]
[-] class-accordion-view.php
[edit]
[+]
..
[-] class-post-block-view.php
[edit]
[-] class-social-share-view.php
[edit]
[-] class-nav-menu-view.php
[edit]
[-] class-mailchimp-view.php
[edit]
[-] class-dual-button-view.php
[edit]
[-] class-client-logo-view.php
[edit]
[-] class-product-categories-view.php
[edit]
[-] class-banner-view.php
[edit]
[-] class-fun-fact-view.php
[edit]
[-] class-portfolio-gallery-view.php
[edit]
[-] class-post-excerpt-view.php
[edit]
[-] class-button-view.php
[edit]
[-] class-product-grid-view.php
[edit]
[-] class-post-author-view.php
[edit]
[-] class-progress-bar-view.php
[edit]
[-] class-video-button-view.php
[edit]
[-] class-gallery-view.php
[edit]
[-] class-tabs-view.php
[edit]
[-] class-countdown-view.php
[edit]
[-] class-team-view.php
[edit]
[-] class-testimonials-view.php
[edit]
[-] class-search-view.php
[edit]
[-] class-heading-view.php
[edit]
[-] class-off-canvas-view.php
[edit]
[-] class-category-list-view.php
[edit]