Completed
Push — master ( a44550...e36c7f )
by Fernando
03:41 queued 01:07
created
header.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,12 +60,12 @@
 block discarded – undo
60 60
 			    	<strong><?php _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 70
 			    	<span class="email-address"><?php _e( 'Questions? Email Us: ', 'lsx' ); ?><a href="mailto:<?php echo $email_address; ?>"><?php echo $email_address; ?></a></span>
71 71
 			    </div>
Please login to merge, or discard this patch.
inc/jetpack.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
  * @category portfolio
124 124
  */
125 125
 function lsx_remove_single_related_posts() {
126
-    if ( is_single() && class_exists( 'Jetpack_RelatedPosts' ) ) {
127
-        $jprp = Jetpack_RelatedPosts::init();
128
-        $callback = array( $jprp, 'filter_add_target_to_dom' );
129
-        remove_filter( 'the_content', $callback, 40 );
130
-    }
126
+	if ( is_single() && class_exists( 'Jetpack_RelatedPosts' ) ) {
127
+		$jprp = Jetpack_RelatedPosts::init();
128
+		$callback = array( $jprp, 'filter_add_target_to_dom' );
129
+		remove_filter( 'the_content', $callback, 40 );
130
+	}
131 131
 }
132 132
 add_filter( 'wp', 'lsx_remove_single_related_posts', 20 );
133 133
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 		if(is_array($types)){
312 312
 			foreach ($types as $type) {
313 313
 				$content = '<li><a href="#" data-filter=".'.$type->slug.'">';
314
-		    	$content .= $type->name;					
314
+				$content .= $type->name;					
315 315
 				$content .= '</a></li>';
316 316
 				echo $content;
317 317
 				echo "\n";
Please login to merge, or discard this patch.
inc/google-font.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 	/**
14 14
 	 * Constructor
15
-	**/
15
+	 **/
16 16
 	public function __construct($title, $location, $cssDeclaration, $cssClass)
17 17
 	{
18 18
 		$this->title = $title;
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	/**
25 25
 	 * Getters
26 26
 	 * taken from: http://stackoverflow.com/questions/4478661/getter-and-setter
27
-	**/
27
+	 **/
28 28
 	public function __get($property) 
29 29
 	{
30 30
 		if (property_exists($this, $property)) {
Please login to merge, or discard this patch.
inc/google-font-collection.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 	/**
14 14
 	 * Constructor
15
-	**/
15
+	 **/
16 16
 	public function __construct($fonts)
17 17
 	{
18 18
 		if(empty($fonts))
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	/**
34 34
 	 * getFontFamilyNameArray Function
35 35
 	 * this function returns an array containing all of the font family names
36
-	**/
36
+	 **/
37 37
 	function getFontFamilyNameArray()
38 38
 	{
39 39
 		$result;
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	/**
48 48
 	 * getTitle
49 49
 	 * this function returns the font title
50
-	**/
50
+	 **/
51 51
 	function getTitle($key)
52 52
 	{
53 53
 		return $this->fonts[$key]->__get("title");
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	/**
57 57
 	 * getLocation
58 58
 	 * this function returns the font location
59
-	**/
59
+	 **/
60 60
 	function getLocation($key)
61 61
 	{
62 62
 		return $this->fonts[$key]->__get("location");
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	/**
66 66
 	 * getCssDeclaration
67 67
 	 * this function returns the font css declaration
68
-	**/
68
+	 **/
69 69
 	function getCssDeclaration($key)
70 70
 	{
71 71
 		return $this->fonts[$key]->__get("cssDeclaration");
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	 * this function returns an array of css classes
78 78
 	 * this function is used when displaying the fancy list of fonts in the theme customizer
79 79
 	 * this function is used to send a JS file an array for the postMessage transport option in the theme customizer
80
-	**/
80
+	 **/
81 81
 	function getCssClassArray()
82 82
 	{
83 83
 		$result;
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	/**
92 92
 	 * getTotalNumberOfFonts
93 93
 	 * this function returns the total number of fonts
94
-	**/
94
+	 **/
95 95
 	function getTotalNumberOfFonts()
96 96
 	{
97 97
 		return count($this->fonts);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	/**
101 101
 	 * printThemeCustomizerCssLocations
102 102
 	 * this function prints the links to the css files for the theme customizer
103
-	**/
103
+	 **/
104 104
 	function printThemeCustomizerCssLocations()
105 105
 	{
106 106
 		foreach ($this->fonts as $key => $value) 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 	/**
117 117
 	 * printThemeCustomizerCssClasses
118 118
 	 * this function prints the theme customizer css classes necessary to display all of the fonts
119
-	**/
119
+	 **/
120 120
 	function printThemeCustomizerCssClasses()
121 121
 	{
122 122
 		?>
Please login to merge, or discard this patch.
inc/customizer-font.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 	/**
14 14
 	 * Constructor
15
-	**/
15
+	 **/
16 16
 	public function __construct($title, $location, $cssDeclaration, $cssClass)
17 17
 	{
18 18
 		$this->title = $title;
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	/**
25 25
 	 * Getters
26 26
 	 * taken from: http://stackoverflow.com/questions/4478661/getter-and-setter
27
-	**/
27
+	 **/
28 28
 	public function __get($property) 
29 29
 	{
30 30
 		if (property_exists($this, $property)) {
Please login to merge, or discard this patch.
image.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -31,20 +31,20 @@  discard block
 block discarded – undo
31 31
  
32 32
                         <div class="entry-meta">
33 33
                             <?php
34
-                               $metadata = wp_get_attachment_metadata();
35
-                                printf( wp_kses_post( '%1$s <span class="entry-date"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></span> %4$s <a href="%5$s">%6$s &times; %7$s</a> %8$s <a href="%9$s" title="%10$s" rel="gallery">%10$s</a>' ),
36
-                                    esc_html__( 'Published', 'lsx' ),
37
-                                    esc_attr( get_the_date( 'c' ) ),
38
-                                    esc_html( get_the_date() ),
39
-                                    esc_html__( 'at', 'lsx' ),
40
-                                    esc_url( wp_get_attachment_url() ),
41
-                                    esc_attr( $metadata['width'] ),
42
-                                    esc_attr( $metadata['height'] ),
43
-                                    esc_html__( 'in', 'lsx' ),
44
-                                    esc_url( get_permalink( $post->post_parent ) ),
45
-                                    get_the_title( $post->post_parent )
46
-                                );
47
-                            ?>
34
+							   $metadata = wp_get_attachment_metadata();
35
+								printf( wp_kses_post( '%1$s <span class="entry-date"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></span> %4$s <a href="%5$s">%6$s &times; %7$s</a> %8$s <a href="%9$s" title="%10$s" rel="gallery">%10$s</a>' ),
36
+									esc_html__( 'Published', 'lsx' ),
37
+									esc_attr( get_the_date( 'c' ) ),
38
+									esc_html( get_the_date() ),
39
+									esc_html__( 'at', 'lsx' ),
40
+									esc_url( wp_get_attachment_url() ),
41
+									esc_attr( $metadata['width'] ),
42
+									esc_attr( $metadata['height'] ),
43
+									esc_html__( 'in', 'lsx' ),
44
+									esc_url( get_permalink( $post->post_parent ) ),
45
+									get_the_title( $post->post_parent )
46
+								);
47
+							?>
48 48
                             <?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
49 49
                         </div><!-- .entry-meta -->
50 50
  
@@ -59,34 +59,34 @@  discard block
 block discarded – undo
59 59
                         <div class="entry-attachment">
60 60
                             <div class="attachment">
61 61
                                 <?php
62
-                                    /**
63
-                                     * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
64
-                                     * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
65
-                                     */
66
-                                    $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
67
-                                    foreach ( $attachments as $k => $attachment ) {
68
-                                        if ( $attachment->ID == $post->ID )
69
-                                            break;
70
-                                    }
71
-                                    $k++;
72
-                                    // If there is more than 1 attachment in a gallery
73
-                                    if ( count( $attachments ) > 1 ) {
74
-                                        if ( isset( $attachments[ $k ] ) )
75
-                                            // get the URL of the next image attachment
76
-                                            $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
77
-                                        else
78
-                                            // or get the URL of the first image attachment
79
-                                            $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
80
-                                    } else {
81
-                                        // or, if there's only 1 image, get the URL of the image
82
-                                        $next_attachment_url = wp_get_attachment_url();
83
-                                    }
84
-                                ?>
62
+									/**
63
+									 * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
64
+									 * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
65
+									 */
66
+									$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
67
+									foreach ( $attachments as $k => $attachment ) {
68
+										if ( $attachment->ID == $post->ID )
69
+											break;
70
+									}
71
+									$k++;
72
+									// If there is more than 1 attachment in a gallery
73
+									if ( count( $attachments ) > 1 ) {
74
+										if ( isset( $attachments[ $k ] ) )
75
+											// get the URL of the next image attachment
76
+											$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
77
+										else
78
+											// or get the URL of the first image attachment
79
+											$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
80
+									} else {
81
+										// or, if there's only 1 image, get the URL of the image
82
+										$next_attachment_url = wp_get_attachment_url();
83
+									}
84
+								?>
85 85
  
86 86
                                 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
87
-                                    $attachment_size = apply_filters( 'shape_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
88
-                                    echo wp_get_attachment_image( $post->ID, $attachment_size );
89
-                                ?></a>
87
+									$attachment_size = apply_filters( 'shape_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
88
+									echo wp_get_attachment_image( $post->ID, $attachment_size );
89
+								?></a>
90 90
                             </div><!-- .attachment -->
91 91
  
92 92
                             <?php if ( ! empty( $post->post_excerpt ) ) : ?>
@@ -97,15 +97,15 @@  discard block
 block discarded – undo
97 97
                         </div><!-- .entry-attachment -->
98 98
  
99 99
                         <?php
100
-                            the_content();
100
+							the_content();
101 101
 
102
-                            wp_link_pages( array(
103
-                                'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
104
-                                'after' => '</div></div>',
105
-                                'link_before' => '<span>',
106
-                                'link_after' => '</span>'
107
-                            ) );
108
-                        ?>
102
+							wp_link_pages( array(
103
+								'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
104
+								'after' => '</div></div>',
105
+								'link_before' => '<span>',
106
+								'link_after' => '</span>'
107
+							) );
108
+						?>
109 109
  
110 110
                     </div><!-- .entry-content -->
111 111
                     
Please login to merge, or discard this patch.
inc/template-tags.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  */
12 12
 function lsx_breadcrumbs() {
13 13
   if (!function_exists('yoast_breadcrumb') && !function_exists('woocommerce_breadcrumb')) {
14
-    return null;
14
+	return null;
15 15
   }
16 16
   
17 17
   $show_on_front = get_option('show_on_front');
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	 * Displays logo when applicable
69 69
 	 *
70 70
 	 * @return void
71
-	*/
71
+	 */
72 72
 	function lsx_site_title() {
73 73
 		?>
74 74
 			<div class="site-branding">
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 		
419 419
 		//print_r(get_nav_menu_locations());
420 420
 
421
-	    if(false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']){ ?>
421
+		if(false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']){ ?>
422 422
 			<nav class="primary-navbar collapse navbar-collapse">
423 423
 		    	<?php
424 424
 				wp_nav_menu( array(
@@ -546,9 +546,9 @@  discard block
 block discarded – undo
546 546
 				if(null != $tag_cloud){
547 547
 					printf( '<h2>'.__( '%1$s', 'lsx' ).'</h2>', $taxonomy );
548 548
 					echo '<aside id="'.$taxonomy_id.'" class="widget widget_'.$taxonomy_id.'">'.$tag_cloud.'</aside>';
549
-		        }
550
-	        }
551
-        } 
549
+				}
550
+			}
551
+		} 
552 552
 }
553 553
 
554 554
 /**
@@ -597,11 +597,11 @@  discard block
 block discarded – undo
597 597
 			<div class="container">
598 598
 				<nav class="top-menu">
599 599
 		    		<?php
600
-		    			wp_nav_menu( array(
600
+						wp_nav_menu( array(
601 601
 							'theme_location' => 'top-menu',
602 602
 							'walker' => new lsx_bootstrap_navwalker())
603 603
 						);
604
-		    		?>
604
+					?>
605 605
 		    	</nav>	
606 606
 	    	</div>
607 607
 	    </div>
Please login to merge, or discard this patch.
inc/wp-bootstrap-navwalker.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -159,17 +159,17 @@
 block discarded – undo
159 159
 	 * @return null Null on failure with no changes to parameters.
160 160
 	 */
161 161
 	public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
162
-        if ( ! $element )
163
-            return;
162
+		if ( ! $element )
163
+			return;
164 164
 
165
-        $id_field = $this->db_fields['id'];
165
+		$id_field = $this->db_fields['id'];
166 166
 
167
-        // Display this element.
168
-        if ( is_object( $args[0] ) )
169
-           $args[0]->has_children = ! empty( $children_elements[ $element->$id_field ] );
167
+		// Display this element.
168
+		if ( is_object( $args[0] ) )
169
+		   $args[0]->has_children = ! empty( $children_elements[ $element->$id_field ] );
170 170
 
171
-        parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
172
-    }
171
+		parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
172
+	}
173 173
 
174 174
 	/**
175 175
 	 * Menu Fallback
Please login to merge, or discard this patch.
inc/comment-walker.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -14,25 +14,25 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class LSX_Walker_Comment extends Walker_Comment {
16 16
   function start_lvl(&$output, $depth = 0, $args = array()) {
17
-    $GLOBALS['comment_depth'] = $depth + 1; ?>
17
+	$GLOBALS['comment_depth'] = $depth + 1; ?>
18 18
     <ul <?php comment_class('media unstyled comment-' . get_comment_ID()); ?>>
19 19
     <?php
20 20
   }
21 21
 
22 22
   function end_lvl(&$output, $depth = 0, $args = array()) {
23
-    $GLOBALS['comment_depth'] = $depth + 1;
24
-    echo '</ul>';
23
+	$GLOBALS['comment_depth'] = $depth + 1;
24
+	echo '</ul>';
25 25
   }
26 26
 
27 27
   function start_el(&$output, $comment, $depth = 0, $args = array(), $id = 0) {
28
-    $depth++;
29
-    $GLOBALS['comment_depth'] = $depth;
30
-    $GLOBALS['comment'] = $comment;
28
+	$depth++;
29
+	$GLOBALS['comment_depth'] = $depth;
30
+	$GLOBALS['comment'] = $comment;
31 31
 
32
-    if (!empty($args['callback'])) {
33
-      call_user_func($args['callback'], $comment, $args, $depth);
34
-      return;
35
-    }?>
32
+	if (!empty($args['callback'])) {
33
+	  call_user_func($args['callback'], $comment, $args, $depth);
34
+	  return;
35
+	}?>
36 36
 
37 37
   	<li id="comment-<?php comment_ID(); ?>" <?php comment_class('media comment-' . get_comment_ID()); ?>>
38 38
     <?php get_template_part('comment'); ?>
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
   }
41 41
 
42 42
   function end_el(&$output, $comment, $depth = 0, $args = array()) {
43
-    if (!empty($args['end-callback'])) {
44
-      call_user_func($args['end-callback'], $comment, $args, $depth);
45
-      return;
46
-    }
47
-    echo "</div></li>\n";
43
+	if (!empty($args['end-callback'])) {
44
+	  call_user_func($args['end-callback'], $comment, $args, $depth);
45
+	  return;
46
+	}
47
+	echo "</div></li>\n";
48 48
   }
49 49
   
50 50
 }
Please login to merge, or discard this patch.