Completed
Push — master ( 296a4e...80da17 )
by Fernando
05:58
created
single-jetpack-portfolio.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
 
22 22
 			<?php lsx_content_top(); ?>
23 23
 			
24
-			<?php while ( have_posts() ) : the_post(); ?>
24
+			<?php while (have_posts()) : the_post(); ?>
25 25
 
26
-				<?php get_template_part( 'content', 'portfolio-single' ); ?>
26
+				<?php get_template_part('content', 'portfolio-single'); ?>
27 27
 
28 28
 			<?php endwhile; ?>
29 29
 
Please login to merge, or discard this patch.
page-templates/template-front-page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 
14 14
 			<?php lsx_content_top(); ?>		
15 15
 			
16
-			<?php if(have_posts() && !class_exists('Lsx_Banners')) : ?>
16
+			<?php if (have_posts() && ! class_exists('Lsx_Banners')) : ?>
17 17
 			
18
-				<?php while ( have_posts() ) : the_post(); ?>
18
+				<?php while (have_posts()) : the_post(); ?>
19 19
 				
20 20
 					<?php lsx_entry_before(); ?>
21 21
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 			
37 37
 			<div id="home-widgets">
38 38
 			
39
-				<?php if ( ! dynamic_sidebar( 'sidebar-home' ) ) : ?>
39
+				<?php if ( ! dynamic_sidebar('sidebar-home')) : ?>
40 40
 				
41 41
 				
42 42
 				<?php endif; // end sidebar widget area ?>
Please login to merge, or discard this patch.
page-templates/template-full-width.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  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
-					<?php get_template_part( 'content', 'page' ); ?>
18
+					<?php get_template_part('content', 'page'); ?>
19 19
 		
20 20
 				<?php endwhile; // end of the loop. ?>		
21 21
 				
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 			
24 24
 			<?php
25 25
 				// If comments are open or we have at least one comment, load up the comment template
26
-				if ( comments_open() || '0' != get_comments_number() ) :
26
+				if (comments_open() || '0' != get_comments_number()) :
27 27
 					comments_template();
28 28
 				endif;
29 29
 			?>			
Please login to merge, or discard this patch.
content-portfolio.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 
9 9
 $type_class = "filter-item column-3 ";
10
-$types = get_the_terms( get_the_ID(), 'jetpack-portfolio-type');
10
+$types = get_the_terms(get_the_ID(), 'jetpack-portfolio-type');
11 11
 if ($types) {
12 12
 	foreach ($types as $type) {
13 13
 		$type_class .= $type->slug . " ";
@@ -18,13 +18,13 @@  discard block
 block discarded – undo
18 18
 <article id="post-<?php the_ID(); ?>" data-column="<?php echo 3; ?>" <?php post_class($type_class); ?>>
19 19
 	<div class="portfolio-content-wrapper">
20 20
 		<div class="portfolio-thumbnail">
21
-			<?php if ( has_post_thumbnail() ) : ?>
21
+			<?php if (has_post_thumbnail()) : ?>
22 22
 				<a href="<?php the_permalink(); ?>">
23
-					<?php lsx_thumbnail( 'lsx-thumbnail-wide' ); ?>
23
+					<?php lsx_thumbnail('lsx-thumbnail-wide'); ?>
24 24
 				</a>
25 25
 			<?php endif; ?>
26 26
 		</div>
27 27
 		
28
-		<?php the_title( '<a class="portfolio-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark"><span>', '</span></a>' ); ?>
28
+		<?php the_title('<a class="portfolio-title" href="' . esc_url(get_permalink()) . '" rel="bookmark"><span>', '</span></a>'); ?>
29 29
 	</div>
30 30
 </article>
31 31
\ No newline at end of file
Please login to merge, or discard this patch.
inc/sanitize.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@  discard block
 block discarded – undo
17 17
  * @param  mixed    $setting    The setting for which the sanitizing is occurring.
18 18
  * @return mixed                The sanitized value.
19 19
 */
20
-function lsx_sanitize_choices( $value, $setting ) {
21
-	if ( is_object( $setting ) ) {
20
+function lsx_sanitize_choices($value, $setting) {
21
+	if (is_object($setting)) {
22 22
 		$setting = $setting->id;
23 23
 	}
24
-	$choices = lsx_customizer_sanitize_get_choices( $setting );
25
-	$allowed_choices = array_keys( $choices );
26
-	if ( ! in_array( $value, $allowed_choices ) ) {
27
-		$value = lsx_customizer_sanitize_get_default( $setting );
24
+	$choices = lsx_customizer_sanitize_get_choices($setting);
25
+	$allowed_choices = array_keys($choices);
26
+	if ( ! in_array($value, $allowed_choices)) {
27
+		$value = lsx_customizer_sanitize_get_default($setting);
28 28
 	}
29 29
 	return $value;
30 30
 }
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
  * @return mixed $field
40 40
  */
41 41
 
42
-function lsx_customizer_sanitize_get_choices( $id ) {
42
+function lsx_customizer_sanitize_get_choices($id) {
43 43
 	global $lsx_customizer;
44 44
 	//LSX_Theme_Customizer
45 45
 	
46 46
 	$field = $lsx_customizer->get_control($id);
47 47
 	
48
-	if ( isset( $field['choices'] ) ) {
48
+	if (isset($field['choices'])) {
49 49
 		return $field['choices'];
50 50
 	}
51 51
 
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
  * @return mixed $default
62 62
  */
63 63
 
64
-function lsx_customizer_sanitize_get_default( $id ) {
64
+function lsx_customizer_sanitize_get_default($id) {
65 65
 	global $lsx_customizer;
66 66
 	//LSX_Theme_Customizer
67 67
 
68 68
 	$setting = $lsx_customizer->get_setting($id);
69 69
 
70
-	if ( isset( $setting['default'] ) ) {
70
+	if (isset($setting['default'])) {
71 71
 		return $setting['default'];
72 72
 	}
73 73
 }
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
  * @param obj $setting
83 83
  * @return string $default
84 84
  */
85
-function lsx_sanitize_email( $email, $setting ) {
85
+function lsx_sanitize_email($email, $setting) {
86 86
 	// Sanitize $input as a hex value without the hash prefix.
87
-	$email = sanitize_email( $email );
87
+	$email = sanitize_email($email);
88 88
 
89 89
 	// If $email is a valid email, return it; otherwise, return the default.
90
-	return ( ! is_null( $email ) ? $email : $setting->default );
90
+	return ( ! is_null($email) ? $email : $setting->default);
91 91
 }
92 92
 
93 93
 /**
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
  * @param array $input
100 100
  * @return array $output
101 101
  */
102
-function lsx_sanitize_checkbox( $input ) {
103
-	if ( $input ) {
102
+function lsx_sanitize_checkbox($input) {
103
+	if ($input) {
104 104
 		$output = '1';
105 105
 	} else {
106 106
 		$output = false;
Please login to merge, or discard this patch.
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/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.
singular.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 	<?php lsx_content_wrap_before(); ?>
11 11
 
12
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
12
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
13 13
 
14 14
 		<?php lsx_content_before(); ?>
15 15
 		
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 
18 18
 			<?php lsx_content_top(); ?>
19 19
 			
20
-			<?php while ( have_posts() ) : the_post(); ?>
20
+			<?php while (have_posts()) : the_post(); ?>
21 21
 
22
-				<?php get_template_part( 'content', get_post_type() ); ?>
22
+				<?php get_template_part('content', get_post_type()); ?>
23 23
 
24 24
 			<?php endwhile; // end of the loop. ?>
25 25
 			
@@ -35,6 +35,6 @@  discard block
 block discarded – undo
35 35
 	<?php lsx_content_wrap_after(); ?>
36 36
 
37 37
 <?php get_sidebar(); ?>
38
-<?php get_sidebar( 'alt' ); ?>
38
+<?php get_sidebar('alt'); ?>
39 39
 
40 40
 <?php get_footer();
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 	<?php lsx_content_wrap_before(); ?>
16 16
 
17
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
17
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
18 18
 
19 19
 		<?php lsx_content_before(); ?>
20 20
 
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
 
23 23
 			<?php lsx_content_top(); ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27
-				<?php get_template_part( 'content', get_post_type() ); ?>
27
+				<?php get_template_part('content', get_post_type()); ?>
28 28
 
29 29
 			<?php endwhile; // end of the loop. ?>
30 30
 			
Please login to merge, or discard this patch.