ID; $output = '
'; $order = get_option( 'comment_order'); $comments = get_comments(array( 'post_id' => intval($postID), 'status' => 'approve', 'order' =>esc_attr($order) )); if ( $comments ) { $output .= '

'.ampforwp_get_setting('amp-translator-view-comments-text').'

'; $output .='
'; } $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, ); ?>