| @@ -23,9 +23,12 @@ | ||
| 23 | 23 | <p><?php esc_html_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 | - <?php else : ?> | |
| 26 | +		<?php else { | |
| 27 | + : ?> | |
| 27 | 28 | |
| 28 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> | |
| 29 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); | |
| 30 | +} | |
| 31 | +?></p> | |
| 29 | 32 | <?php get_search_form(); ?> | 
| 30 | 33 | |
| 31 | 34 | <?php endif; ?> | 
| @@ -70,14 +70,20 @@ discard block | ||
| 70 | 70 | <h1 class="entry-title"> | 
| 71 | 71 | <?php if ( has_post_thumbnail() ) : ?> | 
| 72 | 72 | <a href="<?php echo esc_url( $archive_link ); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ); ?>"></a> | 
| 73 | - <?php else : ?> | |
| 74 | - <a href="<?php echo esc_url( $archive_link ); ?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a> | |
| 73 | +					<?php else { | |
| 74 | + : ?> | |
| 75 | + <a href="<?php echo esc_url( $archive_link ); | |
| 76 | +} | |
| 77 | +?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a> | |
| 75 | 78 | <?php endif; ?> | 
| 76 | 79 | |
| 77 | 80 | <?php if ( has_post_format( array( 'link' ) ) ) : ?> | 
| 78 | 81 | <a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> | 
| 79 | - <?php else : ?> | |
| 80 | - <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> | |
| 82 | +					<?php else { | |
| 83 | + : ?> | |
| 84 | + <a href="<?php the_permalink(); | |
| 85 | +} | |
| 86 | +?>" rel="bookmark"><?php the_title(); ?></a> | |
| 81 | 87 | <?php endif; ?> | 
| 82 | 88 | |
| 83 | 89 | <?php if ( is_sticky() ) : ?> | 
| @@ -103,11 +109,13 @@ discard block | ||
| 103 | 109 | <?php the_content(); ?> | 
| 104 | 110 | </div><!-- .entry-content --> | 
| 105 | 111 | |
| 106 | - <?php else : ?> | |
| 112 | +				<?php else { | |
| 113 | + : ?> | |
| 107 | 114 | |
| 108 | 115 | <div class="entry-content"> | 
| 109 | 116 | <?php | 
| 110 | 117 | the_content(); | 
| 118 | +} | |
| 111 | 119 | |
| 112 | 120 | wp_link_pages( array( | 
| 113 | 121 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', | 
| @@ -20,7 +20,10 @@ | ||
| 20 | 20 | <div class="col-sm-12"> | 
| 21 | 21 | <?php lsx_footer_top(); ?> | 
| 22 | 22 | |
| 23 | - <p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) echo 'credit-float'; ?>"> | |
| 23 | +						<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) { | |
| 24 | + echo 'credit-float'; | |
| 25 | +} | |
| 26 | +?>"> | |
| 24 | 27 | <?php | 
| 25 | 28 | printf( | 
| 26 | 29 | /* Translators: 1: current year, 2: blog name */ | 
| @@ -31,9 +31,12 @@ | ||
| 31 | 31 | |
| 32 | 32 | <?php lsx_paging_nav(); ?> | 
| 33 | 33 | |
| 34 | - <?php else : ?> | |
| 34 | +		<?php else { | |
| 35 | + : ?> | |
| 35 | 36 | |
| 36 | - <?php get_template_part( 'partials/content', 'none' ); ?> | |
| 37 | + <?php get_template_part( 'partials/content', 'none' ); | |
| 38 | +} | |
| 39 | +?> | |
| 37 | 40 | |
| 38 | 41 | <?php endif; ?> | 
| 39 | 42 | |
| @@ -21,7 +21,7 @@ | ||
| 21 | 21 | * @param mixed $value The value to sanitize. | 
| 22 | 22 | * @param mixed $setting The setting for which the sanitizing is occurring. | 
| 23 | 23 | * @return mixed The sanitized value. | 
| 24 | - */ | |
| 24 | + */ | |
| 25 | 25 |  	function lsx_sanitize_choices( $value, $setting ) { | 
| 26 | 26 |  		if ( is_object( $setting ) ) { | 
| 27 | 27 | $setting = $setting->id; | 
| @@ -93,14 +93,17 @@ | ||
| 93 | 93 | |
| 94 | 94 | $class_names = join( ' ', $classes ); | 
| 95 | 95 | |
| 96 | - if ( $args->has_children ) | |
| 97 | - $class_names .= ' dropdown'; | |
| 96 | +				if ( $args->has_children ) { | |
| 97 | + $class_names .= ' dropdown'; | |
| 98 | + } | |
| 98 | 99 | |
| 99 | - if ( in_array( 'current-menu-item', $classes ) ) | |
| 100 | - $class_names .= ' active'; | |
| 100 | +				if ( in_array( 'current-menu-item', $classes ) ) { | |
| 101 | + $class_names .= ' active'; | |
| 102 | + } | |
| 101 | 103 | |
| 102 | - if ( in_array( 'current-menu-parent', $classes ) ) | |
| 103 | - $class_names .= ' active'; | |
| 104 | +				if ( in_array( 'current-menu-parent', $classes ) ) { | |
| 105 | + $class_names .= ' active'; | |
| 106 | + } | |
| 104 | 107 | |
| 105 | 108 | //Check if this is ment to be a "social" type menu | 
| 106 | 109 | $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : ''; | 
| @@ -31,9 +31,12 @@ | ||
| 31 | 31 | |
| 32 | 32 | <?php lsx_paging_nav(); ?> | 
| 33 | 33 | |
| 34 | - <?php else : ?> | |
| 34 | +		<?php else { | |
| 35 | + : ?> | |
| 35 | 36 | |
| 36 | - <?php get_template_part( 'partials/content', 'none' ); ?> | |
| 37 | + <?php get_template_part( 'partials/content', 'none' ); | |
| 38 | +} | |
| 39 | +?> | |
| 37 | 40 | |
| 38 | 41 | <?php endif; ?> | 
| 39 | 42 | |