Passed
Push — master ( c365a5...a83aa0 )
by Virginia
08:09
created
templates/content-single-team.php 2 patches
Indentation   +131 added lines, -131 removed lines patch added patch discarded remove patch
@@ -5,137 +5,137 @@
 block discarded – undo
5 5
 ?>
6 6
 
7 7
 <?php
8
-	global $lsx_team;
9
-
10
-	$thumbnail = $lsx_team->get_thumbnail( get_the_ID(), 'lsx-team-single' );
11
-
12
-	$job_title = get_post_meta( get_the_ID(), 'lsx_job_title', true );
13
-
14
-	$links = array(
15
-		'facebook'  => get_post_meta( get_the_ID(), 'lsx_facebook', true ),
16
-		'twitter'   => get_post_meta( get_the_ID(), 'lsx_twitter', true ),
17
-		'linkedin'  => get_post_meta( get_the_ID(), 'lsx_linkedin', true ),
18
-		'github'    => get_post_meta( get_the_ID(), 'lsx_github', true ),
19
-		'wordpress' => get_post_meta( get_the_ID(), 'lsx_wordpress', true ),
20
-	);
21
-
22
-	foreach ( $links as $service => $link ) {
23
-		if ( empty( $link ) ) {
24
-			unset( $links[ $service ] );
25
-		}
26
-	}
27
-
28
-	$email = get_post_meta( get_the_ID(), 'lsx_email_contact', true );
29
-	$phone = get_post_meta( get_the_ID(), 'lsx_tel', true );
30
-	$skype = get_post_meta( get_the_ID(), 'lsx_skype', true );
31
-
32
-	$phone_attr = $phone;
33
-	$phone_attr = str_replace( ' ', '', $phone_attr );
34
-	$phone_attr = str_replace( '+', '', $phone_attr );
35
-	$phone_attr = str_replace( '(', '', $phone_attr );
36
-	$phone_attr = str_replace( ')', '', $phone_attr );
37
-	$phone_attr = str_replace( '.', '', $phone_attr );
38
-
39
-	// Tabs
40
-
41
-	$tabs = array();
42
-
43
-	// Tab Posts
44
-
45
-	$site_user = get_post_meta( get_the_ID(), 'lsx_site_user', true );
46
-
47
-	if ( ! empty( $site_user ) ) {
48
-		if ( is_user_member_of_blog( $site_user ) ) {
49
-			$user_posts = count_user_posts( $site_user, 'post' );
50
-
51
-			if ( $user_posts > 0 ) {
52
-				$params = array(
53
-					'post_type' => 'post',
54
-					'author' => $site_user,
55
-					'posts_per_page' => 9,
56
-					'order' => 'DESC',
57
-					'orderby' => 'date',
58
-					'fields' => 'ids',
59
-					'tax_query' => array(
60
-						array(
61
-							'taxonomy' => 'post_format',
62
-							'field' => 'slug',
63
-							'terms' => array(
64
-								'post-format-aside',
65
-								'post-format-audio',
66
-								'post-format-chat',
67
-								'post-format-gallery',
68
-								'post-format-image',
69
-								'post-format-link',
70
-								'post-format-quote',
71
-								'post-format-status',
72
-								'post-format-video',
73
-							),
74
-							'operator' => 'NOT IN',
75
-						),
76
-					),
77
-				);
78
-
79
-				$posts_query = new \WP_Query( $params );
80
-
81
-				if ( $posts_query->have_posts() ) {
82
-					$tab_post['post_type'] = 'post';
83
-					$tab_post['title'] = esc_html__( 'Posts', 'lsx-team' );
84
-					$tab_post['posts'] = $posts_query->posts;
85
-
86
-					if ( ! empty( $tab_post['posts'] ) ) {
87
-						$post_ids = join( ',', $tab_post['posts'] );
88
-						$tab_post['shortcode'] = '[lsx_posts columns="3" limit="9" include="' . $post_ids . '"]';
89
-						$tabs[] = $tab_post;
90
-					}
91
-				}
92
-			}
93
-		}
94
-	}
95
-
96
-	// Tab Projects
97
-
98
-	$tab_project['post_type'] = 'project';
99
-	$tab_project['title'] = esc_html__( 'Projects', 'lsx-team' );
100
-	$tab_project['posts'] = get_post_meta( get_the_ID(), 'project_to_team', true );
101
-
102
-	if ( is_plugin_active( 'lsx-projects/lsx-projects.php' ) && ( ! empty( $tab_project['posts'] ) ) ) {
103
-		$post_ids = join( ',', $tab_project['posts'] );
104
-		$tab_project['shortcode'] = '[lsx_projects columns="3" include="' . $post_ids . '"]';
105
-		$tabs[] = $tab_project;
106
-	}
107
-
108
-	// Tab Services
109
-
110
-	if ( is_plugin_active( 'lsx-services/lsx-services.php' ) ) {
111
-		$tab_service['post_type'] = 'service';
112
-		$tab_service['title'] = esc_html__( 'Services', 'lsx-team' );
113
-		$tab_service['posts'] = get_post_meta( get_the_ID(), 'service_to_team', true );
114
-
115
-		if ( ! empty( $tab_service['posts'] ) ) {
116
-			$post_ids = join( ',', $tab_service['posts'] );
117
-			$tab_service['shortcode'] = '[lsx_services columns="3" include="' . $post_ids . '"]';
118
-			$tabs[] = $tab_service;
119
-		}
120
-	}
121
-
122
-	// Tab Testimonials
123
-
124
-	$tab_testimonial['post_type'] = 'testimonial';
125
-	$tab_testimonial['title'] = esc_html__( 'Testimonials', 'lsx-team' );
126
-	$tab_testimonial['posts'] = get_post_meta( get_the_ID(), 'testimonial_to_team', true );
127
-
128
-	if ( is_plugin_active( 'lsx-testimonials/lsx-testimonials.php' ) && ( ! empty( $tab_testimonial['posts'] ) ) ) {
129
-		if ( count( $tab_testimonial['posts'] ) <= 2 ) {
130
-			$columns = count( $tab_testimonial['posts'] );
131
-		} else {
132
-			$columns = 2;
133
-		}
134
-
135
-		$post_ids = join( ',', $tab_testimonial['posts'] );
136
-		$tab_testimonial['shortcode'] = '[lsx_testimonials columns="' . $columns . '" include="' . $post_ids . '" orderby="date" order="DESC" display="excerpt"]';
137
-		$tabs[] = $tab_testimonial;
138
-	}
8
+     global $lsx_team;
9
+
10
+     $thumbnail = $lsx_team->get_thumbnail( get_the_ID(), 'lsx-team-single' );
11
+
12
+     $job_title = get_post_meta( get_the_ID(), 'lsx_job_title', true );
13
+
14
+     $links = array(
15
+          'facebook'  => get_post_meta( get_the_ID(), 'lsx_facebook', true ),
16
+          'twitter'   => get_post_meta( get_the_ID(), 'lsx_twitter', true ),
17
+          'linkedin'  => get_post_meta( get_the_ID(), 'lsx_linkedin', true ),
18
+          'github'    => get_post_meta( get_the_ID(), 'lsx_github', true ),
19
+          'wordpress' => get_post_meta( get_the_ID(), 'lsx_wordpress', true ),
20
+     );
21
+
22
+     foreach ( $links as $service => $link ) {
23
+          if ( empty( $link ) ) {
24
+               unset( $links[ $service ] );
25
+          }
26
+     }
27
+
28
+     $email = get_post_meta( get_the_ID(), 'lsx_email_contact', true );
29
+     $phone = get_post_meta( get_the_ID(), 'lsx_tel', true );
30
+     $skype = get_post_meta( get_the_ID(), 'lsx_skype', true );
31
+
32
+     $phone_attr = $phone;
33
+     $phone_attr = str_replace( ' ', '', $phone_attr );
34
+     $phone_attr = str_replace( '+', '', $phone_attr );
35
+     $phone_attr = str_replace( '(', '', $phone_attr );
36
+     $phone_attr = str_replace( ')', '', $phone_attr );
37
+     $phone_attr = str_replace( '.', '', $phone_attr );
38
+
39
+     // Tabs
40
+
41
+     $tabs = array();
42
+
43
+     // Tab Posts
44
+
45
+     $site_user = get_post_meta( get_the_ID(), 'lsx_site_user', true );
46
+
47
+     if ( ! empty( $site_user ) ) {
48
+          if ( is_user_member_of_blog( $site_user ) ) {
49
+               $user_posts = count_user_posts( $site_user, 'post' );
50
+
51
+               if ( $user_posts > 0 ) {
52
+                    $params = array(
53
+                         'post_type' => 'post',
54
+                         'author' => $site_user,
55
+                         'posts_per_page' => 9,
56
+                         'order' => 'DESC',
57
+                         'orderby' => 'date',
58
+                         'fields' => 'ids',
59
+                         'tax_query' => array(
60
+                              array(
61
+                                   'taxonomy' => 'post_format',
62
+                                   'field' => 'slug',
63
+                                   'terms' => array(
64
+                                        'post-format-aside',
65
+                                        'post-format-audio',
66
+                                        'post-format-chat',
67
+                                        'post-format-gallery',
68
+                                        'post-format-image',
69
+                                        'post-format-link',
70
+                                        'post-format-quote',
71
+                                        'post-format-status',
72
+                                        'post-format-video',
73
+                                   ),
74
+                                   'operator' => 'NOT IN',
75
+                              ),
76
+                         ),
77
+                    );
78
+
79
+                    $posts_query = new \WP_Query( $params );
80
+
81
+                    if ( $posts_query->have_posts() ) {
82
+                         $tab_post['post_type'] = 'post';
83
+                         $tab_post['title'] = esc_html__( 'Posts', 'lsx-team' );
84
+                         $tab_post['posts'] = $posts_query->posts;
85
+
86
+                         if ( ! empty( $tab_post['posts'] ) ) {
87
+                              $post_ids = join( ',', $tab_post['posts'] );
88
+                              $tab_post['shortcode'] = '[lsx_posts columns="3" limit="9" include="' . $post_ids . '"]';
89
+                              $tabs[] = $tab_post;
90
+                         }
91
+                    }
92
+               }
93
+          }
94
+     }
95
+
96
+     // Tab Projects
97
+
98
+     $tab_project['post_type'] = 'project';
99
+     $tab_project['title'] = esc_html__( 'Projects', 'lsx-team' );
100
+     $tab_project['posts'] = get_post_meta( get_the_ID(), 'project_to_team', true );
101
+
102
+     if ( is_plugin_active( 'lsx-projects/lsx-projects.php' ) && ( ! empty( $tab_project['posts'] ) ) ) {
103
+          $post_ids = join( ',', $tab_project['posts'] );
104
+          $tab_project['shortcode'] = '[lsx_projects columns="3" include="' . $post_ids . '"]';
105
+          $tabs[] = $tab_project;
106
+     }
107
+
108
+     // Tab Services
109
+
110
+     if ( is_plugin_active( 'lsx-services/lsx-services.php' ) ) {
111
+          $tab_service['post_type'] = 'service';
112
+          $tab_service['title'] = esc_html__( 'Services', 'lsx-team' );
113
+          $tab_service['posts'] = get_post_meta( get_the_ID(), 'service_to_team', true );
114
+
115
+          if ( ! empty( $tab_service['posts'] ) ) {
116
+               $post_ids = join( ',', $tab_service['posts'] );
117
+               $tab_service['shortcode'] = '[lsx_services columns="3" include="' . $post_ids . '"]';
118
+               $tabs[] = $tab_service;
119
+          }
120
+     }
121
+
122
+     // Tab Testimonials
123
+
124
+     $tab_testimonial['post_type'] = 'testimonial';
125
+     $tab_testimonial['title'] = esc_html__( 'Testimonials', 'lsx-team' );
126
+     $tab_testimonial['posts'] = get_post_meta( get_the_ID(), 'testimonial_to_team', true );
127
+
128
+     if ( is_plugin_active( 'lsx-testimonials/lsx-testimonials.php' ) && ( ! empty( $tab_testimonial['posts'] ) ) ) {
129
+          if ( count( $tab_testimonial['posts'] ) <= 2 ) {
130
+               $columns = count( $tab_testimonial['posts'] );
131
+          } else {
132
+               $columns = 2;
133
+          }
134
+
135
+          $post_ids = join( ',', $tab_testimonial['posts'] );
136
+          $tab_testimonial['shortcode'] = '[lsx_testimonials columns="' . $columns . '" include="' . $post_ids . '" orderby="date" order="DESC" display="excerpt"]';
137
+          $tabs[] = $tab_testimonial;
138
+     }
139 139
 ?>
140 140
 
141 141
 <?php lsx_entry_before(); ?>
Please login to merge, or discard this patch.
Spacing   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -7,34 +7,34 @@  discard block
 block discarded – undo
7 7
 <?php
8 8
 	global $lsx_team;
9 9
 
10
-	$thumbnail = $lsx_team->get_thumbnail( get_the_ID(), 'lsx-team-single' );
10
+	$thumbnail = $lsx_team->get_thumbnail(get_the_ID(), 'lsx-team-single');
11 11
 
12
-	$job_title = get_post_meta( get_the_ID(), 'lsx_job_title', true );
12
+	$job_title = get_post_meta(get_the_ID(), 'lsx_job_title', true);
13 13
 
14 14
 	$links = array(
15
-		'facebook'  => get_post_meta( get_the_ID(), 'lsx_facebook', true ),
16
-		'twitter'   => get_post_meta( get_the_ID(), 'lsx_twitter', true ),
17
-		'linkedin'  => get_post_meta( get_the_ID(), 'lsx_linkedin', true ),
18
-		'github'    => get_post_meta( get_the_ID(), 'lsx_github', true ),
19
-		'wordpress' => get_post_meta( get_the_ID(), 'lsx_wordpress', true ),
15
+		'facebook'  => get_post_meta(get_the_ID(), 'lsx_facebook', true),
16
+		'twitter'   => get_post_meta(get_the_ID(), 'lsx_twitter', true),
17
+		'linkedin'  => get_post_meta(get_the_ID(), 'lsx_linkedin', true),
18
+		'github'    => get_post_meta(get_the_ID(), 'lsx_github', true),
19
+		'wordpress' => get_post_meta(get_the_ID(), 'lsx_wordpress', true),
20 20
 	);
21 21
 
22
-	foreach ( $links as $service => $link ) {
23
-		if ( empty( $link ) ) {
24
-			unset( $links[ $service ] );
22
+	foreach ($links as $service => $link) {
23
+		if (empty($link)) {
24
+			unset($links[$service]);
25 25
 		}
26 26
 	}
27 27
 
28
-	$email = get_post_meta( get_the_ID(), 'lsx_email_contact', true );
29
-	$phone = get_post_meta( get_the_ID(), 'lsx_tel', true );
30
-	$skype = get_post_meta( get_the_ID(), 'lsx_skype', true );
28
+	$email = get_post_meta(get_the_ID(), 'lsx_email_contact', true);
29
+	$phone = get_post_meta(get_the_ID(), 'lsx_tel', true);
30
+	$skype = get_post_meta(get_the_ID(), 'lsx_skype', true);
31 31
 
32 32
 	$phone_attr = $phone;
33
-	$phone_attr = str_replace( ' ', '', $phone_attr );
34
-	$phone_attr = str_replace( '+', '', $phone_attr );
35
-	$phone_attr = str_replace( '(', '', $phone_attr );
36
-	$phone_attr = str_replace( ')', '', $phone_attr );
37
-	$phone_attr = str_replace( '.', '', $phone_attr );
33
+	$phone_attr = str_replace(' ', '', $phone_attr);
34
+	$phone_attr = str_replace('+', '', $phone_attr);
35
+	$phone_attr = str_replace('(', '', $phone_attr);
36
+	$phone_attr = str_replace(')', '', $phone_attr);
37
+	$phone_attr = str_replace('.', '', $phone_attr);
38 38
 
39 39
 	// Tabs
40 40
 
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 
43 43
 	// Tab Posts
44 44
 
45
-	$site_user = get_post_meta( get_the_ID(), 'lsx_site_user', true );
45
+	$site_user = get_post_meta(get_the_ID(), 'lsx_site_user', true);
46 46
 
47
-	if ( ! empty( $site_user ) ) {
48
-		if ( is_user_member_of_blog( $site_user ) ) {
49
-			$user_posts = count_user_posts( $site_user, 'post' );
47
+	if (!empty($site_user)) {
48
+		if (is_user_member_of_blog($site_user)) {
49
+			$user_posts = count_user_posts($site_user, 'post');
50 50
 
51
-			if ( $user_posts > 0 ) {
51
+			if ($user_posts > 0) {
52 52
 				$params = array(
53 53
 					'post_type' => 'post',
54 54
 					'author' => $site_user,
@@ -76,16 +76,16 @@  discard block
 block discarded – undo
76 76
 					),
77 77
 				);
78 78
 
79
-				$posts_query = new \WP_Query( $params );
79
+				$posts_query = new \WP_Query($params);
80 80
 
81
-				if ( $posts_query->have_posts() ) {
81
+				if ($posts_query->have_posts()) {
82 82
 					$tab_post['post_type'] = 'post';
83
-					$tab_post['title'] = esc_html__( 'Posts', 'lsx-team' );
83
+					$tab_post['title'] = esc_html__('Posts', 'lsx-team');
84 84
 					$tab_post['posts'] = $posts_query->posts;
85 85
 
86
-					if ( ! empty( $tab_post['posts'] ) ) {
87
-						$post_ids = join( ',', $tab_post['posts'] );
88
-						$tab_post['shortcode'] = '[lsx_posts columns="3" limit="9" include="' . $post_ids . '"]';
86
+					if (!empty($tab_post['posts'])) {
87
+						$post_ids = join(',', $tab_post['posts']);
88
+						$tab_post['shortcode'] = '[lsx_posts columns="3" limit="9" include="'.$post_ids.'"]';
89 89
 						$tabs[] = $tab_post;
90 90
 					}
91 91
 				}
@@ -96,25 +96,25 @@  discard block
 block discarded – undo
96 96
 	// Tab Projects
97 97
 
98 98
 	$tab_project['post_type'] = 'project';
99
-	$tab_project['title'] = esc_html__( 'Projects', 'lsx-team' );
100
-	$tab_project['posts'] = get_post_meta( get_the_ID(), 'project_to_team', true );
99
+	$tab_project['title'] = esc_html__('Projects', 'lsx-team');
100
+	$tab_project['posts'] = get_post_meta(get_the_ID(), 'project_to_team', true);
101 101
 
102
-	if ( is_plugin_active( 'lsx-projects/lsx-projects.php' ) && ( ! empty( $tab_project['posts'] ) ) ) {
103
-		$post_ids = join( ',', $tab_project['posts'] );
104
-		$tab_project['shortcode'] = '[lsx_projects columns="3" include="' . $post_ids . '"]';
102
+	if (is_plugin_active('lsx-projects/lsx-projects.php') && (!empty($tab_project['posts']))) {
103
+		$post_ids = join(',', $tab_project['posts']);
104
+		$tab_project['shortcode'] = '[lsx_projects columns="3" include="'.$post_ids.'"]';
105 105
 		$tabs[] = $tab_project;
106 106
 	}
107 107
 
108 108
 	// Tab Services
109 109
 
110
-	if ( is_plugin_active( 'lsx-services/lsx-services.php' ) ) {
110
+	if (is_plugin_active('lsx-services/lsx-services.php')) {
111 111
 		$tab_service['post_type'] = 'service';
112
-		$tab_service['title'] = esc_html__( 'Services', 'lsx-team' );
113
-		$tab_service['posts'] = get_post_meta( get_the_ID(), 'service_to_team', true );
112
+		$tab_service['title'] = esc_html__('Services', 'lsx-team');
113
+		$tab_service['posts'] = get_post_meta(get_the_ID(), 'service_to_team', true);
114 114
 
115
-		if ( ! empty( $tab_service['posts'] ) ) {
116
-			$post_ids = join( ',', $tab_service['posts'] );
117
-			$tab_service['shortcode'] = '[lsx_services columns="3" include="' . $post_ids . '"]';
115
+		if (!empty($tab_service['posts'])) {
116
+			$post_ids = join(',', $tab_service['posts']);
117
+			$tab_service['shortcode'] = '[lsx_services columns="3" include="'.$post_ids.'"]';
118 118
 			$tabs[] = $tab_service;
119 119
 		}
120 120
 	}
@@ -122,18 +122,18 @@  discard block
 block discarded – undo
122 122
 	// Tab Testimonials
123 123
 
124 124
 	$tab_testimonial['post_type'] = 'testimonial';
125
-	$tab_testimonial['title'] = esc_html__( 'Testimonials', 'lsx-team' );
126
-	$tab_testimonial['posts'] = get_post_meta( get_the_ID(), 'testimonial_to_team', true );
125
+	$tab_testimonial['title'] = esc_html__('Testimonials', 'lsx-team');
126
+	$tab_testimonial['posts'] = get_post_meta(get_the_ID(), 'testimonial_to_team', true);
127 127
 
128
-	if ( is_plugin_active( 'lsx-testimonials/lsx-testimonials.php' ) && ( ! empty( $tab_testimonial['posts'] ) ) ) {
129
-		if ( count( $tab_testimonial['posts'] ) <= 2 ) {
130
-			$columns = count( $tab_testimonial['posts'] );
128
+	if (is_plugin_active('lsx-testimonials/lsx-testimonials.php') && (!empty($tab_testimonial['posts']))) {
129
+		if (count($tab_testimonial['posts']) <= 2) {
130
+			$columns = count($tab_testimonial['posts']);
131 131
 		} else {
132 132
 			$columns = 2;
133 133
 		}
134 134
 
135
-		$post_ids = join( ',', $tab_testimonial['posts'] );
136
-		$tab_testimonial['shortcode'] = '[lsx_testimonials columns="' . $columns . '" include="' . $post_ids . '" orderby="date" order="DESC" display="excerpt"]';
135
+		$post_ids = join(',', $tab_testimonial['posts']);
136
+		$tab_testimonial['shortcode'] = '[lsx_testimonials columns="'.$columns.'" include="'.$post_ids.'" orderby="date" order="DESC" display="excerpt"]';
137 137
 		$tabs[] = $tab_testimonial;
138 138
 	}
139 139
 ?>
@@ -147,15 +147,15 @@  discard block
 block discarded – undo
147 147
 	<div class="row">
148 148
 		<div class="col-xs-12 col-sm-6 col-md-4">
149 149
 			<figure class="lsx-team-avatar">
150
-				<?php echo wp_kses_post( $thumbnail ); ?>
150
+				<?php echo wp_kses_post($thumbnail); ?>
151 151
 			</figure>
152 152
 
153
-			<?php if ( count( $links ) > 0 ) : ?>
154
-				<span class="lsx-team-socials-header"><?php echo esc_html__( 'Follow', 'lsx-team' ) . ':'; ?></span>
153
+			<?php if (count($links) > 0) : ?>
154
+				<span class="lsx-team-socials-header"><?php echo esc_html__('Follow', 'lsx-team').':'; ?></span>
155 155
 
156 156
 				<ul class="lsx-team-socials list-inline">
157
-					<?php foreach ( $links as $service => $link ) : ?>
158
-						<li><a href="<?php echo esc_html( $link ); ?>" target="_blank" rel="nofollow noreferrer noopener"><i class="fa fa-<?php echo esc_html( $service ); ?>" aria-hidden="true"></i></a></li>
157
+					<?php foreach ($links as $service => $link) : ?>
158
+						<li><a href="<?php echo esc_html($link); ?>" target="_blank" rel="nofollow noreferrer noopener"><i class="fa fa-<?php echo esc_html($service); ?>" aria-hidden="true"></i></a></li>
159 159
 					<?php endforeach; ?>
160 160
 				</ul>
161 161
 			<?php endif; ?>
@@ -163,39 +163,39 @@  discard block
 block discarded – undo
163 163
 
164 164
 		<div class="col-xs-12 col-sm-6 col-md-8">
165 165
 			<h2 class="lsx-team-name"><?php the_title(); ?></h2>
166
-			<h5 class="lsx-team-job-title"><?php echo esc_html( $job_title ); ?></h5>
166
+			<h5 class="lsx-team-job-title"><?php echo esc_html($job_title); ?></h5>
167 167
 			<div class="lsx-team-content"><?php the_content(); ?></div>
168 168
 
169
-			<?php if ( ! empty( $email ) || ! empty( $phone ) || ! empty( $skype ) ) : ?>
169
+			<?php if (!empty($email) || !empty($phone) || !empty($skype)) : ?>
170 170
 				<ul class="lsx-team-contact list-inline">
171
-					<?php if ( ! empty( $email ) ) : ?>
172
-						<li><a href="mailto:<?php echo esc_attr( $email ); ?>"><i class="fa fa-envelope-o" aria-hidden="true"></i> <?php echo esc_attr( $email ); ?></a></li>
171
+					<?php if (!empty($email)) : ?>
172
+						<li><a href="mailto:<?php echo esc_attr($email); ?>"><i class="fa fa-envelope-o" aria-hidden="true"></i> <?php echo esc_attr($email); ?></a></li>
173 173
 					<?php endif; ?>
174 174
 
175
-					<?php if ( ! empty( $phone ) ) : ?>
176
-						<li><a href="tel:<?php echo esc_attr( $phone_attr ); ?>"><i class="fa fa-phone" aria-hidden="true"></i> <?php echo esc_attr( $phone ); ?></a></li>
175
+					<?php if (!empty($phone)) : ?>
176
+						<li><a href="tel:<?php echo esc_attr($phone_attr); ?>"><i class="fa fa-phone" aria-hidden="true"></i> <?php echo esc_attr($phone); ?></a></li>
177 177
 					<?php endif; ?>
178 178
 
179
-					<?php if ( ! empty( $skype ) ) : ?>
180
-						<li><i class="fa fa-skype" aria-hidden="true"></i> <?php echo esc_attr( $skype ); ?></li>
179
+					<?php if (!empty($skype)) : ?>
180
+						<li><i class="fa fa-skype" aria-hidden="true"></i> <?php echo esc_attr($skype); ?></li>
181 181
 					<?php endif; ?>
182 182
 				</ul>
183 183
 			<?php endif; ?>
184 184
 		</div>
185 185
 	</div>
186 186
 
187
-	<?php if ( count( $tabs ) > 0 ) : ?>
187
+	<?php if (count($tabs) > 0) : ?>
188 188
 		<div class="entry-tabs">
189 189
 			<ul class="nav nav-tabs">
190
-				<?php foreach ( $tabs as $i => $tab ) : ?>
191
-					<li<?php if ( 0 === $i ) echo ' class="active"'; ?>><a data-toggle="tab" href="#<?php echo esc_attr( sanitize_title( $tab['title'] ) ); ?>"><?php echo esc_html( $tab['title'] ); ?></a></li>
190
+				<?php foreach ($tabs as $i => $tab) : ?>
191
+					<li<?php if (0 === $i) echo ' class="active"'; ?>><a data-toggle="tab" href="#<?php echo esc_attr(sanitize_title($tab['title'])); ?>"><?php echo esc_html($tab['title']); ?></a></li>
192 192
 				<?php endforeach; ?>
193 193
 			</ul>
194 194
 
195 195
 			<div class="tab-content">
196
-				<?php foreach ( $tabs as $i => $tab ) : ?>
197
-					<div id="<?php echo esc_attr( sanitize_title( $tab['title'] ) ); ?>" class="tab-pane fade<?php if ( 0 === $i ) echo ' in active'; ?>">
198
-						<?php echo do_shortcode( $tab['shortcode'] ); ?>
196
+				<?php foreach ($tabs as $i => $tab) : ?>
197
+					<div id="<?php echo esc_attr(sanitize_title($tab['title'])); ?>" class="tab-pane fade<?php if (0 === $i) echo ' in active'; ?>">
198
+						<?php echo do_shortcode($tab['shortcode']); ?>
199 199
 					</div>
200 200
 				<?php endforeach; ?>
201 201
 			</div>
Please login to merge, or discard this patch.