Passed
Push — master ( 86dfed...3aa001 )
by Warwick
05:45
created
tribe-events/pro/related-events.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  */
16 16
 
17 17
 if ( ! defined( 'ABSPATH' ) ) {
18
-	die( '-1' );
18
+     die( '-1' );
19 19
 }
20 20
 
21 21
 $posts = tribe_get_related_posts();
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
 		<div class="tribe-related-event-info">
35 35
 			<h3 class="tribe-related-events-title"><a href="<?php echo esc_url( tribe_get_event_link( $post ) ); ?>" class="tribe-event-url" rel="bookmark"><?php echo get_the_title( $post->ID ); ?></a></h3>
36 36
 			<?php
37
-			if ( Tribe__Events__Main::POSTTYPE === $post->post_type ) {
38
-				echo wp_kses_post( tribe_events_event_schedule_details( $post ) );
39
-			}
40
-			?>
37
+               if ( Tribe__Events__Main::POSTTYPE === $post->post_type ) {
38
+                    echo wp_kses_post( tribe_events_event_schedule_details( $post ) );
39
+               }
40
+               ?>
41 41
 			<a href="<?php echo esc_url( tribe_get_event_link( $post ) ); ?>" class="moretag"><?php esc_html_e( 'View event', 'lsx' ); ?></a>
42 42
 		</div>
43 43
 	</li>
Please login to merge, or discard this patch.
tribe-events/day/single-featured.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 if ( ! defined( 'ABSPATH' ) ) {
13
-	die( '-1' );
13
+     die( '-1' );
14 14
 }
15 15
 
16 16
 $venue_details = tribe_get_venue_details();
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
 			<?php esc_html_e( 'Price:', 'lsx' ); ?>
58 58
 			<span class="ticket-cost"><?php echo tribe_get_cost( null, true ); ?></span>
59 59
 			<?php
60
-			/** This action is documented in the-events-calendar/src/views/list/single-event.php */
61
-			do_action( 'tribe_events_inside_cost' )
62
-			?>
60
+               /** This action is documented in the-events-calendar/src/views/list/single-event.php */
61
+               do_action( 'tribe_events_inside_cost' )
62
+               ?>
63 63
 		</div>
64 64
 	<?php endif; ?>
65 65
 
Please login to merge, or discard this patch.
tribe-events/day/single-event.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 if ( ! defined( 'ABSPATH' ) ) {
13
-	die( '-1' );
13
+     die( '-1' );
14 14
 }
15 15
 
16 16
 $venue_details = tribe_get_venue_details();
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 			<!-- Venue Display Info -->
51 51
 			<div class="tribe-events-venue-details">
52 52
 			<?php
53
-				$address_delimiter = empty( $venue_address ) ? ' ' : ', ';
53
+                    $address_delimiter = empty( $venue_address ) ? ' ' : ', ';
54 54
 
55
-				// These details are already escaped in various ways earlier in the code.
56
-				echo implode( $address_delimiter, $venue_details );
57
-			?>
55
+                    // These details are already escaped in various ways earlier in the code.
56
+                    echo implode( $address_delimiter, $venue_details );
57
+               ?>
58 58
 			</div> <!-- .tribe-events-venue-details -->
59 59
 		<?php endif; ?>
60 60
 
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
 			<?php esc_html_e( 'Price:', 'lsx' ); ?>
66 66
 			<span class="ticket-cost"><?php echo tribe_get_cost( null, true ); ?></span>
67 67
 			<?php
68
-			/** This action is documented in the-events-calendar/src/views/list/single-event.php */
69
-			do_action( 'tribe_events_inside_cost' )
70
-			?>
68
+               /** This action is documented in the-events-calendar/src/views/list/single-event.php */
69
+               do_action( 'tribe_events_inside_cost' )
70
+               ?>
71 71
 		</div>
72 72
 	<?php endif; ?>
73 73
 
Please login to merge, or discard this patch.
tribe-events/list/single-featured.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 if ( ! defined( 'ABSPATH' ) ) {
13
-	die( '-1' );
13
+     die( '-1' );
14 14
 }
15 15
 
16 16
 // Setup an array of venue details for use later in the template.
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
 				<div class="tribe-events-venue-details">
54 54
 					<?php echo wp_kses_post( implode( ', ', $venue_details ) ); ?>
55 55
 					<?php
56
-					if ( tribe_show_google_map_link() ) {
57
-						echo wp_kses_post( tribe_get_map_link_html() );
58
-					}
59
-					?>
56
+                         if ( tribe_show_google_map_link() ) {
57
+                              echo wp_kses_post( tribe_get_map_link_html() );
58
+                         }
59
+                         ?>
60 60
 				</div> <!-- .tribe-events-venue-details -->
61 61
 			<?php endif; ?>
62 62
 
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
 			<?php esc_html_e( 'Price:', 'lsx' ); ?>
71 71
 			<span class="ticket-cost"><?php echo esc_html( tribe_get_cost( null, true ) ); ?></span>
72 72
 			<?php
73
-			/** This action is documented in the-events-calendar/src/views/list/single-event.php */
74
-			do_action( 'tribe_events_inside_cost' )
75
-			?>
73
+               /** This action is documented in the-events-calendar/src/views/list/single-event.php */
74
+               do_action( 'tribe_events_inside_cost' )
75
+               ?>
76 76
 		</div>
77 77
 	<?php endif; ?>
78 78
 
Please login to merge, or discard this patch.
tribe-events/list/single-event.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 if ( ! defined( 'ABSPATH' ) ) {
13
-	die( '-1' );
13
+     die( '-1' );
14 14
 }
15 15
 
16 16
 // Setup an array of venue details for use later in the template.
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
 				<!-- Venue Display Info -->
55 55
 				<div class="tribe-events-venue-details">
56 56
 				<?php
57
-				$address_delimiter = empty( $venue_address ) ? ' ' : ', ';
57
+                    $address_delimiter = empty( $venue_address ) ? ' ' : ', ';
58 58
 
59
-				// These details are already escaped in various ways earlier in the process.
60
-				echo implode( $address_delimiter, $venue_details );
59
+                    // These details are already escaped in various ways earlier in the process.
60
+                    echo implode( $address_delimiter, $venue_details );
61 61
 
62
-				if ( tribe_show_google_map_link() ) {
63
-					echo wp_kses_post( tribe_get_map_link_html() );
64
-				}
65
-				?>
62
+                    if ( tribe_show_google_map_link() ) {
63
+                         echo wp_kses_post( tribe_get_map_link_html() );
64
+                    }
65
+                    ?>
66 66
 				</div> <!-- .tribe-events-venue-details -->
67 67
 			<?php endif; ?>
68 68
 
@@ -75,13 +75,13 @@  discard block
 block discarded – undo
75 75
 			<?php esc_html_e( 'Price:', 'lsx' ); ?>
76 76
 			<span class="ticket-cost"><?php echo tribe_get_cost( null, true ); ?></span>
77 77
 			<?php
78
-			/**
79
-			 * Runs after cost is displayed in list style views
80
-			 *
81
-			 * @since 4.5
82
-			 */
83
-			do_action( 'tribe_events_inside_cost' )
84
-			?>
78
+               /**
79
+                * Runs after cost is displayed in list style views
80
+                *
81
+                * @since 4.5
82
+                */
83
+               do_action( 'tribe_events_inside_cost' )
84
+               ?>
85 85
 		</div>
86 86
 	<?php endif; ?>
87 87
 
Please login to merge, or discard this patch.
includes/welcome.php 1 patch
Indentation   +110 added lines, -110 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 if ( ! function_exists( 'lsx_activation_admin_notice_dismiss' ) ) :
14 14
 
15
-	/**
16
-	 * Dismiss the admin notice (successful activation).
17
-	 *
18
-	 * @package    lsx
19
-	 * @subpackage welcome-page
20
-	 */
21
-	function lsx_activation_admin_notice_dismiss() {
22
-		update_option( 'lsx-notice-dismissed', '1' );
23
-		wp_die();
24
-	}
15
+     /**
16
+      * Dismiss the admin notice (successful activation).
17
+      *
18
+      * @package    lsx
19
+      * @subpackage welcome-page
20
+      */
21
+     function lsx_activation_admin_notice_dismiss() {
22
+          update_option( 'lsx-notice-dismissed', '1' );
23
+          wp_die();
24
+     }
25 25
 
26 26
 endif;
27 27
 
@@ -29,17 +29,17 @@  discard block
 block discarded – undo
29 29
 
30 30
 if ( ! function_exists( 'lsx_activation_admin_notice' ) ) :
31 31
 
32
-	/**
33
-	 * Adds an admin notice upon successful activation.
34
-	 *
35
-	 * @package    lsx
36
-	 * @subpackage welcome-page
37
-	 */
38
-	function lsx_activation_admin_notice() {
39
-		if ( empty( get_option( 'lsx-notice-dismissed' ) ) ) {
40
-			add_action( 'admin_notices', 'lsx_welcome_admin_notice', 99 );
41
-		}
42
-	}
32
+     /**
33
+      * Adds an admin notice upon successful activation.
34
+      *
35
+      * @package    lsx
36
+      * @subpackage welcome-page
37
+      */
38
+     function lsx_activation_admin_notice() {
39
+          if ( empty( get_option( 'lsx-notice-dismissed' ) ) ) {
40
+               add_action( 'admin_notices', 'lsx_welcome_admin_notice', 99 );
41
+          }
42
+     }
43 43
 
44 44
 endif;
45 45
 
@@ -47,49 +47,49 @@  discard block
 block discarded – undo
47 47
 
48 48
 if ( ! function_exists( 'lsx_welcome_admin_notice' ) ) :
49 49
 
50
-	/**
51
-	 * Display an admin notice linking to the welcome screen.
52
-	 *
53
-	 * @package    lsx
54
-	 * @subpackage welcome-page
55
-	 */
56
-	function lsx_welcome_admin_notice() {
57
-		?>
50
+     /**
51
+      * Display an admin notice linking to the welcome screen.
52
+      *
53
+      * @package    lsx
54
+      * @subpackage welcome-page
55
+      */
56
+     function lsx_welcome_admin_notice() {
57
+          ?>
58 58
 			<div class="lsx-theme-notice notice notice-success is-dismissible">
59 59
 				<p>
60 60
 					<?php
61
-						printf(
62
-							/* Translators: 1: HTML open tag link, 2: HTML close tag link */
63
-							esc_html_e( 'Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx' ),
64
-							'<a href="' . esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ) . '">',
65
-							'</a>'
66
-						);
67
-					?>
61
+                              printf(
62
+                                   /* Translators: 1: HTML open tag link, 2: HTML close tag link */
63
+                                   esc_html_e( 'Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx' ),
64
+                                   '<a href="' . esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ) . '">',
65
+                                   '</a>'
66
+                              );
67
+                         ?>
68 68
 				</p>
69 69
 				<p><a href="<?php echo esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ); ?>" class="button" style="text-decoration: none;"><?php esc_html_e( 'Get started with LSX', 'lsx' ); ?></a></p>
70 70
 			</div>
71 71
 		<?php
72
-	}
72
+     }
73 73
 
74 74
 endif;
75 75
 
76 76
 if ( ! function_exists( 'lsx_welcome_style' ) ) :
77 77
 
78
-	/**
79
-	 * Load welcome screen css.
80
-	 *
81
-	 * @package    lsx
82
-	 * @subpackage welcome-page
83
-	 *
84
-	 * @param string $hook_suffix the current page hook suffix.
85
-	 */
86
-	function lsx_welcome_style( $hook_suffix ) {
87
-		if ( 'appearance_page_lsx-welcome' === $hook_suffix ) {
88
-			wp_enqueue_style( 'lsx-welcome-screen-mailchimp', '//cdn-images.mailchimp.com/embedcode/classic-10_7.css', array(), LSX_VERSION );
89
-			wp_enqueue_style( 'lsx-welcome-screen', get_template_directory_uri() . '/assets/css/admin/welcome.css', array( 'lsx-welcome-screen-mailchimp' ), LSX_VERSION );
90
-			wp_style_add_data( 'lsx-welcome-screen', 'rtl', 'replace' );
91
-		}
92
-	}
78
+     /**
79
+      * Load welcome screen css.
80
+      *
81
+      * @package    lsx
82
+      * @subpackage welcome-page
83
+      *
84
+      * @param string $hook_suffix the current page hook suffix.
85
+      */
86
+     function lsx_welcome_style( $hook_suffix ) {
87
+          if ( 'appearance_page_lsx-welcome' === $hook_suffix ) {
88
+               wp_enqueue_style( 'lsx-welcome-screen-mailchimp', '//cdn-images.mailchimp.com/embedcode/classic-10_7.css', array(), LSX_VERSION );
89
+               wp_enqueue_style( 'lsx-welcome-screen', get_template_directory_uri() . '/assets/css/admin/welcome.css', array( 'lsx-welcome-screen-mailchimp' ), LSX_VERSION );
90
+               wp_style_add_data( 'lsx-welcome-screen', 'rtl', 'replace' );
91
+          }
92
+     }
93 93
 
94 94
 endif;
95 95
 
@@ -97,15 +97,15 @@  discard block
 block discarded – undo
97 97
 
98 98
 if ( ! function_exists( 'lsx_welcome_register_menu' ) ) :
99 99
 
100
-	/**
101
-	 * Creates the dashboard page.
102
-	 *
103
-	 * @package    lsx
104
-	 * @subpackage welcome-page
105
-	 */
106
-	function lsx_welcome_register_menu() {
107
-		add_theme_page( 'LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen' );
108
-	}
100
+     /**
101
+      * Creates the dashboard page.
102
+      *
103
+      * @package    lsx
104
+      * @subpackage welcome-page
105
+      */
106
+     function lsx_welcome_register_menu() {
107
+          add_theme_page( 'LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen' );
108
+     }
109 109
 
110 110
 endif;
111 111
 
@@ -113,45 +113,45 @@  discard block
 block discarded – undo
113 113
 
114 114
 if ( ! function_exists( 'lsx_welcome_screen' ) ) :
115 115
 
116
-	/**
117
-	 * The welcome screen.
118
-	 *
119
-	 * @package    lsx
120
-	 * @subpackage welcome-page
121
-	 */
122
-	function lsx_welcome_screen() {
123
-		require_once ABSPATH . 'wp-load.php';
124
-		require_once ABSPATH . 'wp-admin/admin.php';
125
-		require_once ABSPATH . 'wp-admin/admin-header.php';
126
-		?>
116
+     /**
117
+      * The welcome screen.
118
+      *
119
+      * @package    lsx
120
+      * @subpackage welcome-page
121
+      */
122
+     function lsx_welcome_screen() {
123
+          require_once ABSPATH . 'wp-load.php';
124
+          require_once ABSPATH . 'wp-admin/admin.php';
125
+          require_once ABSPATH . 'wp-admin/admin-header.php';
126
+          ?>
127 127
 		<div class="wrap about-wrap">
128 128
 			<?php
129
-			/**
130
-			 * Functions hooked into lsx_welcome action
131
-			 *
132
-			 * @hooked lsx_welcome_header  - 10
133
-			 * @hooked lsx_welcome_enhance - 20
134
-			 * @hooked lsx_welcome_footer  - 30
135
-			 */
136
-			do_action( 'lsx_welcome' );
137
-			?>
129
+               /**
130
+                * Functions hooked into lsx_welcome action
131
+                *
132
+                * @hooked lsx_welcome_header  - 10
133
+                * @hooked lsx_welcome_enhance - 20
134
+                * @hooked lsx_welcome_footer  - 30
135
+                */
136
+               do_action( 'lsx_welcome' );
137
+               ?>
138 138
 		</div>
139 139
 		<?php
140
-	}
140
+     }
141 141
 
142 142
 endif;
143 143
 
144 144
 if ( ! function_exists( 'lsx_welcome_header' ) ) :
145 145
 
146
-	/**
147
-	 * Welcome screen intro.
148
-	 *
149
-	 * @package    lsx
150
-	 * @subpackage welcome-page
151
-	 */
152
-	function lsx_welcome_header() {
153
-		require_once get_template_directory() . '/includes/admin/welcome-screen/component-header.php';
154
-	}
146
+     /**
147
+      * Welcome screen intro.
148
+      *
149
+      * @package    lsx
150
+      * @subpackage welcome-page
151
+      */
152
+     function lsx_welcome_header() {
153
+          require_once get_template_directory() . '/includes/admin/welcome-screen/component-header.php';
154
+     }
155 155
 
156 156
 endif;
157 157
 
@@ -159,15 +159,15 @@  discard block
 block discarded – undo
159 159
 
160 160
 if ( ! function_exists( 'lsx_welcome_enhance' ) ) :
161 161
 
162
-	/**
163
-	 * Welcome screen enhance section.
164
-	 *
165
-	 * @package    lsx
166
-	 * @subpackage welcome-page
167
-	 */
168
-	function lsx_welcome_enhance() {
169
-		require_once get_template_directory() . '/includes/admin/welcome-screen/component-enhance.php';
170
-	}
162
+     /**
163
+      * Welcome screen enhance section.
164
+      *
165
+      * @package    lsx
166
+      * @subpackage welcome-page
167
+      */
168
+     function lsx_welcome_enhance() {
169
+          require_once get_template_directory() . '/includes/admin/welcome-screen/component-enhance.php';
170
+     }
171 171
 
172 172
 endif;
173 173
 
@@ -175,15 +175,15 @@  discard block
 block discarded – undo
175 175
 
176 176
 if ( ! function_exists( 'lsx_welcome_footer' ) ) :
177 177
 
178
-	/**
179
-	 * Welcome screen contribute section.
180
-	 *
181
-	 * @package    lsx
182
-	 * @subpackage welcome-page
183
-	 */
184
-	function lsx_welcome_footer() {
185
-		require_once get_template_directory() . '/includes/admin/welcome-screen/component-footer.php';
186
-	}
178
+     /**
179
+      * Welcome screen contribute section.
180
+      *
181
+      * @package    lsx
182
+      * @subpackage welcome-page
183
+      */
184
+     function lsx_welcome_footer() {
185
+          require_once get_template_directory() . '/includes/admin/welcome-screen/component-footer.php';
186
+     }
187 187
 
188 188
 endif;
189 189
 
Please login to merge, or discard this patch.
includes/admin/welcome-screen/component-footer.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@
 block discarded – undo
46 46
 
47 47
 			<p>
48 48
 				<?php
49
-					printf(
50
-						/* Translators: 1: HTML open tag link, 2: HTML close tag link */
51
-						esc_html__( 'Why not %1$sleave a review%2$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx' ),
52
-						'<a href="https://wordpress.org/themes/lsx" target="_blank rel="noopener noreferrer">',
53
-						'</a>'
54
-					);
55
-					?>
49
+                         printf(
50
+                              /* Translators: 1: HTML open tag link, 2: HTML close tag link */
51
+                              esc_html__( 'Why not %1$sleave a review%2$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx' ),
52
+                              '<a href="https://wordpress.org/themes/lsx" target="_blank rel="noopener noreferrer">',
53
+                              '</a>'
54
+                         );
55
+                         ?>
56 56
 			</p>
57 57
 
58 58
 			<div class="more-button">
Please login to merge, or discard this patch.
includes/deprecated.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit;
10
+     exit;
11 11
 }
12 12
 
13 13
 
Please login to merge, or discard this patch.
includes/nav-navwalker.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -8,31 +8,31 @@  discard block
 block discarded – undo
8 8
  */
9 9
 
10 10
 if ( ! defined( 'ABSPATH' ) ) {
11
-	exit;
11
+     exit;
12 12
 }
13 13
 
14 14
 add_filter( 'nav_menu_item_id', '__return_null' );
15 15
 
16 16
 if ( ! function_exists( 'lsx_nav_menu_css_class' ) ) :
17 17
 
18
-	/**
19
-	 * Remove the id="" on nav menu items.
20
-	 * Return 'menu-slug' for nav menu classes.
21
-	 *
22
-	 * @package    lsx
23
-	 * @subpackage navigation
24
-	 * @category   bootstrap-walker
25
-	 */
26
-	function lsx_nav_menu_css_class( $classes, $item ) {
27
-		$slug    = sanitize_title( $item->title );
28
-		$classes = preg_replace( '/(current(-menu-|[-_]page[-_])(item|parent|ancestor))/', 'active', $classes );
29
-		$classes = preg_replace( '/^((menu|page)[-_\w+]+)+/', '', $classes );
30
-
31
-		$classes[] = 'menu-' . $slug;
32
-		$classes   = array_unique( $classes );
33
-
34
-		return array_filter( $classes, 'lsx_is_element_empty' );
35
-	}
18
+     /**
19
+      * Remove the id="" on nav menu items.
20
+      * Return 'menu-slug' for nav menu classes.
21
+      *
22
+      * @package    lsx
23
+      * @subpackage navigation
24
+      * @category   bootstrap-walker
25
+      */
26
+     function lsx_nav_menu_css_class( $classes, $item ) {
27
+          $slug    = sanitize_title( $item->title );
28
+          $classes = preg_replace( '/(current(-menu-|[-_]page[-_])(item|parent|ancestor))/', 'active', $classes );
29
+          $classes = preg_replace( '/^((menu|page)[-_\w+]+)+/', '', $classes );
30
+
31
+          $classes[] = 'menu-' . $slug;
32
+          $classes   = array_unique( $classes );
33
+
34
+          return array_filter( $classes, 'lsx_is_element_empty' );
35
+     }
36 36
 
37 37
 endif;
38 38
 
@@ -40,33 +40,33 @@  discard block
 block discarded – undo
40 40
 
41 41
 if ( ! function_exists( 'lsx_nav_menu_args' ) ) :
42 42
 
43
-	/**
44
-	 * Clean up wp_nav_menu_args.
45
-	 *
46
-	 * Remove the container.
47
-	 * Use LSX_Nav_Walker() by default.
48
-	 *
49
-	 * @package    lsx
50
-	 * @subpackage navigation
51
-	 * @category   bootstrap-walker
52
-	 */
53
-	function lsx_nav_menu_args( $args = '' ) {
54
-		$roots_nav_menu_args['container'] = false;
55
-
56
-		if ( ! $args['items_wrap'] ) {
57
-			$roots_nav_menu_args['items_wrap'] = '<ul class="%2$s">%3$s</ul>';
58
-		}
59
-
60
-		if ( current_theme_supports( 'bootstrap-top-navbar' ) && ! $args['depth'] ) {
61
-			$roots_nav_menu_args['depth'] = 2;
62
-		}
63
-
64
-		if ( ! $args['walker'] ) {
65
-			$roots_nav_menu_args['walker'] = new LSX_Nav_Walker();
66
-		}
67
-
68
-		return array_merge( $args, $roots_nav_menu_args );
69
-	}
43
+     /**
44
+      * Clean up wp_nav_menu_args.
45
+      *
46
+      * Remove the container.
47
+      * Use LSX_Nav_Walker() by default.
48
+      *
49
+      * @package    lsx
50
+      * @subpackage navigation
51
+      * @category   bootstrap-walker
52
+      */
53
+     function lsx_nav_menu_args( $args = '' ) {
54
+          $roots_nav_menu_args['container'] = false;
55
+
56
+          if ( ! $args['items_wrap'] ) {
57
+               $roots_nav_menu_args['items_wrap'] = '<ul class="%2$s">%3$s</ul>';
58
+          }
59
+
60
+          if ( current_theme_supports( 'bootstrap-top-navbar' ) && ! $args['depth'] ) {
61
+               $roots_nav_menu_args['depth'] = 2;
62
+          }
63
+
64
+          if ( ! $args['walker'] ) {
65
+               $roots_nav_menu_args['walker'] = new LSX_Nav_Walker();
66
+          }
67
+
68
+          return array_merge( $args, $roots_nav_menu_args );
69
+     }
70 70
 
71 71
 endif;
72 72
 
Please login to merge, or discard this patch.