screen->get_prefix(); $has_website_field = get_theme_mod($prefix . '_has_comments_website', 'yes'); $website_field_class = ''; $website_field_output = ''; if ($has_website_field === 'yes') { $website_field_class = 'has-website-field'; $website_field_output = '

'; } ob_start(); do_action('blocksy:comments:title:before'); $title_before = ob_get_clean(); ob_start(); do_action('blocksy:comments:title:after'); $title_after = ob_get_clean(); $form_options = [ 'format' => 'xhtml', 'class_form' => 'comment-form ' . $website_field_class, 'title_reply' => __('Leave a Reply', 'blocksy'), 'cancel_reply_link' => __('Cancel Reply', 'blocksy'), // Title reply 'title_reply_before' => $title_before . '

', 'title_reply_after' => '

' . $title_after, // Cancel reply 'cancel_reply_before' => '', 'cancel_reply_after' => '', // Logged in as 'logged_in_as' => '', // Comment notes 'comment_notes_before' => '', // Input fields 'fields' => [ // Author input 'author' => '

', // Email input 'email' => '

', 'url' => $website_field_output, 'cookies' => '' ], // Textarea 'comment_field' => '

', // submit button 'submit_button' => '', ]; if ( has_action( 'set_comment_cookies', 'wp_set_comment_cookies' ) && get_option( 'show_comments_cookies_opt_in' ) ) { $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; $form_options['comment_field'] .= ''; } if (function_exists('blocksy_ext_cookies_checkbox')) { $form_options['comment_field'] .= blocksy_ext_cookies_checkbox('comment'); } do_action('blocksy:comments:before'); ?>

    true, 'avatar_size' => 100, 'callback' => 'blocksy_custom_comment_template', 'end-callback' => function () { echo ''; } ] ); ?>
1 && get_option('page_comments')) : ?>