Completed
Push — master ( 423b35...e79207 )
by Md. Mozahidur
02:17
created

header.php (4 issues)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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 Lighthouse
10
 */
11
12
?><!DOCTYPE html>
13
<html <?php language_attributes(); ?>>
14
<head>
15
	<meta charset="<?php bloginfo( 'charset' ); ?>">
16
	<meta name="viewport" content="width=device-width, initial-scale=1">
17
	<link rel="profile" href="http://gmpg.org/xfn/11">
18
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
19
20
	<?php wp_head(); ?>
21
</head>
22
23
<body <?php body_class(); ?>>
24
	<div id="page" class="site">
25
		<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'lighthouse' ); ?></a>
26
27
		<header id="masthead" class="site-header panel-top panel-fixed" role="banner">
28
			<div class="container">
29
				<div class="row social-links">
30
					<div class="col-sm-12 col-xs-12 col-md-6 social-items">
31
						<!-- <a href="" class="link link-youtube" target="_blank"><i class="fa fw fa-youtube"></i></a> -->
32
						<a href="https://www.linkedin.com/company/lighthouse-group-plc" class="link link-linkedin" target="_blank"></a>
33
34
						<!-- <a href="https://plus.google.com/u/0/112602769566696286010" class="link link-google-plus" target="_blank"></a> -->
35
36
						<a href="https://www.facebook.com/LighthouseGroupPLC" class="link link-facebook" target="_blank"></a>
37
38
						<a href="https://twitter.com/talk2lighthouse" class="link link-twitter" target="_blank"></a>
39
40
41
						<a href="#" class="live-feed hidden-xs hidden-sm">
42
							<span class="share-price-at-top">
43
								<?php
44
									$xmldat = file_get_contents('http://qfx.quartalflife.com/clients/uk/lighthouse_group/xml/xml.aspx');
45
46
									file_put_contents('./wp-content/themes/lighthouse/xml-feeds/share-price.xml', $xmldat);
47
48
									$url 	= './wp-content/themes/lighthouse/xml-feeds/share-price.xml';
49
									$xml 	= simplexml_load_file($url);
50
									$price 	= $xml->CurrentPrice;
0 ignored issues
show
The property CurrentPrice does not seem to exist in SimpleXMLElement.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
51
									$change = $xml->Change;
0 ignored issues
show
The property Change does not seem to exist in SimpleXMLElement.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
52
									$change_pcent 	= $xml->PercentageChange;
0 ignored issues
show
The property PercentageChange does not seem to exist in SimpleXMLElement.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
53
									$volume = $xml->Volume;
0 ignored issues
show
The property Volume does not seem to exist in SimpleXMLElement.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
54
55
									echo "Share Price: ";
56
									echo $price;
57
									echo "p | Change: ";
58
									echo $change;
59
									echo "p - ";
60
									echo $change_pcent;
61
									echo "% | Volume: ";
62
									echo $volume;
63
								?>
64
							</span>
65
						</a>
66
					</div>
67
					<div class="col-md-6 top-search hidden-xs hidden-sm">
68
						<div class="font-adjustment">
69
							<button id="textplus">A+</button>
70
							<button id="textminus">A-</button>
71
						</div>
72
						<form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
73
						    <div class="search-wrap">
74
						    	<label class="screen-reader-text" for="s"><?php _e( 'Search for:', 'presentation' ); ?></label>
75
						    	 <button type="submit">
76
					                <i class="fa fa-search"></i>
77
					            </button>
78
						        <input type="search" placeholder="<?php echo esc_attr( 'Search', 'presentation' ); ?>" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" />
79
						    </div>
80
						</form>
81
					</div>
82
				</div>
83
				<div class="row header-menus">
84
					<nav id="site-navigation" class="main-navigation" role="navigation">
85
						<div class="col-md-4 col-lg-4 hidden-xs hidden-sm menu-area">
86
							<div id="menu-left">
87
								<?php lighthouse_header_menu_left(); ?>
88
							</div>
89
						</div>
90
						<div class="col-sm-12 col-md-4 col-lg-4 header-center-area">
91
							<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
92
								<img src="<?php echo( get_header_image() ); ?>" alt="<?php echo( get_bloginfo( 'title' ) ); ?>" />
93
							</a>
94
95
							<div class="iv-module live-search">
96
								<div class="centered">
97
									<a href="#" class="trigger"><i class="fa fa-search"></i></a>
98
									<div class="inner-wrapper">
99
										<span class="form-close-btn thin"> ✕ </span>
100
										<span class="form-close-btn bold"><i class="fa fa-remove"></i></span>
101
										<div class="inner-form">
102
											<div class="container">
103
												<div class="row">
104
													<div class="col-md-12">
105
														<form method="get" action="<?php echo esc_url( home_url( '/' ) );?>">
106
															<label for="s"><?php _e('Type &amp; hit enter to search', 'ivan_domain');?></label>
107
															<input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type &amp; hit enter to search', 'lighthouse');?>" />
108
															<a class="submit-form" href="#"><i class="fa fa-search"></i></a>
109
															<div class="clearfix"></div>
110
														</form>
111
													</div>
112
												</div>
113
											</div>
114
										</div>
115
									</div>
116
								</div>
117
							</div>
118
119
						</div>
120
						<div class="col-md-4 col-lg-4 hidden-xs hidden-sm menu-area">
121
							<div id="menu-right">
122
								<?php lighthouse_header_menu_right(); ?>
123
							</div>
124
							<div class="iv-module live-search ">
125
								<div class="centered">
126
									<a href="#" class="trigger"><i class="fa fa-search"></i></a>
127
									<div class="inner-wrapper">
128
										<span class="form-close-btn thin"> ✕ </span>
129
										<span class="form-close-btn bold"><i class="fa fa-remove"></i></span>
130
										<div class="inner-form">
131
											<div class="container">
132
												<div class="row">
133
													<div class="col-md-12">
134
														<form method="get" action="<?php echo esc_url( home_url( '/' ) );?>">
135
															<label for="s"><?php _e('Type &amp; hit enter', 'ivan_domain');?></label>
136
															<input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type &amp; hit enter', 'lighthouse');?>" />
137
															<a class="submit-form" href="#"><i class="fa fa-search"></i></a>
138
															<div class="clearfix"></div>
139
														</form>
140
													</div>
141
												</div>
142
											</div>
143
										</div>
144
									</div>
145
								</div>
146
							</div>
147
						</div>
148
					</nav><!-- #site-navigation -->
149
				</div>
150
			</div>
151
		</header><!-- #masthead -->
152
153
		<div id="content" class="site-content">