Completed
Push — master ( 3cda7b...636be9 )
by Fernando
04:01
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/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.
inc/extras.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	
15 15
   // Add post/page slug
16 16
   if (is_single() || is_page() && !is_front_page()) {
17
-    $classes[] = basename(get_permalink());
17
+	$classes[] = basename(get_permalink());
18 18
   }
19 19
   
20 20
   if(!class_exists('Lsx_Banners')){
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
   // Remove unnecessary classes
39 39
   $home_id_class = 'page-id-' . get_option('page_on_front');
40 40
   $remove_classes = array(
41
-    'page-template-default',
42
-    $home_id_class
41
+	'page-template-default',
42
+	$home_id_class
43 43
   );
44 44
   $classes = array_diff($classes, $remove_classes);
45 45
 
@@ -271,12 +271,12 @@  discard block
 block discarded – undo
271 271
 		 || (is_singular('jetpack-portfolio')) ) { ?>
272 272
 	        
273 273
 	        <?php 
274
-	        	$bg_image = '';
275
-	        	if(has_post_thumbnail()){
276
-	        		$bg_image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()),'full');
277
-	        		$bg_image = $bg_image[0];
278
-	        	}
279
-	        ?>
274
+				$bg_image = '';
275
+				if(has_post_thumbnail()){
276
+					$bg_image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()),'full');
277
+					$bg_image = $bg_image[0];
278
+				}
279
+			?>
280 280
 
281 281
 	   		<?php if ( ! empty( $bg_image ) ) : ?>
282 282
 	        
@@ -309,8 +309,8 @@  discard block
 block discarded – undo
309 309
  * @category mobile
310 310
  */
311 311
 function lsx_allow_sms_protocol( $protocols ) {
312
-    $protocols[] = 'sms';
313
-    return $protocols;
312
+	$protocols[] = 'sms';
313
+	return $protocols;
314 314
 }
315 315
 add_filter( 'kses_allowed_protocols', 'lsx_allow_sms_protocol' );
316 316
 
@@ -322,27 +322,27 @@  discard block
 block discarded – undo
322 322
 		$http_user_agent = sanitize_text_field( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) );
323 323
 		$http_user_agent = ! empty( $http_user_agent ) ? $http_user_agent : '';
324 324
 
325
-        global $is_lynx, $is_gecko, $is_ie, $is_opera, $is_ns4, $is_safari, $is_chrome, $is_iphone;
326
-        if($is_lynx) $classes[] = 'lynx';
327
-        elseif($is_gecko) $classes[] = 'gecko';
328
-        elseif($is_opera) $classes[] = 'opera';
329
-        elseif($is_ns4) $classes[] = 'ns4';
330
-        elseif($is_safari) $classes[] = 'safari';
331
-        elseif($is_chrome) $classes[] = 'chrome';
332
-        elseif($is_ie) {
333
-                $classes[] = 'ie';
334
-                if(preg_match('/MSIE ([0-9]+)([a-zA-Z0-9.]+)/', $http_user_agent, $browser_version))
335
-                $classes[] = 'ie'.$browser_version[1];
336
-        } else $classes[] = 'unknown';
337
-        if($is_iphone) $classes[] = 'iphone';
338
-        if ( stristr( $http_user_agent, "mac") ) {
339
-                 $classes[] = 'osx';
340
-           } elseif ( stristr( $http_user_agent, "linux") ) {
341
-                 $classes[] = 'linux';
342
-           } elseif ( stristr( $http_user_agent, "windows") ) {
343
-                 $classes[] = 'windows';
344
-           }
345
-        return $classes;
325
+		global $is_lynx, $is_gecko, $is_ie, $is_opera, $is_ns4, $is_safari, $is_chrome, $is_iphone;
326
+		if($is_lynx) $classes[] = 'lynx';
327
+		elseif($is_gecko) $classes[] = 'gecko';
328
+		elseif($is_opera) $classes[] = 'opera';
329
+		elseif($is_ns4) $classes[] = 'ns4';
330
+		elseif($is_safari) $classes[] = 'safari';
331
+		elseif($is_chrome) $classes[] = 'chrome';
332
+		elseif($is_ie) {
333
+				$classes[] = 'ie';
334
+				if(preg_match('/MSIE ([0-9]+)([a-zA-Z0-9.]+)/', $http_user_agent, $browser_version))
335
+				$classes[] = 'ie'.$browser_version[1];
336
+		} else $classes[] = 'unknown';
337
+		if($is_iphone) $classes[] = 'iphone';
338
+		if ( stristr( $http_user_agent, "mac") ) {
339
+				 $classes[] = 'osx';
340
+		   } elseif ( stristr( $http_user_agent, "linux") ) {
341
+				 $classes[] = 'linux';
342
+		   } elseif ( stristr( $http_user_agent, "windows") ) {
343
+				 $classes[] = 'windows';
344
+		   }
345
+		return $classes;
346 346
 }
347 347
 add_filter('body_class','mv_browser_body_class');
348 348
 
Please login to merge, or discard this patch.