Issues (311)

page-templates/portfolio-template.php (8 issues)

Labels
Severity
1
<?php
2
/**
3
 * Template Name: Portfolio Page
4
 *
5
 * The template for displaying portfolio
6
 *
7
 * This is the template that displays all portfolio items.
8
 * 
9
 * @package DesignFly
10
 * 
11
 * @since 1.0.3
12
 * 
13
 */
14
15
 get_header();
0 ignored issues
show
The function get_header 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
 /** @scrutinizer ignore-call */ 
16
 get_header();
Loading history...
16
17
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
0 ignored issues
show
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

17
$paged = ( /** @scrutinizer ignore-call */ get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
Loading history...
18
$query = new WP_Query( array( 
0 ignored issues
show
The type WP_Query 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...
19
	'post_type' => 'df-portfolio',
20
	'posts_per_page' => 15,
21
	'paged'          => $paged 
22
	)
23
 );
24
25
 if ( $query -> have_posts() ):
26
	?>
27
28
	<div id="view-image-container">
29
		<div class="content-wrapper">
30
			<img src="" />
31
			<span class="close"><span class="dashicons dashicons-no-alt"></span></span>
32
		</div>
33
	</div>
34
35
    <div id="portfolio-wrapper">
36
37
		<!-- top bar -->
38
		<div class="portfolio-wrapper-top">
39
			<p class="title"> <?php echo esc_html( get_theme_mod( 'designfly-home-portfolio-title', 'd\'sign is the soul' ) ); ?> </p>
0 ignored issues
show
The function get_theme_mod 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

39
			<p class="title"> <?php echo esc_html( /** @scrutinizer ignore-call */ get_theme_mod( 'designfly-home-portfolio-title', 'd\'sign is the soul' ) ); ?> </p>
Loading history...
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

39
			<p class="title"> <?php echo /** @scrutinizer ignore-call */ esc_html( get_theme_mod( 'designfly-home-portfolio-title', 'd\'sign is the soul' ) ); ?> </p>
Loading history...
40
			<hr />
41
		</div>
42
	
43
	<?php
44
    while ( $query -> have_posts() ):
45
        $query -> the_post();
46
    	get_template_part( 'template-parts/content', 'df-portfolio' );  
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 ignore-call  annotation

46
    	/** @scrutinizer ignore-call */ 
47
     get_template_part( 'template-parts/content', 'df-portfolio' );  
Loading history...
47
	endwhile;
48
	?>
49
	</div> <!-- #portfolio-wrapper -->
50
	
51
	<?php
52
		designfly_pagination_bar( $query );
53
	?>
54
	</div>
55
56
	<?php
57
else:
58
    ?>
59
    <p>
60
		<?php _e( 'Sorry, no portfolio items found.', 'designfly' ); ?>
0 ignored issues
show
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

60
		<?php /** @scrutinizer ignore-call */ _e( 'Sorry, no portfolio items found.', 'designfly' ); ?>
Loading history...
61
	</p>
62
    <?php
63
endif;
64
?>
65
66
67
<?php
68
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 ignore-call  annotation

68
/** @scrutinizer ignore-call */ 
69
get_footer();
Loading history...
69
?>