Issues (311)

template-parts/content-blog-template.php (12 issues)

Labels
Severity
1
<?php
2
/**
3
 * Template part for displaying blog items
4
 *
5
 * @package DesignFly
6
 */
7
8
?>
9
<div id="blog-wrapper">
10
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
0 ignored issues
show
The function post_class 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 ignore-call  annotation

10
    <article id="post-<?php the_ID(); ?>" <?php /** @scrutinizer ignore-call */ post_class(); ?>>
Loading history...
The function the_ID 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 ignore-call  annotation

10
    <article id="post-<?php /** @scrutinizer ignore-call */ the_ID(); ?>" <?php post_class(); ?>>
Loading history...
11
        <a href=" <?php echo get_post_permalink(); ?> " class="permalink">
0 ignored issues
show
The function get_post_permalink 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 ignore-call  annotation

11
        <a href=" <?php echo /** @scrutinizer ignore-call */ get_post_permalink(); ?> " class="permalink">
Loading history...
12
            <header class="entry-header">
13
                <div class="date">
14
                    <span><?php echo get_the_date( 'd' ); ?></span>
0 ignored issues
show
The function get_the_date 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 ignore-call  annotation

14
                    <span><?php echo /** @scrutinizer ignore-call */ get_the_date( 'd' ); ?></span>
Loading history...
15
                    <span><?php echo get_the_date( 'M' ); ?></span>
16
                </div>
17
                <?php the_title( '<p class="entry-title">', '</p>' ); ?>
0 ignored issues
show
The function the_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 ignore-call  annotation

17
                <?php /** @scrutinizer ignore-call */ the_title( '<p class="entry-title">', '</p>' ); ?>
Loading history...
18
            </header><!-- .entry-header -->
19
        </a><!-- .permalink -->
20
                    
21
    <?php
22
    /* thumbnail */
23
    if ( has_post_thumbnail() ) : 
0 ignored issues
show
The function has_post_thumbnail 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 ignore-call  annotation

23
    if ( /** @scrutinizer ignore-call */ has_post_thumbnail() ) : 
Loading history...
24
        ?>
25
        <div class="row content">
26
            <div class="col-xs-12 col-sm-4 thumbnail">
27
                <?php designfly_post_thumbnail(); ?>
28
            </div>
29
            <div class="col-xs-12 col-sm-8 para">
30
                <div class="author-bar">
31
                    <p class="author">by <a href="<?php echo get_the_author_link(); ?>">
0 ignored issues
show
The function get_the_author_link 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 ignore-call  annotation

31
                    <p class="author">by <a href="<?php echo /** @scrutinizer ignore-call */ get_the_author_link(); ?>">
Loading history...
32
                        <?php echo get_author_name(); ?></a> on <?php echo get_the_date( 'd M Y'); ?></p>
0 ignored issues
show
The function get_author_name 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 ignore-call  annotation

32
                        <?php echo /** @scrutinizer ignore-call */ get_author_name(); ?></a> on <?php echo get_the_date( 'd M Y'); ?></p>
Loading history...
33
                    <p class="comments"><?php echo get_comments_number(); ?> Comment(s) </p> 
0 ignored issues
show
The function get_comments_number 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 ignore-call  annotation

33
                    <p class="comments"><?php echo /** @scrutinizer ignore-call */ get_comments_number(); ?> Comment(s) </p> 
Loading history...
34
                </div>
35
                <hr class="bar">
36
                <div class="entry-content">
37
                    <?php the_excerpt(); ?>
0 ignored issues
show
The function the_excerpt 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 ignore-call  annotation

37
                    <?php /** @scrutinizer ignore-call */ the_excerpt(); ?>
Loading history...
38
                </div><!-- .entry-content -->
39
            </div><!-- .para -->
40
        </div><!-- .row -->
41
                        
42
        <?php
43
        else : 
44
        ?>
45
        <div class="content">
46
            <div class="para">
47
                <div class="author-bar">
48
                    <p class="author">by <a href="<?php echo get_the_author_link(); ?>">
49
                        <?php echo get_author_name(); ?></a> on <?php echo get_the_date( 'd M Y'); ?></p>
50
                    <p class="comments"><?php echo get_comments_number(); ?> Comment(s) </p> 
51
                </div><!-- .author-bar -->
52
                
53
                <hr class="bar">
54
                
55
                <div class="entry-content">
56
                    <?php
57
                        the_excerpt();
58
59
                        wp_link_pages( array(
0 ignored issues
show
The function wp_link_pages 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 ignore-call  annotation

59
                        /** @scrutinizer ignore-call */ 
60
                        wp_link_pages( array(
Loading history...
60
                        'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'designfly' ),
0 ignored issues
show
The function esc_html__ 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 ignore-call  annotation

60
                        'before' => '<div class="page-links">' . /** @scrutinizer ignore-call */ esc_html__( 'Pages:', 'designfly' ),
Loading history...
61
                        'after'  => '</div>',
62
                    ) );
63
                    ?>
64
                </div><!-- .entry-content -->
65
            </div><!-- .para -->
66
        </div><!-- .content -->
67
68
        <?php
69
        endif; /* has_post_thumbnail() ends */
70
        ?>
71
                        
72
                
73
    </article><!-- #post-<?php the_ID(); ?> -->
74
</div><!-- #blog-wrapper -->