Issues (311)

template-parts/content.php (14 issues)

Labels
Severity
1
<?php
2
/**
3
 * Template part for displaying posts
4
 *
5
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
6
 *
7
 * @package DesignFly
8
 */
9
10
?>
11
12
<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

12
<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

12
<article id="post-<?php /** @scrutinizer ignore-call */ the_ID(); ?>" <?php post_class(); ?>>
Loading history...
13
	<header class="entry-header">
14
		<?php
15
		if ( is_singular() ) :
0 ignored issues
show
The function is_singular 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

15
		if ( /** @scrutinizer ignore-call */ is_singular() ) :
Loading history...
16
			the_title( '<h1 class="entry-title">', '</h1>' );
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

16
			/** @scrutinizer ignore-call */ 
17
   the_title( '<h1 class="entry-title">', '</h1>' );
Loading history...
17
		else :
18
			the_title( '<h2 class="entry-title"><a class="entry-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
0 ignored issues
show
The function get_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

18
			the_title( '<h2 class="entry-title"><a class="entry-title" href="' . esc_url( /** @scrutinizer ignore-call */ get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
Loading history...
The function esc_url 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

18
			the_title( '<h2 class="entry-title"><a class="entry-title" href="' . /** @scrutinizer ignore-call */ esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
Loading history...
19
		endif;
20
		?>
21
			<div class="entry-meta">
22
				<?php
23
				designfly_posted_by();
24
				designfly_posted_on();
25
				?>
26
27
				<span class="comments"><?php echo get_comments_number(); ?> Comment(s) </span> 
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

27
				<span class="comments"><?php echo /** @scrutinizer ignore-call */ get_comments_number(); ?> Comment(s) </span> 
Loading history...
28
			</div><!-- .entry-meta -->
29
			<hr class="bar"/>
30
	</header><!-- .entry-header -->
31
32
	<div class="entry-content">
33
		<?php
34
		if ( is_singular() ) :
35
			the_content( sprintf(
0 ignored issues
show
The function the_content 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

35
			/** @scrutinizer ignore-call */ 
36
   the_content( sprintf(
Loading history...
36
				wp_kses(
0 ignored issues
show
The function wp_kses 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

36
				/** @scrutinizer ignore-call */ 
37
    wp_kses(
Loading history...
37
					/* translators: %s: Name of current post. Only visible to screen readers */
38
					__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'designfly' ),
0 ignored issues
show
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 ignore-call  annotation

38
					/** @scrutinizer ignore-call */ 
39
     __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'designfly' ),
Loading history...
39
					array(
40
						'span' => array(
41
							'class' => array(),
42
						),
43
					)
44
				),
45
				get_the_title()
0 ignored issues
show
The function get_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

45
				/** @scrutinizer ignore-call */ 
46
    get_the_title()
Loading history...
46
			) );
47
48
			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

48
			/** @scrutinizer ignore-call */ 
49
   wp_link_pages( array(
Loading history...
49
				'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

49
				'before' => '<div class="page-links">' . /** @scrutinizer ignore-call */ esc_html__( 'Pages:', 'designfly' ),
Loading history...
50
				'after'  => '</div>',
51
			) );
52
		else : 
53
			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

53
			/** @scrutinizer ignore-call */ 
54
   the_excerpt();
Loading history...
54
		endif;
55
		?>
56
	</div><!-- .entry-content -->
57
58
	<footer class="entry-footer">
59
		<?php designfly_entry_footer(); ?>
60
	</footer><!-- .entry-footer -->
61
</article><!-- #post-<?php the_ID(); ?> -->
62