Completed
Push — master ( 91d137...969fa9 )
by Fernando
05:03
created
includes/classes/class-lsx-customize-header-layout-control.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@  discard block
 block discarded – undo
7 7
  * @category   header-layout
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) {
10
+if ( ! defined('ABSPATH')) {
11 11
 	exit;
12 12
 }
13 13
 
14
-if ( ! class_exists( 'WP_Customize_Control' ) ) {
14
+if ( ! class_exists('WP_Customize_Control')) {
15 15
 	return;
16 16
 }
17 17
 
18
-if ( ! class_exists( 'LSX_Customize_Header_Layout_Control' ) ) :
18
+if ( ! class_exists('LSX_Customize_Header_Layout_Control')) :
19 19
 
20 20
 	/**
21 21
 	 * LSX_Customize_Header_Layout_Control Class
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 		public $statuses;
31 31
 		public $layouts  = array();
32 32
 
33
-		public function __construct( $manager, $id, $args = array() ) {
34
-			parent::__construct( $manager, $id, $args );
33
+		public function __construct($manager, $id, $args = array()) {
34
+			parent::__construct($manager, $id, $args);
35 35
 
36
-			if ( ! empty( $args['choices'] ) ) {
36
+			if ( ! empty($args['choices'])) {
37 37
 				$this->layouts = $args['choices'];
38 38
 			}
39 39
 		}
@@ -42,35 +42,35 @@  discard block
 block discarded – undo
42 42
 		 * Enqueue scripts/styles for the color picker.
43 43
 		 */
44 44
 		public function enqueue() {
45
-			wp_enqueue_script( 'lsx-header-layout-control', get_template_directory_uri() . '/assets/js/admin/customizer-header-layout.js', array( 'jquery' ), LSX_VERSION, true );
45
+			wp_enqueue_script('lsx-header-layout-control', get_template_directory_uri() . '/assets/js/admin/customizer-header-layout.js', array('jquery'), LSX_VERSION, true);
46 46
 		}
47 47
 
48 48
 		/**
49 49
 		 * Render output.
50 50
 		 */
51 51
 		public function render_content() {
52
-			$post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
52
+			$post_id = 'customize-control-' . str_replace('[', '-', str_replace(']', '', $this->id));
53 53
 			$class   = 'customize-control customize-control-' . $this->type;
54 54
 			$value   = $this->value();
55 55
 			?>
56 56
 			<label>
57
-				<?php if ( ! empty( $this->label ) ) { ?>
58
-					<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
57
+				<?php if ( ! empty($this->label)) { ?>
58
+					<span class="customize-control-title"><?php echo esc_html($this->label); ?></span>
59 59
 				<?php }
60
-				if ( ! empty( $this->description ) ) { ?>
61
-					<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
60
+				if ( ! empty($this->description)) { ?>
61
+					<span class="description customize-control-description"><?php echo esc_html($this->description); ?></span>
62 62
 				<?php } ?>
63 63
 				<div class="header-layouts-selector">
64 64
 					<?php
65
-						foreach ( $this->layouts as $layout ) {
65
+						foreach ($this->layouts as $layout) {
66 66
 							$sel = 'border: 1px solid transparent;';
67
-							if ( $value === $layout ) {
67
+							if ($value === $layout) {
68 68
 								$sel = 'border: 1px solid rgb(43, 166, 203);';
69 69
 							}
70
-							echo '<img class="header-layout-button" style="padding:2px;' . esc_attr( $sel ) . '" src="' . esc_attr( get_template_directory_uri() ) . '/assets/images/admin/header-' . esc_attr( $layout ) . '.png" data-option="' . esc_attr( $layout ) . '">';
70
+							echo '<img class="header-layout-button" style="padding:2px;' . esc_attr($sel) . '" src="' . esc_attr(get_template_directory_uri()) . '/assets/images/admin/header-' . esc_attr($layout) . '.png" data-option="' . esc_attr($layout) . '">';
71 71
 						}
72 72
 					?>
73
-					<input <?php $this->link(); ?> class="selected-header-layout <?php echo esc_attr( $class ); ?>" id="<?php echo esc_attr( $post_id ); ?>" type="hidden" value="<?php echo esc_attr( $value ); ?>" <?php $this->input_attrs(); ?>>
73
+					<input <?php $this->link(); ?> class="selected-header-layout <?php echo esc_attr($class); ?>" id="<?php echo esc_attr($post_id); ?>" type="hidden" value="<?php echo esc_attr($value); ?>" <?php $this->input_attrs(); ?>>
74 74
 				</div>
75 75
 			</label>
76 76
 			<?php
Please login to merge, or discard this patch.
404.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 		<main id="main" class="site-main" role="main">
12 12
 			<section class="error-404 not-found">
13 13
 				<header class="page-header">
14
-					<h1 class="page-title"><?php esc_html_e( 'Whoops!', 'lsx' ); ?></h1>
14
+					<h1 class="page-title"><?php esc_html_e('Whoops!', 'lsx'); ?></h1>
15 15
 				</header><!-- .page-header -->
16 16
 
17 17
 				<div class="page-content">
18
-					<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'lsx' ); ?></p>
18
+					<p><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'lsx'); ?></p>
19 19
 					<?php get_search_form(); ?>
20 20
 				</div><!-- .page-content -->
21 21
 			</section><!-- .error-404 -->
Please login to merge, or discard this patch.
page-templates/template-no-sidebar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27
-				<?php get_template_part( 'partials/content', 'page' ); ?>
27
+				<?php get_template_part('partials/content', 'page'); ?>
28 28
 
29 29
 			<?php endwhile; ?>
30 30
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 		<?php lsx_content_bottom(); ?>
34 34
 
35 35
 		<?php
36
-			if ( comments_open() ) {
36
+			if (comments_open()) {
37 37
 				comments_template();
38 38
 			}
39 39
 		?>
Please login to merge, or discard this patch.
page-templates/template-full-width-no-margins.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27
-				<?php get_template_part( 'partials/content', 'page' ); ?>
27
+				<?php get_template_part('partials/content', 'page'); ?>
28 28
 
29 29
 			<?php endwhile; ?>
30 30
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 		<?php lsx_content_bottom(); ?>
34 34
 
35 35
 		<?php
36
-			if ( comments_open() ) {
36
+			if (comments_open()) {
37 37
 				comments_template();
38 38
 			}
39 39
 		?>
Please login to merge, or discard this patch.
partials/content-custom.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,16 +16,16 @@
 block discarded – undo
16 16
 		<?php
17 17
 			the_content();
18 18
 
19
-			wp_link_pages( array(
19
+			wp_link_pages(array(
20 20
 				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
21 21
 				'after'       => '</div></div>',
22 22
 				'link_before' => '<span>',
23 23
 				'link_after'  => '</span>',
24
-			) );
24
+			));
25 25
 		?>
26 26
 	</div><!-- .entry-content -->
27 27
 
28
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
28
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
29 29
 
30 30
 	<?php lsx_entry_bottom(); ?>
31 31
 
Please login to merge, or discard this patch.