Comment form suport

This commit is contained in:
Fabiano Alencar 2018-03-16 11:32:12 -03:00
parent a6aa06d2af
commit ea7405c9bc
2 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ if(!function_exists('tainacan_setup')) {
**/ **/
show_admin_bar( false ); show_admin_bar( false );
add_theme_support( 'html5', array( 'comment-list' ) ); add_theme_support( 'html5', array( 'comment-list' , 'comment-form') );
add_theme_support( 'post-thumbnails' ); add_theme_support( 'post-thumbnails' );
/** /**
* Desabilita o FTP na instalação de Plugins * Desabilita o FTP na instalação de Plugins

View File

@ -9,6 +9,7 @@ function tainacan_Comments_Callback($comment, $args, $depth) {
//get comment to determine type //get comment to determine type
$GLOBALS['comment'] = $comment; $GLOBALS['comment'] = $comment;
global $post; global $post;
//var_dump($args);die;
$class_has = "has-children media comment-". $comment->comment_ID; ?> $class_has = "has-children media comment-". $comment->comment_ID; ?>
<div <?php comment_class( $args['has_children'] ? $class_has : ' media' ); ?>> <div <?php comment_class( $args['has_children'] ? $class_has : ' media' ); ?>>
<?php <?php