function rotary_edit_announcement() { $comment_id = $_REQUEST['comment_id']; $announcement = get_comment($comment_id); $title = get_comment_meta($comment_id, 'announcement_title', true); $comment_post_ID = $announcement->comment_post_ID; $args = array('title_reply' => rotary_announcement_header($comment_post_ID, $title, 'edit'), 'comment_notes_after' => rotary_comment_notes_after(), 'logged_in_as' => '', 'label_submit' => __('Save Announcement'), 'id_form' => 'ajax-edit-announcement-form'); ob_start(); ?> <div id="edit-announcement-<?php echo $comment_id; ?> -form"> <?php echo comment_form($args, $comment_post_ID); ?> </div> <?php $return = ob_get_clean(); echo $return; die; }
</table> <?php break; case 'shortcode': case 'carousel': case 'speaker': ?> <article id="comment-<?php echo $id; ?> " <?php comment_class($extra_classes); ?> > <?php echo rotary_announcement_header($posted_in_id, $announcement_title); ?> <div class="announcement-buttons"> <p class="announced-by clearleft"><?php echo $announced_by; ?> </p> <?php if ($allowedits && $user_can_edit) { ?> <div class="editannouncementbutton-container"> <a href="javascript:void(null)" data-comment-id="<?php echo $id; ?> " class="rotarybutton-smallwhite editannouncementbutton"><?php echo __('Edit Announcement');