Tan-007 /
DesignFly
| 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://developer.wordpress.org/themes/basics/template-hierarchy/ |
||||||||
| 11 | * |
||||||||
| 12 | * @package DesignFly |
||||||||
| 13 | */ |
||||||||
| 14 | |||||||||
| 15 | get_header(); |
||||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||||||
| 16 | ?> |
||||||||
| 17 | |||||||||
| 18 | <div id="primary" class="content-area container"> |
||||||||
| 19 | <main id="main" class="site-main row"> |
||||||||
| 20 | <div class="col-md-8"> |
||||||||
| 21 | |||||||||
| 22 | <?php |
||||||||
| 23 | if ( have_posts() ) : |
||||||||
|
0 ignored issues
–
show
The function
have_posts 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
Loading history...
|
|||||||||
| 24 | |||||||||
| 25 | if ( is_home() && ! is_front_page() ) : |
||||||||
|
0 ignored issues
–
show
The function
is_home 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
Loading history...
The function
is_front_page 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
Loading history...
|
|||||||||
| 26 | ?> |
||||||||
| 27 | <header> |
||||||||
| 28 | <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1> |
||||||||
|
0 ignored issues
–
show
The function
single_post_title 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
Loading history...
|
|||||||||
| 29 | </header> |
||||||||
| 30 | <?php |
||||||||
| 31 | endif; |
||||||||
| 32 | |||||||||
| 33 | /* Start the Loop */ |
||||||||
| 34 | while ( have_posts() ) : |
||||||||
| 35 | the_post(); |
||||||||
|
0 ignored issues
–
show
The function
the_post 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
Loading history...
|
|||||||||
| 36 | |||||||||
| 37 | get_template_part( 'template-parts/content', get_post_type() ); |
||||||||
|
0 ignored issues
–
show
The function
get_template_part 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
Loading history...
The function
get_post_type 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
Loading history...
|
|||||||||
| 38 | |||||||||
| 39 | endwhile; |
||||||||
| 40 | |||||||||
| 41 | the_posts_navigation(); |
||||||||
|
0 ignored issues
–
show
The function
the_posts_navigation 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
Loading history...
|
|||||||||
| 42 | |||||||||
| 43 | else : |
||||||||
| 44 | |||||||||
| 45 | get_template_part( 'template-parts/content', 'none' ); |
||||||||
| 46 | |||||||||
| 47 | endif; |
||||||||
| 48 | ?> |
||||||||
| 49 | |||||||||
| 50 | </div><!-- .col-md-8--> |
||||||||
| 51 | |||||||||
| 52 | <div class="col-md-4"> |
||||||||
| 53 | <?php get_sidebar(); ?> |
||||||||
|
0 ignored issues
–
show
The function
get_sidebar 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
Loading history...
|
|||||||||
| 54 | </div> |
||||||||
| 55 | </main><!-- #main --> |
||||||||
| 56 | </div><!-- #primary --> |
||||||||
| 57 | |||||||||
| 58 | <?php |
||||||||
| 59 | get_footer(); |
||||||||
|
0 ignored issues
–
show
The function
get_footer 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
Loading history...
|
|||||||||
| 60 |