AP_Question_Meta_Box::answers_meta_box_content()
Description #
Render Meta Box content.
Source #
File: admin/meta-box.php
public function answers_meta_box_content() { ?> <div id="answers-list" data-questionid="<?php the_ID(); ?>"> </div> <br /> <a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=answer&post_parent=' . get_the_ID() ) ); ?>" class="button add-answer"><?php esc_html_e( 'Add an answer', 'anspress-question-answer' ); ?></a> <script type="text/html" id="ap-answer-template"> <div class="author"> <a href="#" class="ap-ansm-avatar">{{{avatar}}}</a> <strong class="ap-ansm-name">{{author}}</strong> </div> <div class="ap-ansm-inner"> <div class="ap-ansm-meta"> <span class="post-status">{{status}}</span> {{{activity}}} </div> <div class="ap-ansm-content">{{{content}}}</div> <div class="answer-actions"> <span><a href="{{{editLink}}}"><?php esc_attr_e( 'Edit', 'anspress-question-answer' ); ?></a></span> <span class="delete vim-d vim-destructive"> | <a href="{{{trashLink}}}"><?php esc_attr_e( 'Trash', 'anspress-question-answer' ); ?></a></span> </div> </div> </script> <?php }
Expand full source code Collapse full source code View on GitHub: admin/meta-box.php:56
Add your comment