Completed
Push — master ( cb1b31...9eb567 )
by
unknown
03:18
created
inc/buddypress.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
  */
20 20
  function lsx_buddypress_page_columns($layout) {
21 21
  	
22
-	if(bp_is_profile_component()|| bp_is_settings_component() || bp_is_activity_component() || bp_is_group() || bp_is_messages_component()
23
-		|| bp_is_members_directory() || bp_is_groups_directory() || bp_is_groups_component() || bp_is_members_component()){
22
+	if (bp_is_profile_component() || bp_is_settings_component() || bp_is_activity_component() || bp_is_group() || bp_is_messages_component()
23
+		|| bp_is_members_directory() || bp_is_groups_directory() || bp_is_groups_component() || bp_is_members_component()) {
24 24
 		$layout = '1c';
25 25
 	}
26 26
 	return $layout;
27 27
  }
28
- add_filter( 'lsx_layout', 'lsx_buddypress_page_columns' , 1 , 100 );
29 28
\ No newline at end of file
29
+ add_filter('lsx_layout', 'lsx_buddypress_page_columns', 1, 100);
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
inc/customizer-header-fixed.php 1 patch
Spacing   +10 added lines, -10 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
  * Customizer Header Fixed 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_Header_Fixed_Control extends WP_Customize_Control {
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 	 * @param string $id
39 39
 	 * @param array $args
40 40
 	 */
41
-	public function __construct( $manager, $id, $args = array() ) {
42
-		parent::__construct( $manager, $id, $args );
43
-		if( !empty( $args['choices'] ) ){
41
+	public function __construct($manager, $id, $args = array()) {
42
+		parent::__construct($manager, $id, $args);
43
+		if ( ! empty($args['choices'])) {
44 44
 			$this->layouts = $args['choices'];
45 45
 		}
46 46
 	}
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	 */
53 53
 	public function enqueue() {
54 54
 		// 
55
-		wp_enqueue_script( 'lsx-header-fixed-control', get_template_directory_uri() .'/js/customizer-header-fixed.js', array('jquery'), null, true );
55
+		wp_enqueue_script('lsx-header-fixed-control', get_template_directory_uri() . '/js/customizer-header-fixed.js', array('jquery'), null, true);
56 56
 	}
57 57
 
58 58
 	/**
@@ -62,16 +62,16 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public function render_content() {
64 64
 		
65
-		$post_id    = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
65
+		$post_id = 'customize-control-' . str_replace('[', '-', str_replace(']', '', $this->id));
66 66
 		$class = 'customize-control customize-control-' . $this->type;
67 67
 		$value = $this->value();
68 68
 
69 69
 		?>
70 70
 		<label>
71
-			<?php if ( ! empty( $this->label ) ) { ?>
72
-				<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
71
+			<?php if ( ! empty($this->label)) { ?>
72
+				<span class="customize-control-title"><?php echo esc_html($this->label); ?></span>
73 73
 			<?php }
74
-			if ( ! empty( $this->description ) ) { ?>
74
+			if ( ! empty($this->description)) { ?>
75 75
 				<span class="description customize-control-description"><?php echo $this->description; ?></span>
76 76
 			<?php } ?>
77 77
 			<div class="header-fixed">
Please login to merge, or discard this patch.
inc/nav.php 1 patch
Spacing   +8 added lines, -8 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
 /**
5 5
  * Cleaner walker for wp_nav_menu()
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 		$item_html = '';
26 26
 		
27 27
 		//If there is no menu set, dont use the pages, the objects are not the same as whats supposed to be used.
28
-		if(isset($item->title)){
28
+		if (isset($item->title)) {
29 29
 
30 30
 			parent::start_el($item_html, $item, $depth, $args);
31 31
 	
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
 	}
46 46
 
47 47
 	function display_element($element, &$children_elements, $max_depth, $depth = 0, $args, &$output) {
48
-		$element->is_dropdown = ((!empty($children_elements[$element->ID]) && (($depth+1) < $max_depth || ($max_depth === 0))));
48
+		$element->is_dropdown = (( ! empty($children_elements[$element->ID]) && (($depth + 1) < $max_depth || ($max_depth === 0))));
49 49
 
50 50
 		if ($element->is_dropdown) {
51
-			if ($depth>0) {
51
+			if ($depth > 0) {
52 52
 				$element->classes[] = 'dropdown-submenu';
53 53
 			} else {
54 54
 				$element->classes[] = 'dropdown';
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	$classes = preg_replace('/(current(-menu-|[-_]page[-_])(item|parent|ancestor))/', 'active', $classes);
69 69
 	$classes = preg_replace('/^((menu|page)[-_\w+]+)+/', '', $classes);
70 70
 
71
-	$classes[] = 'menu-'.$slug;
71
+	$classes[] = 'menu-' . $slug;
72 72
 
73 73
 	$classes = array_unique($classes);
74 74
 
@@ -86,15 +86,15 @@  discard block
 block discarded – undo
86 86
 function lsx_nav_menu_args($args = '') {
87 87
 	$roots_nav_menu_args['container'] = false;
88 88
 
89
-	if (!$args['items_wrap']) {
89
+	if ( ! $args['items_wrap']) {
90 90
 		$roots_nav_menu_args['items_wrap'] = '<ul class="%2$s">%3$s</ul>';
91 91
 	}
92 92
 
93
-	if (current_theme_supports('bootstrap-top-navbar') && !$args['depth']) {
93
+	if (current_theme_supports('bootstrap-top-navbar') && ! $args['depth']) {
94 94
 		$roots_nav_menu_args['depth'] = 2;
95 95
 	}
96 96
 
97
-	if (!$args['walker']) {
97
+	if ( ! $args['walker']) {
98 98
 		$roots_nav_menu_args['walker'] = new LSX_Nav_Walker();
99 99
 	}
100 100
 
Please login to merge, or discard this patch.
inc/google-font.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 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 Class
5 5
 **/
Please login to merge, or discard this patch.
inc/hooks.php 1 patch
Spacing   +31 added lines, -31 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,27 +89,27 @@  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
 /**
@@ -118,19 +118,19 @@  discard block
 block discarded – undo
118 118
 * $lsx_supports[] = 'entry';
119 119
 */
120 120
 function lsx_entry_before() {
121
-	do_action( 'lsx_entry_before' );
121
+	do_action('lsx_entry_before');
122 122
 }
123 123
 
124 124
 function lsx_entry_after() {
125
-	do_action( 'lsx_entry_after' );
125
+	do_action('lsx_entry_after');
126 126
 }
127 127
 
128 128
 function lsx_entry_top() {
129
-	do_action( 'lsx_entry_top' );
129
+	do_action('lsx_entry_top');
130 130
 }
131 131
 
132 132
 function lsx_entry_bottom() {
133
-	do_action( 'lsx_entry_bottom' );
133
+	do_action('lsx_entry_bottom');
134 134
 }
135 135
 
136 136
 /**
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
 * $lsx_supports[] = 'comments';
140 140
 */
141 141
 function lsx_comments_before() {
142
-	do_action( 'lsx_comments_before' );
142
+	do_action('lsx_comments_before');
143 143
 }
144 144
 
145 145
 function lsx_comments_after() {
146
-	do_action( 'lsx_comments_after' );
146
+	do_action('lsx_comments_after');
147 147
 }
148 148
 
149 149
 /**
@@ -152,19 +152,19 @@  discard block
 block discarded – undo
152 152
 * $lsx_supports[] = 'sidebar';
153 153
 */
154 154
 function lsx_sidebars_before() {
155
-	do_action( 'lsx_sidebars_before' );
155
+	do_action('lsx_sidebars_before');
156 156
 }
157 157
 
158 158
 function lsx_sidebars_after() {
159
-	do_action( 'lsx_sidebars_after' );
159
+	do_action('lsx_sidebars_after');
160 160
 }
161 161
 
162 162
 function lsx_sidebar_top() {
163
-	do_action( 'lsx_sidebar_top' );
163
+	do_action('lsx_sidebar_top');
164 164
 }
165 165
 
166 166
 function lsx_sidebar_bottom() {
167
-	do_action( 'lsx_sidebar_bottom' );
167
+	do_action('lsx_sidebar_bottom');
168 168
 }
169 169
 
170 170
 /**
@@ -173,17 +173,17 @@  discard block
 block discarded – undo
173 173
 * $lsx_supports[] = 'footer';
174 174
 */
175 175
 function lsx_footer_before() {
176
-	do_action( 'lsx_footer_before' );
176
+	do_action('lsx_footer_before');
177 177
 }
178 178
 
179 179
 function lsx_footer_after() {
180
-	do_action( 'lsx_footer_after' );
180
+	do_action('lsx_footer_after');
181 181
 }
182 182
 
183 183
 function lsx_footer_top() {
184
-	do_action( 'lsx_footer_top' );
184
+	do_action('lsx_footer_top');
185 185
 }
186 186
 
187 187
 function lsx_footer_bottom() {
188
-	do_action( 'lsx_footer_bottom' );
188
+	do_action('lsx_footer_bottom');
189 189
 }
190 190
\ No newline at end of file
Please login to merge, or discard this patch.
inc/comment-walker.php 1 patch
Spacing   +8 added lines, -8 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
 /**
5 5
  * lsx Comment Walker
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
     $GLOBALS['comment_depth'] = $depth;
30 30
     $GLOBALS['comment'] = $comment;
31 31
 
32
-    if (!empty($args['callback'])) {
32
+    if ( ! empty($args['callback'])) {
33 33
       call_user_func($args['callback'], $comment, $args, $depth);
34 34
       return;
35 35
     }
36 36
 
37
-    extract($args, EXTR_SKIP);?>
37
+    extract($args, EXTR_SKIP); ?>
38 38
 
39 39
   	<li id="comment-<?php comment_ID(); ?>" <?php comment_class('media comment-' . get_comment_ID()); ?>>
40 40
     <?php get_template_part('comment'); ?>
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
   }
43 43
 
44 44
   function end_el(&$output, $comment, $depth = 0, $args = array()) {
45
-    if (!empty($args['end-callback'])) {
45
+    if ( ! empty($args['end-callback'])) {
46 46
       call_user_func($args['end-callback'], $comment, $args, $depth);
47 47
       return;
48 48
     }
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
  * @subpackage layout
65 65
  */
66 66
 function lsx_comment_form_fields_filter($fields) {	
67
-	foreach($fields as &$field){
68
-		if(stristr('class=', $field)){
67
+	foreach ($fields as &$field) {
68
+		if (stristr('class=', $field)) {
69 69
 			$field = str_replace('class="', 'class="form-control ', $field);
70
-		}else{
70
+		} else {
71 71
 			$field = str_replace('<input', '<input class="form-control" ', $field);
72 72
 		}
73 73
 	}
74 74
 	return $fields;
75 75
 }
76
-add_filter( 'comment_form_default_fields', 'lsx_comment_form_fields_filter');
76
+add_filter('comment_form_default_fields', 'lsx_comment_form_fields_filter');
Please login to merge, or discard this patch.
inc/template-tags.php 1 patch
Spacing   +144 added lines, -144 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
 /**
5 5
  * Yoast Breadcrumbs on Twitter Bootstrap
@@ -10,21 +10,21 @@  discard block
 block discarded – undo
10 10
  * @param string $sep Your custom separator
11 11
  */
12 12
 function lsx_breadcrumbs() {
13
-  if (!function_exists('yoast_breadcrumb') && !function_exists('woocommerce_breadcrumb')) {
13
+  if ( ! function_exists('yoast_breadcrumb') && ! function_exists('woocommerce_breadcrumb')) {
14 14
     return null;
15 15
   }
16 16
   
17 17
   $show_on_front = get_option('show_on_front');
18
-  if ( ('posts' == $show_on_front && is_home()) || ('page' == $show_on_front && is_front_page()) ) {
18
+  if (('posts' == $show_on_front && is_home()) || ('page' == $show_on_front && is_front_page())) {
19 19
   	return;
20 20
   }
21 21
 
22
-  if(function_exists('woocommerce_breadcrumb')){
22
+  if (function_exists('woocommerce_breadcrumb')) {
23 23
   		ob_start();
24 24
   		woocommerce_breadcrumb();
25 25
   		$output = ob_get_clean();
26 26
   		$output = str_replace('woocommerce-breadcrumb', 'woocommerce-breadcrumb breadcrumbs-container', $output);
27
-  }elseif(function_exists('yoast_breadcrumb')){
27
+  }elseif (function_exists('yoast_breadcrumb')) {
28 28
 	  	// Default Yoast Breadcrumbs Separator
29 29
 	  	$old_sep = '\&raquo\;';
30 30
 	  	
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 	  	$output = '<div class="breadcrumbs-container">' . $output . '</div>';
43 43
   }
44 44
   
45
-  $output = apply_filters('lsx_breadcrumbs',$output);
45
+  $output = apply_filters('lsx_breadcrumbs', $output);
46 46
 
47 47
   echo $output;
48 48
 }
49
-add_action( 'lsx_content_top', 'lsx_breadcrumbs', 100 );
49
+add_action('lsx_content_top', 'lsx_breadcrumbs', 100);
50 50
 
51 51
 /**
52 52
  * Replaces the seperator with a blank space.
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 function lsx_breadcrumbs_seperator_filter($seperator) {
56 56
 	return '';
57 57
 }
58
-add_filter( 'wpseo_breadcrumb_separator', 'lsx_breadcrumbs_seperator_filter' );
58
+add_filter('wpseo_breadcrumb_separator', 'lsx_breadcrumbs_seperator_filter');
59 59
 
60 60
 /**
61 61
  * Custom template tags for this theme.
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
  *
64 64
  * @package lsx
65 65
  */
66
-if ( ! function_exists( 'lsx_site_title' ) ) :
66
+if ( ! function_exists('lsx_site_title')) :
67 67
 	/**
68 68
 	 * Displays logo when applicable
69 69
 	 *
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
 	function lsx_site_title() {
73 73
 		?>
74 74
 			<div class="site-branding">
75
-				<h1 class="site-title"><a title="<?php bloginfo( 'name' ); ?>" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
76
-				<p class="site-description"><?php bloginfo( 'description' ); ?></p>
75
+				<h1 class="site-title"><a title="<?php bloginfo('name'); ?>" href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
76
+				<p class="site-description"><?php bloginfo('description'); ?></p>
77 77
 			</div>		
78 78
 		<?php 
79 79
 	}
@@ -88,43 +88,43 @@  discard block
 block discarded – undo
88 88
  * to be added/modified where necessary.
89 89
  */
90 90
 
91
-if ( ! function_exists( 'lsx_post_meta' ) ) {
91
+if ( ! function_exists('lsx_post_meta')) {
92 92
 	function lsx_post_meta() {
93
-		if ( (is_page() && !(is_home() || is_front_page())) && ! is_page_template( 'page-templates/template-blog.php' ) ) { return; } ?>
93
+		if ((is_page() && ! (is_home() || is_front_page())) && ! is_page_template('page-templates/template-blog.php')) { return; } ?>
94 94
 		
95 95
 		<div class="post-meta">
96 96
 				<?php
97 97
 					$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
98 98
 					
99
-					$time_string = sprintf( $time_string,
100
-						esc_attr( get_the_date( 'c' ) ),
99
+					$time_string = sprintf($time_string,
100
+						esc_attr(get_the_date('c')),
101 101
 						get_the_date(),
102
-						esc_attr( get_the_modified_date( 'c' ) ),
102
+						esc_attr(get_the_modified_date('c')),
103 103
 						get_the_modified_date()
104 104
 					);
105
-					printf( '<span class="post-meta-time"><span>%1$s</span> <a href="%2$s" rel="bookmark">%3$s</a></span>',
106
-						_x( 'Posted on:', 'Used before publish date.', 'lsx' ),
107
-						esc_url( get_permalink() ),
105
+					printf('<span class="post-meta-time"><span>%1$s</span> <a href="%2$s" rel="bookmark">%3$s</a></span>',
106
+						_x('Posted on:', 'Used before publish date.', 'lsx'),
107
+						esc_url(get_permalink()),
108 108
 						$time_string
109 109
 					);
110 110
 				?>
111 111
 
112
-				<?php printf( '<span class="post-meta-author"><span>%1$s</span> <a href="%2$s">%3$s</a></span>',
113
-					_x( 'Posted by:', 'Used before post author name.', 'lsx' ),
114
-					esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
112
+				<?php printf('<span class="post-meta-author"><span>%1$s</span> <a href="%2$s">%3$s</a></span>',
113
+					_x('Posted by:', 'Used before post author name.', 'lsx'),
114
+					esc_url(get_author_posts_url(get_the_author_meta('ID'))),
115 115
 					get_the_author()
116 116
 				); ?>
117 117
 
118 118
 
119 119
 			<?php 
120
-		    	$post_categories = wp_get_post_categories( get_the_ID() );
120
+		    	$post_categories = wp_get_post_categories(get_the_ID());
121 121
 		    	$cats = array();
122
-		    	foreach($post_categories as $c){
123
-		    			$cat = get_category( $c );
124
-		    			$cats[] = '<a href="' . get_category_link( $cat->term_id ) . '" title="' . sprintf( __( "View all posts in %s" , 'lsx' ), $cat->name ) . '" ' . '>' . $cat->name.'</a>';
122
+		    	foreach ($post_categories as $c) {
123
+		    			$cat = get_category($c);
124
+		    			$cats[] = '<a href="' . get_category_link($cat->term_id) . '" title="' . sprintf(__("View all posts in %s", 'lsx'), $cat->name) . '" ' . '>' . $cat->name . '</a>';
125 125
 		    	}
126
-		    	if(!empty($cats)){ ?>
127
-						<span class="post-meta-categories"><span><?php _e('Posted in:','lsx'); ?></span> <?php echo implode(', ', $cats); ?></span>
126
+		    	if ( ! empty($cats)) { ?>
127
+						<span class="post-meta-categories"><span><?php _e('Posted in:', 'lsx'); ?></span> <?php echo implode(', ', $cats); ?></span>
128 128
 			<?php } ?>
129 129
 			
130 130
 			<div class="clearfix"></div>
@@ -137,9 +137,9 @@  discard block
 block discarded – undo
137 137
  * Translate post format to Font Awesome class
138 138
  */
139 139
 
140
-if ( ! function_exists( 'lsx_translate_format_to_fontawesome' ) ) {
141
-	function lsx_translate_format_to_fontawesome( $format ) {
142
-		switch ( $format ) {
140
+if ( ! function_exists('lsx_translate_format_to_fontawesome')) {
141
+	function lsx_translate_format_to_fontawesome($format) {
142
+		switch ($format) {
143 143
 			case 'image':
144 144
 				$format = 'camera';
145 145
 				break;
@@ -184,44 +184,44 @@  discard block
 block discarded – undo
184 184
  * to be added/modified where necessary.
185 185
  */
186 186
 
187
-if ( ! function_exists( 'lsx_portfolio_meta' ) ) {
187
+if ( ! function_exists('lsx_portfolio_meta')) {
188 188
 	function lsx_portfolio_meta() {
189 189
 		?>
190 190
 		<div id="portfolio-meta" class="portfolio-meta info-box-sticky info-box sticky-wrapper">
191 191
 			<?php 
192
-				$client = get_post_meta(get_the_ID(),'lsx-client',true);
193
-				if(false != $client){ ?>
192
+				$client = get_post_meta(get_the_ID(), 'lsx-client', true);
193
+				if (false != $client) { ?>
194 194
 					<div class="portfolio-client">
195
-						<span><span class="fa fa-user"></span><?php _e('Client','lsx'); ?></span>
195
+						<span><span class="fa fa-user"></span><?php _e('Client', 'lsx'); ?></span>
196 196
 						<span><?php echo $client ?></span>
197 197
 					</div>				
198 198
 			<?php }	?>
199 199
 
200 200
 			<?php 
201
-				$portfolio_type = get_the_term_list( get_the_ID(), 'jetpack-portfolio-type', '', ', ', '' );
201
+				$portfolio_type = get_the_term_list(get_the_ID(), 'jetpack-portfolio-type', '', ', ', '');
202 202
 				
203
-				if($portfolio_type){
203
+				if ($portfolio_type) {
204 204
 					?>
205 205
 					<div class="portfolio-industry">
206
-						<span><span class="fa fa-folder-open"></span><?php _e('Industry','lsx'); ?></span>
206
+						<span><span class="fa fa-folder-open"></span><?php _e('Industry', 'lsx'); ?></span>
207 207
 						<?php echo $portfolio_type; ?>
208 208
 					</div>			
209 209
 			<?php } ?>
210 210
 
211 211
 			<?php 
212
-				$services = get_the_term_list( get_the_ID(), 'jetpack-portfolio-tag', '', ', ', '' );
213
-				if(false != $services){ ?>
212
+				$services = get_the_term_list(get_the_ID(), 'jetpack-portfolio-tag', '', ', ', '');
213
+				if (false != $services) { ?>
214 214
 					<div class="portfolio-services">
215
-						<span><span class="fa fa-cog"></span><?php _e('Services','lsx'); ?></span>
215
+						<span><span class="fa fa-cog"></span><?php _e('Services', 'lsx'); ?></span>
216 216
 						<?php echo $services ?>
217 217
 					</div>				
218 218
 			<?php }	?>
219 219
 
220 220
 			<?php 
221
-				$website = esc_url( get_post_meta(get_the_ID(),'lsx-website',true) );
222
-				if(false != $website){ ?>
221
+				$website = esc_url(get_post_meta(get_the_ID(), 'lsx-website', true));
222
+				if (false != $website) { ?>
223 223
 					<div class="portfolio-website">
224
-						<span><span class="fa fa-link"></span><?php _e('Website','lsx'); ?></span>
224
+						<span><span class="fa fa-link"></span><?php _e('Website', 'lsx'); ?></span>
225 225
 						<a target="_blank" href="<?php echo esc_url($website); ?>"><?php echo $website ?></a>
226 226
 					</div>				
227 227
 			<?php }	?>
@@ -236,29 +236,29 @@  discard block
 block discarded – undo
236 236
  *
237 237
  */
238 238
 
239
-if ( ! function_exists( 'lsx_portfolio_gallery' ) ) {
239
+if ( ! function_exists('lsx_portfolio_gallery')) {
240 240
 	function lsx_portfolio_gallery() {
241 241
 
242
-		$media = get_attached_media( 'image' );
242
+		$media = get_attached_media('image');
243 243
 		$media_array = array();
244 244
 		$post_thumbnail_id = get_post_thumbnail_id(get_the_ID());
245 245
 		
246
-		if(!empty($media)){
247
-			foreach($media as $media_item){
248
-				if($post_thumbnail_id != $media_item->ID) {
246
+		if ( ! empty($media)) {
247
+			foreach ($media as $media_item) {
248
+				if ($post_thumbnail_id != $media_item->ID) {
249 249
 					$media_array[] = $media_item->ID;
250 250
 				}
251 251
 			}
252 252
 				
253
-			if(!empty($media_array)){
254
-				echo gallery_shortcode(array('size'=>'full','ids'=>implode(',', $media_array)));
253
+			if ( ! empty($media_array)) {
254
+				echo gallery_shortcode(array('size'=>'full', 'ids'=>implode(',', $media_array)));
255 255
 			}
256 256
 		}
257 257
 		
258 258
 	}
259 259
 }
260 260
 
261
-if ( ! function_exists( 'lsx_paging_nav' ) ) :
261
+if ( ! function_exists('lsx_paging_nav')) :
262 262
 	/**
263 263
 	 * Display navigation to next/previous set of posts when applicable.
264 264
 	 *
@@ -266,22 +266,22 @@  discard block
 block discarded – undo
266 266
 	 */
267 267
 	function lsx_paging_nav() {
268 268
 		// Don't print empty markup if there's only one page.
269
-		if ( $GLOBALS['wp_query']->max_num_pages < 2 ) {
269
+		if ($GLOBALS['wp_query']->max_num_pages < 2) {
270 270
 			return;
271 271
 		}
272 272
 		
273
-		if(current_theme_supports('infinite-scroll') && class_exists('The_Neverending_Home_Page')){
273
+		if (current_theme_supports('infinite-scroll') && class_exists('The_Neverending_Home_Page')) {
274 274
 			return true;
275
-		}elseif(function_exists('wp_pagenavi')){
275
+		}elseif (function_exists('wp_pagenavi')) {
276 276
 			wp_pagenavi();
277
-		}else{
277
+		} else {
278 278
 			
279 279
 			$labels = array(
280
-				'next' 		=> '<span class="meta-nav">&larr;</span> '.__( 'Older posts', 'lsx' ),
281
-				'previous' 	=> __( 'Newer posts', 'lsx' ).' <span class="meta-nav">&rarr;</span>',
282
-				'title' 	=> __( 'Posts navigation', 'lsx' )
280
+				'next' 		=> '<span class="meta-nav">&larr;</span> ' . __('Older posts', 'lsx'),
281
+				'previous' 	=> __('Newer posts', 'lsx') . ' <span class="meta-nav">&rarr;</span>',
282
+				'title' 	=> __('Posts navigation', 'lsx')
283 283
 			);
284
-			$labels = apply_filters('lsx_post_navigation_labels',$labels);
284
+			$labels = apply_filters('lsx_post_navigation_labels', $labels);
285 285
 			
286 286
 			extract($labels);
287 287
 			?>
@@ -289,12 +289,12 @@  discard block
 block discarded – undo
289 289
 				<div class="lsx-breaker"></div>
290 290
 				<h1 class="screen-reader-text"><?php echo $title; ?></h1>
291 291
 				<div class="nav-links">
292
-					<?php if ( get_next_posts_link() ) : ?>
293
-					<div class="nav-previous"><?php next_posts_link( $next ); ?></div>
292
+					<?php if (get_next_posts_link()) : ?>
293
+					<div class="nav-previous"><?php next_posts_link($next); ?></div>
294 294
 					<?php endif; ?>
295 295
 		
296
-					<?php if ( get_previous_posts_link() ) : ?>
297
-					<div class="nav-next"><?php previous_posts_link( $previous ); ?></div>
296
+					<?php if (get_previous_posts_link()) : ?>
297
+					<div class="nav-next"><?php previous_posts_link($previous); ?></div>
298 298
 					<?php endif; ?>
299 299
 					
300 300
 					<div class="clearfix"></div>
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 	}
306 306
 endif;
307 307
 
308
-if ( ! function_exists( 'lsx_post_nav' ) ) :
308
+if ( ! function_exists('lsx_post_nav')) :
309 309
 /**
310 310
  * Display navigation to next/previous post when applicable.
311 311
  *
@@ -313,10 +313,10 @@  discard block
 block discarded – undo
313 313
  */
314 314
 function lsx_post_nav() {
315 315
 	// Don't print empty markup if there's nowhere to navigate.
316
-	$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
317
-	$next     = get_adjacent_post( false, '', false );
316
+	$previous = (is_attachment()) ? get_post(get_post()->post_parent) : get_adjacent_post(false, '', true);
317
+	$next     = get_adjacent_post(false, '', false);
318 318
 
319
-	if ( ! $next && ! $previous ) {
319
+	if ( ! $next && ! $previous) {
320 320
 		return;
321 321
 	}
322 322
 	?>
@@ -326,13 +326,13 @@  discard block
 block discarded – undo
326 326
 		<div class="nav-links pager row">
327 327
 
328 328
 			<?php
329
-				$previous_post = get_previous_post_link( '%link', '<div class="previous col-md-6"><p class="nav-links-description">'._x( 'Previous Post', 'Previous post link', 'lsx' ).'</p><h3>%title</h3></div>' );
330
-				$previous_post = str_replace('<a','<a',$previous_post);
329
+				$previous_post = get_previous_post_link('%link', '<div class="previous col-md-6"><p class="nav-links-description">' . _x('Previous Post', 'Previous post link', 'lsx') . '</p><h3>%title</h3></div>');
330
+				$previous_post = str_replace('<a', '<a', $previous_post);
331 331
 				echo $previous_post;
332 332
 			?>
333 333
 			<?php
334
-				$next_post = get_next_post_link( '%link', '<div class="next col-md-6"><p class="nav-links-description">'._x( 'Next Post', 'Next post link', 'lsx' ).'</p><h3>%title</h3></div>' );
335
-				$next_post = str_replace('<a','<a',$next_post);
334
+				$next_post = get_next_post_link('%link', '<div class="next col-md-6"><p class="nav-links-description">' . _x('Next Post', 'Next post link', 'lsx') . '</p><h3>%title</h3></div>');
335
+				$next_post = str_replace('<a', '<a', $next_post);
336 336
 				echo $next_post;
337 337
 			?>
338 338
 
@@ -349,16 +349,16 @@  discard block
 block discarded – undo
349 349
  * @subpackage	template-tags
350 350
  * @category	header
351 351
  */
352
-if(!function_exists('lsx_site_identity')){
353
-	function lsx_site_identity(){
352
+if ( ! function_exists('lsx_site_identity')) {
353
+	function lsx_site_identity() {
354 354
 
355
-		if ( function_exists('has_custom_logo') && has_custom_logo() ) {
355
+		if (function_exists('has_custom_logo') && has_custom_logo()) {
356 356
 			the_custom_logo();
357
-		}elseif ( function_exists( 'jetpack_has_site_logo' ) && jetpack_has_site_logo() ) {
357
+		}elseif (function_exists('jetpack_has_site_logo') && jetpack_has_site_logo()) {
358 358
 			jetpack_the_site_logo();
359
-		}else{
359
+		} else {
360 360
 			// shouldn't show both together.. its just strange
361
-			if(true == get_theme_mod('site_logo_header_text',1)){
361
+			if (true == get_theme_mod('site_logo_header_text', 1)) {
362 362
 				lsx_site_title();
363 363
 			}
364 364
 		}
@@ -373,17 +373,17 @@  discard block
 block discarded – undo
373 373
  * @subpackage	template-tags
374 374
  * @category	navigation
375 375
  */
376
-if(!function_exists('lsx_navbar_header')){
377
-	function lsx_navbar_header(){ ?>
376
+if ( ! function_exists('lsx_navbar_header')) {
377
+	function lsx_navbar_header() { ?>
378 378
 	   	<div class="navbar-header" itemscope itemtype="http://schema.org/WebPage">
379 379
 	   	
380 380
 	   		<?php 
381
-	   		$nav_menu = get_theme_mod('nav_menu_locations',false);
381
+	   		$nav_menu = get_theme_mod('nav_menu_locations', false);
382 382
 			//print_r(get_nav_menu_locations());
383 383
 
384
-	   		if(false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']){ ?>
384
+	   		if (false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']) { ?>
385 385
 		   		<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".primary-navbar">
386
-		        	<span class="sr-only"><?php _e('Toggle navigation','lsx'); ?></span>
386
+		        	<span class="sr-only"><?php _e('Toggle navigation', 'lsx'); ?></span>
387 387
 		        	<span class="icon-bar"></span>
388 388
 		        	<span class="icon-bar"></span>
389 389
 		        	<span class="icon-bar"></span>
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 	<?php }
396 396
 }
397 397
 //the if statement is for backwards compatability with previous versions of the theme.
398
-add_action('lsx_nav_before','lsx_navbar_header');
398
+add_action('lsx_nav_before', 'lsx_navbar_header');
399 399
 
400 400
 /**
401 401
  * Outputs the Nav Menu
@@ -404,16 +404,16 @@  discard block
 block discarded – undo
404 404
  * @subpackage	template-tags
405 405
  * @category	navigation
406 406
  */
407
-if(!function_exists('lsx_nav_menu')){
408
-	function lsx_nav_menu(){
409
-		$nav_menu = get_theme_mod('nav_menu_locations',false);
407
+if ( ! function_exists('lsx_nav_menu')) {
408
+	function lsx_nav_menu() {
409
+		$nav_menu = get_theme_mod('nav_menu_locations', false);
410 410
 		
411 411
 		//print_r(get_nav_menu_locations());
412 412
 
413
-	    if(false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']){ ?>
413
+	    if (false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']) { ?>
414 414
 			<nav class="primary-navbar collapse navbar-collapse">
415 415
 		    	<?php
416
-				wp_nav_menu( array(
416
+				wp_nav_menu(array(
417 417
 					'theme_location' => 'primary',
418 418
 					'menu' => $nav_menu['primary'],
419 419
 					'depth' => 3,
@@ -423,9 +423,9 @@  discard block
 block discarded – undo
423 423
 				);
424 424
 				?>
425 425
 		   		</nav>
426
-	    <?php } elseif(is_customize_preview()) { ?>
426
+	    <?php } elseif (is_customize_preview()) { ?>
427 427
 	    		<nav class="primary-navbar collapse navbar-collapse">
428
-	    			<div class="alert alert-info" role="alert"><?php _e('Create a menu and assign it here via the "Navigation" panel.','lsx');?></div>
428
+	    			<div class="alert alert-info" role="alert"><?php _e('Create a menu and assign it here via the "Navigation" panel.', 'lsx'); ?></div>
429 429
 	    		</nav>
430 430
 	    </div>
431 431
 	  	<?php }
@@ -439,9 +439,9 @@  discard block
 block discarded – undo
439 439
  * @subpackage	template-tags
440 440
  * @category	sitemap
441 441
  */
442
-function lsx_sitemap_pages(){
442
+function lsx_sitemap_pages() {
443 443
 	$posts_per_page = get_option('posts_per_page');
444
-	if(false == $posts_per_page){
444
+	if (false == $posts_per_page) {
445 445
 		$posts_per_page = 10;
446 446
 	}
447 447
 	
@@ -452,13 +452,13 @@  discard block
 block discarded – undo
452 452
 		'post_type'		=>	'page',
453 453
 	);
454 454
 	$pages = new WP_Query($page_args);
455
-	if($pages->have_posts()){
455
+	if ($pages->have_posts()) {
456 456
 
457
-		echo '<h2>'.__( 'Pages', 'lsx' ).'</h2>';
457
+		echo '<h2>' . __('Pages', 'lsx') . '</h2>';
458 458
 
459 459
 		echo '<ul>';
460
-		while($pages->have_posts()){ $pages->the_post();
461
-			echo '<li class="page_item page-item-'.get_the_ID().'"><a href="'.get_permalink().'" title="">'.get_the_title().'</a></li>';
460
+		while ($pages->have_posts()) { $pages->the_post();
461
+			echo '<li class="page_item page-item-' . get_the_ID() . '"><a href="' . get_permalink() . '" title="">' . get_the_title() . '</a></li>';
462 462
 		}
463 463
 		echo '</ul>';
464 464
 		
@@ -473,10 +473,10 @@  discard block
 block discarded – undo
473 473
  * @subpackage	template-tags
474 474
  * @category	sitemap
475 475
  */
476
-function lsx_sitemap_custom_post_type(){
476
+function lsx_sitemap_custom_post_type() {
477 477
 	
478 478
 	$posts_per_page = get_option('posts_per_page');
479
-	if(false == $posts_per_page){
479
+	if (false == $posts_per_page) {
480 480
 		$posts_per_page = 10;
481 481
 	}
482 482
 	
@@ -484,8 +484,8 @@  discard block
 block discarded – undo
484 484
 			'public'				=> true,
485 485
 			'_builtin' 				=> false
486 486
 	);
487
-	$post_types = get_post_types($args , 'names');
488
-	foreach($post_types as $post_type){	
487
+	$post_types = get_post_types($args, 'names');
488
+	foreach ($post_types as $post_type) {	
489 489
 
490 490
 		$post_type_args = array(
491 491
 				'post_type'		=>	'page',
@@ -496,19 +496,19 @@  discard block
 block discarded – undo
496 496
 		$post_type_items = new WP_Query($post_type_args);
497 497
 		
498 498
 		$post_type_object = get_post_type_object($post_type);
499
-		if(null != $post_type_object){
499
+		if (null != $post_type_object) {
500 500
 			$title = $post_type_object->labels->name;
501
-		}else{
501
+		} else {
502 502
 			$title = ucwords($post_type);
503 503
 		}
504 504
 		
505
-		if($post_type_items->have_posts()){
505
+		if ($post_type_items->have_posts()) {
506 506
 	
507
-			printf( '<h2>'.__( '%1$s', 'lsx' ).'</h2>', $title );
507
+			printf('<h2>' . __('%1$s', 'lsx') . '</h2>', $title);
508 508
 	
509 509
 			echo '<ul>';
510
-			while($post_type_items->have_posts()){ $post_type_items->the_post();
511
-				echo '<li class="'.get_post_type().'_item '.get_post_type().'-item-'.get_the_ID().'"><a href="'.get_permalink().'" title="">'.get_the_title().'</a></li>';
510
+			while ($post_type_items->have_posts()) { $post_type_items->the_post();
511
+				echo '<li class="' . get_post_type() . '_item ' . get_post_type() . '-item-' . get_the_ID() . '"><a href="' . get_permalink() . '" title="">' . get_the_title() . '</a></li>';
512 512
 			}
513 513
 			echo '</ul>';
514 514
 	
@@ -524,20 +524,20 @@  discard block
 block discarded – undo
524 524
  * @subpackage	template-tags
525 525
  * @category	sitemap
526 526
  */
527
-function lsx_sitemap_taxonomy_clouds(){
527
+function lsx_sitemap_taxonomy_clouds() {
528 528
 
529
-		$taxonomy_args =  array(
529
+		$taxonomy_args = array(
530 530
 			'public'				=> true,
531 531
 			'_builtin' 				=> false
532 532
 		);
533 533
 		$taxonomies = get_taxonomies($taxonomy_args);
534
-		if(!empty($taxonomies)){
535
-			foreach($taxonomies as $taxonomy_id => $taxonomy) {
534
+		if ( ! empty($taxonomies)) {
535
+			foreach ($taxonomies as $taxonomy_id => $taxonomy) {
536 536
 
537
-				$tag_cloud = wp_tag_cloud(array('taxonomy'=>$taxonomy_id,'echo'=>false));
538
-				if(null != $tag_cloud){
539
-					printf( '<h2>'.__( '%1$s', 'lsx' ).'</h2>', $taxonomy );
540
-					echo '<aside id="'.$taxonomy_id.'" class="widget widget_'.$taxonomy_id.'">'.$tag_cloud.'</aside>';
537
+				$tag_cloud = wp_tag_cloud(array('taxonomy'=>$taxonomy_id, 'echo'=>false));
538
+				if (null != $tag_cloud) {
539
+					printf('<h2>' . __('%1$s', 'lsx') . '</h2>', $taxonomy);
540
+					echo '<aside id="' . $taxonomy_id . '" class="widget widget_' . $taxonomy_id . '">' . $tag_cloud . '</aside>';
541 541
 		        }
542 542
 	        }
543 543
         } 
@@ -550,15 +550,15 @@  discard block
 block discarded – undo
550 550
  * @subpackage	hooks
551 551
  * @category	forms
552 552
  */
553
-add_action( 'lsx_footer_before', 'lsx_footer_subscription_cta', 10 );
553
+add_action('lsx_footer_before', 'lsx_footer_subscription_cta', 10);
554 554
 function lsx_footer_subscription_cta() {
555
-	if(!function_exists('lsx_is_form_enabled')){ return; }
555
+	if ( ! function_exists('lsx_is_form_enabled')) { return; }
556 556
 	$subscribe_form_id = lsx_is_form_enabled('subscribe');
557
-	if(false == $subscribe_form_id) { return; }
557
+	if (false == $subscribe_form_id) { return; }
558 558
 
559 559
 	//add Caldera Forms Fields Scripts
560
-	if( defined( 'CFCORE_VER' ) ){
561
-		wp_enqueue_script( 'cf-frontend-fields', CFCORE_URL . 'assets/js/fields.min.js', array('jquery'), CFCORE_VER );
560
+	if (defined('CFCORE_VER')) {
561
+		wp_enqueue_script('cf-frontend-fields', CFCORE_URL . 'assets/js/fields.min.js', array('jquery'), CFCORE_VER);
562 562
 	}
563 563
 
564 564
 	?>
@@ -566,8 +566,8 @@  discard block
 block discarded – undo
566 566
 		<div class="container">
567 567
 			<div class="row">
568 568
 				<div class="col-md-12">
569
-					<h2><?php _e( 'Subscribe to Our Newsletter', 'lsx' ); ?></h2>
570
-					<?php echo do_shortcode( '[caldera_form id="'.$subscribe_form_id.'"]' ); ?>
569
+					<h2><?php _e('Subscribe to Our Newsletter', 'lsx'); ?></h2>
570
+					<?php echo do_shortcode('[caldera_form id="' . $subscribe_form_id . '"]'); ?>
571 571
 				</div>
572 572
 			</div>
573 573
 		</div>
@@ -582,14 +582,14 @@  discard block
 block discarded – undo
582 582
  * @subpackage	hooks
583 583
  * @category	menu
584 584
  */
585
-add_action( 'lsx_header_top', 'lsx_add_top_menu' );
585
+add_action('lsx_header_top', 'lsx_add_top_menu');
586 586
 function lsx_add_top_menu() {
587 587
 	if (has_nav_menu('top-menu')) { ?>
588 588
 		<div id="top-menu" class="<?php lsx_top_menu_classes(); ?>">
589 589
 			<div class="container">
590 590
 				<nav class="top-menu">
591 591
 		    		<?php
592
-		    			wp_nav_menu( array(
592
+		    			wp_nav_menu(array(
593 593
 							'theme_location' => 'top-menu',
594 594
 							'walker' => new lsx_bootstrap_navwalker())
595 595
 						);
@@ -607,24 +607,24 @@  discard block
 block discarded – undo
607 607
  * @subpackage	template-tag
608 608
  * @category 	forms
609 609
  */
610
-if ( class_exists('Caldera_Forms') && !function_exists( 'lsx_is_form_enabled' ) ) {
610
+if (class_exists('Caldera_Forms') && ! function_exists('lsx_is_form_enabled')) {
611 611
 	function lsx_is_form_enabled($slug = false) {
612
-		if(false == $slug){ return false; }
612
+		if (false == $slug) { return false; }
613 613
 	
614 614
 		$match = false;
615
-		$forms = get_option( '_caldera_forms' , false );
616
-		if(false !== $forms ) {
617
-			foreach($forms as $form_id=>$form_maybe){
618
-				if( trim(strtolower($slug)) == strtolower($form_maybe['name']) ){
615
+		$forms = get_option('_caldera_forms', false);
616
+		if (false !== $forms) {
617
+			foreach ($forms as $form_id=>$form_maybe) {
618
+				if (trim(strtolower($slug)) == strtolower($form_maybe['name'])) {
619 619
 					$match = $form_id;
620 620
 					break;
621 621
 				}
622 622
 			}
623 623
 		}
624
-		if( false === $match ){
625
-			$is_form = Caldera_Forms::get_form( strtolower( $slug ) );
626
-			if( !empty( $is_form ) ){
627
-				return strtolower( $slug );
624
+		if (false === $match) {
625
+			$is_form = Caldera_Forms::get_form(strtolower($slug));
626
+			if ( ! empty($is_form)) {
627
+				return strtolower($slug);
628 628
 			}
629 629
 		}
630 630
 	
@@ -640,10 +640,10 @@  discard block
 block discarded – undo
640 640
  * @category 	urls
641 641
  */
642 642
 function lsx_get_my_url() {
643
-	if ( ! preg_match( '/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) )
643
+	if ( ! preg_match('/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches))
644 644
 		return false;
645 645
 
646
-	return esc_url_raw( $matches[1] );
646
+	return esc_url_raw($matches[1]);
647 647
 }
648 648
 
649 649
 /**
@@ -653,19 +653,19 @@  discard block
 block discarded – undo
653 653
  * @subpackage 	extras
654 654
  * @category 	urls
655 655
  */
656
-function lsx_get_template_part($slug,$part) {
656
+function lsx_get_template_part($slug, $part) {
657 657
 	$template = array();
658 658
 	$part = (string) $part;
659
-	if ( '' !== $part ){
659
+	if ('' !== $part) {
660 660
 		$template = "{$slug}-{$part}.php";
661
-	}else{
661
+	} else {
662 662
 		$template = "{$slug}.php";
663 663
 	}
664
-	$file_path = apply_filters('lsx_content_path',false,$slug,$part);
664
+	$file_path = apply_filters('lsx_content_path', false, $slug, $part);
665 665
 
666
-	if ( false !== $file_path && '' == locate_template( array( $template ) ) && file_exists( $file_path.$template) ) {
667
-		load_template( $file_path.$template, false );
668
-	}else{
669
-		get_template_part($slug,$part);
666
+	if (false !== $file_path && '' == locate_template(array($template)) && file_exists($file_path . $template)) {
667
+		load_template($file_path . $template, false);
668
+	} else {
669
+		get_template_part($slug, $part);
670 670
 	}
671 671
 }
672 672
\ No newline at end of file
Please login to merge, or discard this patch.
inc/widgets.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,54 +1,54 @@  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
  * Register widgetized area and update sidebar with default widgets.
6 6
  */
7 7
 function lsx_widget_area_init() {
8 8
 	
9
-	register_sidebar( array(
10
-		'name'          => __( 'Home', 'lsx' ),
9
+	register_sidebar(array(
10
+		'name'          => __('Home', 'lsx'),
11 11
 		'id'            => 'sidebar-home',
12 12
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
13 13
 		'after_widget'  => '</aside>',
14 14
 		'before_title'  => '<h3 class="widget-title">',
15 15
 		'after_title'   => '</h3>',
16
-	) );
16
+	));
17 17
 	
18
-	register_sidebar( array(
19
-		'name'          => __( 'Sidebar', 'lsx' ),
18
+	register_sidebar(array(
19
+		'name'          => __('Sidebar', 'lsx'),
20 20
 		'id'            => 'sidebar-1',
21 21
 		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
22 22
 		'after_widget'  => '</aside>',
23 23
 		'before_title'  => '<h3 class="widget-title">',
24 24
 		'after_title'   => '</h3>',
25
-	) );
25
+	));
26 26
 
27
-	register_sidebar( array(
28
-		'name'          => __( 'Footer', 'lsx' ),
27
+	register_sidebar(array(
28
+		'name'          => __('Footer', 'lsx'),
29 29
 		'id'            => 'sidebar-footer',
30 30
 		'before_widget' => '<div class="styler"><aside id="%1$s" class="widget %2$s">',
31 31
 		'after_widget'  => '</aside></div>',
32 32
 		'before_title'  => '<h3 class="widget-title">',
33 33
 		'after_title'   => '</h3>',
34
-	) );
34
+	));
35 35
 
36
-	register_sidebar( array(
37
-		'name'          => __( 'Footer Call to Action', 'lsx' ),
36
+	register_sidebar(array(
37
+		'name'          => __('Footer Call to Action', 'lsx'),
38 38
 		'id'            => 'sidebar-footer-cta',
39 39
 		'before_widget' => '<div class="styler"><aside id="%1$s" class="widget %2$s">',
40 40
 		'after_widget'  => '</aside></div>',
41 41
 		'before_title'  => '<h3 class="widget-title">',
42 42
 		'after_title'   => '</h3>',
43
-	) );
43
+	));
44 44
 }
45
-add_action( 'widgets_init', 'lsx_widget_area_init' );
45
+add_action('widgets_init', 'lsx_widget_area_init');
46 46
 
47
-function lsx_sidebar_footer_params( $params ) {
47
+function lsx_sidebar_footer_params($params) {
48 48
 
49 49
     $sidebar_id = $params[0]['id'];
50 50
 
51
-    if ( $sidebar_id == 'sidebar-footer' ) {
51
+    if ($sidebar_id == 'sidebar-footer') {
52 52
 
53 53
         $total_widgets = wp_get_sidebars_widgets();
54 54
         $sidebar_widgets = count($total_widgets[$sidebar_id]);
@@ -58,4 +58,4 @@  discard block
 block discarded – undo
58 58
 
59 59
     return $params;
60 60
 }
61
-add_filter( 'dynamic_sidebar_params', 'lsx_sidebar_footer_params' ); 
62 61
\ No newline at end of file
62
+add_filter('dynamic_sidebar_params', 'lsx_sidebar_footer_params'); 
63 63
\ No newline at end of file
Please login to merge, or discard this patch.
inc/wp-job-manager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
  */
15 15
 
16 16
 function lsx_wp_job_manager_styles() {
17
-    wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css' );
17
+    wp_enqueue_style('wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css');
18 18
 }
19
-add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' );
20 19
\ No newline at end of file
20
+add_action('wp_enqueue_scripts', 'lsx_wp_job_manager_styles');
21 21
\ No newline at end of file
Please login to merge, or discard this patch.