Completed
Push — master ( 2fcc6a...e555ed )
by
unknown
03:04
created
content-none.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,22 +10,22 @@
 block discarded – undo
10 10
 
11 11
 <section class="no-results not-found">
12 12
 	<header class="page-header">
13
-		<h1 class="page-title"><?php _e( 'Nothing Found', 'lsx' ); ?></h1>
13
+		<h1 class="page-title"><?php _e('Nothing Found', 'lsx'); ?></h1>
14 14
 	</header><!-- .page-header -->
15 15
 
16 16
 	<div class="page-content">
17
-		<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
17
+		<?php if (is_home() && current_user_can('publish_posts')) : ?>
18 18
 
19
-			<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'lsx' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
19
+			<p><?php printf(__('Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'lsx'), esc_url(admin_url('post-new.php'))); ?></p>
20 20
 
21
-		<?php elseif ( is_search() ) : ?>
21
+		<?php elseif (is_search()) : ?>
22 22
 
23
-			<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx' ); ?></p>
23
+			<p><?php _e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx'); ?></p>
24 24
 			<?php get_search_form(); ?>
25 25
 
26 26
 		<?php else : ?>
27 27
 
28
-			<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx' ); ?></p>
28
+			<p><?php _e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx'); ?></p>
29 29
 			<?php get_search_form(); ?>
30 30
 
31 31
 		<?php endif; ?>
Please login to merge, or discard this patch.
searchform.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
 
8 8
 
9 9
 //This is to help the customizer function better
10
-$style='';
11
-if(is_customize_preview()){
12
-	$search_form = get_theme_mod( 'lsx_header_search', 0 );
13
-	if(!$search_form){
14
-		$style='style="display:none;"';
10
+$style = '';
11
+if (is_customize_preview()) {
12
+	$search_form = get_theme_mod('lsx_header_search', 0);
13
+	if ( ! $search_form) {
14
+		$style = 'style="display:none;"';
15 15
 	}
16 16
 }
17 17
 
Please login to merge, or discard this patch.
footer.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @package lsx
8 8
  */
9 9
 ?>
10
-<?php if ( !is_singular('landing-page') ) { ?>
10
+<?php if ( ! is_singular('landing-page')) { ?>
11 11
 
12 12
 			</div><!-- .content -->
13 13
 		</div><!-- wrap -->
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
 		  					    <div class="footer-menu">
22 22
 									<?php 
23 23
 									
24
-										if(!is_user_logged_in()){
25
-											if(has_nav_menu('footer-menu')){
24
+										if ( ! is_user_logged_in()) {
25
+											if (has_nav_menu('footer-menu')) {
26 26
 												wp_nav_menu(array('theme_location' => 'footer-menu'));
27 27
 											}
28
-										}else{
29
-											if(has_nav_menu('footer_logged_in')){
28
+										} else {
29
+											if (has_nav_menu('footer_logged_in')) {
30 30
 												wp_nav_menu(array('theme_location' => 'footer_logged_in'));
31 31
 											}
32 32
 										}				
@@ -41,26 +41,26 @@  discard block
 block discarded – undo
41 41
 
42 42
 			    		<?php lsx_footer_top(); ?>
43 43
 
44
-			      		<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) { ?>credit-float<?php } ?>"><?php printf( __( '&#169; %1$s %2$s All Rights Reserved.', 'lsx' ), date_i18n( 'Y' ), get_bloginfo( 'name' ) ); ?></p>
45
-						<?php if ( has_nav_menu( 'social' ) ) { ?>
44
+			      		<p class="credit <?php if (has_nav_menu('social') || has_nav_menu('footer')) { ?>credit-float<?php } ?>"><?php printf(__('&#169; %1$s %2$s All Rights Reserved.', 'lsx'), date_i18n('Y'), get_bloginfo('name')); ?></p>
45
+						<?php if (has_nav_menu('social')) { ?>
46 46
 							<nav id="social-navigation" class="social-navigation">
47 47
 								<?php
48 48
 									// Social links navigation menu.
49
-									wp_nav_menu( array(
49
+									wp_nav_menu(array(
50 50
 										'theme_location' => 'social',
51 51
 										'depth'          => 1,
52
-									) );
52
+									));
53 53
 								?>
54 54
 							</nav><!-- .social-navigation -->
55 55
 						<?php } ?>
56
-						<?php if ( has_nav_menu( 'footer' ) ) { ?>
56
+						<?php if (has_nav_menu('footer')) { ?>
57 57
 							<nav id="footer-navigation" class="footer-navigation">
58 58
 								<?php
59 59
 									// Footer links navigation menu.
60
-									wp_nav_menu( array(
60
+									wp_nav_menu(array(
61 61
 										'theme_location' => 'footer',
62 62
 										'depth'          => 1,
63
-									) );
63
+									));
64 64
 								?>
65 65
 							</nav><!-- .footer-navigation -->
66 66
 						<?php } ?>
@@ -87,15 +87,15 @@  discard block
 block discarded – undo
87 87
 
88 88
 			    		<?php lsx_footer_top(); ?>
89 89
 
90
-			      		<p class="credit <?php if ( has_nav_menu( 'social' ) ) { ?>credit-float<?php } ?>"><?php printf( __( '&#169; %1$s %2$s All Rights Reserved.', 'lsx' ), date_i18n( 'Y' ), get_bloginfo( 'name' ) ); ?></p>
91
-						<?php if ( has_nav_menu( 'social' ) ) { ?>
90
+			      		<p class="credit <?php if (has_nav_menu('social')) { ?>credit-float<?php } ?>"><?php printf(__('&#169; %1$s %2$s All Rights Reserved.', 'lsx'), date_i18n('Y'), get_bloginfo('name')); ?></p>
91
+						<?php if (has_nav_menu('social')) { ?>
92 92
 							<nav id="social-navigation" class="social-navigation" role="navigation">
93 93
 								<?php
94 94
 									// Social links navigation menu.
95
-									wp_nav_menu( array(
95
+									wp_nav_menu(array(
96 96
 										'theme_location' => 'social',
97 97
 										'depth'          => 1,
98
-									) );
98
+									));
99 99
 								?>
100 100
 							</nav><!-- .social-navigation -->
101 101
 						<?php } ?>
Please login to merge, or discard this patch.
content-portfolio-single.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@  discard block
 block discarded – undo
18 18
 		<div class="col-sm-12">
19 19
 			<div class="entry-content">
20 20
 			
21
-				<?php if ( ! is_singular() ) {
21
+				<?php if ( ! is_singular()) {
22 22
 					the_excerpt();
23 23
 				} else {
24 24
 					the_content();
25 25
 
26
-					wp_link_pages( array(
26
+					wp_link_pages(array(
27 27
 						'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
28 28
 						'after' => '</div></div>',
29 29
 						'link_before' => '<span>',
30 30
 						'link_after' => '</span>'
31
-					) );
31
+					));
32 32
 				} ?>
33 33
 
34 34
 				<?php lsx_portfolio_gallery(); ?>
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
36 36
 				<?php lsx_post_nav(); ?>	
37 37
 				
38 38
 				<?php  
39
-					if ( function_exists( 'sharing_display' ) ) {
40
-						sharing_display( '', true );
39
+					if (function_exists('sharing_display')) {
40
+						sharing_display('', true);
41 41
 					}
42 42
 					
43
-					if ( class_exists( 'Jetpack_Likes' ) ) {
43
+					if (class_exists('Jetpack_Likes')) {
44 44
 						$custom_likes = new Jetpack_Likes;
45
-						echo $custom_likes->post_likes( '' );
45
+						echo $custom_likes->post_likes('');
46 46
 					}
47 47
 				?>
48 48
 				
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		</div>
54 54
 	</div>
55 55
 		
56
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
56
+	<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
57 57
 	
58 58
 	<?php lsx_entry_bottom(); ?>
59 59
 
Please login to merge, or discard this patch.
comments.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 </nav>
44 44
 <?php endif; ?>
45 45
 
46
-<?php if (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
46
+<?php if ( ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
47 47
 	<div class="alert alert-warning">
48 48
 		<?php _e('Comments are closed.', 'lsx'); ?>
49 49
 	</div>
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 <?php endif; ?>
56 56
 
57
-<?php if (!have_comments() && !comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
57
+<?php if ( ! have_comments() && ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
58 58
 	<section id="comments">
59 59
 		<div class="alert alert-warning">
60 60
 			<?php _e('Comments are closed.', 'lsx'); ?>
@@ -67,24 +67,24 @@  discard block
 block discarded – undo
67 67
 
68 68
 <?php
69 69
 	$commenter = wp_get_current_commenter();
70
-	$req = get_option( 'require_name_email' );
71
-	$aria_req = ( $req ? " aria-required='true'" : '' );
72
-	$html_req = ( $req ? " required='required'" : '' );
70
+	$req = get_option('require_name_email');
71
+	$aria_req = ($req ? " aria-required='true'" : '');
72
+	$html_req = ($req ? " required='required'" : '');
73 73
 	
74 74
 	$comment_form_args = array(
75
-		'comment_field' => '<p class="comment-form-comment"><textarea placeholder="'. __( 'Comment', 'lsx' ) .'" id="comment" class="form-control" name="comment" cols="45" rows="8"'. $aria_req . $html_req .'></textarea></p>',
75
+		'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . __('Comment', 'lsx') . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>',
76 76
 		
77 77
 		'fields' => array(
78
-			'author' => '<p class="comment-form-author"><label for="author">'. __( 'Name', 'lsx' ) .'</label> ' .
79
-				( $req ? '<span class="required">*</span>' : '' ) .
80
-				'<input class="form-control" placeholder="'. __( 'Name', 'lsx' ) .'" id="author" name="author" type="text" value="'. esc_attr( $commenter['comment_author'] ) .'" size="30"'. $aria_req . $html_req .'></p>',
78
+			'author' => '<p class="comment-form-author"><label for="author">' . __('Name', 'lsx') . '</label> ' .
79
+				($req ? '<span class="required">*</span>' : '') .
80
+				'<input class="form-control" placeholder="' . __('Name', 'lsx') . '" id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . $html_req . '></p>',
81 81
 
82
-			'email' => '<p class="comment-form-email"><label for="email">'. __( 'Email', 'lsx' ) .'</label> ' .
83
-				( $req ? '<span class="required">*</span>' : '' ) .
84
-				'<input class="form-control" placeholder="'. __( 'Email', 'lsx' ) .'" id="email" name="email" type="text" value="'. esc_attr(  $commenter['comment_author_email'] ) .'" size="30"' . $aria_req . $html_req . '></p>',
82
+			'email' => '<p class="comment-form-email"><label for="email">' . __('Email', 'lsx') . '</label> ' .
83
+				($req ? '<span class="required">*</span>' : '') .
84
+				'<input class="form-control" placeholder="' . __('Email', 'lsx') . '" id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . $html_req . '></p>',
85 85
 
86
-			'url' => '<p class="comment-form-url"><label for="url">'. __( 'Website', 'lsx' ) .'</label>' .
87
-				'<input class="form-control" placeholder="'. __( 'Website', 'lsx' ) .'" id="url" name="url" type="text" value="'. esc_attr( $commenter['comment_author_url'] ) .'" size="30"></p>'
86
+			'url' => '<p class="comment-form-url"><label for="url">' . __('Website', 'lsx') . '</label>' .
87
+				'<input class="form-control" placeholder="' . __('Website', 'lsx') . '" id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30"></p>'
88 88
 		)
89 89
 	);
90 90
 ?>
Please login to merge, or discard this patch.
content-page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,15 +16,15 @@
 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
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
27
+	<?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
28 28
 
29 29
 	<?php lsx_entry_bottom(); ?>
30 30
 	
Please login to merge, or discard this patch.
mobile-templates/single-page.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -3,33 +3,33 @@
 block discarded – undo
3 3
 <head>
4 4
 	<meta charset="utf-8">
5 5
 	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
6
-	<link href="http<?php if(is_ssl()){ echo 's'; } ?>://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic" rel="stylesheet" type="text/css">
7
-	<?php do_action( 'amp_post_template_head', $this ); ?>
6
+	<link href="http<?php if (is_ssl()) { echo 's'; } ?>://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic" rel="stylesheet" type="text/css">
7
+	<?php do_action('amp_post_template_head', $this); ?>
8 8
 
9 9
 	<style amp-custom>
10
-	<?php $this->load_parts( array( 'style' ) ); ?>
11
-	<?php do_action( 'amp_post_template_css', $this ); ?>
10
+	<?php $this->load_parts(array('style')); ?>
11
+	<?php do_action('amp_post_template_css', $this); ?>
12 12
 	</style>
13 13
 </head>
14 14
 <body>
15 15
 <nav class="amp-wp-title-bar">
16 16
 	<div>
17
-		<a href="<?php echo esc_url( $this->get( 'home_url' ) ); ?>">
18
-			<?php $site_icon_url = $this->get( 'site_icon_url' ); ?>
19
-			<?php if ( $site_icon_url ) : ?>
20
-				<amp-img src="<?php echo esc_url( $site_icon_url ); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img>
17
+		<a href="<?php echo esc_url($this->get('home_url')); ?>">
18
+			<?php $site_icon_url = $this->get('site_icon_url'); ?>
19
+			<?php if ($site_icon_url) : ?>
20
+				<amp-img src="<?php echo esc_url($site_icon_url); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img>
21 21
 			<?php endif; ?>
22
-			<?php echo esc_html( $this->get( 'blog_name' ) ); ?>
22
+			<?php echo esc_html($this->get('blog_name')); ?>
23 23
 		</a>
24 24
 	</div>
25 25
 </nav>
26 26
 <div class="amp-wp-content">
27
-	<h1 class="amp-wp-title"><?php echo esc_html( $this->get( 'post_title' ) ); ?></h1>
27
+	<h1 class="amp-wp-title"><?php echo esc_html($this->get('post_title')); ?></h1>
28 28
 	<ul class="amp-wp-meta">
29
-		<?php $this->load_parts( apply_filters( 'amp_post_template_meta_parts', array( 'meta-author', 'meta-time', 'meta-taxonomy' ) ) ); ?>
29
+		<?php $this->load_parts(apply_filters('amp_post_template_meta_parts', array('meta-author', 'meta-time', 'meta-taxonomy'))); ?>
30 30
 	</ul>
31
-	<?php echo $this->get( 'post_amp_content' ); // amphtml content; no kses ?>
31
+	<?php echo $this->get('post_amp_content'); // amphtml content; no kses ?>
32 32
 </div>
33
-<?php do_action( 'amp_post_template_footer', $this ); ?>
33
+<?php do_action('amp_post_template_footer', $this); ?>
34 34
 </body>
35 35
 </html>
Please login to merge, or discard this patch.
content.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 <?php lsx_entry_before(); ?>
8 8
 
9 9
 <?php 
10
-	if ( has_post_thumbnail() ) { 
10
+	if (has_post_thumbnail()) { 
11 11
 		$thumb_class = 'has-thumb';
12 12
 	} else {
13 13
 		$thumb_class = 'no-thumb';
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	<?php lsx_entry_top(); ?>
19 19
 
20 20
 	<header class="entry-header">
21
-		<?php if ( has_post_thumbnail() ) { ?>
21
+		<?php if (has_post_thumbnail()) { ?>
22 22
 		<div class="entry-image">
23 23
 			<a class="thumbnail" href="<?php the_permalink(); ?>">
24 24
 				 <?php lsx_thumbnail('lsx-single-thumbnail'); ?>
@@ -28,35 +28,35 @@  discard block
 block discarded – undo
28 28
 
29 29
 	<?php 
30 30
 		$format = get_post_format();
31
-		if ( false === $format ) {
31
+		if (false === $format) {
32 32
 			$format = 'standard';
33
-			$show_on_front = get_option('show_on_front','posts');
34
-			if('page' == $show_on_front){
33
+			$show_on_front = get_option('show_on_front', 'posts');
34
+			if ('page' == $show_on_front) {
35 35
 				$archive_link = get_permalink(get_option('page_for_posts'));
36
-			}else{
36
+			} else {
37 37
 				$archive_link = home_url();
38 38
 			}
39
-		}else{
39
+		} else {
40 40
 			$archive_link = get_post_format_link($format);
41 41
 		}
42 42
 		$format = lsx_translate_format_to_fontawesome($format);
43 43
 		?>
44 44
 
45 45
 		<h1 class="entry-title">
46
-			<?php if ( has_post_thumbnail() ) { ?>
46
+			<?php if (has_post_thumbnail()) { ?>
47 47
 				<a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo $format ?>"></a>
48 48
 			<?php } else { ?>
49 49
 				<a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo $format ?>"></a>
50 50
 			<?php } ?>
51 51
 
52
-			<?php if ( has_post_format( array('link') ) ) { ?>
52
+			<?php if (has_post_format(array('link'))) { ?>
53 53
 				<a href="<?php echo lsx_get_my_url(); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
54 54
 			<?php } else { ?>
55 55
 				<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
56 56
 			<?php } ?>
57 57
 
58
-			<?php if ( is_sticky() ) { ?>
59
-				<span class="label label-default label-sticky"><?php _e('Featured','lsx'); ?></span>
58
+			<?php if (is_sticky()) { ?>
59
+				<span class="label label-default label-sticky"><?php _e('Featured', 'lsx'); ?></span>
60 60
 			<?php } ?>
61 61
 		</h1>
62 62
 
@@ -65,39 +65,39 @@  discard block
 block discarded – undo
65 65
 		</div><!-- .entry-meta -->
66 66
 	</header><!-- .entry-header -->	
67 67
 
68
-	<?php if ( !is_singular() && !has_post_format( array('video', 'audio', 'quote', 'link') ) ) : // Only display Excerpts for Search and Archives ?>
68
+	<?php if ( ! is_singular() && ! has_post_format(array('video', 'audio', 'quote', 'link'))) : // Only display Excerpts for Search and Archives ?>
69 69
 		<div class="entry-summary"> 
70 70
 			<?php the_excerpt(); ?>
71 71
 		</div><!-- .entry-summary -->
72
-	<?php elseif ( has_post_format( array('link') ) ) : ?>
72
+	<?php elseif (has_post_format(array('link'))) : ?>
73 73
 
74 74
 	<?php else : ?>
75 75
 		<div class="entry-content">
76 76
 			<?php
77 77
 				the_content();
78 78
 
79
-				wp_link_pages( array(
79
+				wp_link_pages(array(
80 80
 					'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
81 81
 					'after' => '</div></div>',
82 82
 					'link_before' => '<span>',
83 83
 					'link_after' => '</span>'
84
-				) );
84
+				));
85 85
 			?>
86 86
 		</div><!-- .entry-content -->
87 87
 	<?php endif; ?>
88 88
 	
89
-	<?php if ( has_tag() || ( comments_open() && ! empty( get_comments_number() ) ) ) : ?>
89
+	<?php if (has_tag() || (comments_open() && ! empty(get_comments_number()))) : ?>
90 90
 		<div class="post-tags-wrapper">
91
-			<?php if ( has_tag() ) : ?>
91
+			<?php if (has_tag()) : ?>
92 92
 				<div class="post-tags">
93
-					<span><?php _e('Tagged as:','lsx'); ?></span> <?php echo get_the_tag_list(''); ?>
93
+					<span><?php _e('Tagged as:', 'lsx'); ?></span> <?php echo get_the_tag_list(''); ?>
94 94
 				</div>
95 95
 			<?php endif ?>
96 96
 			
97
-			<?php if ( comments_open() && ! empty( get_comments_number() ) ) : ?>
97
+			<?php if (comments_open() && ! empty(get_comments_number())) : ?>
98 98
 				<div class="post-comments">
99 99
 					<a href="<?php the_permalink() ?>#comments">
100
-						<?php printf( _n( 'One Comment', '%1$s Comments', get_comments_number(), 'lsx' ), number_format_i18n( get_comments_number() ) ) ?>
100
+						<?php printf(_n('One Comment', '%1$s Comments', get_comments_number(), 'lsx'), number_format_i18n(get_comments_number())) ?>
101 101
 					</a>
102 102
 				</div>
103 103
 			<?php endif ?>
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
 
110 110
 	<div class="clearfix"></div>
111 111
 
112
-	<?php edit_post_link( __( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?>
112
+	<?php edit_post_link(__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?>
113 113
 
114
-	<?php if ( !is_singular() && !is_single() ) { // Display full-width divider on Archives ?>
114
+	<?php if ( ! is_singular() && ! is_single()) { // Display full-width divider on Archives ?>
115 115
 		<div class="lsx-breaker"></div>
116 116
 	<?php } ?>
117 117
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
inc/wp_bootstrap_navwalker.php 1 patch
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 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
 class lsx_bootstrap_navwalker extends Walker_Nav_Menu {
5 5
 
@@ -10,15 +10,15 @@  discard block
 block discarded – undo
10 10
 	 * @param string $output Passed by reference. Used to append additional content.
11 11
 	 * @param int $depth Depth of page. Used for padding.
12 12
 	 */
13
-	public function start_lvl( &$output, $depth = 0, $args = array() ) {
14
-		$indent = str_repeat( "\t", $depth );
13
+	public function start_lvl(&$output, $depth = 0, $args = array()) {
14
+		$indent = str_repeat("\t", $depth);
15 15
 		$output .= "\n$indent<ul role=\"menu\" class=\" dropdown-menu\">\n";
16 16
 	}
17 17
 	
18 18
 	/**
19 19
 	 * @param string $item Passed by reference. Used to append additional content.
20 20
 	 */
21
-	public function filter_default_pages( &$item ) {
21
+	public function filter_default_pages(&$item) {
22 22
 		
23 23
 		return $item;
24 24
 	}	
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
 	 * @param int $current_page Menu item ID.
34 34
 	 * @param object $args
35 35
 	 */
36
-	public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
37
-		$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';	
36
+	public function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) {
37
+		$indent = ($depth) ? str_repeat("\t", $depth) : '';	
38 38
 		
39 39
 		/**
40 40
 		 * If this is a default menu being called we need to fix
41 41
 		 * the item object thats coming through.
42 42
 		 */
43
-		if(!isset($item->title)){
43
+		if ( ! isset($item->title)) {
44 44
 			return;
45 45
 		}
46 46
 
@@ -52,63 +52,63 @@  discard block
 block discarded – undo
52 52
 		 * comparison that is not case sensitive. The strcasecmp() function returns
53 53
 		 * a 0 if the strings are equal.
54 54
 		 */
55
-		if ( strcasecmp( $item->attr_title, 'divider' ) == 0 && $depth === 1 ) {
55
+		if (strcasecmp($item->attr_title, 'divider') == 0 && $depth === 1) {
56 56
 			$output .= $indent . '<li role="presentation" class="divider">';
57
-		} else if ( strcasecmp( $item->title, 'divider') == 0 && $depth === 1 ) {
57
+		} else if (strcasecmp($item->title, 'divider') == 0 && $depth === 1) {
58 58
 			$output .= $indent . '<li role="presentation" class="divider">';
59
-		} else if ( strcasecmp( $item->attr_title, 'dropdown-header') == 0 && $depth === 1 ) {
60
-			$output .= $indent . '<li role="presentation" class="dropdown-header">' . esc_attr( $item->title );
61
-		} else if ( strcasecmp($item->attr_title, 'disabled' ) == 0 ) {
62
-			$output .= $indent . '<li role="presentation" class="disabled"><a href="#">' . esc_attr( $item->title ) . '</a>';
59
+		} else if (strcasecmp($item->attr_title, 'dropdown-header') == 0 && $depth === 1) {
60
+			$output .= $indent . '<li role="presentation" class="dropdown-header">' . esc_attr($item->title);
61
+		} else if (strcasecmp($item->attr_title, 'disabled') == 0) {
62
+			$output .= $indent . '<li role="presentation" class="disabled"><a href="#">' . esc_attr($item->title) . '</a>';
63 63
 		} else {
64 64
 
65 65
 			$class_names = $value = '';
66 66
 
67
-			$classes = empty( $item->classes ) ? array() : (array) $item->classes;
67
+			$classes = empty($item->classes) ? array() : (array) $item->classes;
68 68
 			$classes[] = 'menu-item-' . $item->ID;
69 69
 
70
-			$classes = apply_filters( 'lsx_nav_menu_css_class', array_filter( $classes ), $item, $args , $depth );
70
+			$classes = apply_filters('lsx_nav_menu_css_class', array_filter($classes), $item, $args, $depth);
71 71
 			
72
-			$class_names = join( ' ', $classes );
72
+			$class_names = join(' ', $classes);
73 73
 
74
-			if ( $args->has_children )
74
+			if ($args->has_children)
75 75
 				$class_names .= ' dropdown';
76 76
 
77
-			if ( in_array( 'current-menu-item', $classes ) )
77
+			if (in_array('current-menu-item', $classes))
78 78
 				$class_names .= ' active';
79 79
 			
80
-			if ( in_array( 'current-menu-parent', $classes ) )
80
+			if (in_array('current-menu-parent', $classes))
81 81
 				$class_names .= ' active';			
82 82
 			
83 83
 			//Check if this is ment to be a "social" type menu
84
-			$class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
84
+			$class_names = $class_names ? ' class="' . esc_attr($class_names) . '"' : '';
85 85
 
86
-			$id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );
87
-			$id = $id ? ' id="' . esc_attr( $id ) . '"' : '';
86
+			$id = apply_filters('nav_menu_item_id', 'menu-item-' . $item->ID, $item, $args);
87
+			$id = $id ? ' id="' . esc_attr($id) . '"' : '';
88 88
 
89
-			$output .= $indent . '<li' . $id . $value . $class_names .'>';
89
+			$output .= $indent . '<li' . $id . $value . $class_names . '>';
90 90
 
91 91
 			$atts = array();
92
-			$atts['title']  = ! empty( $item->title )	? $item->title	: '';
93
-			$atts['target'] = ! empty( $item->target )	? $item->target	: '';
94
-			$atts['rel']    = ! empty( $item->xfn )		? $item->xfn	: '';
92
+			$atts['title']  = ! empty($item->title) ? $item->title : '';
93
+			$atts['target'] = ! empty($item->target) ? $item->target : '';
94
+			$atts['rel']    = ! empty($item->xfn) ? $item->xfn : '';
95 95
 
96 96
 			// If item has_children add atts to a.
97
-			if ( $args->has_children ) {
98
-				$atts['href']   		= ! empty( $item->url ) ? $item->url : '';
99
-				$atts['data-toggle']	= 'dropdown';
100
-				$atts['class']			= 'dropdown-toggle';
101
-				$atts['aria-haspopup']	= 'true';
97
+			if ($args->has_children) {
98
+				$atts['href'] = ! empty($item->url) ? $item->url : '';
99
+				$atts['data-toggle'] = 'dropdown';
100
+				$atts['class'] = 'dropdown-toggle';
101
+				$atts['aria-haspopup'] = 'true';
102 102
 			} else {
103
-				$atts['href'] = ! empty( $item->url ) ? $item->url : '';
103
+				$atts['href'] = ! empty($item->url) ? $item->url : '';
104 104
 			}
105 105
 
106
-			$atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args );
106
+			$atts = apply_filters('nav_menu_link_attributes', $atts, $item, $args);
107 107
 
108 108
 			$attributes = '';
109
-			foreach ( $atts as $attr => $value ) {
110
-				if ( ! empty( $value ) ) {
111
-					$value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value );
109
+			foreach ($atts as $attr => $value) {
110
+				if ( ! empty($value)) {
111
+					$value = ('href' === $attr) ? esc_url($value) : esc_attr($value);
112 112
 					$attributes .= ' ' . $attr . '="' . $value . '"';
113 113
 				}
114 114
 			}
@@ -122,19 +122,19 @@  discard block
 block discarded – undo
122 122
 			 * if there is a value in the attr_title property. If the attr_title
123 123
 			 * property is NOT null we apply it as the class name for the glyphicon.
124 124
 			 */
125
-			if ( ! empty( $item->attr_title ) ) {
126
-				$item_output .= '<a'. $attributes .'"><span class="glyphicon ' . esc_attr( $item->attr_title ) . '"></span>&nbsp;';
125
+			if ( ! empty($item->attr_title)) {
126
+				$item_output .= '<a' . $attributes . '"><span class="glyphicon ' . esc_attr($item->attr_title) . '"></span>&nbsp;';
127 127
 			} else {
128
-				$item_output .= '<a'. $attributes .'>';
128
+				$item_output .= '<a' . $attributes . '>';
129 129
 			}
130 130
 
131
-			$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
132
-			$item_output .= ( $args->has_children && 0 === $depth ) ? ' <span class="caret"></span></a>' : '</a>';
131
+			$item_output .= $args->link_before . apply_filters('the_title', $item->title, $item->ID) . $args->link_after;
132
+			$item_output .= ($args->has_children && 0 === $depth) ? ' <span class="caret"></span></a>' : '</a>';
133 133
 			$item_output .= $args->after;
134 134
 
135 135
 			
136 136
 			
137
-			$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
137
+			$output .= apply_filters('walker_nav_menu_start_el', $item_output, $item, $depth, $args);
138 138
 		}
139 139
 	}
140 140
   
@@ -158,17 +158,17 @@  discard block
 block discarded – undo
158 158
 	 * @param string $output Passed by reference. Used to append additional content.
159 159
 	 * @return null Null on failure with no changes to parameters.
160 160
 	 */
161
-	public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
162
-        if ( ! $element )
161
+	public function display_element($element, &$children_elements, $max_depth, $depth, $args, &$output) {
162
+        if ( ! $element)
163 163
             return;
164 164
 
165 165
         $id_field = $this->db_fields['id'];
166 166
 
167 167
         // Display this element.
168
-        if ( is_object( $args[0] ) )
169
-           $args[0]->has_children = ! empty( $children_elements[ $element->$id_field ] );
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 );
171
+        parent::display_element($element, $children_elements, $max_depth, $depth, $args, $output);
172 172
     }
173 173
 
174 174
 	/**
@@ -182,20 +182,20 @@  discard block
 block discarded – undo
182 182
 	 * @param array $args passed from the wp_nav_menu function.
183 183
 	 *
184 184
 	 */
185
-	public static function fallback( $args ) {
186
-		if ( current_user_can( 'manage_options' ) ) {
185
+	public static function fallback($args) {
186
+		if (current_user_can('manage_options')) {
187 187
 
188
-			extract( $args );
188
+			extract($args);
189 189
 
190 190
 			$fb_output = null;
191 191
 
192
-			if ( $container ) {
192
+			if ($container) {
193 193
 				$fb_output = '<' . $container;
194 194
 
195
-				if ( $container_id )
195
+				if ($container_id)
196 196
 					$fb_output .= ' id="' . $container_id . '"';
197 197
 
198
-				if ( $container_class )
198
+				if ($container_class)
199 199
 					$fb_output .= ' class="' . $container_class . '"';
200 200
 
201 201
 				$fb_output .= '>';
@@ -203,17 +203,17 @@  discard block
 block discarded – undo
203 203
 
204 204
 			$fb_output .= '<ul';
205 205
 
206
-			if ( $menu_id )
206
+			if ($menu_id)
207 207
 				$fb_output .= ' id="' . $menu_id . '"';
208 208
 
209
-			if ( $menu_class )
209
+			if ($menu_class)
210 210
 				$fb_output .= ' class="' . $menu_class . '"';
211 211
 
212 212
 			$fb_output .= '>';
213
-			$fb_output .= '<li><a href="' . admin_url( 'nav-menus.php' ) . '">'.__('Add a menu','lsx').'</a></li>';
213
+			$fb_output .= '<li><a href="' . admin_url('nav-menus.php') . '">' . __('Add a menu', 'lsx') . '</a></li>';
214 214
 			$fb_output .= '</ul>';
215 215
 
216
-			if ( $container )
216
+			if ($container)
217 217
 				$fb_output .= '</' . $container . '>';
218 218
 
219 219
 			echo $fb_output;
@@ -225,9 +225,9 @@  discard block
 block discarded – undo
225 225
 /**
226 226
  * Add in our custom classes to the menus
227 227
  */
228
-function wpml_nav_language_switcher_fix( $items , $args ) {
229
-	$items = str_replace('menu-item-language-current','menu-item-language-current dropdown',$items);
230
-	$items = str_replace('submenu-languages','submenu-languages dropdown-menu',$items);
228
+function wpml_nav_language_switcher_fix($items, $args) {
229
+	$items = str_replace('menu-item-language-current', 'menu-item-language-current dropdown', $items);
230
+	$items = str_replace('submenu-languages', 'submenu-languages dropdown-menu', $items);
231 231
 	return $items;
232 232
 }
233
-add_filter( 'wp_nav_menu_items', 'wpml_nav_language_switcher_fix', 10, 2 );
233
+add_filter('wp_nav_menu_items', 'wpml_nav_language_switcher_fix', 10, 2);
Please login to merge, or discard this patch.