designfly_pagination_bar()   A
last analyzed

Complexity

Conditions 5
Paths 6

Size

Total Lines 26
Code Lines 18

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 5
eloc 18
c 1
b 0
f 0
nc 6
nop 1
dl 0
loc 26
rs 9.3554
1
<?php
2
/**
3
 * Custom template tags for this theme
4
 *
5
 * Eventually, some of the functionality here could be replaced by core features.
6
 *
7
 * @package DesignFly
8
 */
9
10
if ( ! function_exists( 'designfly_posted_on' ) ) :
11
	/**
12
	 * Prints HTML with meta information for the current post-date/time.
13
	 */
14
	function designfly_posted_on() {
15
		$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
16
		if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
0 ignored issues
show
Bug introduced by
The function get_the_time 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
		if ( /** @scrutinizer ignore-call */ get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
Loading history...
Bug introduced by
The function get_the_modified_time 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
		if ( get_the_time( 'U' ) !== /** @scrutinizer ignore-call */ get_the_modified_time( 'U' ) ) {
Loading history...
17
			$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
18
		}
19
20
		$time_string = sprintf( $time_string,
21
			esc_attr( get_the_date( DATE_W3C ) ),
0 ignored issues
show
Bug introduced by
The function esc_attr 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

21
			/** @scrutinizer ignore-call */ 
22
   esc_attr( get_the_date( DATE_W3C ) ),
Loading history...
Bug introduced by
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

21
			esc_attr( /** @scrutinizer ignore-call */ get_the_date( DATE_W3C ) ),
Loading history...
22
			esc_html( get_the_date() ),
0 ignored issues
show
Bug introduced by
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

22
			/** @scrutinizer ignore-call */ 
23
   esc_html( get_the_date() ),
Loading history...
23
			esc_attr( get_the_modified_date( DATE_W3C ) ),
0 ignored issues
show
Bug introduced by
The function get_the_modified_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

23
			esc_attr( /** @scrutinizer ignore-call */ get_the_modified_date( DATE_W3C ) ),
Loading history...
24
			esc_html( get_the_modified_date() )
25
		);
26
27
		$posted_on = sprintf(
28
			/* translators: %s: post date. */
29
			esc_html_x( ' on %s', 'post date', 'designfly' ),
0 ignored issues
show
Bug introduced by
The function esc_html_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 ignore-call  annotation

29
			/** @scrutinizer ignore-call */ 
30
   esc_html_x( ' on %s', 'post date', 'designfly' ),
Loading history...
30
			'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
0 ignored issues
show
Bug introduced by
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

30
			'<a href="' . /** @scrutinizer ignore-call */ esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
Loading history...
Bug introduced by
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

30
			'<a href="' . esc_url( /** @scrutinizer ignore-call */ get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
Loading history...
31
		);
32
33
		echo '<span class="posted-on">' . $posted_on . '</span>'; // WPCS: XSS OK.
34
35
	}
36
endif;
37
38
if ( ! function_exists( 'designfly_posted_by' ) ) :
39
	/**
40
	 * Prints HTML with meta information for the current author.
41
	 */
42
	function designfly_posted_by() {
43
		$byline = sprintf(
44
			/* translators: %s: post author. */
45
			esc_html_x( 'by %s', 'post author', 'designfly' ),
0 ignored issues
show
Bug introduced by
The function esc_html_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 ignore-call  annotation

45
			/** @scrutinizer ignore-call */ 
46
   esc_html_x( 'by %s', 'post author', 'designfly' ),
Loading history...
46
			'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
0 ignored issues
show
Bug introduced by
The function get_the_author 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

46
			'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( /** @scrutinizer ignore-call */ get_the_author() ) . '</a></span>'
Loading history...
Bug introduced by
The function get_the_author_meta 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

46
			'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( /** @scrutinizer ignore-call */ get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
Loading history...
Bug introduced by
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

46
			'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . /** @scrutinizer ignore-call */ esc_html( get_the_author() ) . '</a></span>'
Loading history...
Bug introduced by
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

46
			'<span class="author vcard"><a class="url fn n" href="' . /** @scrutinizer ignore-call */ esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
Loading history...
Bug introduced by
The function get_author_posts_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

46
			'<span class="author vcard"><a class="url fn n" href="' . esc_url( /** @scrutinizer ignore-call */ get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
Loading history...
47
		);
48
49
		echo '<span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.
50
51
	}
52
endif;
53
54
if ( ! function_exists( 'designfly_entry_footer' ) ) :
55
	/**
56
	 * Prints HTML with meta information for the categories, tags and comments.
57
	 */
58
	function designfly_entry_footer() {
59
		// Hide category and tag text for pages.
60
		if ( 'post' === get_post_type() ) {
0 ignored issues
show
Bug introduced by
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 ignore-call  annotation

60
		if ( 'post' === /** @scrutinizer ignore-call */ get_post_type() ) {
Loading history...
61
			/* translators: used between list items, there is a space after the comma */
62
			$categories_list = get_the_category_list( esc_html__( ', ', 'designfly' ) );
0 ignored issues
show
Bug introduced by
The function get_the_category_list 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

62
			$categories_list = /** @scrutinizer ignore-call */ get_the_category_list( esc_html__( ', ', 'designfly' ) );
Loading history...
Bug introduced by
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

62
			$categories_list = get_the_category_list( /** @scrutinizer ignore-call */ esc_html__( ', ', 'designfly' ) );
Loading history...
63
			if ( $categories_list ) {
64
				/* translators: 1: list of categories. */
65
				printf( '<span class="cat-links">' . esc_html__( 'Posted in: %1$s', 'designfly' ) . '</span>', $categories_list ); // WPCS: XSS OK.
66
			}
67
68
			/* translators: used between list items, there is a space after the comma */
69
			$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'designfly' ) );
0 ignored issues
show
Bug introduced by
The function esc_html_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 ignore-call  annotation

69
			$tags_list = get_the_tag_list( '', /** @scrutinizer ignore-call */ esc_html_x( ', ', 'list item separator', 'designfly' ) );
Loading history...
Bug introduced by
The function get_the_tag_list 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

69
			$tags_list = /** @scrutinizer ignore-call */ get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'designfly' ) );
Loading history...
70
			if ( $tags_list ) {
71
				/* translators: 1: list of tags. */
72
				printf( '<span class="tags-links">' . esc_html__( 'TAGS: %1$s', 'designfly' ) . '</span>', $tags_list ); // WPCS: XSS OK.
73
			}
74
		}
75
76
		if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
0 ignored issues
show
Bug introduced by
The function post_password_required 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

76
		if ( ! is_single() && ! /** @scrutinizer ignore-call */ post_password_required() && ( comments_open() || get_comments_number() ) ) {
Loading history...
Bug introduced by
The function comments_open 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

76
		if ( ! is_single() && ! post_password_required() && ( /** @scrutinizer ignore-call */ comments_open() || get_comments_number() ) ) {
Loading history...
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 ignore-call  annotation

76
		if ( ! /** @scrutinizer ignore-call */ is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
Loading history...
Bug introduced by
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

76
		if ( ! is_single() && ! post_password_required() && ( comments_open() || /** @scrutinizer ignore-call */ get_comments_number() ) ) {
Loading history...
77
			echo '<span class="comments-link">';
78
			comments_popup_link(
0 ignored issues
show
Bug introduced by
The function comments_popup_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

78
			/** @scrutinizer ignore-call */ 
79
   comments_popup_link(
Loading history...
79
				sprintf(
80
					wp_kses(
0 ignored issues
show
Bug introduced by
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

80
					/** @scrutinizer ignore-call */ 
81
     wp_kses(
Loading history...
81
						/* translators: %s: post title */
82
						__( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'designfly' ),
0 ignored issues
show
Bug introduced by
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

82
						/** @scrutinizer ignore-call */ 
83
      __( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'designfly' ),
Loading history...
83
						array(
84
							'span' => array(
85
								'class' => array(),
86
							),
87
						)
88
					),
89
					get_the_title()
0 ignored issues
show
Bug introduced by
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

89
					/** @scrutinizer ignore-call */ 
90
     get_the_title()
Loading history...
90
				)
91
			);
92
			echo '</span>';
93
		}
94
95
		// edit_post_link(
96
		// 	sprintf(
97
		// 		wp_kses(
98
		// 			__( 'Edit <span class="screen-reader-text">%s</span>', 'designfly' ),
99
		// 			array(
100
		// 				'span' => array(
101
		// 					'class' => array(),
102
		// 				),
103
		// 			)
104
		// 		),
105
		// 		get_the_title()
106
		// 	),
107
		// 	'<span class="edit-link">',
108
		// 	'</span>'
109
		// );
110
	}
111
endif;
112
113
if ( ! function_exists( 'designfly_post_thumbnail' ) ) :
114
	/**
115
	 * Displays an optional post thumbnail.
116
	 *
117
	 * Wraps the post thumbnail in an anchor element on index views, or a div
118
	 * element when on single views.
119
	 */
120
	function designfly_post_thumbnail() {
121
		if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
0 ignored issues
show
Bug introduced by
The function is_attachment 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

121
		if ( post_password_required() || /** @scrutinizer ignore-call */ is_attachment() || ! has_post_thumbnail() ) {
Loading history...
Bug introduced by
The function post_password_required 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

121
		if ( /** @scrutinizer ignore-call */ post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
Loading history...
Bug introduced by
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

121
		if ( post_password_required() || is_attachment() || ! /** @scrutinizer ignore-call */ has_post_thumbnail() ) {
Loading history...
122
			return;
123
		}
124
125
		if ( is_singular() ) :
0 ignored issues
show
Bug introduced by
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

125
		if ( /** @scrutinizer ignore-call */ is_singular() ) :
Loading history...
126
			?>
127
128
			<div class="post-thumbnail">
129
				<?php the_post_thumbnail(); ?>
0 ignored issues
show
Bug introduced by
The function the_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

129
				<?php /** @scrutinizer ignore-call */ the_post_thumbnail(); ?>
Loading history...
130
			</div><!-- .post-thumbnail -->
131
132
		<?php else : ?>
133
		<a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1">
0 ignored issues
show
Bug introduced by
The function the_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

133
		<a class="post-thumbnail" href="<?php /** @scrutinizer ignore-call */ the_permalink(); ?>" aria-hidden="true" tabindex="-1">
Loading history...
134
			<?php
135
			the_post_thumbnail( 'post-thumbnail', array(
136
				'alt' => the_title_attribute( array(
0 ignored issues
show
Bug introduced by
The function the_title_attribute 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

136
				'alt' => /** @scrutinizer ignore-call */ the_title_attribute( array(
Loading history...
137
					'echo' => false,
138
				) ),
139
			) );
140
			?>
141
		</a>
142
143
		<?php
144
		endif; // End is_singular().
145
	}
146
endif;
147
148
/**
149
 * Displays the pagination.
150
 *
151
 * Wraps the pagination in a div with id 'pagination' and echoes it out.
152
 * 
153
 * @param $custom_query requires the query object to get pagination
0 ignored issues
show
Bug introduced by
The type requires was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
154
*/
155
function designfly_pagination_bar( $custom_query ) {
156
157
    $total_pages = $custom_query->max_num_pages;
158
    $big = 999999999; // need an unlikely integer
159
160
    if ( $total_pages > 1 ) {
161
        $current_page = max(1, get_query_var('paged'));
0 ignored issues
show
Bug introduced by
The function get_query_var 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

161
        $current_page = max(1, /** @scrutinizer ignore-call */ get_query_var('paged'));
Loading history...
162
163
        $pages =  paginate_links(array(
0 ignored issues
show
Bug introduced by
The function paginate_links 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

163
        $pages =  /** @scrutinizer ignore-call */ paginate_links(array(
Loading history...
164
            'base'      => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
0 ignored issues
show
Bug introduced by
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

164
            'base'      => str_replace( $big, '%#%', /** @scrutinizer ignore-call */ esc_url( get_pagenum_link( $big ) ) ),
Loading history...
Bug introduced by
The function get_pagenum_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

164
            'base'      => str_replace( $big, '%#%', esc_url( /** @scrutinizer ignore-call */ get_pagenum_link( $big ) ) ),
Loading history...
165
            'format'    => '?paged=%#%',
166
            'current'   => $current_page,
167
			'total'     => $total_pages,
168
			'type'      => 'array',
169
			'prev_text' => '<img class="pagination-arrow-left" src="' . get_template_directory_uri() . '/assets/images/pagination-arrow.png' . '" />',
0 ignored issues
show
Bug introduced by
The function get_template_directory_uri 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

169
			'prev_text' => '<img class="pagination-arrow-left" src="' . /** @scrutinizer ignore-call */ get_template_directory_uri() . '/assets/images/pagination-arrow.png' . '" />',
Loading history...
170
			'next_text' => '<img class="pagination-arrow-right" src="' . get_template_directory_uri() . '/assets/images/pagination-arrow.png' . '" />',
171
		));
172
		
173
		/* for echoing out with custom html tags */
174
		if( is_array( $pages ) ) {
175
			$paged = ( get_query_var('paged') == 0 ) ? 1 : get_query_var('paged');
0 ignored issues
show
Unused Code introduced by
The assignment to $paged is dead and can be removed.
Loading history...
176
			echo '<div id="pagination">';
177
			foreach ( $pages as $page ) {
178
					echo $page;
179
			}
180
		   echo '</div>';
181
		}
182
    }
183
}
184
185
/**
186
 * Displays custom comments.
187
 *
188
 * @param $comment comment
0 ignored issues
show
Bug introduced by
The type comment was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
189
 * @param $args standard arguments
0 ignored issues
show
Bug introduced by
The type standard was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
190
 * @param $depth depth of the comments
0 ignored issues
show
Bug introduced by
The type depth was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
191
*/
192
function designfly_custom_comments($comment, $args, $depth) {
193
194
    if ( 'div' === $args['style'] ) {
195
        $tag       = 'div';
196
        $add_below = 'comment';
197
    } else {
198
        $tag       = 'li';
199
        $add_below = 'div-comment';
200
    }
201
	?>
202
	
203
    <<?php echo $tag ?> <?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ) ?> id="comment-<?php comment_ID() ?>">
0 ignored issues
show
Bug introduced by
The function comment_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

203
    <<?php echo $tag ?> <?php /** @scrutinizer ignore-call */ comment_class( empty( $args['has_children'] ) ? '' : 'parent' ) ?> id="comment-<?php comment_ID() ?>">
Loading history...
Bug introduced by
The function comment_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

203
    <<?php echo $tag ?> <?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ) ?> id="comment-<?php /** @scrutinizer ignore-call */ comment_ID() ?>">
Loading history...
204
    <?php if ( 'div' != $args['style'] ) : ?>
205
        <div id="div-comment-<?php comment_ID() ?>" class="comment-body">
206
	<?php endif; ?>
207
	
208
    <div class="comment-author vcard">
209
        <?php printf( __( '<cite class="fn">%s</cite> <span class="says">said on </span>' ), get_comment_author_link() ); ?>
0 ignored issues
show
Bug introduced by
The function get_comment_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

209
        <?php printf( __( '<cite class="fn">%s</cite> <span class="says">said on </span>' ), /** @scrutinizer ignore-call */ get_comment_author_link() ); ?>
Loading history...
Bug introduced by
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

209
        <?php printf( /** @scrutinizer ignore-call */ __( '<cite class="fn">%s</cite> <span class="says">said on </span>' ), get_comment_author_link() ); ?>
Loading history...
210
	</div>
211
	
212
	<div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ); ?>">
0 ignored issues
show
Bug introduced by
The function get_comment_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

212
	<div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( /** @scrutinizer ignore-call */ get_comment_link( $comment->comment_ID ) ); ?>">
Loading history...
213
		<?php
214
		/* translators: 1: date, 2: time */
215
		printf( __('%1$s at %2$s'), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)' ), '  ', '' );
0 ignored issues
show
Bug introduced by
The function get_comment_time 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

215
		printf( __('%1$s at %2$s'), get_comment_date(),  /** @scrutinizer ignore-call */ get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)' ), '  ', '' );
Loading history...
Bug introduced by
The function get_comment_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

215
		printf( __('%1$s at %2$s'), /** @scrutinizer ignore-call */ get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)' ), '  ', '' );
Loading history...
Bug introduced by
The function edit_comment_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

215
		printf( __('%1$s at %2$s'), get_comment_date(),  get_comment_time() ); ?></a><?php /** @scrutinizer ignore-call */ edit_comment_link( __( '(Edit)' ), '  ', '' );
Loading history...
216
		?>
217
	</div>
218
	
219
	<?php if ( $comment->comment_approved == '0' ) : ?>
220
         <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></em>
0 ignored issues
show
Bug introduced by
The function _e 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

220
         <em class="comment-awaiting-moderation"><?php /** @scrutinizer ignore-call */ _e( 'Your comment is awaiting moderation.' ); ?></em>
Loading history...
221
          <br />
222
    <?php endif; ?>
223
224
225
    <?php comment_text(); ?>
0 ignored issues
show
Bug introduced by
The function comment_text 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

225
    <?php /** @scrutinizer ignore-call */ comment_text(); ?>
Loading history...
226
227
    <div class="reply">
228
        <?php comment_reply_link( array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
0 ignored issues
show
Bug introduced by
The function comment_reply_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

228
        <?php /** @scrutinizer ignore-call */ comment_reply_link( array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
Loading history...
229
    </div>
230
	
231
	<?php if ( 'div' != $args['style'] ) : ?>
232
	</div>
233
	
234
    <?php endif; ?>
235
    <?php
236
}
237
238