Completed
Push — master ( 296a4e...80da17 )
by Fernando
05:58
created
page-templates/template-sitemap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 	<?php lsx_content_wrap_before(); ?>
7 7
 
8
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
8
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
9 9
 
10 10
 		<?php lsx_content_before(); ?>
11 11
 
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 			<?php lsx_content_top(); ?>
15 15
 
16
-			<?php while ( have_posts() ) : the_post(); ?>
16
+			<?php while (have_posts()) : the_post(); ?>
17 17
 
18 18
 				<?php lsx_entry_before(); ?>
19 19
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                         <?php lsx_sitemap_custom_post_type(); ?>
29 29
                     	
30 30
 					</div><!-- .entry-content -->
31
-					<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
31
+					<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
32 32
 
33 33
 					<?php lsx_entry_bottom(); ?>
34 34
 					
Please login to merge, or discard this patch.
404.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,22 +7,22 @@
 block discarded – undo
7 7
 
8 8
 get_header(); ?>
9 9
 
10
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
10
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
11 11
 		<main id="main" class="site-main">
12 12
 
13 13
 			<section class="error-404 not-found">
14 14
 				<header class="page-header">
15
-					<h1 class="page-title"><?php esc_html_e( 'Whoops!', 'lsx' ); ?></h1>
15
+					<h1 class="page-title"><?php esc_html_e('Whoops!', 'lsx'); ?></h1>
16 16
 				</header><!-- .page-header -->
17 17
 
18 18
 				<div class="page-content">
19
-					<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'lsx' ); ?></p>
19
+					<p><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'lsx'); ?></p>
20 20
 
21 21
 					</div> <!-- .row -->
22 22
 					<?php get_search_form(); ?>
23 23
 					<br />
24 24
 
25
-					<p><?php esc_html_e( 'Alternatively, you can check out the', 'lsx' ); ?> <a href="/sitemap"><strong><?php esc_html_e( 'sitemap', 'lsx' ); ?></strong></a></p>
25
+					<p><?php esc_html_e('Alternatively, you can check out the', 'lsx'); ?> <a href="/sitemap"><strong><?php esc_html_e('sitemap', 'lsx'); ?></strong></a></p>
26 26
 
27 27
 				</div><!-- .page-content -->
28 28
 			</section><!-- .error-404 -->
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 	<?php lsx_content_wrap_before(); ?>
17 17
 
18
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
18
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
19 19
 
20 20
 		<?php lsx_content_before(); ?>
21 21
 
@@ -23,17 +23,17 @@  discard block
 block discarded – undo
23 23
 		
24 24
 		<?php lsx_content_top(); ?>
25 25
 
26
-		<?php if ( have_posts() ) : ?>
26
+		<?php if (have_posts()) : ?>
27 27
 
28 28
 			<?php /* Start the Loop */ ?>
29
-			<?php while ( have_posts() ) : the_post(); ?>
29
+			<?php while (have_posts()) : the_post(); ?>
30 30
 
31 31
 				<?php
32 32
 					/* Include the Post-Format-specific template for the content.
33 33
 					 * If you want to override this in a child theme, then include a file
34 34
 					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
35 35
 					 */
36
-					get_template_part( 'content', get_post_format() );
36
+					get_template_part('content', get_post_format());
37 37
 				?>
38 38
 
39 39
 			<?php endwhile; ?>
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 			
43 43
 		<?php else : ?>
44 44
 
45
-			<?php get_template_part( 'content', 'none' ); ?>
45
+			<?php get_template_part('content', 'none'); ?>
46 46
 
47 47
 		<?php endif; ?>
48 48
 
@@ -56,5 +56,5 @@  discard block
 block discarded – undo
56 56
 
57 57
 	<?php lsx_content_wrap_after(); ?>
58 58
 
59
-<?php get_sidebar( 'sidebar' ); ?>
59
+<?php get_sidebar('sidebar'); ?>
60 60
 <?php get_footer();
61 61
\ No newline at end of file
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@  discard block
 block discarded – undo
12 12
 <html <?php language_attributes(); ?>>
13 13
 <head>
14 14
 <?php lsx_head_top(); ?>
15
-<meta charset="<?php bloginfo( 'charset' ); ?>">
15
+<meta charset="<?php bloginfo('charset'); ?>">
16 16
 <link rel="profile" href="http://gmpg.org/xfn/11">
17
-<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
17
+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
18 18
 <?php lsx_head_bottom(); ?>
19 19
 <?php wp_head(); ?>
20 20
 </head>
21
-<body <?php body_class( 'lsx' ); ?>>
21
+<body <?php body_class('lsx'); ?>>
22 22
 <?php lsx_body_top(); ?>
23 23
 
24
-<?php if ( !is_singular('landing-page') ) { ?>
24
+<?php if ( ! is_singular('landing-page')) { ?>
25 25
 
26 26
 	<?php lsx_header_before(); ?>
27 27
 		 	<header class="<?php lsx_header_classes(); ?>">
@@ -57,17 +57,17 @@  discard block
 block discarded – undo
57 57
 			    </div>
58 58
 
59 59
 			    <div class="header-links">
60
-			    	<strong><?php esc_html_e( 'Get your Tourism Establishment Online', 'lsx' ); ?></strong>
60
+			    	<strong><?php esc_html_e('Get your Tourism Establishment Online', 'lsx'); ?></strong>
61 61
 			    	
62 62
 			    	<?php 
63
-			    	if(is_singular('landing-page')){ 
64
-			    			$email_address = get_post_meta(get_the_ID(),'email_address',true);
65
-			    			if(false === $email_address){
63
+			    	if (is_singular('landing-page')) { 
64
+			    			$email_address = get_post_meta(get_the_ID(), 'email_address', true);
65
+			    			if (false === $email_address) {
66 66
 								$email_address = '[email protected]';
67 67
 							}
68 68
 			    	} ?>
69 69
 			    	
70
-			    	<span class="email-address"><?php esc_html_e( 'Questions? Email Us: ', 'lsx' ); ?><a href="mailto:<?php echo esc_attr( $email_address ); ?>"><?php echo esc_html( $email_address ); ?></a></span>
70
+			    	<span class="email-address"><?php esc_html_e('Questions? Email Us: ', 'lsx'); ?><a href="mailto:<?php echo esc_attr($email_address); ?>"><?php echo esc_html($email_address); ?></a></span>
71 71
 			    </div>
72 72
 		  	</div>
73 73
 
Please login to merge, or discard this patch.
content-none.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,22 +10,22 @@
 block discarded – undo
10 10
 
11 11
 <section class="no-results not-found">
12 12
 	<header class="page-header">
13
-		<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1>
13
+		<h1 class="page-title"><?php esc_html_e('Nothing Found', 'lsx'); ?></h1>
14 14
 	</header><!-- .page-header -->
15 15
 
16 16
 	<div class="page-content">
17
-		<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
17
+		<?php if (is_home() && current_user_can('publish_posts')) : ?>
18 18
 
19
-			<p><?php esc_html_e( 'Ready to publish your first post?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php' ) ) ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p>
19
+			<p><?php esc_html_e('Ready to publish your first post?', 'lsx'); ?> <a href="<?php echo esc_url(admin_url('post-new.php')) ?>"><?php esc_html_e('Get started here', 'lsx'); ?></a></p>
20 20
 
21
-		<?php elseif ( is_search() ) : ?>
21
+		<?php elseif (is_search()) : ?>
22 22
 
23
-			<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx' ); ?></p>
23
+			<p><?php esc_html_e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx'); ?></p>
24 24
 			<?php get_search_form(); ?>
25 25
 
26 26
 		<?php else : ?>
27 27
 
28
-			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx' ); ?></p>
28
+			<p><?php esc_html_e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx'); ?></p>
29 29
 			<?php get_search_form(); ?>
30 30
 
31 31
 		<?php endif; ?>
Please login to merge, or discard this patch.
footer.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @package lsx
8 8
  */
9 9
 ?>
10
-<?php if ( !is_singular('landing-page') ) { ?>
10
+<?php if ( ! is_singular('landing-page')) { ?>
11 11
 
12 12
 			</div><!-- .content -->
13 13
 		</div><!-- wrap -->
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
 		  					    <div class="footer-menu">
22 22
 									<?php 
23 23
 									
24
-										if(!is_user_logged_in()){
25
-											if(has_nav_menu('footer-menu')){
24
+										if ( ! is_user_logged_in()) {
25
+											if (has_nav_menu('footer-menu')) {
26 26
 												wp_nav_menu(array('theme_location' => 'footer-menu'));
27 27
 											}
28
-										}else{
29
-											if(has_nav_menu('footer_logged_in')){
28
+										} else {
29
+											if (has_nav_menu('footer_logged_in')) {
30 30
 												wp_nav_menu(array('theme_location' => 'footer_logged_in'));
31 31
 											}
32 32
 										}				
@@ -41,26 +41,26 @@  discard block
 block discarded – undo
41 41
 
42 42
 			    		<?php lsx_footer_top(); ?>
43 43
 
44
-			      		<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) { ?>credit-float<?php } ?>"><?php printf( esc_html__( '&#169; %1$s %2$s All Rights Reserved.', 'lsx' ), esc_html( date_i18n( 'Y' ) ), esc_html( get_bloginfo( 'name' ) ) ); ?></p>
45
-						<?php if ( has_nav_menu( 'social' ) ) { ?>
44
+			      		<p class="credit <?php if (has_nav_menu('social') || has_nav_menu('footer')) { ?>credit-float<?php } ?>"><?php printf(esc_html__('&#169; %1$s %2$s All Rights Reserved.', 'lsx'), esc_html(date_i18n('Y')), esc_html(get_bloginfo('name'))); ?></p>
45
+						<?php if (has_nav_menu('social')) { ?>
46 46
 							<nav id="social-navigation" class="social-navigation">
47 47
 								<?php
48 48
 									// Social links navigation menu.
49
-									wp_nav_menu( array(
49
+									wp_nav_menu(array(
50 50
 										'theme_location' => 'social',
51 51
 										'depth'          => 1,
52
-									) );
52
+									));
53 53
 								?>
54 54
 							</nav><!-- .social-navigation -->
55 55
 						<?php } ?>
56
-						<?php if ( has_nav_menu( 'footer' ) ) { ?>
56
+						<?php if (has_nav_menu('footer')) { ?>
57 57
 							<nav id="footer-navigation" class="footer-navigation">
58 58
 								<?php
59 59
 									// Footer links navigation menu.
60
-									wp_nav_menu( array(
60
+									wp_nav_menu(array(
61 61
 										'theme_location' => 'footer',
62 62
 										'depth'          => 1,
63
-									) );
63
+									));
64 64
 								?>
65 65
 							</nav><!-- .footer-navigation -->
66 66
 						<?php } ?>
@@ -87,15 +87,15 @@  discard block
 block discarded – undo
87 87
 
88 88
 			    		<?php lsx_footer_top(); ?>
89 89
 
90
-			      		<p class="credit <?php if ( has_nav_menu( 'social' ) ) { ?>credit-float<?php } ?>"><?php printf( esc_html__( '&#169; %1$s %2$s All Rights Reserved.', 'lsx' ), esc_html( date_i18n( 'Y' ) ), esc_html( get_bloginfo( 'name' ) ) ); ?></p>
91
-						<?php if ( has_nav_menu( 'social' ) ) { ?>
90
+			      		<p class="credit <?php if (has_nav_menu('social')) { ?>credit-float<?php } ?>"><?php printf(esc_html__('&#169; %1$s %2$s All Rights Reserved.', 'lsx'), esc_html(date_i18n('Y')), esc_html(get_bloginfo('name'))); ?></p>
91
+						<?php if (has_nav_menu('social')) { ?>
92 92
 							<nav id="social-navigation" class="social-navigation" role="navigation">
93 93
 								<?php
94 94
 									// Social links navigation menu.
95
-									wp_nav_menu( array(
95
+									wp_nav_menu(array(
96 96
 										'theme_location' => 'social',
97 97
 										'depth'          => 1,
98
-									) );
98
+									));
99 99
 								?>
100 100
 							</nav><!-- .social-navigation -->
101 101
 						<?php } ?>
Please login to merge, or discard this patch.
inc/customizer-core.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
3 3
 
4 4
 /**
5 5
  * Customize Swatch Control Class
6 6
  *
7 7
  * @since 1.0.0
8 8
  */
9
-if( !class_exists( 'WP_Customize_Control' ) ){
9
+if ( ! class_exists('WP_Customize_Control')) {
10 10
 	return;
11 11
 }
12 12
 class LSX_Customize_Core_Control extends WP_Customize_Control {
@@ -22,13 +22,13 @@  discard block
 block discarded – undo
22 22
 	public function render_content() {
23 23
 		?> 
24 24
 		<label>
25
-			<?php if ( ! empty( $this->label ) ) { ?>
26
-				<span class="customize-control-title"><?php echo esc_html( $this->label ) ?></span>
25
+			<?php if ( ! empty($this->label)) { ?>
26
+				<span class="customize-control-title"><?php echo esc_html($this->label) ?></span>
27 27
 			<?php }
28
-			if ( ! empty( $this->description ) ) { ?>
29
-				<span class="description customize-control-description"><?php echo esc_html( $this->description ) ?></span>
28
+			if ( ! empty($this->description)) { ?>
29
+				<span class="description customize-control-description"><?php echo esc_html($this->description) ?></span>
30 30
 			<?php } ?>
31
-			<input <?php $this->link() ?> type="checkbox" value="<?php echo esc_attr( $this->value() ) ?>" <?php $this->input_attrs() ?>>
31
+			<input <?php $this->link() ?> type="checkbox" value="<?php echo esc_attr($this->value()) ?>" <?php $this->input_attrs() ?>>
32 32
 		</label>
33 33
 	<?php
34 34
 	}
Please login to merge, or discard this patch.
inc/hooks.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
  * $lsx_supports[] = 'body';
25 25
  */
26 26
  function lsx_body_top() {
27
-	 do_action( 'lsx_body_top' );
27
+	 do_action('lsx_body_top');
28 28
  }
29 29
 
30 30
  function lsx_body_bottom() {
31
-	 do_action( 'lsx_body_bottom' );
31
+	 do_action('lsx_body_bottom');
32 32
  }
33 33
  
34 34
 /**
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
 * $lsx_supports[] = 'head';
38 38
 */
39 39
 function lsx_head_top() {
40
-	do_action( 'lsx_head_top' );
40
+	do_action('lsx_head_top');
41 41
 }
42 42
 
43 43
 function lsx_head_bottom() {
44
-	do_action( 'lsx_head_bottom' );
44
+	do_action('lsx_head_bottom');
45 45
 }
46 46
 
47 47
 /**
@@ -50,27 +50,27 @@  discard block
 block discarded – undo
50 50
 * $lsx_supports[] = 'header';
51 51
 */
52 52
 function lsx_header_before() {
53
-	do_action( 'lsx_header_before' );
53
+	do_action('lsx_header_before');
54 54
 }
55 55
 
56 56
 function lsx_header_after() {
57
-	do_action( 'lsx_header_after' );
57
+	do_action('lsx_header_after');
58 58
 }
59 59
 
60 60
 function lsx_header_top() {
61
-	do_action( 'lsx_header_top' );
61
+	do_action('lsx_header_top');
62 62
 }
63 63
 
64 64
 function lsx_header_bottom() {
65
-	do_action( 'lsx_header_bottom' );
65
+	do_action('lsx_header_bottom');
66 66
 }
67 67
 
68 68
 function lsx_nav_before() {
69
-	do_action( 'lsx_nav_before' );
69
+	do_action('lsx_nav_before');
70 70
 }
71 71
 
72 72
 function lsx_nav_after() {
73
-	do_action( 'lsx_nav_after' );
73
+	do_action('lsx_nav_after');
74 74
 }
75 75
 
76 76
 /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
  */
81 81
 
82 82
 function lsx_banner_content() {
83
-	do_action( 'lsx_banner_content' );
83
+	do_action('lsx_banner_content');
84 84
 }
85 85
 
86 86
 /**
@@ -89,35 +89,35 @@  discard block
 block discarded – undo
89 89
 * $lsx_supports[] = 'content';
90 90
 */
91 91
 function lsx_content_wrap_before() {
92
-	do_action( 'lsx_content_wrap_before' );
92
+	do_action('lsx_content_wrap_before');
93 93
 }
94 94
 
95 95
 function lsx_content_wrap_after() {
96
-	do_action( 'lsx_content_wrap_after' );
96
+	do_action('lsx_content_wrap_after');
97 97
 }
98 98
 
99 99
 function lsx_content_before() {
100
-	do_action( 'lsx_content_before' );
100
+	do_action('lsx_content_before');
101 101
 }
102 102
 
103 103
 function lsx_content_after() {
104
-	do_action( 'lsx_content_after' );
104
+	do_action('lsx_content_after');
105 105
 }
106 106
 
107 107
 function lsx_content_top() {
108
-	do_action( 'lsx_content_top' );
108
+	do_action('lsx_content_top');
109 109
 }
110 110
 
111 111
 function lsx_content_bottom() {
112
-	do_action( 'lsx_content_bottom' );
112
+	do_action('lsx_content_bottom');
113 113
 }
114 114
 
115 115
 function lsx_content_post_meta() {
116
-	do_action( 'lsx_content_post_meta' );
116
+	do_action('lsx_content_post_meta');
117 117
 }
118 118
 
119 119
 function lsx_content_post_tags() {
120
-	do_action( 'lsx_content_post_tags' );
120
+	do_action('lsx_content_post_tags');
121 121
 }
122 122
 
123 123
 /**
@@ -126,19 +126,19 @@  discard block
 block discarded – undo
126 126
 * $lsx_supports[] = 'entry';
127 127
 */
128 128
 function lsx_entry_before() {
129
-	do_action( 'lsx_entry_before' );
129
+	do_action('lsx_entry_before');
130 130
 }
131 131
 
132 132
 function lsx_entry_after() {
133
-	do_action( 'lsx_entry_after' );
133
+	do_action('lsx_entry_after');
134 134
 }
135 135
 
136 136
 function lsx_entry_top() {
137
-	do_action( 'lsx_entry_top' );
137
+	do_action('lsx_entry_top');
138 138
 }
139 139
 
140 140
 function lsx_entry_bottom() {
141
-	do_action( 'lsx_entry_bottom' );
141
+	do_action('lsx_entry_bottom');
142 142
 }
143 143
 
144 144
 /**
@@ -147,11 +147,11 @@  discard block
 block discarded – undo
147 147
 * $lsx_supports[] = 'comments';
148 148
 */
149 149
 function lsx_comments_before() {
150
-	do_action( 'lsx_comments_before' );
150
+	do_action('lsx_comments_before');
151 151
 }
152 152
 
153 153
 function lsx_comments_after() {
154
-	do_action( 'lsx_comments_after' );
154
+	do_action('lsx_comments_after');
155 155
 }
156 156
 
157 157
 /**
@@ -160,19 +160,19 @@  discard block
 block discarded – undo
160 160
 * $lsx_supports[] = 'sidebar';
161 161
 */
162 162
 function lsx_sidebars_before() {
163
-	do_action( 'lsx_sidebars_before' );
163
+	do_action('lsx_sidebars_before');
164 164
 }
165 165
 
166 166
 function lsx_sidebars_after() {
167
-	do_action( 'lsx_sidebars_after' );
167
+	do_action('lsx_sidebars_after');
168 168
 }
169 169
 
170 170
 function lsx_sidebar_top() {
171
-	do_action( 'lsx_sidebar_top' );
171
+	do_action('lsx_sidebar_top');
172 172
 }
173 173
 
174 174
 function lsx_sidebar_bottom() {
175
-	do_action( 'lsx_sidebar_bottom' );
175
+	do_action('lsx_sidebar_bottom');
176 176
 }
177 177
 
178 178
 /**
@@ -181,17 +181,17 @@  discard block
 block discarded – undo
181 181
 * $lsx_supports[] = 'footer';
182 182
 */
183 183
 function lsx_footer_before() {
184
-	do_action( 'lsx_footer_before' );
184
+	do_action('lsx_footer_before');
185 185
 }
186 186
 
187 187
 function lsx_footer_after() {
188
-	do_action( 'lsx_footer_after' );
188
+	do_action('lsx_footer_after');
189 189
 }
190 190
 
191 191
 function lsx_footer_top() {
192
-	do_action( 'lsx_footer_top' );
192
+	do_action('lsx_footer_top');
193 193
 }
194 194
 
195 195
 function lsx_footer_bottom() {
196
-	do_action( 'lsx_footer_bottom' );
196
+	do_action('lsx_footer_bottom');
197 197
 }
198 198
\ No newline at end of file
Please login to merge, or discard this patch.
inc/google-font-collection.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly
2
+if ( ! defined('ABSPATH')) return; // Exit if accessed directly
3 3
 /**
4 4
  * Google Font_Collection Class
5 5
 **/
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	**/
16 16
 	public function __construct($fonts)
17 17
 	{
18
-		if(empty($fonts))
18
+		if (empty($fonts))
19 19
 		{
20 20
 			//we didn't get the required data
21 21
 			return false;
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 		// create fonts
25 25
 		foreach ($fonts as $key => $value) 
26 26
 		{	
27
-			if( empty( $value["system"] ) ){
27
+			if (empty($value["system"])) {
28 28
 				$this->fonts[$value["title"]] = new LSX_Google_Font($value["title"], $value["location"], $value["cssDeclaration"], $value["cssClass"]);
29 29
 			}
30 30
 		}
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
 		foreach ($this->fonts as $key => $value) 
107 107
 		{
108 108
 			$protocol = 'http';
109
-			if(is_ssl()){ $protocol.='s'; }
109
+			if (is_ssl()) { $protocol .= 's'; }
110 110
 			?>
111
-			<link href="<?php echo esc_attr( $protocol ); ?>://fonts.googleapis.com/css?family=<?php echo esc_attr( $value->__get( "location" ) ); ?>" rel='stylesheet'>
111
+			<link href="<?php echo esc_attr($protocol); ?>://fonts.googleapis.com/css?family=<?php echo esc_attr($value->__get("location")); ?>" rel='stylesheet'>
112 112
 			<?php
113 113
 		}
114 114
 	}
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
 			foreach ($this->fonts as $key => $value) 
126 126
 			{
127 127
 				?>
128
-				.<?php echo esc_attr( $value->__get( "cssClass" ) ); ?>{
129
-					font-family: <?php echo esc_attr( $value->__get( "cssDeclaration" ) ); ?>;
128
+				.<?php echo esc_attr($value->__get("cssClass")); ?>{
129
+					font-family: <?php echo esc_attr($value->__get("cssDeclaration")); ?>;
130 130
 				}
131 131
 				<?php
132 132
 			}
Please login to merge, or discard this patch.