Issues (311)

footer.php (11 issues)

Labels
Severity
1
<?php
2
/**
3
 * The template for displaying the footer
4
 *
5
 * Contains the closing of the #content div and all content after.
6
 *
7
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
8
 *
9
 * @package DesignFly
10
 */
11
12
?>
13
14
	</div><!-- #content -->
15
16
	<footer id="footer-wrapper" class="site-footer">
17
		<div class="content container">
18
		<hr class="bar" />
19
			<div class="row">
20
				<div class="info col-sm-6">
21
					<?php 
22
						// the query
23
						$the_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...
24
							'posts_per_page' => 1,
25
						) ); 
26
						
27
						if ( $the_query->have_posts() ) : 
28
							$the_query->the_post();
29
					?>
30
							<p class="title"><a href="<?php echo get_post_permalink(); ?>"><?php echo get_the_title(); ?> </a></p>
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

30
							<p class="title"><a href="<?php echo /** @scrutinizer ignore-call */ get_post_permalink(); ?>"><?php echo get_the_title(); ?> </a></p>
Loading history...
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

30
							<p class="title"><a href="<?php echo get_post_permalink(); ?>"><?php echo /** @scrutinizer ignore-call */ get_the_title(); ?> </a></p>
Loading history...
31
							<p class="para"> <?php echo get_the_excerpt(); ?> </p>
0 ignored issues
show
The function get_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

31
							<p class="para"> <?php echo /** @scrutinizer ignore-call */ get_the_excerpt(); ?> </p>
Loading history...
32
					<?php 
33
						wp_reset_postdata();
0 ignored issues
show
The function wp_reset_postdata 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
						/** @scrutinizer ignore-call */ 
34
      wp_reset_postdata();
Loading history...
34
			
35
						else :
36
							__('No Posts found');
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

36
							/** @scrutinizer ignore-call */ 
37
       __('No Posts found');
Loading history...
37
						endif; 
38
					?>	
39
						
40
				</div>
41
				
42
				<div class="contact-us col-sm-6">
43
					<p class="title"><?php esc_html_e( 'Contact Us',  'designfly' ); ?></p>
0 ignored issues
show
The function esc_html_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

43
					<p class="title"><?php /** @scrutinizer ignore-call */ esc_html_e( 'Contact Us',  'designfly' ); ?></p>
Loading history...
44
					<p class="address"> <?php echo get_theme_mod( 'designfly-footer-contact' ); ?> </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

44
					<p class="address"> <?php echo /** @scrutinizer ignore-call */ get_theme_mod( 'designfly-footer-contact' ); ?> </p>
Loading history...
45
					<span><?php esc_html_e( 'Email', 'designfly' ); ?>: <p class="email">
46
						<a href="mailto:<?php echo get_theme_mod( 'designfly-footer-email' ); ?>">
47
							<?php echo get_theme_mod( 'designfly-footer-email' ); ?>
48
						</a></p> </span>
49
					<ul class="social-media">
50
						<?php 
51
							/* social media urls */
52
							$urls = get_theme_mod( 'designfly-footer-urls' );
53
							$urls = explode( ';', $urls );
54
							
55
							foreach ( $urls as $url ) :
56
								$url = trim( $url );
57
								if ( strpos( $url, 'facebook.com' ) !== false ) { ?>
58
									<li>
59
										<a target="_blank" href="<?php echo $url; ?>"><img id="social-facebook" src=" <?php echo get_template_directory_uri() . '/assets/images/facebook.png' ?>" /></a>
0 ignored issues
show
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

59
										<a target="_blank" href="<?php echo $url; ?>"><img id="social-facebook" src=" <?php echo /** @scrutinizer ignore-call */ get_template_directory_uri() . '/assets/images/facebook.png' ?>" /></a>
Loading history...
60
									</li> <?php
61
								} elseif ( strpos( $url, 'google' ) !== false ) { ?>
62
									<li>
63
										<a target="_blank" href="<?php echo $url; ?>"><img id="social-gp" src=" <?php echo get_template_directory_uri() . '/assets/images/gp.png' ?> " /></a>
64
									</li> <?php
65
								} elseif ( strpos( $url, 'linkedin.com' ) !== false ) { ?>
66
									<li>
67
										<a target="_blank" href="<?php echo $url; ?>"><img id="social-linkedin" src=" <?php echo get_template_directory_uri() . '/assets/images/linkedin.png' ?> " /></a>
68
									</li> <?php
69
								} elseif ( strpos( $url, 'pinterest.com' ) !== false ) { ?>
70
									<li>
71
										<a target="_blank" href="<?php echo $url; ?>"><img id="social-pin" src=" <?php echo get_template_directory_uri() . '/assets/images/pin.png' ?> " /></a>
72
									</li> <?php
73
								} elseif ( strpos( $url, 'twitter.com' ) !== false ) { ?>
74
									<li>
75
										<a target="_blank" href="<?php echo $url; ?>"><img id="social-twitter" src=" <?php echo get_template_directory_uri() . '/assets/images/twitter.png' ?> " /></a>
76
									</li> <?php
77
								}
78
							endforeach;
79
						?>
80
					</ul>
81
				</div>
82
			</div>
83
			<hr class="bar" />
84
		</div>
85
86
		<?php 
87
		if ( get_theme_mod( 'designfly-footer-display', 'Yes' ) == 'Yes' ) :
88
		?>
89
			<div class="site-info container">
90
				<p> <?php echo esc_html__( get_theme_mod( 'designfly-footer-info' ) ); ?> | <?php esc_html_e( 'Designed by', 'designfly' ); ?><a href="https://www.rtcamp.com">rtCamp</a>
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

90
				<p> <?php echo /** @scrutinizer ignore-call */ esc_html__( get_theme_mod( 'designfly-footer-info' ) ); ?> | <?php esc_html_e( 'Designed by', 'designfly' ); ?><a href="https://www.rtcamp.com">rtCamp</a>
Loading history...
91
				</p>
92
			</div>
93
		<?php
94
		endif;
95
		?>
96
97
	</footer><!-- #footer-wrapper -->
98
</div><!-- #page -->
99
100
<?php wp_footer(); ?>
0 ignored issues
show
The function wp_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

100
<?php /** @scrutinizer ignore-call */ wp_footer(); ?>
Loading history...
101
102
</body>
103
</html>
104