@@ -10,23 +10,23 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | <?php lsx_content_top(); ?> |
| 12 | 12 | |
| 13 | - <?php if(is_tax()){ ?> |
|
| 13 | + <?php if (is_tax()) { ?> |
|
| 14 | 14 | <div class="entry-content"> |
| 15 | 15 | <?php the_archive_description(); ?> |
| 16 | 16 | </div> |
| 17 | 17 | <?php } ?> |
| 18 | 18 | |
| 19 | 19 | <?php |
| 20 | - if ( post_type_exists( 'jetpack-portfolio' ) && have_posts() ) : |
|
| 20 | + if (post_type_exists('jetpack-portfolio') && have_posts()) : |
|
| 21 | 21 | ?> |
| 22 | 22 | |
| 23 | - <?php if(!is_tax()){ lsx_portfolio_sorter(); } ?> |
|
| 23 | + <?php if ( ! is_tax()) { lsx_portfolio_sorter(); } ?> |
|
| 24 | 24 | |
| 25 | 25 | <div class="filter-items-wrapper lsx-portfolio-wrapper"> |
| 26 | 26 | <div id="portfolio-infinite-scroll-wrapper" class="filter-items-container lsx-portfolio masonry"> |
| 27 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 27 | + <?php while (have_posts()) : the_post(); ?> |
|
| 28 | 28 | |
| 29 | - <?php get_template_part( 'content', 'portfolio' ); ?> |
|
| 29 | + <?php get_template_part('content', 'portfolio'); ?> |
|
| 30 | 30 | |
| 31 | 31 | <?php endwhile; ?> |
| 32 | 32 | </div> |
@@ -40,17 +40,17 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | <section class="no-results not-found"> |
| 42 | 42 | <header class="page-header"> |
| 43 | - <h1 class="page-title"><?php _e( 'Nothing Found', 'lsx' ); ?></h1> |
|
| 43 | + <h1 class="page-title"><?php _e('Nothing Found', 'lsx'); ?></h1> |
|
| 44 | 44 | </header><!-- .page-header --> |
| 45 | 45 | |
| 46 | 46 | <div class="page-content"> |
| 47 | - <?php if ( current_user_can( 'publish_posts' ) ) : ?> |
|
| 47 | + <?php if (current_user_can('publish_posts')) : ?> |
|
| 48 | 48 | |
| 49 | - <p><?php printf( __( 'Ready to publish your first project? <a href="%1$s">Get started here</a>.', 'lsx' ), esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ); ?></p> |
|
| 49 | + <p><?php printf(__('Ready to publish your first project? <a href="%1$s">Get started here</a>.', 'lsx'), esc_url(admin_url('post-new.php?post_type=jetpack-portfolio'))); ?></p> |
|
| 50 | 50 | |
| 51 | 51 | <?php else : ?> |
| 52 | 52 | |
| 53 | - <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
| 53 | + <p><?php _e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx'); ?></p> |
|
| 54 | 54 | <?php get_search_form(); ?> |
| 55 | 55 | |
| 56 | 56 | <?php endif; ?> |
@@ -19,12 +19,12 @@ 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 && !is_post_type_archive('tribe_events')){ |
|
| 25 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
| 26 | + $layout = apply_filters('lsx_layout', $layout); |
|
| 27 | + if ('1c' === $layout && ! is_post_type_archive('tribe_events')) { |
|
| 28 | 28 | lsx_breadcrumbs(); |
| 29 | 29 | } |
| 30 | 30 | ?> |
@@ -33,14 +33,14 @@ discard block |
||
| 33 | 33 | ?> |
| 34 | 34 | |
| 35 | 35 | <?php /* Start the Loop */ ?> |
| 36 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 36 | + <?php while (have_posts()) : the_post(); ?> |
|
| 37 | 37 | |
| 38 | 38 | <?php |
| 39 | 39 | /* Include the Post-Format-specific template for the content. |
| 40 | 40 | * If you want to override this in a child theme, then include a file |
| 41 | 41 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
| 42 | 42 | */ |
| 43 | - get_template_part( 'content', get_post_format() ); |
|
| 43 | + get_template_part('content', get_post_format()); |
|
| 44 | 44 | ?> |
| 45 | 45 | |
| 46 | 46 | <?php endwhile; ?> |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | <?php else : ?> |
| 51 | 51 | |
| 52 | - <?php get_template_part( 'content', 'none' ); ?> |
|
| 52 | + <?php get_template_part('content', 'none'); ?> |
|
| 53 | 53 | |
| 54 | 54 | <?php endif; ?> |
| 55 | 55 | |
@@ -60,12 +60,12 @@ |
||
| 60 | 60 | <strong><?php _e( 'Get your Tourism Establishment Online', 'lsx' ); ?></strong> |
| 61 | 61 | |
| 62 | 62 | <?php |
| 63 | - if(is_singular('landing-page')){ |
|
| 64 | - $email_address = get_post_meta(get_the_ID(),'email_address',true); |
|
| 65 | - if(false === $email_address){ |
|
| 63 | + if(is_singular('landing-page')){ |
|
| 64 | + $email_address = get_post_meta(get_the_ID(),'email_address',true); |
|
| 65 | + if(false === $email_address){ |
|
| 66 | 66 | $email_address = '[email protected]'; |
| 67 | 67 | } |
| 68 | - } ?> |
|
| 68 | + } ?> |
|
| 69 | 69 | |
| 70 | 70 | <span class="email-address"><?php _e( 'Questions? Email Us: ', 'lsx' ); ?><a href="mailto:<?php echo $email_address; ?>"><?php echo $email_address; ?></a></span> |
| 71 | 71 | </div> |
@@ -12,16 +12,16 @@ discard block |
||
| 12 | 12 | <html <?php language_attributes(); ?>> |
| 13 | 13 | <head> |
| 14 | 14 | <?php lsx_head_top(); ?> |
| 15 | -<meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
| 15 | +<meta charset="<?php bloginfo('charset'); ?>"> |
|
| 16 | 16 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
| 17 | -<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
|
| 17 | +<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> |
|
| 18 | 18 | <?php lsx_head_bottom(); ?> |
| 19 | 19 | <?php wp_head(); ?> |
| 20 | 20 | </head> |
| 21 | -<body <?php body_class( 'lsx' ); ?>> |
|
| 21 | +<body <?php body_class('lsx'); ?>> |
|
| 22 | 22 | <?php lsx_body_top(); ?> |
| 23 | 23 | |
| 24 | -<?php if ( !is_singular('landing-page') ) { ?> |
|
| 24 | +<?php if ( ! is_singular('landing-page')) { ?> |
|
| 25 | 25 | |
| 26 | 26 | <?php lsx_header_before(); ?> |
| 27 | 27 | <header class="<?php lsx_header_classes(); ?>"> |
@@ -57,17 +57,17 @@ discard block |
||
| 57 | 57 | </div> |
| 58 | 58 | |
| 59 | 59 | <div class="header-links"> |
| 60 | - <strong><?php _e( 'Get your Tourism Establishment Online', 'lsx' ); ?></strong> |
|
| 60 | + <strong><?php _e('Get your Tourism Establishment Online', 'lsx'); ?></strong> |
|
| 61 | 61 | |
| 62 | 62 | <?php |
| 63 | - if(is_singular('landing-page')){ |
|
| 64 | - $email_address = get_post_meta(get_the_ID(),'email_address',true); |
|
| 65 | - if(false === $email_address){ |
|
| 63 | + if (is_singular('landing-page')) { |
|
| 64 | + $email_address = get_post_meta(get_the_ID(), 'email_address', true); |
|
| 65 | + if (false === $email_address) { |
|
| 66 | 66 | $email_address = '[email protected]'; |
| 67 | 67 | } |
| 68 | 68 | } ?> |
| 69 | 69 | |
| 70 | - <span class="email-address"><?php _e( 'Questions? Email Us: ', 'lsx' ); ?><a href="mailto:<?php echo $email_address; ?>"><?php echo $email_address; ?></a></span> |
|
| 70 | + <span class="email-address"><?php _e('Questions? Email Us: ', 'lsx'); ?><a href="mailto:<?php echo $email_address; ?>"><?php echo $email_address; ?></a></span> |
|
| 71 | 71 | </div> |
| 72 | 72 | </div> |
| 73 | 73 | |
@@ -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 | |
@@ -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 ( $layout !== '1c' ) : ?> |
|
| 29 | + if ($layout !== '1c') : ?> |
|
| 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 _e( 'Archives', 'lsx' ); ?></h1> |
|
| 56 | + <h1 class="widget-title"><?php _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 _e( 'Meta', 'lsx' ); ?></h1> |
|
| 63 | + <h1 class="widget-title"><?php _e('Meta', 'lsx'); ?></h1> |
|
| 64 | 64 | <ul> |
| 65 | 65 | <?php wp_register(); ?> |
| 66 | 66 | <li><?php wp_loginout(); ?></li> |
@@ -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 ( $layout !== '1c' ) : ?> |
|
| 19 | + if ($layout !== '1c') : ?> |
|
| 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 _e('Categories','lsx'); ?></h2> |
|
| 26 | + <h2><?php _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,7 +13,7 @@ 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 | 18 | <?php lsx_entry_before(); ?> |
| 19 | 19 | |
@@ -22,28 +22,28 @@ discard block |
||
| 22 | 22 | <?php lsx_entry_top(); ?> |
| 23 | 23 | |
| 24 | 24 | <div class="entry-content"> |
| 25 | - <h2><?php _e( 'The Last 30 Posts', 'lsx' ); ?></h3> |
|
| 25 | + <h2><?php _e('The Last 30 Posts', 'lsx'); ?></h3> |
|
| 26 | 26 | <ul> |
| 27 | - <?php $loop = new WP_Query( array( 'posts_per_page' => 30 ) ); ?> |
|
| 28 | - <?php if ( $loop->have_posts() ) { while ( $loop->have_posts() ) { $loop->the_post(); ?> |
|
| 27 | + <?php $loop = new WP_Query(array('posts_per_page' => 30)); ?> |
|
| 28 | + <?php if ($loop->have_posts()) { while ($loop->have_posts()) { $loop->the_post(); ?> |
|
| 29 | 29 | <?php $loop->is_home = false; ?> |
| 30 | - <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo $post->comment_count; ?> <?php _e( 'comments', 'lsx' ); ?></li> |
|
| 30 | + <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time(get_option('date_format')); ?> - <?php echo $post->comment_count; ?> <?php _e('comments', 'lsx'); ?></li> |
|
| 31 | 31 | <?php } } wp_reset_postdata(); ?> |
| 32 | 32 | </ul> |
| 33 | 33 | |
| 34 | - <h2><?php _e( 'Categories', 'lsx' ); ?></h3> |
|
| 34 | + <h2><?php _e('Categories', 'lsx'); ?></h3> |
|
| 35 | 35 | |
| 36 | 36 | <ul> |
| 37 | - <?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?> |
|
| 37 | + <?php wp_list_categories('title_li=&hierarchical=0&show_count=1'); ?> |
|
| 38 | 38 | </ul> |
| 39 | 39 | |
| 40 | - <h2><?php _e( 'Monthly Archives', 'lsx' ); ?></h3> |
|
| 40 | + <h2><?php _e('Monthly Archives', 'lsx'); ?></h3> |
|
| 41 | 41 | |
| 42 | 42 | <ul> |
| 43 | - <?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?> |
|
| 43 | + <?php wp_get_archives('type=monthly&show_post_count=1'); ?> |
|
| 44 | 44 | </ul> |
| 45 | 45 | </div><!-- .entry-content --> |
| 46 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
| 46 | + <?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
| 47 | 47 | |
| 48 | 48 | <?php lsx_entry_bottom(); ?> |
| 49 | 49 | |
@@ -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 | ?> |