/** * Generate list with comments */ private function loadCommentsList() { $args = array('post_id' => get_the_ID(), 'type' => 'comment', 'callback' => array($this, 'loadComment'), 'avatar_size' => parent::get_avatar_size()); wp_list_comments(apply_filters('incom_comments_list_args', $args)); }
/** * Add Custom CSS */ function load_custom_css() { echo '<style type="text/css">'; // Set avatar size if (get_option('incom_avatars_display') == 1) { ?> .incom-comments-wrapper .vcard img { width: <?php echo esc_attr(parent::get_avatar_size()); ?> px; height: <?php echo esc_attr(parent::get_avatar_size()); ?> px; } <?php } // User's custom CSS input if (stripslashes(get_option('custom_css')) != '') { echo esc_html(stripslashes(get_option('custom_css'))); } echo '</style>'; }