@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | <?php lsx_content_wrap_before(); ?> |
| 16 | 16 | |
| 17 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 17 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 18 | 18 | |
| 19 | 19 | <?php lsx_content_before(); ?> |
| 20 | 20 | |
@@ -22,9 +22,9 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | <?php lsx_content_top(); ?> |
| 24 | 24 | |
| 25 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 25 | + <?php while (have_posts()) : the_post(); ?> |
|
| 26 | 26 | |
| 27 | - <?php get_template_part( 'content', get_post_type() ); ?> |
|
| 27 | + <?php get_template_part('content', get_post_type()); ?> |
|
| 28 | 28 | |
| 29 | 29 | <?php endwhile; // end of the loop. ?> |
| 30 | 30 | |
@@ -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 esc_html_e( 'Nothing Found', 'lsx' ); ?></h1> |
|
| 43 | + <h1 class="page-title"><?php esc_html_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 esc_html_e( 'Ready to publish your first project?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p> |
|
| 49 | + <p><?php esc_html_e('Ready to publish your first project?', 'lsx'); ?> <a href="<?php echo esc_url(admin_url('post-new.php?post_type=jetpack-portfolio')) ?>"><?php esc_html_e('Get started here', 'lsx'); ?></a></p> |
|
| 50 | 50 | |
| 51 | 51 | <?php else : ?> |
| 52 | 52 | |
| 53 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
| 53 | + <p><?php esc_html_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; ?> |
@@ -36,11 +36,14 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | <?php lsx_paging_nav(); ?> |
| 38 | 38 | |
| 39 | - <?php else : ?> |
|
| 39 | + <?php else { |
|
| 40 | + : ?> |
|
| 40 | 41 | |
| 41 | 42 | <section class="no-results not-found"> |
| 42 | 43 | <header class="page-header"> |
| 43 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1> |
|
| 44 | + <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); |
|
| 45 | +} |
|
| 46 | +?></h1> |
|
| 44 | 47 | </header><!-- .page-header --> |
| 45 | 48 | |
| 46 | 49 | <div class="page-content"> |
@@ -48,9 +51,12 @@ discard block |
||
| 48 | 51 | |
| 49 | 52 | <p><?php esc_html_e( 'Ready to publish your first project?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p> |
| 50 | 53 | |
| 51 | - <?php else : ?> |
|
| 54 | + <?php else { |
|
| 55 | + : ?> |
|
| 52 | 56 | |
| 53 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
| 57 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); |
|
| 58 | +} |
|
| 59 | +?></p> |
|
| 54 | 60 | <?php get_search_form(); ?> |
| 55 | 61 | |
| 56 | 62 | <?php endif; ?> |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | |
| 6 | 6 | <?php lsx_content_wrap_before(); ?> |
| 7 | 7 | |
| 8 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 8 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 9 | 9 | |
| 10 | 10 | <?php lsx_content_before(); ?> |
| 11 | 11 | |
@@ -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 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | <?php lsx_sitemap_custom_post_type(); ?> |
| 29 | 29 | |
| 30 | 30 | </div><!-- .entry-content --> |
| 31 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
| 31 | + <?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
| 32 | 32 | |
| 33 | 33 | <?php lsx_entry_bottom(); ?> |
| 34 | 34 | |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | |
| 6 | 6 | <?php lsx_content_wrap_before(); ?> |
| 7 | 7 | |
| 8 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 8 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 9 | 9 | |
| 10 | 10 | <?php lsx_content_before(); ?> |
| 11 | 11 | |
@@ -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 | |
@@ -7,22 +7,22 @@ |
||
| 7 | 7 | |
| 8 | 8 | get_header(); ?> |
| 9 | 9 | |
| 10 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 10 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 11 | 11 | <main id="main" class="site-main"> |
| 12 | 12 | |
| 13 | 13 | <section class="error-404 not-found"> |
| 14 | 14 | <header class="page-header"> |
| 15 | - <h1 class="page-title"><?php esc_html_e( 'Whoops!', 'lsx' ); ?></h1> |
|
| 15 | + <h1 class="page-title"><?php esc_html_e('Whoops!', 'lsx'); ?></h1> |
|
| 16 | 16 | </header><!-- .page-header --> |
| 17 | 17 | |
| 18 | 18 | <div class="page-content"> |
| 19 | - <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'lsx' ); ?></p> |
|
| 19 | + <p><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'lsx'); ?></p> |
|
| 20 | 20 | |
| 21 | 21 | </div> <!-- .row --> |
| 22 | 22 | <?php get_search_form(); ?> |
| 23 | 23 | <br /> |
| 24 | 24 | |
| 25 | - <p><?php esc_html_e( 'Alternatively, you can check out the', 'lsx' ); ?> <a href="/sitemap"><strong><?php esc_html_e( 'sitemap', 'lsx' ); ?></strong></a></p> |
|
| 25 | + <p><?php esc_html_e('Alternatively, you can check out the', 'lsx'); ?> <a href="/sitemap"><strong><?php esc_html_e('sitemap', 'lsx'); ?></strong></a></p> |
|
| 26 | 26 | |
| 27 | 27 | </div><!-- .page-content --> |
| 28 | 28 | </section><!-- .error-404 --> |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | |
| 10 | 10 | <?php lsx_content_wrap_before(); ?> |
| 11 | 11 | |
| 12 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 12 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 13 | 13 | |
| 14 | 14 | <?php lsx_content_before(); ?> |
| 15 | 15 | |
@@ -17,9 +17,9 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | <?php lsx_content_top(); ?> |
| 19 | 19 | |
| 20 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 20 | + <?php while (have_posts()) : the_post(); ?> |
|
| 21 | 21 | |
| 22 | - <?php get_template_part( 'content', get_post_type() ); ?> |
|
| 22 | + <?php get_template_part('content', get_post_type()); ?> |
|
| 23 | 23 | |
| 24 | 24 | <?php endwhile; // end of the loop. ?> |
| 25 | 25 | |
@@ -35,6 +35,6 @@ discard block |
||
| 35 | 35 | <?php lsx_content_wrap_after(); ?> |
| 36 | 36 | |
| 37 | 37 | <?php get_sidebar(); ?> |
| 38 | -<?php get_sidebar( 'alt' ); ?> |
|
| 38 | +<?php get_sidebar('alt'); ?> |
|
| 39 | 39 | |
| 40 | 40 | <?php get_footer(); |
| 41 | 41 | \ No newline at end of file |