@@ -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,16 +17,16 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | <?php lsx_content_top(); ?> |
| 19 | 19 | |
| 20 | - <?php if ( have_posts() ) : ?> |
|
| 20 | + <?php if (have_posts()) : ?> |
|
| 21 | 21 | |
| 22 | 22 | <div class="post-wrapper"> |
| 23 | 23 | |
| 24 | 24 | <?php |
| 25 | - while ( have_posts() ) : |
|
| 25 | + while (have_posts()) : |
|
| 26 | 26 | the_post(); |
| 27 | 27 | ?> |
| 28 | 28 | |
| 29 | - <?php get_template_part( 'partials/content', get_post_format() ); ?> |
|
| 29 | + <?php get_template_part('partials/content', get_post_format()); ?> |
|
| 30 | 30 | |
| 31 | 31 | <?php endwhile; ?> |
| 32 | 32 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | <?php else : ?> |
| 38 | 38 | |
| 39 | - <?php get_template_part( 'partials/content', 'none' ); ?> |
|
| 39 | + <?php get_template_part('partials/content', 'none'); ?> |
|
| 40 | 40 | |
| 41 | 41 | <?php endif; ?> |
| 42 | 42 | |
@@ -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,14 +17,14 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | <?php lsx_content_top(); ?> |
| 19 | 19 | |
| 20 | - <?php if ( have_posts() ) : ?> |
|
| 20 | + <?php if (have_posts()) : ?> |
|
| 21 | 21 | |
| 22 | 22 | <?php |
| 23 | - while ( have_posts() ) : |
|
| 23 | + while (have_posts()) : |
|
| 24 | 24 | the_post(); |
| 25 | 25 | ?> |
| 26 | 26 | |
| 27 | - <?php get_template_part( 'partials/content', 'page' ); ?> |
|
| 27 | + <?php get_template_part('partials/content', 'page'); ?> |
|
| 28 | 28 | |
| 29 | 29 | <?php endwhile; ?> |
| 30 | 30 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | <?php lsx_content_after(); ?> |
| 38 | 38 | |
| 39 | 39 | <?php |
| 40 | - if ( comments_open() ) { |
|
| 40 | + if (comments_open()) { |
|
| 41 | 41 | comments_template(); |
| 42 | 42 | } |
| 43 | 43 | ?> |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * @package lsx |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -if ( ! function_exists( 'theme_support' ) ) : |
|
| 8 | +if ( ! function_exists('theme_support')) : |
|
| 9 | 9 | /** |
| 10 | 10 | * Enqueue theme CSS and JavaScript . |
| 11 | 11 | * |
@@ -13,53 +13,53 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | function theme_support() { |
| 15 | 15 | // Add support for full and wide align images. |
| 16 | - add_theme_support( 'align-wide' ); |
|
| 16 | + add_theme_support('align-wide'); |
|
| 17 | 17 | // Add support for styling blocks. |
| 18 | - add_theme_support( 'wp-block-styles' ); |
|
| 18 | + add_theme_support('wp-block-styles'); |
|
| 19 | 19 | // Add support for custom color scheme. |
| 20 | - add_theme_support( 'editor-color-palette', array( |
|
| 20 | + add_theme_support('editor-color-palette', array( |
|
| 21 | 21 | array( |
| 22 | - 'name' => __( 'Strong Blue', 'lsx' ), |
|
| 22 | + 'name' => __('Strong Blue', 'lsx'), |
|
| 23 | 23 | 'slug' => 'strong-blue', |
| 24 | 24 | 'color' => '#27639e', |
| 25 | 25 | ), |
| 26 | 26 | array( |
| 27 | - 'name' => __( 'Lighter Blue', 'lsx' ), |
|
| 27 | + 'name' => __('Lighter Blue', 'lsx'), |
|
| 28 | 28 | 'slug' => 'lighter-blue', |
| 29 | 29 | 'color' => '#428bca', |
| 30 | 30 | ), |
| 31 | 31 | array( |
| 32 | - 'name' => __( 'Yellow', 'lsx' ), |
|
| 32 | + 'name' => __('Yellow', 'lsx'), |
|
| 33 | 33 | 'slug' => 'light-yellow', |
| 34 | 34 | 'color' => '#f7ae00', |
| 35 | 35 | ), |
| 36 | 36 | array( |
| 37 | - 'name' => __( 'Dark Yellow', 'lsx' ), |
|
| 37 | + 'name' => __('Dark Yellow', 'lsx'), |
|
| 38 | 38 | 'slug' => 'dark-yellow', |
| 39 | 39 | 'color' => '#ab7800', |
| 40 | 40 | ), |
| 41 | 41 | array( |
| 42 | - 'name' => __( 'Green', 'lsx' ), |
|
| 42 | + 'name' => __('Green', 'lsx'), |
|
| 43 | 43 | 'slug' => 'light-green', |
| 44 | 44 | 'color' => '#6BA913', |
| 45 | 45 | ), |
| 46 | 46 | array( |
| 47 | - 'name' => __( 'Dark Green', 'lsx' ), |
|
| 47 | + 'name' => __('Dark Green', 'lsx'), |
|
| 48 | 48 | 'slug' => 'dark-green', |
| 49 | 49 | 'color' => '#3F640B', |
| 50 | 50 | ), |
| 51 | 51 | array( |
| 52 | - 'name' => __( 'White', 'lsx' ), |
|
| 52 | + 'name' => __('White', 'lsx'), |
|
| 53 | 53 | 'slug' => 'white', |
| 54 | 54 | 'color' => '#ffffff', |
| 55 | 55 | ), |
| 56 | 56 | array( |
| 57 | - 'name' => __( 'Black', 'lsx' ), |
|
| 57 | + 'name' => __('Black', 'lsx'), |
|
| 58 | 58 | 'slug' => 'black', |
| 59 | 59 | 'color' => '#000000', |
| 60 | 60 | ), |
| 61 | - ) ); |
|
| 61 | + )); |
|
| 62 | 62 | } |
| 63 | 63 | endif; |
| 64 | -add_action( 'after_setup_theme', 'theme_support' ); |
|
| 64 | +add_action('after_setup_theme', 'theme_support'); |
|
| 65 | 65 | |
@@ -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,16 +17,16 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | <?php lsx_content_top(); ?> |
| 19 | 19 | |
| 20 | - <?php if ( have_posts() ) : ?> |
|
| 20 | + <?php if (have_posts()) : ?> |
|
| 21 | 21 | |
| 22 | 22 | <div class="post-wrapper"> |
| 23 | 23 | |
| 24 | 24 | <?php |
| 25 | - while ( have_posts() ) : |
|
| 25 | + while (have_posts()) : |
|
| 26 | 26 | the_post(); |
| 27 | 27 | ?> |
| 28 | 28 | |
| 29 | - <?php get_template_part( 'partials/content', get_post_format() ); ?> |
|
| 29 | + <?php get_template_part('partials/content', get_post_format()); ?> |
|
| 30 | 30 | |
| 31 | 31 | <?php endwhile; ?> |
| 32 | 32 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | <?php else : ?> |
| 38 | 38 | |
| 39 | - <?php get_template_part( 'partials/content', 'none' ); ?> |
|
| 39 | + <?php get_template_part('partials/content', 'none'); ?> |
|
| 40 | 40 | |
| 41 | 41 | <?php endif; ?> |
| 42 | 42 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | <?php lsx_content_wrap_after(); ?> |
| 52 | 52 | |
| 53 | -<?php get_sidebar( 'sidebar' ); ?> |
|
| 53 | +<?php get_sidebar('sidebar'); ?> |
|
| 54 | 54 | |
| 55 | 55 | <?php |
| 56 | 56 | get_footer(); |
@@ -20,10 +20,10 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | <?php lsx_content_top(); ?> |
| 22 | 22 | |
| 23 | - <?php if ( ( have_posts() && ! class_exists( 'LSX_Banners' ) || ( function_exists( 'has_blocks' ) && has_blocks() ) ) ) : ?> |
|
| 23 | + <?php if ((have_posts() && ! class_exists('LSX_Banners') || (function_exists('has_blocks') && has_blocks()))) : ?> |
|
| 24 | 24 | |
| 25 | 25 | <?php |
| 26 | - while ( have_posts() ) : |
|
| 26 | + while (have_posts()) : |
|
| 27 | 27 | the_post(); |
| 28 | 28 | ?> |
| 29 | 29 | |
@@ -35,10 +35,10 @@ discard block |
||
| 35 | 35 | <?php the_content(); ?> |
| 36 | 36 | |
| 37 | 37 | <?php |
| 38 | - wp_link_pages( array( |
|
| 39 | - 'before' => '<nav class="page-nav"><p>' . esc_html__( 'Pages:', 'lsx' ), |
|
| 38 | + wp_link_pages(array( |
|
| 39 | + 'before' => '<nav class="page-nav"><p>' . esc_html__('Pages:', 'lsx'), |
|
| 40 | 40 | 'after' => '</p></nav>', |
| 41 | - ) ); |
|
| 41 | + )); |
|
| 42 | 42 | ?> |
| 43 | 43 | </div><!-- .entry-content --> |
| 44 | 44 | |
@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | <?php endif; ?> |
| 52 | 52 | |
| 53 | - <?php if ( is_active_sidebar( 'sidebar-home' ) ) : ?> |
|
| 53 | + <?php if (is_active_sidebar('sidebar-home')) : ?> |
|
| 54 | 54 | |
| 55 | 55 | <div id="home-widgets"> |
| 56 | 56 | |
| 57 | - <?php dynamic_sidebar( 'sidebar-home' ); ?> |
|
| 57 | + <?php dynamic_sidebar('sidebar-home'); ?> |
|
| 58 | 58 | |
| 59 | 59 | </div> |
| 60 | 60 | |
@@ -20,14 +20,14 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | <?php lsx_content_top(); ?> |
| 22 | 22 | |
| 23 | - <?php if ( have_posts() ) : ?> |
|
| 23 | + <?php if (have_posts()) : ?> |
|
| 24 | 24 | |
| 25 | 25 | <?php |
| 26 | - while ( have_posts() ) : |
|
| 26 | + while (have_posts()) : |
|
| 27 | 27 | the_post(); |
| 28 | 28 | ?> |
| 29 | 29 | |
| 30 | - <?php get_template_part( 'partials/content', 'page' ); ?> |
|
| 30 | + <?php get_template_part('partials/content', 'page'); ?> |
|
| 31 | 31 | |
| 32 | 32 | <?php endwhile; ?> |
| 33 | 33 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | <?php lsx_content_bottom(); ?> |
| 37 | 37 | |
| 38 | 38 | <?php |
| 39 | - if ( comments_open() ) { |
|
| 39 | + if (comments_open()) { |
|
| 40 | 40 | comments_template(); |
| 41 | 41 | } |
| 42 | 42 | ?> |
@@ -20,14 +20,14 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | <?php lsx_content_top(); ?> |
| 22 | 22 | |
| 23 | - <?php if ( have_posts() ) : ?> |
|
| 23 | + <?php if (have_posts()) : ?> |
|
| 24 | 24 | |
| 25 | 25 | <?php |
| 26 | - while ( have_posts() ) : |
|
| 26 | + while (have_posts()) : |
|
| 27 | 27 | the_post(); |
| 28 | 28 | ?> |
| 29 | 29 | |
| 30 | - <?php get_template_part( 'partials/content', 'page' ); ?> |
|
| 30 | + <?php get_template_part('partials/content', 'page'); ?> |
|
| 31 | 31 | |
| 32 | 32 | <?php endwhile; ?> |
| 33 | 33 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | <?php lsx_content_bottom(); ?> |
| 37 | 37 | |
| 38 | 38 | <?php |
| 39 | - if ( comments_open() ) { |
|
| 39 | + if (comments_open()) { |
|
| 40 | 40 | comments_template(); |
| 41 | 41 | } |
| 42 | 42 | ?> |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | <?php lsx_content_wrap_before(); ?> |
| 14 | 14 | |
| 15 | -<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 15 | +<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 16 | 16 | |
| 17 | 17 | <?php lsx_content_before(); ?> |
| 18 | 18 | |
@@ -20,10 +20,10 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | <?php lsx_content_top(); ?> |
| 22 | 22 | |
| 23 | - <?php if ( have_posts() ) : ?> |
|
| 23 | + <?php if (have_posts()) : ?> |
|
| 24 | 24 | |
| 25 | 25 | <?php |
| 26 | - while ( have_posts() ) : |
|
| 26 | + while (have_posts()) : |
|
| 27 | 27 | the_post(); |
| 28 | 28 | ?> |
| 29 | 29 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | <?php lsx_content_wrap_after(); ?> |
| 59 | 59 | |
| 60 | -<?php get_sidebar( 'sitemap' ); ?> |
|
| 60 | +<?php get_sidebar('sitemap'); ?> |
|
| 61 | 61 | |
| 62 | 62 | <?php |
| 63 | 63 | get_footer(); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | <?php lsx_content_wrap_before(); ?> |
| 14 | 14 | |
| 15 | -<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 15 | +<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 16 | 16 | |
| 17 | 17 | <?php lsx_content_before(); ?> |
| 18 | 18 | |
@@ -20,10 +20,10 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | <?php lsx_content_top(); ?> |
| 22 | 22 | |
| 23 | - <?php if ( have_posts() ) : ?> |
|
| 23 | + <?php if (have_posts()) : ?> |
|
| 24 | 24 | |
| 25 | 25 | <?php |
| 26 | - while ( have_posts() ) : |
|
| 26 | + while (have_posts()) : |
|
| 27 | 27 | the_post(); |
| 28 | 28 | ?> |
| 29 | 29 | |
@@ -34,25 +34,25 @@ discard block |
||
| 34 | 34 | <?php lsx_entry_top(); ?> |
| 35 | 35 | |
| 36 | 36 | <div class="entry-content"> |
| 37 | - <h2><?php esc_html_e( 'The Last 30 Posts', 'lsx' ); ?></h2> |
|
| 37 | + <h2><?php esc_html_e('The Last 30 Posts', 'lsx'); ?></h2> |
|
| 38 | 38 | |
| 39 | 39 | <ul> |
| 40 | 40 | <?php |
| 41 | - $loop = new WP_Query( array( |
|
| 41 | + $loop = new WP_Query(array( |
|
| 42 | 42 | 'posts_per_page' => 30, |
| 43 | - ) ); |
|
| 43 | + )); |
|
| 44 | 44 | ?> |
| 45 | 45 | |
| 46 | - <?php if ( $loop->have_posts() ) : ?> |
|
| 46 | + <?php if ($loop->have_posts()) : ?> |
|
| 47 | 47 | |
| 48 | - <?php while ( $loop->have_posts() ) : ?> |
|
| 48 | + <?php while ($loop->have_posts()) : ?> |
|
| 49 | 49 | |
| 50 | 50 | <?php |
| 51 | 51 | $loop->the_post(); |
| 52 | 52 | $loop->is_home = false; |
| 53 | 53 | ?> |
| 54 | 54 | |
| 55 | - <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo esc_html( $post->comment_count ); ?> <?php esc_html_e( 'comments', 'lsx' ); ?></li> |
|
| 55 | + <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time(get_option('date_format')); ?> - <?php echo esc_html($post->comment_count); ?> <?php esc_html_e('comments', 'lsx'); ?></li> |
|
| 56 | 56 | |
| 57 | 57 | <?php endwhile; ?> |
| 58 | 58 | |
@@ -61,16 +61,16 @@ discard block |
||
| 61 | 61 | <?php wp_reset_postdata(); ?> |
| 62 | 62 | </ul> |
| 63 | 63 | |
| 64 | - <h2><?php esc_html_e( 'Categories', 'lsx' ); ?></h2> |
|
| 64 | + <h2><?php esc_html_e('Categories', 'lsx'); ?></h2> |
|
| 65 | 65 | |
| 66 | 66 | <ul> |
| 67 | - <?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?> |
|
| 67 | + <?php wp_list_categories('title_li=&hierarchical=0&show_count=1'); ?> |
|
| 68 | 68 | </ul> |
| 69 | 69 | |
| 70 | - <h2><?php esc_html_e( 'Monthly Archives', 'lsx' ); ?></h2> |
|
| 70 | + <h2><?php esc_html_e('Monthly Archives', 'lsx'); ?></h2> |
|
| 71 | 71 | |
| 72 | 72 | <ul> |
| 73 | - <?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?> |
|
| 73 | + <?php wp_get_archives('type=monthly&show_post_count=1'); ?> |
|
| 74 | 74 | </ul> |
| 75 | 75 | </div><!-- .entry-content --> |
| 76 | 76 | |