Completed
Push — master ( 423b35...e79207 )
by Md. Mozahidur
02:17
created
single.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
 				<main id="main" class="site-main" role="main">
26 26
 
27 27
 				<?php
28
-				while ( have_posts() ) : the_post();
28
+				while (have_posts()) : the_post();
29 29
 
30
-					$thumb_feature = wp_get_attachment_image_src( get_post_thumbnail_id(), 'lighthouse_feature_img');
30
+					$thumb_feature = wp_get_attachment_image_src(get_post_thumbnail_id(), 'lighthouse_feature_img');
31 31
 					$url_feature = $thumb_feature[0];
32 32
 				?> 
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 				</div>
37 37
 
38 38
 				<?php
39
-				get_template_part( 'template-parts/content', get_post_format() );
39
+				get_template_part('template-parts/content', get_post_format());
40 40
 
41 41
 					//the_post_navigation();
42 42
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
 								<div class="thumbnail thumbnail-hover">
67 67
 								<?php
68
-									$thumb_post = wp_get_attachment_image_src( get_post_thumbnail_id(), 'lighthouse_related_post');
68
+									$thumb_post = wp_get_attachment_image_src(get_post_thumbnail_id(), 'lighthouse_related_post');
69 69
 									$url_post = $thumb_post[0];
70 70
 								?>
71 71
 									<img class="img-responsive" src="<?php echo $url_post; ?>">
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
 			</div><!-- .blog-listing -->
89 89
 		<div class="col-md-3 sidebar" role="complementary">
90
-			<?php dynamic_sidebar( 'blog_widgets' ); ?>
90
+			<?php dynamic_sidebar('blog_widgets'); ?>
91 91
 		</div>
92 92
 		</div><!-- .row -->
93 93
 	</div><!-- #primary -->
Please login to merge, or discard this patch.
template-parts/content-page.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,17 +11,17 @@  discard block
 block discarded – undo
11 11
 
12 12
 <section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
13 13
 	<header class="entry-header">
14
-		<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
14
+		<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
15 15
 	</header><!-- .entry-header -->
16 16
 
17 17
 	<div class="entry-content">
18 18
 		<?php
19 19
 			the_content();
20 20
 
21
-			wp_link_pages( array(
22
-				'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'lighthouse' ),
21
+			wp_link_pages(array(
22
+				'before' => '<div class="page-links">'.esc_html__('Pages:', 'lighthouse'),
23 23
 				'after'  => '</div>',
24
-			) );
24
+			));
25 25
 		?>
26 26
 	</div><!-- .entry-content -->
27 27
 
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
 			edit_post_link(
31 31
 				sprintf(
32 32
 					/* translators: %s: Name of current post */
33
-					esc_html__( 'Edit %s', 'lighthouse' ),
34
-					the_title( '<span class="screen-reader-text">"', '"</span>', false )
33
+					esc_html__('Edit %s', 'lighthouse'),
34
+					the_title('<span class="screen-reader-text">"', '"</span>', false)
35 35
 				),
36 36
 				'<span class="edit-link">',
37 37
 				'</span>'
Please login to merge, or discard this patch.
page-template/page-advice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 <div class="container full-width">
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
 				<div class="sections">
14 14
 					<?php the_content(); ?>
15 15
 				</div>
Please login to merge, or discard this patch.
page-template/blog.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	<div class="container blog-wrapper">
10 10
 		<div class="row">
11 11
 			<div class="col-xs-12 content-header">
12
-				<?php the_title( '<h1>', '</h1>' ); ?>
12
+				<?php the_title('<h1>', '</h1>'); ?>
13 13
 				<h4>Read the latest articles and commentary in our news blogs</h4>
14 14
 			</div>
15 15
 		</div>
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
 	<div class="row">
20 20
 		<div class="col-md-9 content-listing">
21 21
 			<?php 
22
-			$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
22
+			$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
23 23
 			$args = array(
24 24
 				'post_type' => 'post',
25 25
 				'posts_per_page' => 6,
26 26
 				'paged' => $paged
27 27
 				);
28
-			$loop = new WP_Query( $args );
29
-			while($loop->have_posts()) : $loop->the_post();	
28
+			$loop = new WP_Query($args);
29
+			while ($loop->have_posts()) : $loop->the_post();	
30 30
 
31 31
 			$postid = get_the_ID();
32 32
 			?>
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 			<article id="post-<?php echo $postid; ?>">
35 35
 				<div class="row blog-item">
36 36
 					<?php
37
-					$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'lighthouse_blog_listing');
37
+					$thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'lighthouse_blog_listing');
38 38
 					$url = $thumb[0];
39 39
 					$content = get_the_content();
40 40
 					?>
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 								<span class="date"><?php the_time(get_option('date_format')) ?></span>
54 54
 							</div>
55 55
 							<div class="entry-content">
56
-								<?php echo wp_trim_words( $content , '18' ) ?>
56
+								<?php echo wp_trim_words($content, '18') ?>
57 57
 							</div>
58 58
 							<div class="read-more">
59 59
 								<a href="<?php the_permalink() ?>" class="btn read-more-btn">Read More</a>
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	</div>
75 75
 </div>
76 76
 <div class="col-md-3 sidebar" role="complementary">
77
-	<?php dynamic_sidebar( 'blog_widgets' ); ?>
77
+	<?php dynamic_sidebar('blog_widgets'); ?>
78 78
 </div>
79 79
 </div><!-- .row -->
80 80
 </div><!-- .container -->
Please login to merge, or discard this patch.
includes/shortcodes.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@  discard block
 block discarded – undo
30 30
 
31 31
 // add_shortcode('announcement','announcement_slider');
32 32
 
33
-function announcement_slider($atts, $content = null){
33
+function announcement_slider($atts, $content = null) {
34 34
 
35 35
 	ob_start();
36 36
 
37 37
 	echo '<div class="marquee-container"> 
38 38
 	<div class="marquee">';
39
-		if( have_rows('announcement', 'option') ):
40
-			while ( have_rows('announcement', 'option') ) : the_row();
39
+		if (have_rows('announcement', 'option')):
40
+			while (have_rows('announcement', 'option')) : the_row();
41 41
 		$message = get_sub_field('messages');
42 42
 		$message_link = get_sub_field('link');
43 43
 
44
-		echo '<a href=" ' . $message_link .' " " title="Click to read full message"> ' . $message .' </a> <span>-</span>';
44
+		echo '<a href=" '.$message_link.' " " title="Click to read full message"> '.$message.' </a> <span>-</span>';
45 45
 		endwhile;
46 46
 		else :
47 47
 			echo '<div class="col-xs-12">No Messages to Show!</div>';
@@ -52,20 +52,20 @@  discard block
 block discarded – undo
52 52
 		return $output;
53 53
 	}
54 54
 
55
-	add_shortcode('announcement','announcement_slider');
55
+	add_shortcode('announcement', 'announcement_slider');
56 56
 
57 57
 
58 58
 /**
59 59
  * Shortcode: Recent Post Slider
60 60
  */
61
-function recent_post_slider($atts, $content = null){
61
+function recent_post_slider($atts, $content = null) {
62 62
 
63 63
 	ob_start();
64 64
 
65 65
 	echo '<div class="post-slider row"><div id="recent-posts" class="owl-carousel">';
66 66
 
67 67
 	global $post;
68
-	$post_query = new WP_Query( array(
68
+	$post_query = new WP_Query(array(
69 69
 		'post_type' => 'post',
70 70
 		'posts_per_page' => 12,
71 71
 		'order'=>'DESC',
@@ -73,21 +73,21 @@  discard block
 block discarded – undo
73 73
 		)
74 74
 	);
75 75
 
76
-	if( $post_query->have_posts() ) : while( $post_query->have_posts() ) : $post_query->the_post();
77
-	$thumb_post = wp_get_attachment_image_src( get_post_thumbnail_id(), 'lighthouse_related_post');
76
+	if ($post_query->have_posts()) : while ($post_query->have_posts()) : $post_query->the_post();
77
+	$thumb_post = wp_get_attachment_image_src(get_post_thumbnail_id(), 'lighthouse_related_post');
78 78
 	$url_post = $thumb_post[0];
79 79
 	$content = get_the_content();
80 80
 
81 81
 	echo '<div class="col-xs-12"><div class="thumbnail thumbnail-hover">';
82
-	echo '<img class="img-responsive" src=" ' . $url_post . '">';
83
-	echo '<a href=" ' . get_permalink() .' " " title=" ' .  get_the_title() .' " class="overlay"></a>';
82
+	echo '<img class="img-responsive" src=" '.$url_post.'">';
83
+	echo '<a href=" '.get_permalink().' " " title=" '.get_the_title().' " class="overlay"></a>';
84 84
 	echo '</div>';
85 85
 	echo '<div class="entry">';
86
-	echo '<h3><a href=" ' . get_permalink() . ' "> ' . get_the_title() . '</a></h3>';
87
-	echo '<span class="date"> <i class="fa fa-clock-o"></i> ' . get_the_time(get_option('date_format')) .'</span>';
88
-	echo '<div class="entry-content">' . wp_trim_words( $content , '27' ) . '</div>';
86
+	echo '<h3><a href=" '.get_permalink().' "> '.get_the_title().'</a></h3>';
87
+	echo '<span class="date"> <i class="fa fa-clock-o"></i> '.get_the_time(get_option('date_format')).'</span>';
88
+	echo '<div class="entry-content">'.wp_trim_words($content, '27').'</div>';
89 89
 	echo '<div class="read-more">';
90
-	echo '<a href="' . get_permalink() . ' " class="btn read-more-btn">View Article</a>';
90
+	echo '<a href="'.get_permalink().' " class="btn read-more-btn">View Article</a>';
91 91
 	echo '</div>';
92 92
 	echo '</div></div>';
93 93
 
@@ -101,26 +101,26 @@  discard block
 block discarded – undo
101 101
 	return $output;
102 102
 }
103 103
 
104
-add_shortcode('recent_posts','recent_post_slider');
104
+add_shortcode('recent_posts', 'recent_post_slider');
105 105
 
106 106
 
107 107
 /**
108 108
  * Shortcode: Member logo slider
109 109
  */
110
-function member_logo_slider($atts, $content = null){
110
+function member_logo_slider($atts, $content = null) {
111 111
 
112 112
 	ob_start();
113 113
 
114 114
 	echo '<div class="members-logo row"> <div id="logo-slider" class="owl-carousel">';
115 115
 
116
-	if( have_rows('members_logo', 'option') ):
117
-		while ( have_rows('members_logo', 'option') ) : the_row();
116
+	if (have_rows('members_logo', 'option')):
117
+		while (have_rows('members_logo', 'option')) : the_row();
118 118
 	$logo_url = get_sub_field('logo');
119 119
 	$company_link = get_sub_field('link');
120 120
 
121 121
 	echo '<div class="thumbnail thumbnail-hover">';
122
-	echo '<img class="img-responsive" src=" ' . $logo_url . '">';
123
-	echo '<a href=" ' . $company_link .' " " title=" ' .  $company_link .' " class="link-full"></a>';
122
+	echo '<img class="img-responsive" src=" '.$logo_url.'">';
123
+	echo '<a href=" '.$company_link.' " " title=" '.$company_link.' " class="link-full"></a>';
124 124
 	echo '</div>';
125 125
 
126 126
 	endwhile;
@@ -133,13 +133,13 @@  discard block
 block discarded – undo
133 133
 	return $output;
134 134
 }
135 135
 
136
-add_shortcode('members_logo','member_logo_slider');
136
+add_shortcode('members_logo', 'member_logo_slider');
137 137
 
138 138
 
139 139
 /**
140 140
  * Shortcode: Share Price
141 141
  */
142
-function share_price_feed($atts, $content = null){
142
+function share_price_feed($atts, $content = null) {
143 143
 
144 144
 	ob_start();
145 145
 
@@ -150,18 +150,18 @@  discard block
 block discarded – undo
150 150
 	$xml 	= simplexml_load_file($url);
151 151
 	$price 	= $xml->CurrentPrice;
152 152
 	$change = $xml->Change;
153
-	$change_pcent 	= $xml->PercentageChange;
153
+	$change_pcent = $xml->PercentageChange;
154 154
 	$volume = $xml->Volume;
155 155
 	$Date 	= $xml->Date; 
156 156
 	$time 	= $xml->time; 
157 157
 
158 158
 	echo '<div class="share_price_feed">';
159 159
 
160
-	echo '<div class="feed_options"><div class="share_data_title">Share Price:</div><div class="share_data">' . $price . '</div></div>';
161
-	echo '<div class="feed_options"><div class="share_data_title">Change:</div><div class="share_data">' . $change . 'p</div></div>';
162
-	echo '<div class="feed_options"><div class="share_data_title">Volume:</div><div class="share_data">' . $volume . '</div></div>';
163
-	echo '<div class="feed_options"><div class="share_data_title">Date:</div><div class="share_data">' . $Date . '</div></div>';
164
-	echo '<div class="feed_options"><div class="share_data_title">Time:</div><div class="share_data">' . $time . '</div></div>';
160
+	echo '<div class="feed_options"><div class="share_data_title">Share Price:</div><div class="share_data">'.$price.'</div></div>';
161
+	echo '<div class="feed_options"><div class="share_data_title">Change:</div><div class="share_data">'.$change.'p</div></div>';
162
+	echo '<div class="feed_options"><div class="share_data_title">Volume:</div><div class="share_data">'.$volume.'</div></div>';
163
+	echo '<div class="feed_options"><div class="share_data_title">Date:</div><div class="share_data">'.$Date.'</div></div>';
164
+	echo '<div class="feed_options"><div class="share_data_title">Time:</div><div class="share_data">'.$time.'</div></div>';
165 165
 
166 166
 	echo '</div>';
167 167
 
@@ -169,14 +169,14 @@  discard block
 block discarded – undo
169 169
 	return $output;
170 170
 }
171 171
 
172
-add_shortcode('share_price','share_price_feed');
172
+add_shortcode('share_price', 'share_price_feed');
173 173
 
174 174
 
175 175
 
176 176
 /**
177 177
  * Shortcode: RNS Feeds
178 178
  */
179
-function rns_feed_fn($atts, $content = null){
179
+function rns_feed_fn($atts, $content = null) {
180 180
 
181 181
 	ob_start();
182 182
 
@@ -199,4 +199,4 @@  discard block
 block discarded – undo
199 199
 	return $output;
200 200
 }
201 201
 
202
-add_shortcode('rns_feed','rns_feed_fn');
203 202
\ No newline at end of file
203
+add_shortcode('rns_feed', 'rns_feed_fn');
204 204
\ No newline at end of file
Please login to merge, or discard this patch.
includes/acf-settings.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@  discard block
 block discarded – undo
6 6
 // Customize ACF path
7 7
 add_filter('acf/settings/path', 'my_acf_settings_path');
8 8
  
9
-function my_acf_settings_path( $path ) {
9
+function my_acf_settings_path($path) {
10 10
  
11 11
     // update path
12
-    $path = get_stylesheet_directory() . '/includes/acf/';
12
+    $path = get_stylesheet_directory().'/includes/acf/';
13 13
     
14 14
     // return
15 15
     return $path;
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 // Customize ACF dir
19 19
 add_filter('acf/settings/dir', 'my_acf_settings_dir');
20 20
  
21
-function my_acf_settings_dir( $dir ) {
21
+function my_acf_settings_dir($dir) {
22 22
  
23 23
     // update path
24
-    $dir = get_stylesheet_directory_uri() . '/includes/acf/';
24
+    $dir = get_stylesheet_directory_uri().'/includes/acf/';
25 25
     
26 26
     // return
27 27
     return $dir;
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 // Save ACF field as JSON
31 31
 add_filter('acf/settings/save_json', 'my_acf_json_save_point');
32 32
  
33
-function my_acf_json_save_point( $path ) {
33
+function my_acf_json_save_point($path) {
34 34
     
35 35
     // update path
36
-    $path = get_stylesheet_directory() . '/includes/acf-json';
36
+    $path = get_stylesheet_directory().'/includes/acf-json';
37 37
     
38 38
     // return
39 39
     return $path; 
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 // Load ACF field from JSON
43 43
 add_filter('acf/settings/load_json', 'my_acf_json_load_point');
44 44
 
45
-function my_acf_json_load_point( $paths ) {
45
+function my_acf_json_load_point($paths) {
46 46
     
47 47
     // remove original path (optional)
48 48
     unset($paths[0]);
49 49
     
50 50
     // append path
51
-    $paths[] = get_stylesheet_directory() . '/includes/acf-json';
51
+    $paths[] = get_stylesheet_directory().'/includes/acf-json';
52 52
     
53 53
     // return
54 54
     return $paths;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 /*****
59 59
  Options Page
60 60
 ***************/
61
-if( function_exists('acf_add_options_page') ) {
61
+if (function_exists('acf_add_options_page')) {
62 62
 
63 63
 	acf_add_options_page(array(
64 64
 		'page_title' 	=> 'Lighthouse General Settings',
Please login to merge, or discard this patch.
page-template/page-home.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 <div class="container full-width">
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
 				<div class="sections">
14 14
 					<?php the_content(); ?>
15 15
 				</div>
Please login to merge, or discard this patch.