@@ -21,9 +21,9 @@ |
||
| 21 | 21 | |
| 22 | 22 | <?php lsx_content_top(); ?> |
| 23 | 23 | |
| 24 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 24 | + <?php while (have_posts()) : the_post(); ?> |
|
| 25 | 25 | |
| 26 | - <?php get_template_part( 'content', 'portfolio-single' ); ?> |
|
| 26 | + <?php get_template_part('content', 'portfolio-single'); ?> |
|
| 27 | 27 | |
| 28 | 28 | <?php endwhile; ?> |
| 29 | 29 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | if('posts' == $show_on_front && is_home()){ |
| 24 | 24 | $sidebar = 'home'; |
| 25 | - }else{ |
|
| 25 | + } else{ |
|
| 26 | 26 | $sidebar = 'sidebar-1'; |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -38,9 +38,12 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary"> |
| 40 | 40 | |
| 41 | - <?php else : ?> |
|
| 41 | + <?php else { |
|
| 42 | + : ?> |
|
| 42 | 43 | |
| 43 | - <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary"> |
|
| 44 | + <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); |
|
| 45 | +} |
|
| 46 | +?>" role="complementary"> |
|
| 44 | 47 | |
| 45 | 48 | <?php endif ; ?> |
| 46 | 49 | |
@@ -6,8 +6,8 @@ discard block |
||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | // Allow Plugins and themes to disable the sidebar incase of very customized layouts. |
| 9 | -$sidebar_enabled = apply_filters('lsx_sidebar_enable',true); |
|
| 10 | -if(true !== $sidebar_enabled){return true;} |
|
| 9 | +$sidebar_enabled = apply_filters('lsx_sidebar_enable', true); |
|
| 10 | +if (true !== $sidebar_enabled) {return true; } |
|
| 11 | 11 | ?> |
| 12 | 12 | <?php |
| 13 | 13 | $show_on_front = get_option('show_on_front'); |
@@ -17,16 +17,16 @@ discard block |
||
| 17 | 17 | $sidebar = 'home'; |
| 18 | 18 | } else { |
| 19 | 19 | |
| 20 | - $layout = get_theme_mod('lsx_layout','2cr'); |
|
| 21 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
| 20 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
| 21 | + $layout = apply_filters('lsx_layout', $layout); |
|
| 22 | 22 | |
| 23 | - if('posts' == $show_on_front && is_home()){ |
|
| 23 | + if ('posts' == $show_on_front && is_home()) { |
|
| 24 | 24 | $sidebar = 'home'; |
| 25 | - }else{ |
|
| 25 | + } else { |
|
| 26 | 26 | $sidebar = 'sidebar-1'; |
| 27 | 27 | } |
| 28 | 28 | } |
| 29 | - if ( '1c' !== $layout ) : ?> |
|
| 29 | + if ('1c' !== $layout) : ?> |
|
| 30 | 30 | |
| 31 | 31 | <?php lsx_sidebars_before(); ?> |
| 32 | 32 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | <div id="secondary" class="widget-area <?php echo esc_attr(lsx_home_sidebar_class()); ?>" role="complementary"> |
| 36 | 36 | |
| 37 | - <?php elseif ( is_page_template('page-templates/template-blog.php') ) : ?> |
|
| 37 | + <?php elseif (is_page_template('page-templates/template-blog.php')) : ?> |
|
| 38 | 38 | |
| 39 | 39 | <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary"> |
| 40 | 40 | |
@@ -42,25 +42,25 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary"> |
| 44 | 44 | |
| 45 | - <?php endif ; ?> |
|
| 45 | + <?php endif; ?> |
|
| 46 | 46 | |
| 47 | 47 | <?php lsx_sidebar_top(); ?> |
| 48 | 48 | |
| 49 | - <?php if ( ! dynamic_sidebar( $sidebar ) ) : ?> |
|
| 49 | + <?php if ( ! dynamic_sidebar($sidebar)) : ?> |
|
| 50 | 50 | |
| 51 | 51 | <aside id="search" class="widget widget_search"> |
| 52 | 52 | <?php get_search_form(); ?> |
| 53 | 53 | </aside> |
| 54 | 54 | |
| 55 | 55 | <aside id="archives" class="widget"> |
| 56 | - <h1 class="widget-title"><?php esc_attr_e( 'Archives', 'lsx' ); ?></h1> |
|
| 56 | + <h1 class="widget-title"><?php esc_attr_e('Archives', 'lsx'); ?></h1> |
|
| 57 | 57 | <ul> |
| 58 | - <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> |
|
| 58 | + <?php wp_get_archives(array('type' => 'monthly')); ?> |
|
| 59 | 59 | </ul> |
| 60 | 60 | </aside> |
| 61 | 61 | |
| 62 | 62 | <aside id="meta" class="widget"> |
| 63 | - <h1 class="widget-title"><?php esc_attr_e( 'Meta', 'lsx' ); ?></h1> |
|
| 63 | + <h1 class="widget-title"><?php esc_attr_e('Meta', 'lsx'); ?></h1> |
|
| 64 | 64 | <ul> |
| 65 | 65 | <?php wp_register(); ?> |
| 66 | 66 | <li><?php wp_loginout(); ?></li> |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | $layout = get_theme_mod('lsx_layout','2cr'); |
| 13 | 13 | if('posts' == $show_on_front && is_home()){ |
| 14 | 14 | $sidebar = 'home'; |
| 15 | - }else{ |
|
| 15 | + } else{ |
|
| 16 | 16 | $sidebar = 'sidebar-1'; |
| 17 | 17 | } |
| 18 | 18 | |
@@ -9,21 +9,21 @@ |
||
| 9 | 9 | <?php |
| 10 | 10 | $show_on_front = get_option('show_on_front'); |
| 11 | 11 | |
| 12 | - $layout = get_theme_mod('lsx_layout','2cr'); |
|
| 13 | - if('posts' == $show_on_front && is_home()){ |
|
| 12 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
| 13 | + if ('posts' == $show_on_front && is_home()) { |
|
| 14 | 14 | $sidebar = 'home'; |
| 15 | - }else{ |
|
| 15 | + } else { |
|
| 16 | 16 | $sidebar = 'sidebar-1'; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | - if ( '1c' !== $layout ) : ?> |
|
| 19 | + if ('1c' !== $layout) : ?> |
|
| 20 | 20 | |
| 21 | 21 | <?php lsx_sidebars_before(); ?> |
| 22 | 22 | |
| 23 | 23 | <div id="secondary" class="widget-area <?php echo esc_attr(lsx_sidebar_class()); ?>" role="complementary"> |
| 24 | 24 | |
| 25 | 25 | <?php lsx_sidebar_top(); ?> |
| 26 | - <h2><?php esc_attr_e( 'Categories', 'lsx' ); ?></h2> |
|
| 26 | + <h2><?php esc_attr_e('Categories', 'lsx'); ?></h2> |
|
| 27 | 27 | <aside id="categories" class="widget widget_categories"> |
| 28 | 28 | <?php echo wp_tag_cloud(array('taxonomy'=>'category')); ?> |
| 29 | 29 | </aside> |
@@ -13,9 +13,9 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | <?php lsx_content_top(); ?> |
| 15 | 15 | |
| 16 | - <?php if(have_posts() && !class_exists('Lsx_Banners')) : ?> |
|
| 16 | + <?php if (have_posts() && ! class_exists('Lsx_Banners')) : ?> |
|
| 17 | 17 | |
| 18 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 18 | + <?php while (have_posts()) : the_post(); ?> |
|
| 19 | 19 | |
| 20 | 20 | <?php lsx_entry_before(); ?> |
| 21 | 21 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | <div id="home-widgets"> |
| 38 | 38 | |
| 39 | - <?php if ( ! dynamic_sidebar( 'sidebar-home' ) ) : ?> |
|
| 39 | + <?php if ( ! dynamic_sidebar('sidebar-home')) : ?> |
|
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | <?php endif; // end sidebar widget area ?> |
@@ -13,9 +13,9 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | <?php lsx_content_top(); ?> |
| 15 | 15 | |
| 16 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 16 | + <?php while (have_posts()) : the_post(); ?> |
|
| 17 | 17 | |
| 18 | - <?php get_template_part( 'content', 'page' ); ?> |
|
| 18 | + <?php get_template_part('content', 'page'); ?> |
|
| 19 | 19 | |
| 20 | 20 | <?php endwhile; // end of the loop. ?> |
| 21 | 21 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | <?php |
| 25 | 25 | // If comments are open or we have at least one comment, load up the comment template |
| 26 | - if ( comments_open() || '0' != get_comments_number() ) : |
|
| 26 | + if (comments_open() || '0' != get_comments_number()) : |
|
| 27 | 27 | comments_template(); |
| 28 | 28 | endif; |
| 29 | 29 | ?> |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | |
| 8 | 8 | |
| 9 | 9 | $type_class = "filter-item column-3 "; |
| 10 | -$types = get_the_terms( get_the_ID(), 'jetpack-portfolio-type'); |
|
| 10 | +$types = get_the_terms(get_the_ID(), 'jetpack-portfolio-type'); |
|
| 11 | 11 | if ($types) { |
| 12 | 12 | foreach ($types as $type) { |
| 13 | 13 | $type_class .= $type->slug . " "; |
@@ -18,13 +18,13 @@ discard block |
||
| 18 | 18 | <article id="post-<?php the_ID(); ?>" data-column="<?php echo 3; ?>" <?php post_class($type_class); ?>> |
| 19 | 19 | <div class="portfolio-content-wrapper"> |
| 20 | 20 | <div class="portfolio-thumbnail"> |
| 21 | - <?php if ( has_post_thumbnail() ) : ?> |
|
| 21 | + <?php if (has_post_thumbnail()) : ?> |
|
| 22 | 22 | <a href="<?php the_permalink(); ?>"> |
| 23 | - <?php lsx_thumbnail( 'lsx-thumbnail-wide' ); ?> |
|
| 23 | + <?php lsx_thumbnail('lsx-thumbnail-wide'); ?> |
|
| 24 | 24 | </a> |
| 25 | 25 | <?php endif; ?> |
| 26 | 26 | </div> |
| 27 | 27 | |
| 28 | - <?php the_title( '<a class="portfolio-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark"><span>', '</span></a>' ); ?> |
|
| 28 | + <?php the_title('<a class="portfolio-title" href="' . esc_url(get_permalink()) . '" rel="bookmark"><span>', '</span></a>'); ?> |
|
| 29 | 29 | </div> |
| 30 | 30 | </article> |
| 31 | 31 | \ No newline at end of file |
@@ -44,9 +44,12 @@ |
||
| 44 | 44 | |
| 45 | 45 | <?php lsx_paging_nav(); ?> |
| 46 | 46 | |
| 47 | - <?php else : ?> |
|
| 47 | + <?php else { |
|
| 48 | + : ?> |
|
| 48 | 49 | |
| 49 | - <?php get_template_part( 'content', 'none' ); ?> |
|
| 50 | + <?php get_template_part( 'content', 'none' ); |
|
| 51 | +} |
|
| 52 | +?> |
|
| 50 | 53 | |
| 51 | 54 | <?php endif; ?> |
| 52 | 55 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | <?php lsx_content_wrap_before(); ?> |
| 13 | 13 | |
| 14 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 14 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 15 | 15 | |
| 16 | 16 | <?php lsx_content_before(); ?> |
| 17 | 17 | |
@@ -19,25 +19,25 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | <?php lsx_content_top(); ?> |
| 21 | 21 | |
| 22 | - <?php if ( have_posts() ) : ?> |
|
| 22 | + <?php if (have_posts()) : ?> |
|
| 23 | 23 | |
| 24 | 24 | <?php |
| 25 | - $layout = get_theme_mod('lsx_layout','2cr'); |
|
| 26 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
| 27 | - if('1c' === $layout){ |
|
| 25 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
| 26 | + $layout = apply_filters('lsx_layout', $layout); |
|
| 27 | + if ('1c' === $layout) { |
|
| 28 | 28 | lsx_breadcrumbs(); |
| 29 | 29 | } |
| 30 | 30 | ?> |
| 31 | 31 | |
| 32 | 32 | <?php /* Start the Loop */ ?> |
| 33 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 33 | + <?php while (have_posts()) : the_post(); ?> |
|
| 34 | 34 | |
| 35 | 35 | <?php |
| 36 | 36 | /* Include the Post-Format-specific template for the content. |
| 37 | 37 | * If you want to override this in a child theme, then include a file |
| 38 | 38 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
| 39 | 39 | */ |
| 40 | - get_template_part( 'content', get_post_format() ); |
|
| 40 | + get_template_part('content', get_post_format()); |
|
| 41 | 41 | ?> |
| 42 | 42 | |
| 43 | 43 | <?php endwhile; ?> |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | <?php else : ?> |
| 48 | 48 | |
| 49 | - <?php get_template_part( 'content', 'none' ); ?> |
|
| 49 | + <?php get_template_part('content', 'none'); ?> |
|
| 50 | 50 | |
| 51 | 51 | <?php endif; ?> |
| 52 | 52 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | if(has_nav_menu('footer-menu')){ |
| 26 | 26 | wp_nav_menu(array('theme_location' => 'footer-menu')); |
| 27 | 27 | } |
| 28 | - }else{ |
|
| 28 | + } else{ |
|
| 29 | 29 | if(has_nav_menu('footer_logged_in')){ |
| 30 | 30 | wp_nav_menu(array('theme_location' => 'footer_logged_in')); |
| 31 | 31 | } |
@@ -7,7 +7,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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( esc_html__( '© %1$s %2$s All Rights Reserved.', 'lsx' ), esc_html( date_i18n( 'Y' ) ), esc_html( 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(esc_html__('© %1$s %2$s All Rights Reserved.', 'lsx'), esc_html(date_i18n('Y')), esc_html(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 |
||
| 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( esc_html__( '© %1$s %2$s All Rights Reserved.', 'lsx' ), esc_html( date_i18n( 'Y' ) ), esc_html( 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(esc_html__('© %1$s %2$s All Rights Reserved.', 'lsx'), esc_html(date_i18n('Y')), esc_html(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 } ?> |
@@ -16,15 +16,15 @@ |
||
| 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 | |