@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 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 Lighthouse |
|
10 | - */ |
|
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 Lighthouse |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | ?> |
13 | 13 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | <div class="row"> |
69 | 69 | <div class="col-xs-12"> |
70 | 70 | <?php if (function_exists("pagination")) { |
71 | - pagination($loop->max_num_pages); |
|
71 | + pagination($loop->max_num_pages); |
|
72 | 72 | } ?> |
73 | 73 | </div> |
74 | 74 | </div> |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Lighthouse functions and definitions. |
|
4 | - * |
|
5 | - * @link https://developer.wordpress.org/themes/basics/theme-functions/ |
|
6 | - * |
|
7 | - * @package Lighthouse |
|
8 | - */ |
|
3 | + * Lighthouse functions and definitions. |
|
4 | + * |
|
5 | + * @link https://developer.wordpress.org/themes/basics/theme-functions/ |
|
6 | + * |
|
7 | + * @package Lighthouse |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | if ( ! function_exists( 'lighthouse_setup' ) ) : |
11 | 11 | /** |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * as indicating support for post thumbnails. |
17 | 17 | */ |
18 | 18 | function lighthouse_setup() { |
19 | - // This theme styles the visual editor to resemble the theme style. |
|
19 | + // This theme styles the visual editor to resemble the theme style. |
|
20 | 20 | $font_url_Questrial = 'https://fonts.googleapis.com/css?family=Questrial'; |
21 | 21 | |
22 | 22 | $font_url_Raleway = 'https://fonts.googleapis.com/css?family=Raleway:400,300,500,700,600,100'; |
@@ -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,20 +45,20 @@ 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 | /* |
@@ -72,45 +72,45 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @link https://codex.wordpress.org/Function_Reference/get_search_form |
74 | 74 | */ |
75 | - add_theme_support( 'html5', array( 'search-form' ) ); |
|
75 | + add_theme_support('html5', array('search-form')); |
|
76 | 76 | |
77 | 77 | // This theme uses wp_nav_menu() in one location. |
78 | - register_nav_menus( array( |
|
79 | - 'primary' => esc_html__( 'Primary', 'lighthouse' ), |
|
80 | - ) ); |
|
78 | + register_nav_menus(array( |
|
79 | + 'primary' => esc_html__('Primary', 'lighthouse'), |
|
80 | + )); |
|
81 | 81 | |
82 | 82 | /* |
83 | 83 | * Switch default core markup for search form, comment form, and comments |
84 | 84 | * to output valid HTML5. |
85 | 85 | */ |
86 | - add_theme_support( 'html5', array( |
|
86 | + add_theme_support('html5', array( |
|
87 | 87 | 'search-form', |
88 | 88 | 'comment-form', |
89 | 89 | 'comment-list', |
90 | 90 | 'gallery', |
91 | 91 | 'caption', |
92 | - ) ); |
|
92 | + )); |
|
93 | 93 | |
94 | 94 | /* |
95 | 95 | * Enable support for Post Formats. |
96 | 96 | * See https://developer.wordpress.org/themes/functionality/post-formats/ |
97 | 97 | */ |
98 | - add_theme_support( 'post-formats', array( |
|
98 | + add_theme_support('post-formats', array( |
|
99 | 99 | 'aside', |
100 | 100 | 'image', |
101 | 101 | 'video', |
102 | 102 | 'quote', |
103 | 103 | 'link', |
104 | - ) ); |
|
104 | + )); |
|
105 | 105 | |
106 | 106 | // Set up the WordPress core custom background feature. |
107 | - add_theme_support( 'custom-background', apply_filters( 'lighthouse_custom_background_args', array( |
|
107 | + add_theme_support('custom-background', apply_filters('lighthouse_custom_background_args', array( |
|
108 | 108 | 'default-color' => 'ffffff', |
109 | 109 | 'default-image' => '', |
110 | - ) ) ); |
|
110 | + ))); |
|
111 | 111 | } |
112 | 112 | endif; |
113 | -add_action( 'after_setup_theme', 'lighthouse_setup' ); |
|
113 | +add_action('after_setup_theme', 'lighthouse_setup'); |
|
114 | 114 | |
115 | 115 | /** |
116 | 116 | * Set the content width in pixels, based on the theme's design and stylesheet. |
@@ -120,16 +120,16 @@ discard block |
||
120 | 120 | * @global int $content_width |
121 | 121 | */ |
122 | 122 | function lighthouse_content_width() { |
123 | - $GLOBALS['content_width'] = apply_filters( 'lighthouse_content_width', 640 ); |
|
123 | + $GLOBALS['content_width'] = apply_filters('lighthouse_content_width', 640); |
|
124 | 124 | } |
125 | -add_action( 'after_setup_theme', 'lighthouse_content_width', 0 ); |
|
125 | +add_action('after_setup_theme', 'lighthouse_content_width', 0); |
|
126 | 126 | |
127 | 127 | /** |
128 | 128 | * Enqueue scripts and styles. |
129 | 129 | */ |
130 | 130 | function lighthouse_scripts() { |
131 | 131 | |
132 | - wp_enqueue_style( 'lighthouse-style', get_stylesheet_uri() ); |
|
132 | + wp_enqueue_style('lighthouse-style', get_stylesheet_uri()); |
|
133 | 133 | |
134 | 134 | wp_enqueue_style('lighthouse-google-fonts-questrial', 'https://fonts.googleapis.com/css?family=Questrial'); |
135 | 135 | |
@@ -137,53 +137,53 @@ discard block |
||
137 | 137 | |
138 | 138 | wp_enqueue_style('lighthouse-google-fonts-montserrat', 'https://fonts.googleapis.com/css?family=Montserrat:400,700'); |
139 | 139 | |
140 | - wp_enqueue_script( 'lighthouse-classList-js', 'https://cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js', array('jquery'), ''); |
|
140 | + wp_enqueue_script('lighthouse-classList-js', 'https://cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js', array('jquery'), ''); |
|
141 | 141 | |
142 | - wp_enqueue_script( 'lighthouse-bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '', true ); |
|
142 | + wp_enqueue_script('lighthouse-bootstrap-js', get_template_directory_uri().'/js/bootstrap.min.js', array('jquery'), '', true); |
|
143 | 143 | |
144 | - wp_enqueue_script( 'lighthouse-material-menu-js', get_template_directory_uri() . '/js/materialMenu.min.js', array('jquery'), '', true ); |
|
144 | + wp_enqueue_script('lighthouse-material-menu-js', get_template_directory_uri().'/js/materialMenu.min.js', array('jquery'), '', true); |
|
145 | 145 | |
146 | - wp_enqueue_script( 'lighthouse-owl-carousel-js', get_template_directory_uri() . '/js/owl-carousel.min.js', array('jquery'), '', true ); |
|
146 | + wp_enqueue_script('lighthouse-owl-carousel-js', get_template_directory_uri().'/js/owl-carousel.min.js', array('jquery'), '', true); |
|
147 | 147 | |
148 | - wp_enqueue_script( 'lighthouse-match-height-js', get_template_directory_uri() . '/js/jquery.matchHeight-min.js', array('jquery'), '', true ); |
|
148 | + wp_enqueue_script('lighthouse-match-height-js', get_template_directory_uri().'/js/jquery.matchHeight-min.js', array('jquery'), '', true); |
|
149 | 149 | |
150 | - wp_enqueue_script( 'lighthouse-navigation', get_template_directory_uri() . '/js/navigation.min.js', array(), '20120206', true ); |
|
150 | + wp_enqueue_script('lighthouse-navigation', get_template_directory_uri().'/js/navigation.min.js', array(), '20120206', true); |
|
151 | 151 | |
152 | - wp_enqueue_script( 'lighthouse-settings-js', get_template_directory_uri() . '/js/lighthouse-settings.min.js', array('jquery'), '20160220', true ); |
|
152 | + wp_enqueue_script('lighthouse-settings-js', get_template_directory_uri().'/js/lighthouse-settings.min.js', array('jquery'), '20160220', true); |
|
153 | 153 | |
154 | - wp_enqueue_script( 'lighthouse-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.min.js', array(), '20130115', true ); |
|
154 | + wp_enqueue_script('lighthouse-skip-link-focus-fix', get_template_directory_uri().'/js/skip-link-focus-fix.min.js', array(), '20130115', true); |
|
155 | 155 | |
156 | - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { |
|
157 | - wp_enqueue_script( 'comment-reply' ); |
|
156 | + if (is_singular() && comments_open() && get_option('thread_comments')) { |
|
157 | + wp_enqueue_script('comment-reply'); |
|
158 | 158 | } |
159 | 159 | } |
160 | -add_action( 'wp_enqueue_scripts', 'lighthouse_scripts' ); |
|
160 | +add_action('wp_enqueue_scripts', 'lighthouse_scripts'); |
|
161 | 161 | |
162 | 162 | |
163 | 163 | /** |
164 | 164 | * Implement the Custom Header feature. |
165 | 165 | */ |
166 | -require get_template_directory() . '/inc/custom-header.php'; |
|
166 | +require get_template_directory().'/inc/custom-header.php'; |
|
167 | 167 | |
168 | 168 | /** |
169 | 169 | * Custom template tags for this theme. |
170 | 170 | */ |
171 | -require get_template_directory() . '/inc/template-tags.php'; |
|
171 | +require get_template_directory().'/inc/template-tags.php'; |
|
172 | 172 | |
173 | 173 | /** |
174 | 174 | * Custom functions that act independently of the theme templates. |
175 | 175 | */ |
176 | -require get_template_directory() . '/inc/extras.php'; |
|
176 | +require get_template_directory().'/inc/extras.php'; |
|
177 | 177 | |
178 | 178 | /** |
179 | 179 | * Customizer additions. |
180 | 180 | */ |
181 | -require get_template_directory() . '/inc/customizer.php'; |
|
181 | +require get_template_directory().'/inc/customizer.php'; |
|
182 | 182 | |
183 | 183 | /** |
184 | 184 | * Load Jetpack compatibility file. |
185 | 185 | */ |
186 | -require get_template_directory() . '/inc/jetpack.php'; |
|
186 | +require get_template_directory().'/inc/jetpack.php'; |
|
187 | 187 | |
188 | 188 | |
189 | 189 | /** |
@@ -191,19 +191,19 @@ discard block |
||
191 | 191 | */ |
192 | 192 | |
193 | 193 | // ACF |
194 | -include_once( get_stylesheet_directory() . '/includes/acf/acf.php' ); |
|
194 | +include_once(get_stylesheet_directory().'/includes/acf/acf.php'); |
|
195 | 195 | |
196 | 196 | // ACF Settings |
197 | -include_once( get_stylesheet_directory() . '/includes/acf-settings.php' ); |
|
197 | +include_once(get_stylesheet_directory().'/includes/acf-settings.php'); |
|
198 | 198 | |
199 | 199 | // Widgets |
200 | -include_once( get_stylesheet_directory() . '/includes/widgets.php' ); |
|
200 | +include_once(get_stylesheet_directory().'/includes/widgets.php'); |
|
201 | 201 | |
202 | 202 | // Menus |
203 | -include_once( get_stylesheet_directory() . '/includes/menus.php' ); |
|
203 | +include_once(get_stylesheet_directory().'/includes/menus.php'); |
|
204 | 204 | |
205 | 205 | // Theme Settings |
206 | -include_once( get_stylesheet_directory() . '/includes/theme-settings.php' ); |
|
206 | +include_once(get_stylesheet_directory().'/includes/theme-settings.php'); |
|
207 | 207 | |
208 | 208 | // Shortcodes |
209 | -include_once( get_stylesheet_directory() . '/includes/shortcodes.php' ); |
|
209 | +include_once(get_stylesheet_directory().'/includes/shortcodes.php'); |
@@ -3,14 +3,14 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Shortcode: Recent Post Slider |
5 | 5 | */ |
6 | -function recent_post_slider($atts, $content = null){ |
|
6 | +function recent_post_slider($atts, $content = null) { |
|
7 | 7 | |
8 | 8 | ob_start(); |
9 | 9 | |
10 | 10 | echo '<div class="post-slider row"><div id="recent-posts" class="owl-carousel">'; |
11 | 11 | |
12 | 12 | global $post; |
13 | - $post_query = new WP_Query( array( |
|
13 | + $post_query = new WP_Query(array( |
|
14 | 14 | 'post_type' => 'post', |
15 | 15 | 'posts_per_page' => 12, |
16 | 16 | 'order'=>'DESC', |
@@ -18,21 +18,21 @@ discard block |
||
18 | 18 | ) |
19 | 19 | ); |
20 | 20 | |
21 | - if( $post_query->have_posts() ) : while( $post_query->have_posts() ) : $post_query->the_post(); |
|
22 | - $thumb_post = wp_get_attachment_image_src( get_post_thumbnail_id(), 'lighthouse_related_post'); |
|
21 | + if ($post_query->have_posts()) : while ($post_query->have_posts()) : $post_query->the_post(); |
|
22 | + $thumb_post = wp_get_attachment_image_src(get_post_thumbnail_id(), 'lighthouse_related_post'); |
|
23 | 23 | $url_post = $thumb_post[0]; |
24 | 24 | $content = get_the_content(); |
25 | 25 | |
26 | 26 | echo '<div class="col-xs-12"><div class="thumbnail thumbnail-hover">'; |
27 | - echo '<img class="img-responsive" src=" ' . $url_post . '">'; |
|
28 | - echo '<a href=" ' . get_permalink() .' " " title=" ' . get_the_title() .' " class="overlay"></a>'; |
|
27 | + echo '<img class="img-responsive" src=" '.$url_post.'">'; |
|
28 | + echo '<a href=" '.get_permalink().' " " title=" '.get_the_title().' " class="overlay"></a>'; |
|
29 | 29 | echo '</div>'; |
30 | 30 | echo '<div class="entry">'; |
31 | - echo '<h3><a href=" ' . get_permalink() . ' "> ' . get_the_title() . '</a></h3>'; |
|
32 | - echo '<span class="date"> <i class="fa fa-clock-o"></i> ' . get_the_time(get_option('date_format')) .'</span>'; |
|
33 | - echo '<div class="entry-content">' . wp_trim_words( $content , '27' ) . '</div>'; |
|
31 | + echo '<h3><a href=" '.get_permalink().' "> '.get_the_title().'</a></h3>'; |
|
32 | + echo '<span class="date"> <i class="fa fa-clock-o"></i> '.get_the_time(get_option('date_format')).'</span>'; |
|
33 | + echo '<div class="entry-content">'.wp_trim_words($content, '27').'</div>'; |
|
34 | 34 | echo '<div class="read-more">'; |
35 | - echo '<a href="' . get_permalink() . ' " class="btn read-more-btn">View Article</a>'; |
|
35 | + echo '<a href="'.get_permalink().' " class="btn read-more-btn">View Article</a>'; |
|
36 | 36 | echo '</div>'; |
37 | 37 | echo '</div></div>'; |
38 | 38 | |
@@ -46,26 +46,26 @@ discard block |
||
46 | 46 | return $output; |
47 | 47 | } |
48 | 48 | |
49 | -add_shortcode('recent_posts','recent_post_slider'); |
|
49 | +add_shortcode('recent_posts', 'recent_post_slider'); |
|
50 | 50 | |
51 | 51 | |
52 | 52 | /** |
53 | 53 | * Shortcode: Recent Post Slider |
54 | 54 | */ |
55 | -function member_logo_slider($atts, $content = null){ |
|
55 | +function member_logo_slider($atts, $content = null) { |
|
56 | 56 | |
57 | 57 | ob_start(); |
58 | 58 | |
59 | 59 | echo '<div class="members-logo row"> <div id="logo-slider" class="owl-carousel">'; |
60 | 60 | |
61 | - if( have_rows('members_logo', 'option') ): |
|
62 | - while ( have_rows('members_logo', 'option') ) : the_row(); |
|
61 | + if (have_rows('members_logo', 'option')): |
|
62 | + while (have_rows('members_logo', 'option')) : the_row(); |
|
63 | 63 | $logo_url = get_sub_field('logo'); |
64 | 64 | $company_link = get_sub_field('link'); |
65 | 65 | |
66 | 66 | echo '<div class="thumbnail thumbnail-hover">'; |
67 | - echo '<img class="img-responsive" src=" ' . $logo_url . '">'; |
|
68 | - echo '<a href=" ' . $company_link .' " " title=" ' . $company_link .' " class="link-full"></a>'; |
|
67 | + echo '<img class="img-responsive" src=" '.$logo_url.'">'; |
|
68 | + echo '<a href=" '.$company_link.' " " title=" '.$company_link.' " class="link-full"></a>'; |
|
69 | 69 | echo '</div>'; |
70 | 70 | |
71 | 71 | endwhile; |
@@ -78,13 +78,13 @@ discard block |
||
78 | 78 | return $output; |
79 | 79 | } |
80 | 80 | |
81 | -add_shortcode('members_logo','member_logo_slider'); |
|
81 | +add_shortcode('members_logo', 'member_logo_slider'); |
|
82 | 82 | |
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Shortcode: Share Price |
86 | 86 | */ |
87 | -function share_price_feed($atts, $content = null){ |
|
87 | +function share_price_feed($atts, $content = null) { |
|
88 | 88 | |
89 | 89 | ob_start(); |
90 | 90 | |
@@ -95,18 +95,18 @@ discard block |
||
95 | 95 | $xml = simplexml_load_file($url); |
96 | 96 | $price = $xml->CurrentPrice; |
97 | 97 | $change = $xml->Change; |
98 | - $change_pcent = $xml->PercentageChange; |
|
98 | + $change_pcent = $xml->PercentageChange; |
|
99 | 99 | $volume = $xml->Volume; |
100 | 100 | $Date = $xml->Date; |
101 | 101 | $time = $xml->time; |
102 | 102 | |
103 | 103 | echo '<div class="share_price_feed">'; |
104 | 104 | |
105 | - echo '<div class="feed_options"><div class="share_data_title">Share Price:</div><div class="share_data">' . $price . '</div></div>'; |
|
106 | - echo '<div class="feed_options"><div class="share_data_title">Change:</div><div class="share_data">' . $change . 'p</div></div>'; |
|
107 | - echo '<div class="feed_options"><div class="share_data_title">Volume:</div><div class="share_data">' . $volume . '</div></div>'; |
|
108 | - echo '<div class="feed_options"><div class="share_data_title">Date:</div><div class="share_data">' . $Date . '</div></div>'; |
|
109 | - echo '<div class="feed_options"><div class="share_data_title">Time:</div><div class="share_data">' . $time . '</div></div>'; |
|
105 | + echo '<div class="feed_options"><div class="share_data_title">Share Price:</div><div class="share_data">'.$price.'</div></div>'; |
|
106 | + echo '<div class="feed_options"><div class="share_data_title">Change:</div><div class="share_data">'.$change.'p</div></div>'; |
|
107 | + echo '<div class="feed_options"><div class="share_data_title">Volume:</div><div class="share_data">'.$volume.'</div></div>'; |
|
108 | + echo '<div class="feed_options"><div class="share_data_title">Date:</div><div class="share_data">'.$Date.'</div></div>'; |
|
109 | + echo '<div class="feed_options"><div class="share_data_title">Time:</div><div class="share_data">'.$time.'</div></div>'; |
|
110 | 110 | |
111 | 111 | echo '</div>'; |
112 | 112 | |
@@ -114,14 +114,14 @@ discard block |
||
114 | 114 | return $output; |
115 | 115 | } |
116 | 116 | |
117 | -add_shortcode('share_price','share_price_feed'); |
|
117 | +add_shortcode('share_price', 'share_price_feed'); |
|
118 | 118 | |
119 | 119 | |
120 | 120 | |
121 | 121 | /** |
122 | 122 | * Shortcode: RNS Feeds |
123 | 123 | */ |
124 | -function rns_feed_fn($atts, $content = null){ |
|
124 | +function rns_feed_fn($atts, $content = null) { |
|
125 | 125 | |
126 | 126 | ob_start(); |
127 | 127 | |
@@ -144,4 +144,4 @@ discard block |
||
144 | 144 | return $output; |
145 | 145 | } |
146 | 146 | |
147 | -add_shortcode('rns_feed','rns_feed_fn'); |
|
148 | 147 | \ No newline at end of file |
148 | +add_shortcode('rns_feed', 'rns_feed_fn'); |
|
149 | 149 | \ No newline at end of file |
@@ -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"> |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $xml = simplexml_load_file($url); |
50 | 50 | $price = $xml->CurrentPrice; |
51 | 51 | $change = $xml->Change; |
52 | - $change_pcent = $xml->PercentageChange; |
|
52 | + $change_pcent = $xml->PercentageChange; |
|
53 | 53 | $volume = $xml->Volume; |
54 | 54 | |
55 | 55 | echo "Share Price: "; |
@@ -69,13 +69,13 @@ discard block |
||
69 | 69 | <button id="textplus">A+</button> |
70 | 70 | <button id="textminus">A-</button> |
71 | 71 | </div> |
72 | - <form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>"> |
|
72 | + <form role="search" method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
73 | 73 | <div class="search-wrap"> |
74 | - <label class="screen-reader-text" for="s"><?php _e( 'Search for:', 'presentation' ); ?></label> |
|
74 | + <label class="screen-reader-text" for="s"><?php _e('Search for:', 'presentation'); ?></label> |
|
75 | 75 | <button type="submit"> |
76 | 76 | <i class="fa fa-search"></i> |
77 | 77 | </button> |
78 | - <input type="search" placeholder="<?php echo esc_attr( 'Search', 'presentation' ); ?>" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" /> |
|
78 | + <input type="search" placeholder="<?php echo esc_attr('Search', 'presentation'); ?>" name="s" value="<?php echo esc_attr(get_search_query()); ?>" /> |
|
79 | 79 | </div> |
80 | 80 | </form> |
81 | 81 | </div> |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | </div> |
89 | 89 | </div> |
90 | 90 | <div class="col-sm-12 col-md-2 col-lg-2 header-center-area"> |
91 | - <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> |
|
92 | - <img src="<?php echo get_template_directory_uri()?>/images/lighthouse-logo.svg" alt="<?php echo( get_bloginfo( 'title' ) ); ?>" /> |
|
91 | + <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"> |
|
92 | + <img src="<?php echo get_template_directory_uri()?>/images/lighthouse-logo.svg" alt="<?php echo(get_bloginfo('title')); ?>" /> |
|
93 | 93 | </a> |
94 | 94 | |
95 | 95 | <div class="iv-module live-search"> |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | <div class="container"> |
103 | 103 | <div class="row"> |
104 | 104 | <div class="col-md-12"> |
105 | - <form method="get" action="<?php echo esc_url( home_url( '/' ) );?>"> |
|
106 | - <label for="s"><?php _e('Type & hit enter to search', 'ivan_domain');?></label> |
|
107 | - <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter to search', 'lighthouse');?>" /> |
|
105 | + <form method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
106 | + <label for="s"><?php _e('Type & hit enter to search', 'ivan_domain'); ?></label> |
|
107 | + <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter to search', 'lighthouse'); ?>" /> |
|
108 | 108 | <a class="submit-form" href="#"><i class="fa fa-search"></i></a> |
109 | 109 | <div class="clearfix"></div> |
110 | 110 | </form> |
@@ -131,9 +131,9 @@ discard block |
||
131 | 131 | <div class="container"> |
132 | 132 | <div class="row"> |
133 | 133 | <div class="col-md-12"> |
134 | - <form method="get" action="<?php echo esc_url( home_url( '/' ) );?>"> |
|
135 | - <label for="s"><?php _e('Type & hit enter', 'ivan_domain');?></label> |
|
136 | - <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter', 'lighthouse');?>" /> |
|
134 | + <form method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
135 | + <label for="s"><?php _e('Type & hit enter', 'ivan_domain'); ?></label> |
|
136 | + <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter', 'lighthouse'); ?>" /> |
|
137 | 137 | <a class="submit-form" href="#"><i class="fa fa-search"></i></a> |
138 | 138 | <div class="clearfix"></div> |
139 | 139 | </form> |