1 | <?php |
||||
2 | /** |
||||
3 | * The Template for displaying all single comics |
||||
4 | * |
||||
5 | * @package WordPress |
||||
6 | * @subpackage Strip |
||||
7 | */ |
||||
8 | |||||
9 | if ( post_type_exists( $post_type ) && is_single() ) { |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() The function
is_single was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
10 | get_header( 'lite' ); |
||||
11 | } else { |
||||
12 | get_header(); |
||||
13 | } |
||||
14 | ?> |
||||
15 | |||||
16 | <section id="primary"> |
||||
17 | <main id="content" role="main"> |
||||
18 | |||||
19 | <?php |
||||
20 | // Start the loop. |
||||
21 | while ( have_posts() ) : the_post(); ?> |
||||
22 | |||||
23 | <div class="entry-comic"> |
||||
24 | |||||
25 | <?php get_template_part( 'content-comic' ); ?> |
||||
26 | |||||
27 | <div class="wrap clear"> |
||||
28 | |||||
29 | <h1 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'strip' ); ?></h1> |
||||
30 | |||||
31 | <div class="navigation-comic"> |
||||
32 | <nav class="nav-first"><a href="<?php echo esc_url( first_comic_link() ); ?>"><?php esc_html_e( 'Start', 'strip' ); ?></a></nav> |
||||
33 | <nav class="nav-previous"><?php previous_post_link( '%link', __( 'Previous', 'strip' ), true, '', 'story' ); ?></nav> |
||||
34 | <nav class="nav-title"><?php the_title( '<h4 class="series-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h4>' ); ?></nav> |
||||
35 | <nav class="nav-next"><?php next_post_link( '%link', __( 'Next', 'strip' ), true, '', 'story' ); ?></nav> |
||||
36 | <nav class="nav-last"><a href="<?php echo esc_url( last_comic_link() ); ?>"><?php esc_html_e( 'Last', 'strip' ); ?></a></nav> |
||||
37 | </div><!-- .wrap --> |
||||
38 | |||||
39 | <?php set_transient( 'story', $post_type );?> |
||||
0 ignored issues
–
show
The function
set_transient was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
40 | |||||
41 | </div><!-- #entry-comic --> |
||||
42 | |||||
43 | <?php wp_reset_postdata(); ?> |
||||
44 | |||||
45 | <?php |
||||
46 | // If comments are open or we have at least one comment, load up the comment template. |
||||
47 | if ( comments_open() || '0' !== get_comments_number() ) : |
||||
48 | comments_template(); |
||||
49 | endif; |
||||
50 | |||||
51 | endwhile; // end of the loop. ?> |
||||
52 | |||||
53 | </main><!-- #content --> |
||||
54 | </section><!-- #primary --> |
||||
55 | <?php get_footer( 'lite' ); ?> |
||||
56 |