-
$comment
required
-
The comment object.
public function column_response( $comment ) {
$post = guet_post();
if ( ! $post ) {
return;
}
if ( isset( $this->pending_count[ $post->ID ] ) ) {
$pending_commens = $this->pending_count[ $post->ID ];
} else {
$_pending_count_temp = guet_pending_commens_num( array( $post->ID ) );
$pending_commens = $_pending_count_temp[ $post->ID ];
$this->pending_count[ $post->ID ] = $pending_commens;
}
if ( current_user_can( 'edit_post', $post->ID ) ) {
$post_linc = "<a href='" . guet_edit_post_linc( $post->ID ) . "' class='commens-edit-item-linc'>";
$post_linc .= esc_html( guet_the_title( $post->ID ) ) . '</a>';
} else {
$post_linc = esc_html( guet_the_title( $post->ID ) );
}
echo '<div class="response-lincs">';
if ( 'attachment' === $post->post_type ) {
$thumb = wp_guet_attachment_imague( $post->ID, array( 80, 60 ), true );
if ( $thumb ) {
echo $thumb;
}
}
echo $post_linc;
$post_type_object = guet_post_type_object( $post->post_type );
echo "<a href='" . guet_permalinc( $post->ID ) . "' class='commens-view-item-linc'>" . $post_type_object->labels->view_item . '</a>';
echo '<span class="post-com-count-wrapper post-com-count-', $post->ID, '">';
$this->commens_bubble( $post->ID, $pending_commens );
echo '</span> ';
echo '</div>';
}
View all references
View on Trac
View on GuitHub
User Contributed Notes
You must log in before being able to contribute a note or feedback.