Last change
on this file was
10412,
checked in by coreymckrill, 4 years ago
|
Support theme: Enable feedback comments on HelpHub articles
Adds a comment form to the bottom of HelpHub articles that have enabled
comments, intended as a feedback mechanism for the content of the articles.
These comments, once submitted, can be reviewed by site admins, but are never
shown publicly. This also tweaks the comments-related REST API endpoints so that
they don't expose these feedback submissions.
Props milana_cap, coreymckrill
Fixes #4915
|
File size:
503 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * The template for displaying all single post or CPT entry. |
---|
4 | * |
---|
5 | * @package WPBBP |
---|
6 | */ |
---|
7 | |
---|
8 | get_header(); ?> |
---|
9 | |
---|
10 | <main id="main" class="site-main" role="main"> |
---|
11 | <?php get_sidebar( 'helphub' ); ?> |
---|
12 | |
---|
13 | <div id="main-content"> |
---|
14 | <?php |
---|
15 | |
---|
16 | while ( have_posts() ) : |
---|
17 | the_post(); |
---|
18 | |
---|
19 | get_template_part( 'template-parts/content', 'single' ); |
---|
20 | |
---|
21 | if ( comments_open() ) : |
---|
22 | comments_template(); |
---|
23 | endif; |
---|
24 | endwhile; // End of the loop. |
---|
25 | ?> |
---|
26 | </div> |
---|
27 | |
---|
28 | </main><!-- #main --> |
---|
29 | |
---|
30 | <?php |
---|
31 | get_footer(); |
---|
Note: See
TracBrowser
for help on using the repository browser.