public function reply_box($facebook_id, $level = 1) { if ($this->facebook_account && $this->facebook_page && $this->social_facebook_message_id) { ?> <div class="facebook_comment facebook_comment_reply_box facebook_comment_reply_box_level<?php echo $level; ?> "> <div class="facebook_comment_picture"> <img src="//graph.facebook.com/<?php echo $this->facebook_page->get('page_id'); ?> /picture"> </div> <div class="facebook_comment_header"> <?php echo ucm_facebook::format_person(array('id' => $this->facebook_page->get('page_id'), 'name' => $this->facebook_page->get('page_name'))); ?> </div> <div class="facebook_comment_reply"> <textarea placeholder="Write a reply..."></textarea> <button data-facebook-id="<?php echo htmlspecialchars($facebook_id); ?> " data-id="<?php echo (int) $this->social_facebook_message_id; ?> "><?php _e('Send'); ?> </button> <br/> (debug) <input type="checkbox" name="debug" class="reply-debug" value="1"> </div> <div class="facebook_comment_actions"></div> </div> <?php } else { ?> <div class="facebook_comment facebook_comment_reply_box"> (incorrect settings, please report this bug) </div> <?php } }