ID;
$output = '
';
}
return $output;
}
add_filter("ampforwp_extension_pagebuilder_module_template",'ampforwp_get_pb_comment_list' ,10,3);
$output_html = "{{Comment_HTML}}";
$css = '.pb-comments-wrapper ul li{list-style-type:none;position:relative;} .pbc-auth-info{position:absolute;top:2px;left:56px;} .pbc-auth-name{margin-bottom:5px}.pbc-comment{margin-top:10px;margin-bottom:10px;} .pb-comments-wrapper h3{margin-bottom: 16px;line-height:35px;border-bottom: 1px solid #d7d7d7;}';
return array(
'label' =>'Comments',
'name' =>'comments',
'default_tab'=> 'advanced',
'tabs' => array(
'advanced' => 'Advanced'
),
'fields' => array(
array(
'type' =>'text',
'name' =>"id",
'label' =>'ID',
'tab' =>'advanced',
'default' =>'',
'content_type'=>'html'
),
array(
'type' =>'text',
'name' =>"user_class",
'label' =>'Class',
'tab' =>'advanced',
'default' =>'',
'content_type'=>'html'
),
),
'front_template'=> $output_html,
'front_css'=> '',
'front_common_css'=>$css,
);
?>
'.ampforwp_get_setting('amp-translator-view-comments-text').'
'; foreach ($comments as $key => $value) { $avatar = get_avatar_url( $value->comment_author_email); $output .='- ';
if(ampforwp_get_setting('ampforwp-display-avatar')){
$output .='
.')
';
}
$output .=''.esc_attr($value->comment_author).' ';
$output .=''.esc_attr(date('F d, Y H:i:s', strtotime($value->comment_date))).' ';
$output .=' ';
}
$output .='
'; $output .=''.wp_kses_post($value->comment_content).'
'; $output .='