| @@ -52,7 +52,6 @@ | ||
| 52 | 52 | * @param string $output Passed by reference. Used to append additional content. | 
| 53 | 53 | * @param object $item Menu item data object. | 
| 54 | 54 | * @param int $depth Depth of menu item. Used for padding. | 
| 55 | - * @param int $current_page Menu item ID. | |
| 56 | 55 | * @param object $args | 
| 57 | 56 | */ | 
| 58 | 57 |  		public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { | 
| @@ -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 ) . '"' : ''; | 
| @@ -159,6 +159,9 @@ | ||
| 159 | 159 | return self::$noscripts[ (int) $match[1] ]; | 
| 160 | 160 | } | 
| 161 | 161 | |
| 162 | + /** | |
| 163 | + * @param string $new_class | |
| 164 | + */ | |
| 162 | 165 |  		static function add_class( $html_string = '', $new_class ) { | 
| 163 | 166 | $pattern = '/class=[\'"]([^\'"]*)[\'"]/'; | 
| 164 | 167 | |
| @@ -156,6 +156,7 @@ discard block | ||
| 156 | 156 | * | 
| 157 | 157 | * @package lsx | 
| 158 | 158 | * @subpackage extras | 
| 159 | + * @param string $size | |
| 159 | 160 | */ | 
| 160 | 161 |  	function lsx_get_thumbnail( $size, $image_src = false ) { | 
| 161 | 162 |  		if ( false === $image_src ) { | 
| @@ -220,6 +221,7 @@ discard block | ||
| 220 | 221 | * | 
| 221 | 222 | * @package lsx | 
| 222 | 223 | * @subpackage extras | 
| 224 | + * @param boolean $image_src | |
| 223 | 225 | */ | 
| 224 | 226 |  	function lsx_get_attachment_id_from_src( $image_src ) { | 
| 225 | 227 | $post_id = wp_cache_get( $image_src, 'lsx_get_attachment_id_from_src' ); | 
| @@ -17,6 +17,7 @@ | ||
| 17 | 17 | * | 
| 18 | 18 | * @package lsx | 
| 19 | 19 | * @subpackage layout | 
| 20 | + * @param string $class | |
| 20 | 21 | */ | 
| 21 | 22 |  	function lsx_layout_selector( $class, $area = 'site' ) { | 
| 22 | 23 | $return_class = ''; | 
| @@ -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 | |
| @@ -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 | |