1 | <?php |
||||||
2 | /** |
||||||
3 | * The main template file |
||||||
4 | * |
||||||
5 | * This is the most generic template file in a WordPress theme |
||||||
6 | * and one of the two required files for a theme (the other being style.css). |
||||||
7 | * It is used to display a page when nothing more specific matches a query. |
||||||
8 | * E.g., it puts together the home page when no home.php file exists. |
||||||
9 | * |
||||||
10 | * @link https://codex.wordpress.org/Template_Hierarchy |
||||||
11 | * |
||||||
12 | * @package Strip |
||||||
13 | */ |
||||||
14 | |||||||
15 | get_header(); ?> |
||||||
16 | |||||||
17 | <div id="primary" class="content-area"> |
||||||
18 | <div id="content" class="site-content" role="main"> |
||||||
19 | |||||||
20 | <?php if ( have_posts() ) : ?> |
||||||
21 | |||||||
22 | <?php /* Start the Loop */ ?> |
||||||
23 | <?php while ( have_posts() ) : |
||||||
24 | the_post(); ?> |
||||||
25 | |||||||
26 | <?php |
||||||
27 | |||||||
28 | /* |
||||||
29 | * |
||||||
30 | * Include the Post-Format-specific template for the content. |
||||||
31 | * If you want to override this in a child theme, then include a file |
||||||
32 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
||||||
33 | */ |
||||||
34 | get_template_part( 'content', get_post_format() ); |
||||||
35 | ?> |
||||||
36 | |||||||
37 | <?php endwhile; ?> |
||||||
38 | |||||||
39 | <div class="wrap"> |
||||||
40 | <?php the_posts_pagination( array( |
||||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||||
41 | 'prev_text' => _x( '←', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . __( 'Previous page', 'strip' ) . '</span>', |
||||||
0 ignored issues
–
show
The function
_x 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
![]() The function
__ 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
![]() |
|||||||
42 | 'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'strip' ) . '</span>' . _x( '→', 'Next post link', 'strip' ), |
||||||
0 ignored issues
–
show
|
|||||||
43 | 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>', |
||||||
0 ignored issues
–
show
|
|||||||
44 | ) ); ?> |
||||||
45 | </div> |
||||||
46 | |||||||
47 | <?php else : ?> |
||||||
48 | |||||||
49 | <?php get_template_part( 'no-results', 'index' ); ?> |
||||||
50 | |||||||
51 | <?php endif; ?> |
||||||
52 | |||||||
53 | </div><!-- #content --> |
||||||
54 | </div><!-- #primary --> |
||||||
55 | |||||||
56 | <?php get_footer(); ?> |
||||||
57 |