Issues (311)

header.php (22 issues)

Labels
Severity
1
<?php
2
/**
3
 * The header for our theme
4
 *
5
 * This is the template that displays all of the <head> section and everything up until <div id="content">
6
 *
7
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
8
 *
9
 * @package DesignFly
10
 */
11
12
?>
13
<!doctype html>
14
<html <?php language_attributes(); ?>>
0 ignored issues
show
The function language_attributes 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
<html <?php /** @scrutinizer ignore-call */ language_attributes(); ?>>
Loading history...
15
<head>
16
	<meta charset="<?php bloginfo( 'charset' ); ?>">
0 ignored issues
show
The function bloginfo 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
	<meta charset="<?php /** @scrutinizer ignore-call */ bloginfo( 'charset' ); ?>">
Loading history...
17
	<meta name="viewport" content="width=device-width, initial-scale=1">
18
	<link rel="profile" href="https://gmpg.org/xfn/11">
19
20
	<?php wp_head(); ?>
0 ignored issues
show
The function wp_head 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

20
	<?php /** @scrutinizer ignore-call */ wp_head(); ?>
Loading history...
21
</head>
22
23
<body <?php body_class(); ?> style="background: url( <?php echo get_template_directory_uri() . '/assets/images/rapeatable-bg.png' ?>)">
0 ignored issues
show
The function body_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

23
<body <?php /** @scrutinizer ignore-call */ body_class(); ?> style="background: url( <?php echo get_template_directory_uri() . '/assets/images/rapeatable-bg.png' ?>)">
Loading history...
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

23
<body <?php body_class(); ?> style="background: url( <?php echo /** @scrutinizer ignore-call */ get_template_directory_uri() . '/assets/images/rapeatable-bg.png' ?>)">
Loading history...
24
<div id="page" class="site">
25
	<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'designfly' ); ?></a>
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

25
	<a class="skip-link screen-reader-text" href="#content"><?php /** @scrutinizer ignore-call */ esc_html_e( 'Skip to content', 'designfly' ); ?></a>
Loading history...
26
27
	<header id="masthead" class="site-header" style="background: url( <?php echo get_template_directory_uri() . '/assets/images/rapeatable-bg.png' ?>)">
28
29
		<!-- Navigation bar starts here -->
30
31
		<div class="container">
32
			<nav class="navbar navbar-expand-lg navbar-light">
33
			
34
				<?php 
35
					if ( has_custom_logo() ) :
0 ignored issues
show
The function has_custom_logo 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
					if ( /** @scrutinizer ignore-call */ has_custom_logo() ) :
Loading history...
36
							the_custom_logo();
0 ignored issues
show
The function the_custom_logo 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
       the_custom_logo();
Loading history...
37
					else :  
38
				?>
39
						<a href=" <?php echo get_site_url(); ?> " class="custom-logo-link">
0 ignored issues
show
The function get_site_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

39
						<a href=" <?php echo /** @scrutinizer ignore-call */ get_site_url(); ?> " class="custom-logo-link">
Loading history...
40
							<img src=" <?php echo get_template_directory_uri() . '/assets/images/logo.png' ?> " alt="Logo" />
41
						</a>
42
				<?php endif; ?>	
43
			
44
				<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
45
					<span class="navbar-toggler-icon"></span>
46
				</button>
47
				
48
				<div class="collapse navbar-collapse" id="navbarSupportedContent">
49
					<ul class="navbar-nav mr-auto">
50
						<?php
51
						wp_nav_menu( array(
0 ignored issues
show
The function wp_nav_menu 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

51
						/** @scrutinizer ignore-call */ 
52
      wp_nav_menu( array(
Loading history...
52
							'theme_location' => 'menu-1',
53
							'menu_id'        => 'primary-menu',
54
							'menu_class'     => 'nav-menu',
55
						) );
56
						?>
57
					</ul>
58
					<form class="form-inline my-2 my-lg-0" action="<?php echo home_url( '/' ); ?>" method="get">
0 ignored issues
show
The function home_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

58
					<form class="form-inline my-2 my-lg-0" action="<?php echo /** @scrutinizer ignore-call */ home_url( '/' ); ?>" method="get">
Loading history...
59
						<input class="search-box" type="text" name="s" id="search" value="<?php the_search_query(); ?>" />
0 ignored issues
show
The function the_search_query 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
						<input class="search-box" type="text" name="s" id="search" value="<?php /** @scrutinizer ignore-call */ the_search_query(); ?>" />
Loading history...
60
						<input id="header-search-btn" type="image" alt="Search" src="<?php bloginfo( 'template_url' ); ?>/assets/images/search-icon-normal.png" />
61
					</form>
62
				</div> <!-- .collapse -->
63
			</nav>
64
		</div> <!-- .container -->
65
66
		
67
	</header><!-- #masthead -->
68
		
69
		<?php
70
		if ( get_theme_mod( 'designfly-home-display-header' ) === true ):
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

70
		if ( /** @scrutinizer ignore-call */ get_theme_mod( 'designfly-home-display-header' ) === true ):
Loading history...
71
			if ( is_front_page() && is_home() ) :
0 ignored issues
show
The function is_home 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

71
			if ( is_front_page() && /** @scrutinizer ignore-call */ is_home() ) :
Loading history...
The function is_front_page 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

71
			if ( /** @scrutinizer ignore-call */ is_front_page() && is_home() ) :
Loading history...
72
			?>
73
				<div id="intro-container">
74
					<div class="content">
75
						<h1 class="site-title">
76
							<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
0 ignored issues
show
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

76
							<a href="<?php echo /** @scrutinizer ignore-call */ esc_url( home_url( '/' ) ); ?>" rel="home">
Loading history...
77
								<?php bloginfo( 'name' ); ?>
78
							</a>
79
						</h1>
80
81
						<?php
82
							$designfly_description = get_bloginfo( 'description', 'display' );
0 ignored issues
show
The function get_bloginfo 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
							$designfly_description = /** @scrutinizer ignore-call */ get_bloginfo( 'description', 'display' );
Loading history...
83
							if ( $designfly_description || is_customize_preview() ) :
0 ignored issues
show
The function is_customize_preview 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

83
							if ( $designfly_description || /** @scrutinizer ignore-call */ is_customize_preview() ) :
Loading history...
84
						?>
85
						<p class="site-description"><?php echo $designfly_description; ?></p>
86
							<?php endif; ?>
87
					</div>
88
89
					<?php 
90
					if ( has_header_image() ) : 
0 ignored issues
show
The function has_header_image 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
					if ( /** @scrutinizer ignore-call */ has_header_image() ) : 
Loading history...
91
					?>
92
93
						<div class="header-img" style="background: url( <?php echo get_header_image(); ?> )"></div>
0 ignored issues
show
The function get_header_image 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

93
						<div class="header-img" style="background: url( <?php echo /** @scrutinizer ignore-call */ get_header_image(); ?> )"></div>
Loading history...
94
						
95
					<?php
96
					else : 
97
					?>
98
						<div class="header-img" style="background: url( <?php echo get_template_directory_uri() . '/assets/images/full-slider.png' ?> )"></div>
99
100
					<?php endif; ?>
101
				</div>
102
				
103
				<hr class="break"/>
104
105
				<?php
106
			else :
107
				?>
108
				<?php
109
			endif;
110
		endif;
111
		?>
112
			
113
		<!-- Bottom section of header -->
114
115
		<?php if ( get_theme_mod( 'designfly-features-display' ) === true ) : ?>
116
117
			<div class="container-fluid features-wrapper">
118
				<div class="container features-container">
119
					<div class="row">
120
121
						<div class="col-sm-4">
122
							<div class="thumbnail">
123
								<img src=" <?php echo wp_get_attachment_url( get_theme_mod( 'designfly-features-image-1' ) ); ?> "/>
0 ignored issues
show
The function wp_get_attachment_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

123
								<img src=" <?php echo /** @scrutinizer ignore-call */ wp_get_attachment_url( get_theme_mod( 'designfly-features-image-1' ) ); ?> "/>
Loading history...
124
							</div><!-- .thumbnail -->
125
							<div class="content">
126
								<p class="title"> <?php echo esc_html( get_theme_mod( 'designfly-features-title-1' ) ); ?> </p>
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

126
								<p class="title"> <?php echo /** @scrutinizer ignore-call */ esc_html( get_theme_mod( 'designfly-features-title-1' ) ); ?> </p>
Loading history...
127
								<p class="description"> <?php echo esc_html( get_theme_mod( 'designfly-features-para-1' ) ); ?> </p>
128
							</div><!-- .content -->
129
						</div><!-- .col-sm-4 -->
130
131
						<div class="col-sm-4">
132
							<div class="thumbnail">
133
								<img src=" <?php echo wp_get_attachment_url( get_theme_mod( 'designfly-features-image-2' ) ); ?> "/>
134
							</div><!-- .thumbnail -->
135
							<div class="content">
136
								<p class="title"> <?php echo esc_html( get_theme_mod( 'designfly-features-title-2' ) ); ?> </p>
137
								<p class="description"> <?php echo esc_html( get_theme_mod( 'designfly-features-para-2' ) ); ?> </p>
138
							</div><!-- .content -->
139
						</div><!-- .col-sm-4 -->
140
						
141
						<div class="col-sm-4">
142
							<div class="thumbnail">
143
								<img src=" <?php echo wp_get_attachment_url( get_theme_mod( 'designfly-features-image-3' ) ); ?> "/>
144
							</div><!-- .thumbnail -->
145
							<div class="content">
146
								<p class="title"> <?php echo esc_html( get_theme_mod( 'designfly-features-title-3' ) ); ?> </p>
147
								<p class="description"> <?php echo esc_html( get_theme_mod( 'designfly-features-para-3' ) ); ?> </p>
148
							</div><!-- .content -->
149
						</div><!-- .col-sm-4 -->
150
151
					</div><!-- .row -->
152
				</div><!-- .container -->
153
			</div><!-- .container-fluid -->
154
155
		<?php endif; ?>	
156
		
157
158
159
	<div id="content" class="site-content">
160