@@ -17,10 +17,10 @@ |
||
17 | 17 | <div class="footer-normal"> |
18 | 18 | <div class="container"> |
19 | 19 | <div class="row widget"> |
20 | - <div class="col-sm-6 col-md-3 widget-col widget-col-1"><?php dynamic_sidebar( 'footer_widgets_1' ); ?></div> |
|
21 | - <div class="col-sm-6 col-md-3 widget-col widget-col-2"><?php dynamic_sidebar( 'footer_widgets_2' ); ?></div> |
|
22 | - <div class="col-sm-6 col-md-3 widget-col widget-col-3"><?php dynamic_sidebar( 'footer_widgets_3' ); ?></div> |
|
23 | - <div class="col-sm-6 col-md-3 widget-col widget-col-4"><?php dynamic_sidebar( 'footer_widgets_4' ); ?></div> |
|
20 | + <div class="col-sm-6 col-md-3 widget-col widget-col-1"><?php dynamic_sidebar('footer_widgets_1'); ?></div> |
|
21 | + <div class="col-sm-6 col-md-3 widget-col widget-col-2"><?php dynamic_sidebar('footer_widgets_2'); ?></div> |
|
22 | + <div class="col-sm-6 col-md-3 widget-col widget-col-3"><?php dynamic_sidebar('footer_widgets_3'); ?></div> |
|
23 | + <div class="col-sm-6 col-md-3 widget-col widget-col-4"><?php dynamic_sidebar('footer_widgets_4'); ?></div> |
|
24 | 24 | </div> |
25 | 25 | </div> |
26 | 26 | </div> |
@@ -9,7 +9,7 @@ |
||
9 | 9 | <div class="container"> |
10 | 10 | <div class="row"> |
11 | 11 | <main id="main" class="site-main" role="main"> |
12 | - <?php while ( have_posts() ) : the_post(); ?> |
|
12 | + <?php while (have_posts()) : the_post(); ?> |
|
13 | 13 | <section class="home-content"> |
14 | 14 | <?php the_content(); ?> |
15 | 15 | </section> |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | * @package Lighthouse |
8 | 8 | */ |
9 | 9 | |
10 | -if ( ! function_exists( 'lighthouse_setup' ) ) : |
|
10 | +if ( ! function_exists('lighthouse_setup')) : |
|
11 | 11 | /** |
12 | 12 | * Sets up theme defaults and registers support for various WordPress features. |
13 | 13 | * |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | add_editor_style( |
27 | 27 | array( |
28 | - 'style.css', str_replace( ',', '%2C', $font_url_Questrial), str_replace( ',', '%2C', $font_url_Raleway), str_replace( ',', '%2C', $font_url_Montserrat) |
|
28 | + 'style.css', str_replace(',', '%2C', $font_url_Questrial), str_replace(',', '%2C', $font_url_Raleway), str_replace(',', '%2C', $font_url_Montserrat) |
|
29 | 29 | ) |
30 | 30 | ); |
31 | 31 | /* |
@@ -34,10 +34,10 @@ discard block |
||
34 | 34 | * If you're building a theme based on Lighthouse, use a find and replace |
35 | 35 | * to change 'lighthouse' to the name of your theme in all the template files. |
36 | 36 | */ |
37 | - load_theme_textdomain( 'lighthouse', get_template_directory() . '/languages' ); |
|
37 | + load_theme_textdomain('lighthouse', get_template_directory().'/languages'); |
|
38 | 38 | |
39 | 39 | // Add default posts and comments RSS feed links to head. |
40 | - add_theme_support( 'automatic-feed-links' ); |
|
40 | + add_theme_support('automatic-feed-links'); |
|
41 | 41 | |
42 | 42 | /* |
43 | 43 | * Let WordPress manage the document title. |
@@ -45,65 +45,65 @@ discard block |
||
45 | 45 | * hard-coded <title> tag in the document head, and expect WordPress to |
46 | 46 | * provide it for us. |
47 | 47 | */ |
48 | - add_theme_support( 'title-tag' ); |
|
48 | + add_theme_support('title-tag'); |
|
49 | 49 | |
50 | 50 | /* |
51 | 51 | * Enable support for Post Thumbnails on posts and pages. |
52 | 52 | * |
53 | 53 | * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ |
54 | 54 | */ |
55 | - add_theme_support( 'post-thumbnails' ); |
|
55 | + add_theme_support('post-thumbnails'); |
|
56 | 56 | |
57 | - add_image_size( 'lighthouse_feature_img', 1000, 310, array( 'center', 'center' ) ); |
|
57 | + add_image_size('lighthouse_feature_img', 1000, 310, array('center', 'center')); |
|
58 | 58 | |
59 | - add_image_size( 'lighthouse_blog_listing', 714, 274, array( 'center', 'center' ) ); |
|
59 | + add_image_size('lighthouse_blog_listing', 714, 274, array('center', 'center')); |
|
60 | 60 | |
61 | - add_image_size( 'lighthouse_related_post', 475, 280, array( 'center', 'center' ) ); |
|
61 | + add_image_size('lighthouse_related_post', 475, 280, array('center', 'center')); |
|
62 | 62 | |
63 | 63 | /* |
64 | 64 | * Default HTML5 Form |
65 | 65 | * |
66 | 66 | * @link https://codex.wordpress.org/Function_Reference/get_search_form |
67 | 67 | */ |
68 | - add_theme_support( 'html5', array( 'search-form' ) ); |
|
68 | + add_theme_support('html5', array('search-form')); |
|
69 | 69 | |
70 | 70 | // This theme uses wp_nav_menu() in one location. |
71 | - register_nav_menus( array( |
|
72 | - 'primary' => esc_html__( 'Primary', 'lighthouse' ), |
|
73 | - ) ); |
|
71 | + register_nav_menus(array( |
|
72 | + 'primary' => esc_html__('Primary', 'lighthouse'), |
|
73 | + )); |
|
74 | 74 | |
75 | 75 | /* |
76 | 76 | * Switch default core markup for search form, comment form, and comments |
77 | 77 | * to output valid HTML5. |
78 | 78 | */ |
79 | - add_theme_support( 'html5', array( |
|
79 | + add_theme_support('html5', array( |
|
80 | 80 | 'search-form', |
81 | 81 | 'comment-form', |
82 | 82 | 'comment-list', |
83 | 83 | 'gallery', |
84 | 84 | 'caption', |
85 | - ) ); |
|
85 | + )); |
|
86 | 86 | |
87 | 87 | /* |
88 | 88 | * Enable support for Post Formats. |
89 | 89 | * See https://developer.wordpress.org/themes/functionality/post-formats/ |
90 | 90 | */ |
91 | - add_theme_support( 'post-formats', array( |
|
91 | + add_theme_support('post-formats', array( |
|
92 | 92 | 'aside', |
93 | 93 | 'image', |
94 | 94 | 'video', |
95 | 95 | 'quote', |
96 | 96 | 'link', |
97 | - ) ); |
|
97 | + )); |
|
98 | 98 | |
99 | 99 | // Set up the WordPress core custom background feature. |
100 | - add_theme_support( 'custom-background', apply_filters( 'lighthouse_custom_background_args', array( |
|
100 | + add_theme_support('custom-background', apply_filters('lighthouse_custom_background_args', array( |
|
101 | 101 | 'default-color' => 'ffffff', |
102 | 102 | 'default-image' => '', |
103 | - ) ) ); |
|
103 | + ))); |
|
104 | 104 | } |
105 | 105 | endif; |
106 | -add_action( 'after_setup_theme', 'lighthouse_setup' ); |
|
106 | +add_action('after_setup_theme', 'lighthouse_setup'); |
|
107 | 107 | |
108 | 108 | /** |
109 | 109 | * Set the content width in pixels, based on the theme's design and stylesheet. |
@@ -113,16 +113,16 @@ discard block |
||
113 | 113 | * @global int $content_width |
114 | 114 | */ |
115 | 115 | function lighthouse_content_width() { |
116 | - $GLOBALS['content_width'] = apply_filters( 'lighthouse_content_width', 640 ); |
|
116 | + $GLOBALS['content_width'] = apply_filters('lighthouse_content_width', 640); |
|
117 | 117 | } |
118 | -add_action( 'after_setup_theme', 'lighthouse_content_width', 0 ); |
|
118 | +add_action('after_setup_theme', 'lighthouse_content_width', 0); |
|
119 | 119 | |
120 | 120 | /** |
121 | 121 | * Enqueue scripts and styles. |
122 | 122 | */ |
123 | 123 | function lighthouse_scripts() { |
124 | 124 | |
125 | - wp_enqueue_style( 'lighthouse-style', get_stylesheet_uri() ); |
|
125 | + wp_enqueue_style('lighthouse-style', get_stylesheet_uri()); |
|
126 | 126 | |
127 | 127 | wp_enqueue_style('lighthouse-google-fonts-questrial', 'https://fonts.googleapis.com/css?family=Questrial'); |
128 | 128 | |
@@ -130,53 +130,53 @@ discard block |
||
130 | 130 | |
131 | 131 | wp_enqueue_style('lighthouse-google-fonts-montserrat', 'https://fonts.googleapis.com/css?family=Montserrat:400,700'); |
132 | 132 | |
133 | - wp_enqueue_script( 'lighthouse-classList-js', 'https://cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js', array('jquery'), ''); |
|
133 | + wp_enqueue_script('lighthouse-classList-js', 'https://cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js', array('jquery'), ''); |
|
134 | 134 | |
135 | - wp_enqueue_script( 'lighthouse-bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '', true ); |
|
135 | + wp_enqueue_script('lighthouse-bootstrap-js', get_template_directory_uri().'/js/bootstrap.min.js', array('jquery'), '', true); |
|
136 | 136 | |
137 | - wp_enqueue_script( 'lighthouse-material-menu-js', get_template_directory_uri() . '/js/materialMenu.js', array('jquery'), '', true ); |
|
137 | + wp_enqueue_script('lighthouse-material-menu-js', get_template_directory_uri().'/js/materialMenu.js', array('jquery'), '', true); |
|
138 | 138 | |
139 | - wp_enqueue_script( 'lighthouse-owl-carousel-js', get_template_directory_uri() . '/js/owl-carousel.js', array('jquery'), '', true ); |
|
139 | + wp_enqueue_script('lighthouse-owl-carousel-js', get_template_directory_uri().'/js/owl-carousel.js', array('jquery'), '', true); |
|
140 | 140 | |
141 | - wp_enqueue_script( 'lighthouse-match-height-js', get_template_directory_uri() . '/js/jquery.matchHeight-min.js', array('jquery'), '', true ); |
|
141 | + wp_enqueue_script('lighthouse-match-height-js', get_template_directory_uri().'/js/jquery.matchHeight-min.js', array('jquery'), '', true); |
|
142 | 142 | |
143 | - wp_enqueue_script( 'lighthouse-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); |
|
143 | + wp_enqueue_script('lighthouse-navigation', get_template_directory_uri().'/js/navigation.js', array(), '20120206', true); |
|
144 | 144 | |
145 | - wp_enqueue_script( 'lighthouse-settings-js', get_template_directory_uri() . '/js/lighthouse-settings.js', array('jquery'), '', true ); |
|
145 | + wp_enqueue_script('lighthouse-settings-js', get_template_directory_uri().'/js/lighthouse-settings.js', array('jquery'), '', true); |
|
146 | 146 | |
147 | - wp_enqueue_script( 'lighthouse-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); |
|
147 | + wp_enqueue_script('lighthouse-skip-link-focus-fix', get_template_directory_uri().'/js/skip-link-focus-fix.js', array(), '20130115', true); |
|
148 | 148 | |
149 | - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { |
|
150 | - wp_enqueue_script( 'comment-reply' ); |
|
149 | + if (is_singular() && comments_open() && get_option('thread_comments')) { |
|
150 | + wp_enqueue_script('comment-reply'); |
|
151 | 151 | } |
152 | 152 | } |
153 | -add_action( 'wp_enqueue_scripts', 'lighthouse_scripts' ); |
|
153 | +add_action('wp_enqueue_scripts', 'lighthouse_scripts'); |
|
154 | 154 | |
155 | 155 | |
156 | 156 | /** |
157 | 157 | * Implement the Custom Header feature. |
158 | 158 | */ |
159 | -require get_template_directory() . '/inc/custom-header.php'; |
|
159 | +require get_template_directory().'/inc/custom-header.php'; |
|
160 | 160 | |
161 | 161 | /** |
162 | 162 | * Custom template tags for this theme. |
163 | 163 | */ |
164 | -require get_template_directory() . '/inc/template-tags.php'; |
|
164 | +require get_template_directory().'/inc/template-tags.php'; |
|
165 | 165 | |
166 | 166 | /** |
167 | 167 | * Custom functions that act independently of the theme templates. |
168 | 168 | */ |
169 | -require get_template_directory() . '/inc/extras.php'; |
|
169 | +require get_template_directory().'/inc/extras.php'; |
|
170 | 170 | |
171 | 171 | /** |
172 | 172 | * Customizer additions. |
173 | 173 | */ |
174 | -require get_template_directory() . '/inc/customizer.php'; |
|
174 | +require get_template_directory().'/inc/customizer.php'; |
|
175 | 175 | |
176 | 176 | /** |
177 | 177 | * Load Jetpack compatibility file. |
178 | 178 | */ |
179 | -require get_template_directory() . '/inc/jetpack.php'; |
|
179 | +require get_template_directory().'/inc/jetpack.php'; |
|
180 | 180 | |
181 | 181 | |
182 | 182 | /** |
@@ -184,19 +184,19 @@ discard block |
||
184 | 184 | */ |
185 | 185 | |
186 | 186 | // ACF |
187 | -include_once( get_stylesheet_directory() . '/includes/acf/acf.php' ); |
|
187 | +include_once(get_stylesheet_directory().'/includes/acf/acf.php'); |
|
188 | 188 | |
189 | 189 | // ACF Settings |
190 | -include_once( get_stylesheet_directory() . '/includes/acf-settings.php' ); |
|
190 | +include_once(get_stylesheet_directory().'/includes/acf-settings.php'); |
|
191 | 191 | |
192 | 192 | // Widgets |
193 | -include_once( get_stylesheet_directory() . '/includes/widgets.php' ); |
|
193 | +include_once(get_stylesheet_directory().'/includes/widgets.php'); |
|
194 | 194 | |
195 | 195 | // Menus |
196 | -include_once( get_stylesheet_directory() . '/includes/menus.php' ); |
|
196 | +include_once(get_stylesheet_directory().'/includes/menus.php'); |
|
197 | 197 | |
198 | 198 | // Theme Settings |
199 | -include_once( get_stylesheet_directory() . '/includes/theme-settings.php' ); |
|
199 | +include_once(get_stylesheet_directory().'/includes/theme-settings.php'); |
|
200 | 200 | |
201 | 201 | // Shortcodes |
202 | -include_once( get_stylesheet_directory() . '/includes/shortcodes.php' ); |
|
202 | +include_once(get_stylesheet_directory().'/includes/shortcodes.php'); |
@@ -12,17 +12,17 @@ discard block |
||
12 | 12 | ?><!DOCTYPE html> |
13 | 13 | <html <?php language_attributes(); ?>> |
14 | 14 | <head> |
15 | - <meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
15 | + <meta charset="<?php bloginfo('charset'); ?>"> |
|
16 | 16 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
17 | 17 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
18 | - <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
|
18 | + <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> |
|
19 | 19 | |
20 | 20 | <?php wp_head(); ?> |
21 | 21 | </head> |
22 | 22 | |
23 | 23 | <body <?php body_class(); ?>> |
24 | 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> |
|
25 | + <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e('Skip to content', 'lighthouse'); ?></a> |
|
26 | 26 | |
27 | 27 | <header id="masthead" class="site-header panel-top panel-fixed" role="banner"> |
28 | 28 | <div class="container"> |
@@ -43,10 +43,10 @@ discard block |
||
43 | 43 | <?php |
44 | 44 | $url = 'http://charts3.equitystory.com/api/lighthousegroup/English'; |
45 | 45 | $xml = simplexml_load_file($url); |
46 | - $price=$xml->latest_price->close_price; |
|
47 | - $change=$xml->latest_price->change_today; |
|
48 | - $change_pcent=$xml->latest_price->change_pcent_today; |
|
49 | - $volume=$xml->latest_price->volume; |
|
46 | + $price = $xml->latest_price->close_price; |
|
47 | + $change = $xml->latest_price->change_today; |
|
48 | + $change_pcent = $xml->latest_price->change_pcent_today; |
|
49 | + $volume = $xml->latest_price->volume; |
|
50 | 50 | echo "Share Price: "; |
51 | 51 | echo $price; |
52 | 52 | echo "p | Change: "; |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | <button id="textplus">A+</button> |
65 | 65 | <button id="textminus">A-</button> |
66 | 66 | </div> |
67 | - <form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>"> |
|
67 | + <form role="search" method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
68 | 68 | <div class="search-wrap"> |
69 | - <label class="screen-reader-text" for="s"><?php _e( 'Search for:', 'presentation' ); ?></label> |
|
69 | + <label class="screen-reader-text" for="s"><?php _e('Search for:', 'presentation'); ?></label> |
|
70 | 70 | <button type="submit"> |
71 | 71 | <i class="fa fa-search"></i> |
72 | 72 | </button> |
73 | - <input type="search" placeholder="<?php echo esc_attr( 'Search', 'presentation' ); ?>" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" /> |
|
73 | + <input type="search" placeholder="<?php echo esc_attr('Search', 'presentation'); ?>" name="s" value="<?php echo esc_attr(get_search_query()); ?>" /> |
|
74 | 74 | </div> |
75 | 75 | </form> |
76 | 76 | </div> |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | </div> |
84 | 84 | </div> |
85 | 85 | <div class="col-sm-12 col-md-2 col-lg-2 header-center-area"> |
86 | - <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> |
|
87 | - <img src="<?php echo( get_header_image() ); ?>" alt="<?php echo( get_bloginfo( 'title' ) ); ?>" /> |
|
86 | + <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"> |
|
87 | + <img src="<?php echo(get_header_image()); ?>" alt="<?php echo(get_bloginfo('title')); ?>" /> |
|
88 | 88 | </a> |
89 | 89 | |
90 | 90 | <div class="iv-module live-search"> |
@@ -97,9 +97,9 @@ discard block |
||
97 | 97 | <div class="container"> |
98 | 98 | <div class="row"> |
99 | 99 | <div class="col-md-12"> |
100 | - <form method="get" action="<?php echo esc_url( home_url( '/' ) );?>"> |
|
101 | - <label for="s"><?php _e('Type & hit enter to search', 'ivan_domain');?></label> |
|
102 | - <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter to search', 'lighthouse');?>" /> |
|
100 | + <form method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
101 | + <label for="s"><?php _e('Type & hit enter to search', 'ivan_domain'); ?></label> |
|
102 | + <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter to search', 'lighthouse'); ?>" /> |
|
103 | 103 | <a class="submit-form" href="#"><i class="fa fa-search"></i></a> |
104 | 104 | <div class="clearfix"></div> |
105 | 105 | </form> |
@@ -126,9 +126,9 @@ discard block |
||
126 | 126 | <div class="container"> |
127 | 127 | <div class="row"> |
128 | 128 | <div class="col-md-12"> |
129 | - <form method="get" action="<?php echo esc_url( home_url( '/' ) );?>"> |
|
130 | - <label for="s"><?php _e('Type & hit enter', 'ivan_domain');?></label> |
|
131 | - <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter', 'lighthouse');?>" /> |
|
129 | + <form method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
130 | + <label for="s"><?php _e('Type & hit enter', 'ivan_domain'); ?></label> |
|
131 | + <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter', 'lighthouse'); ?>" /> |
|
132 | 132 | <a class="submit-form" href="#"><i class="fa fa-search"></i></a> |
133 | 133 | <div class="clearfix"></div> |
134 | 134 | </form> |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | <div class="row"> |
4 | 4 | <div class="col-xs-12"> |
5 | 5 | <div class="slider-inner"> |
6 | - <?php echo do_shortcode( '[masterslider id="1"]') ?> |
|
6 | + <?php echo do_shortcode('[masterslider id="1"]') ?> |
|
7 | 7 | </div> |
8 | 8 | <div class="messages"> |
9 | 9 | <p>Latest Financial Reports just added - View our 2016 Accounts here +</p> |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | <div class="col-xs-12"> |
177 | 177 | <h4>Members of the following groups, see how we already work with you:</h4> |
178 | 178 | |
179 | - <?php echo do_shortcode( '[members_logo]') ?> |
|
179 | + <?php echo do_shortcode('[members_logo]') ?> |
|
180 | 180 | </div> |
181 | 181 | </div> |
182 | 182 | </div> |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | </div> |
195 | 195 | <div class="row"> |
196 | 196 | <div class="col-xs-12"> |
197 | - <?php echo do_shortcode( '[recent_posts]') ?> |
|
197 | + <?php echo do_shortcode('[recent_posts]') ?> |
|
198 | 198 | </div> |
199 | 199 | </div> |
200 | 200 | </section> |