@@ -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 esc_html_e( 'Get your Tourism Establishment Online', 'lsx' ); ?></strong> |
|
| 60 | + <strong><?php esc_html_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 esc_html_e( 'Questions? Email Us: ', 'lsx' ); ?><a href="mailto:<?php echo esc_attr( $email_address ); ?>"><?php echo esc_html( $email_address ); ?></a></span> |
|
| 70 | + <span class="email-address"><?php esc_html_e('Questions? Email Us: ', 'lsx'); ?><a href="mailto:<?php echo esc_attr($email_address); ?>"><?php echo esc_html($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,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 | ?> |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | <?php lsx_content_top(); ?> |
| 19 | 19 | |
| 20 | - <?php if(have_posts()) { ?> |
|
| 21 | - <?php while(have_posts()) { the_post(); ?> |
|
| 20 | + <?php if (have_posts()) { ?> |
|
| 21 | + <?php while (have_posts()) { the_post(); ?> |
|
| 22 | 22 | <div class="entry-content"> |
| 23 | 23 | |
| 24 | 24 | <?php the_content(); ?> |
@@ -29,10 +29,10 @@ discard block |
||
| 29 | 29 | <?php } ?> |
| 30 | 30 | |
| 31 | 31 | <?php |
| 32 | - if ( get_query_var( 'paged' ) ) : |
|
| 33 | - $paged = get_query_var( 'paged' ); |
|
| 34 | - elseif ( get_query_var( 'page' ) ) : |
|
| 35 | - $paged = get_query_var( 'page' ); |
|
| 32 | + if (get_query_var('paged')) : |
|
| 33 | + $paged = get_query_var('paged'); |
|
| 34 | + elseif (get_query_var('page')) : |
|
| 35 | + $paged = get_query_var('page'); |
|
| 36 | 36 | else : |
| 37 | 37 | $paged = 1; |
| 38 | 38 | endif; |
@@ -41,18 +41,18 @@ discard block |
||
| 41 | 41 | 'post_type' => 'jetpack-portfolio', |
| 42 | 42 | 'posts_per_page' => -1, |
| 43 | 43 | ); |
| 44 | - $project_query = new WP_Query ( $args ); |
|
| 45 | - if ( post_type_exists( 'jetpack-portfolio' ) && $project_query -> have_posts() ) : |
|
| 44 | + $project_query = new WP_Query($args); |
|
| 45 | + if (post_type_exists('jetpack-portfolio') && $project_query -> have_posts()) : |
|
| 46 | 46 | ?> |
| 47 | 47 | |
| 48 | 48 | <?php lsx_portfolio_sorter(); ?> |
| 49 | 49 | |
| 50 | 50 | <div class="filter-items-wrapper lsx-portfolio-wrapper"> |
| 51 | 51 | <div class="filter-items-container lsx-portfolio masonry"> |
| 52 | - <?php while ( $project_query -> have_posts() ) : $project_query -> the_post(); ?> |
|
| 52 | + <?php while ($project_query -> have_posts()) : $project_query -> the_post(); ?> |
|
| 53 | 53 | |
| 54 | - <?php if(has_post_thumbnail()) { ?> |
|
| 55 | - <?php get_template_part( 'content', 'portfolio' ); ?> |
|
| 54 | + <?php if (has_post_thumbnail()) { ?> |
|
| 55 | + <?php get_template_part('content', 'portfolio'); ?> |
|
| 56 | 56 | <?php } ?> |
| 57 | 57 | |
| 58 | 58 | <?php endwhile; ?> |
@@ -63,17 +63,17 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | <section class="no-results not-found"> |
| 65 | 65 | <header class="page-header"> |
| 66 | - <h1 class="page-title"><?php _e( 'Nothing Found', 'lsx' ); ?></h1> |
|
| 66 | + <h1 class="page-title"><?php _e('Nothing Found', 'lsx'); ?></h1> |
|
| 67 | 67 | </header><!-- .page-header --> |
| 68 | 68 | |
| 69 | 69 | <div class="page-content"> |
| 70 | - <?php if ( current_user_can( 'publish_posts' ) ) : ?> |
|
| 70 | + <?php if (current_user_can('publish_posts')) : ?> |
|
| 71 | 71 | |
| 72 | - <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> |
|
| 72 | + <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> |
|
| 73 | 73 | |
| 74 | 74 | <?php else : ?> |
| 75 | 75 | |
| 76 | - <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
| 76 | + <p><?php _e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx'); ?></p> |
|
| 77 | 77 | <?php get_search_form(); ?> |
| 78 | 78 | |
| 79 | 79 | <?php endif; ?> |
@@ -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 |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * |
| 5 | 5 | * @package lsx |
| 6 | 6 | */ |
| 7 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 7 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
| 8 | 8 | |
| 9 | 9 | define('LSX_VERSION', '1.7.3'); |
| 10 | 10 | |
@@ -21,25 +21,25 @@ discard block |
||
| 21 | 21 | require get_template_directory() . '/inc/comment-walker.php'; |
| 22 | 22 | require get_template_directory() . '/inc/jetpack.php'; |
| 23 | 23 | require get_template_directory() . '/inc/lazyload.php'; |
| 24 | -if(class_exists('BuddyPress')){ |
|
| 24 | +if (class_exists('BuddyPress')) { |
|
| 25 | 25 | require get_template_directory() . '/inc/buddypress.php'; |
| 26 | 26 | } |
| 27 | -if(class_exists('WooCommerce')){ |
|
| 27 | +if (class_exists('WooCommerce')) { |
|
| 28 | 28 | require get_template_directory() . '/inc/woocommerce.php'; |
| 29 | 29 | } |
| 30 | -if(class_exists('WP_Job_Manager')){ |
|
| 30 | +if (class_exists('WP_Job_Manager')) { |
|
| 31 | 31 | require get_template_directory() . '/inc/wp-job-manager.php'; |
| 32 | 32 | } |
| 33 | -if(class_exists('Tribe__Events__Main')){ |
|
| 33 | +if (class_exists('Tribe__Events__Main')) { |
|
| 34 | 34 | require get_template_directory() . '/inc/the-events-calendar.php'; |
| 35 | 35 | } |
| 36 | -if(true === apply_filters( 'amp_is_enabled', true ) ){ |
|
| 36 | +if (true === apply_filters('amp_is_enabled', true)) { |
|
| 37 | 37 | require get_template_directory() . '/inc/amp.php'; |
| 38 | 38 | } |
| 39 | 39 | require get_template_directory() . '/inc/template-tags.php'; |
| 40 | 40 | require get_template_directory() . '/inc/extras.php'; |
| 41 | 41 | require get_template_directory() . '/inc/wp_bootstrap_navwalker.php'; |
| 42 | -if(class_exists('Sensei_WC')){ |
|
| 42 | +if (class_exists('Sensei_WC')) { |
|
| 43 | 43 | require get_template_directory() . '/inc/sensei.php'; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -51,10 +51,10 @@ discard block |
||
| 51 | 51 | * @category customizer |
| 52 | 52 | * @return $lsx_controls array() |
| 53 | 53 | */ |
| 54 | -function lsx_customizer_core_controls( $lsx_controls ) { |
|
| 54 | +function lsx_customizer_core_controls($lsx_controls) { |
|
| 55 | 55 | $lsx_controls['sections']['lsx-core'] = array( |
| 56 | - 'title' => esc_html__( 'Core Settings', 'lsx' ), |
|
| 57 | - 'description' => __( 'Change the core settings.', 'lsx' ), |
|
| 56 | + 'title' => esc_html__('Core Settings', 'lsx'), |
|
| 57 | + 'description' => __('Change the core settings.', 'lsx'), |
|
| 58 | 58 | 'priority' => 21 |
| 59 | 59 | ); |
| 60 | 60 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | ); |
| 66 | 66 | |
| 67 | 67 | $lsx_controls['fields']['lsx_lazyload_status'] = array( |
| 68 | - 'label' => __( 'Lazy Loading Images', 'lsx' ), |
|
| 68 | + 'label' => __('Lazy Loading Images', 'lsx'), |
|
| 69 | 69 | 'section' => 'lsx-core', |
| 70 | 70 | 'type' => 'checkbox', |
| 71 | 71 | ); |
@@ -77,14 +77,14 @@ discard block |
||
| 77 | 77 | ); |
| 78 | 78 | |
| 79 | 79 | $lsx_controls['fields']['lsx_preloader_content_status'] = array( |
| 80 | - 'label' => __( 'Preloader Content', 'lsx' ), |
|
| 80 | + 'label' => __('Preloader Content', 'lsx'), |
|
| 81 | 81 | 'section' => 'lsx-core', |
| 82 | 82 | 'type' => 'checkbox', |
| 83 | 83 | ); |
| 84 | 84 | |
| 85 | 85 | return $lsx_controls; |
| 86 | 86 | } |
| 87 | -add_filter( 'lsx_customizer_controls', 'lsx_customizer_core_controls' ); |
|
| 87 | +add_filter('lsx_customizer_controls', 'lsx_customizer_core_controls'); |
|
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * Returns an array of the colour scheme picker. |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * @category customizer |
| 95 | 95 | * @return $lsx_controls array() |
| 96 | 96 | */ |
| 97 | -function lsx_customizer_colour_scheme_controls( $lsx_controls ) { |
|
| 97 | +function lsx_customizer_colour_scheme_controls($lsx_controls) { |
|
| 98 | 98 | global $customizer_colour_names; |
| 99 | 99 | global $customizer_colour_choices; |
| 100 | 100 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | ); |
| 106 | 106 | |
| 107 | 107 | $lsx_controls['fields']['color_scheme'] = array( |
| 108 | - 'label' => esc_html__( 'Base Color Scheme', 'lsx' ), |
|
| 108 | + 'label' => esc_html__('Base Color Scheme', 'lsx'), |
|
| 109 | 109 | 'section' => 'colors', |
| 110 | 110 | 'type' => 'select', |
| 111 | 111 | 'priority' => 1, |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | $counter = 0; |
| 117 | 117 | |
| 118 | - foreach ( $customizer_colour_names as $key => $value ) { |
|
| 118 | + foreach ($customizer_colour_names as $key => $value) { |
|
| 119 | 119 | $lsx_controls['settings'][$key] = array( |
| 120 | 120 | 'default' => $customizer_colour_choices['default']['colors'][$counter], |
| 121 | 121 | 'type' => 'theme_mod', |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | return $lsx_controls; |
| 136 | 136 | } |
| 137 | -add_filter( 'lsx_customizer_controls', 'lsx_customizer_colour_scheme_controls' ); |
|
| 137 | +add_filter('lsx_customizer_controls', 'lsx_customizer_colour_scheme_controls'); |
|
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | 140 | * Returns an array of the layout panel. |
@@ -145,56 +145,56 @@ discard block |
||
| 145 | 145 | * @return $lsx_controls array() |
| 146 | 146 | */ |
| 147 | 147 | function lsx_customizer_layout_controls($lsx_controls) { |
| 148 | - $lsx_controls['settings']['lsx_header_layout'] = array( |
|
| 148 | + $lsx_controls['settings']['lsx_header_layout'] = array( |
|
| 149 | 149 | 'default' => 'inline', //Default setting/value to save |
| 150 | 150 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
| 151 | 151 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
| 152 | 152 | ); |
| 153 | 153 | $lsx_controls['fields']['lsx_header_layout'] = array( |
| 154 | - 'label' => __('Header','lsx'), |
|
| 154 | + 'label' => __('Header', 'lsx'), |
|
| 155 | 155 | 'section' => 'lsx-layout', |
| 156 | 156 | 'control' => 'LSX_Customize_Header_Layout_Control', |
| 157 | - 'choices' => array('central','expanded','inline') |
|
| 157 | + 'choices' => array('central', 'expanded', 'inline') |
|
| 158 | 158 | ); |
| 159 | 159 | $lsx_controls['sections']['lsx-layout'] = array( |
| 160 | - 'title' => esc_html__( 'Layout', 'lsx' ), |
|
| 161 | - 'description' => __( 'Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx' ), |
|
| 160 | + 'title' => esc_html__('Layout', 'lsx'), |
|
| 161 | + 'description' => __('Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx'), |
|
| 162 | 162 | 'priority' => 22 |
| 163 | 163 | ); |
| 164 | - $lsx_controls['settings']['lsx_layout'] = array( |
|
| 164 | + $lsx_controls['settings']['lsx_layout'] = array( |
|
| 165 | 165 | 'default' => '2cr', //Default setting/value to save |
| 166 | 166 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
| 167 | 167 | 'transport' => 'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
| 168 | 168 | ); |
| 169 | - $lsx_controls['settings']['lsx_header_fixed'] = array( |
|
| 169 | + $lsx_controls['settings']['lsx_header_fixed'] = array( |
|
| 170 | 170 | 'default' => false, //Default setting/value to save |
| 171 | 171 | 'sanitize_callback' => 'lsx_sanitize_checkbox', |
| 172 | 172 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
| 173 | 173 | ); |
| 174 | 174 | $lsx_controls['fields']['lsx_header_fixed'] = array( |
| 175 | - 'label' => __('Fixed Header','lsx'), |
|
| 175 | + 'label' => __('Fixed Header', 'lsx'), |
|
| 176 | 176 | 'section' => 'lsx-layout', |
| 177 | 177 | 'type' => 'checkbox', |
| 178 | 178 | ); |
| 179 | - $lsx_controls['settings']['lsx_header_search'] = array( |
|
| 179 | + $lsx_controls['settings']['lsx_header_search'] = array( |
|
| 180 | 180 | 'default' => false, //Default setting/value to save |
| 181 | 181 | 'sanitize_callback' => 'lsx_sanitize_checkbox', |
| 182 | 182 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
| 183 | 183 | ); |
| 184 | 184 | $lsx_controls['fields']['lsx_header_search'] = array( |
| 185 | - 'label' => __('Search Box in Header','lsx'), |
|
| 185 | + 'label' => __('Search Box in Header', 'lsx'), |
|
| 186 | 186 | 'section' => 'lsx-layout', |
| 187 | 187 | 'type' => 'checkbox', |
| 188 | 188 | ); |
| 189 | 189 | $lsx_controls['fields']['lsx_layout'] = array( |
| 190 | - 'label' => __('Body','lsx'), |
|
| 190 | + 'label' => __('Body', 'lsx'), |
|
| 191 | 191 | 'section' => 'lsx-layout', |
| 192 | 192 | 'control' => 'LSX_Customize_Layout_Control', |
| 193 | - 'choices' => array('1c','2cr','2cl') |
|
| 193 | + 'choices' => array('1c', '2cr', '2cl') |
|
| 194 | 194 | ); |
| 195 | 195 | return $lsx_controls; |
| 196 | 196 | } |
| 197 | -add_filter('lsx_customizer_controls','lsx_customizer_layout_controls'); |
|
| 197 | +add_filter('lsx_customizer_controls', 'lsx_customizer_layout_controls'); |
|
| 198 | 198 | |
| 199 | 199 | /** |
| 200 | 200 | * Returns an array of the font controls. |
@@ -206,11 +206,11 @@ discard block |
||
| 206 | 206 | */ |
| 207 | 207 | function lsx_customizer_font_controls($lsx_controls) { |
| 208 | 208 | $lsx_controls['sections']['lsx-font'] = array( |
| 209 | - 'title' => __( 'Font', 'lsx' ), |
|
| 209 | + 'title' => __('Font', 'lsx'), |
|
| 210 | 210 | 'description' => 'Change the fonts sitewide.', |
| 211 | 211 | 'priority' => 41 |
| 212 | 212 | ); |
| 213 | - $lsx_controls['settings']['lsx_font'] = array( |
|
| 213 | + $lsx_controls['settings']['lsx_font'] = array( |
|
| 214 | 214 | 'default' => 'raleway_open_sans', //Default setting/value to save |
| 215 | 215 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
| 216 | 216 | 'transport' => 'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
@@ -224,13 +224,13 @@ discard block |
||
| 224 | 224 | 'choices' => array( |
| 225 | 225 | 'raleway_open_sans' => array( |
| 226 | 226 | 'header' => array( |
| 227 | - "title" => __( 'Raleway', 'lsx' ), |
|
| 227 | + "title" => __('Raleway', 'lsx'), |
|
| 228 | 228 | "location" => "Raleway", |
| 229 | 229 | "cssDeclaration" => "'Raleway', sans-serif", |
| 230 | 230 | "cssClass" => "raleway", |
| 231 | 231 | ), |
| 232 | 232 | 'body' => array( |
| 233 | - "title" => __( 'Open Sans', 'lsx' ), |
|
| 233 | + "title" => __('Open Sans', 'lsx'), |
|
| 234 | 234 | "location" => "Open+Sans", |
| 235 | 235 | "cssDeclaration" => "'Open Sans', sans-serif", |
| 236 | 236 | "cssClass" => "openSans" |
@@ -238,13 +238,13 @@ discard block |
||
| 238 | 238 | ), |
| 239 | 239 | 'noto_serif_noto_sans' => array( |
| 240 | 240 | 'header' => array( |
| 241 | - "title" => __( 'Noto Serif', 'lsx' ), |
|
| 241 | + "title" => __('Noto Serif', 'lsx'), |
|
| 242 | 242 | "location" => "Noto+Serif", |
| 243 | 243 | "cssDeclaration" => "'Noto Serif', serif", |
| 244 | 244 | "cssClass" => "notoSerif", |
| 245 | 245 | ), |
| 246 | 246 | 'body' => array( |
| 247 | - "title" => __( 'Noto Sans', 'lsx' ), |
|
| 247 | + "title" => __('Noto Sans', 'lsx'), |
|
| 248 | 248 | "location" => "Noto+Sans", |
| 249 | 249 | "cssDeclaration" => "'Noto Sans', sans-serif", |
| 250 | 250 | "cssClass" => "notoSans", |
@@ -252,13 +252,13 @@ discard block |
||
| 252 | 252 | ), |
| 253 | 253 | 'noto_sans_noto_sans' => array( |
| 254 | 254 | 'header' => array( |
| 255 | - "title" => __( 'Noto Sans', 'lsx' ), |
|
| 255 | + "title" => __('Noto Sans', 'lsx'), |
|
| 256 | 256 | "location" => "Noto+Sans", |
| 257 | 257 | "cssDeclaration" => "'Noto Sans', sans-serif", |
| 258 | 258 | "cssClass" => "notoSans", |
| 259 | 259 | ), |
| 260 | 260 | 'body' => array( |
| 261 | - "title" => __( 'Noto Sans', 'lsx' ), |
|
| 261 | + "title" => __('Noto Sans', 'lsx'), |
|
| 262 | 262 | "location" => "Noto+Sans", |
| 263 | 263 | "cssDeclaration" => "'Noto Sans', sans-serif", |
| 264 | 264 | "cssClass" => "notoSans", |
@@ -266,13 +266,13 @@ discard block |
||
| 266 | 266 | ), |
| 267 | 267 | 'alegreya_open_sans' => array( |
| 268 | 268 | 'header' => array( |
| 269 | - "title" => __( 'Alegreya', 'lsx' ), |
|
| 269 | + "title" => __('Alegreya', 'lsx'), |
|
| 270 | 270 | "location" => "Alegreya", |
| 271 | 271 | "cssDeclaration" => "'Alegreya', serif", |
| 272 | 272 | "cssClass" => "alegreya", |
| 273 | 273 | ), |
| 274 | 274 | 'body' => array( |
| 275 | - "title" => __( 'Open Sans', 'lsx' ), |
|
| 275 | + "title" => __('Open Sans', 'lsx'), |
|
| 276 | 276 | "location" => "Open+Sans", |
| 277 | 277 | "cssDeclaration" => "'Open Sans', sans-serif", |
| 278 | 278 | "cssClass" => "openSans" |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | ); |
| 284 | 284 | return $lsx_controls; |
| 285 | 285 | } |
| 286 | -add_filter('lsx_customizer_controls','lsx_customizer_font_controls'); |
|
| 286 | +add_filter('lsx_customizer_controls', 'lsx_customizer_font_controls'); |
|
| 287 | 287 | |
| 288 | 288 | /** |
| 289 | 289 | * Returns an array of $controls for the customizer class to generate. |
@@ -293,12 +293,12 @@ discard block |
||
| 293 | 293 | * @category customizer |
| 294 | 294 | * @return $lsx_controls array() |
| 295 | 295 | */ |
| 296 | -function lsx_get_customizer_controls(){ |
|
| 296 | +function lsx_get_customizer_controls() { |
|
| 297 | 297 | $lsx_controls = array(); |
| 298 | 298 | $lsx_controls = apply_filters('lsx_customizer_controls', $lsx_controls); |
| 299 | 299 | return $lsx_controls; |
| 300 | 300 | } |
| 301 | -$lsx_customizer = new LSX_Theme_Customizer( lsx_get_customizer_controls() ); |
|
| 301 | +$lsx_customizer = new LSX_Theme_Customizer(lsx_get_customizer_controls()); |
|
| 302 | 302 | |
| 303 | -add_image_size( 'lsx-thumbnail-wide', 350, 230, true ); |
|
| 304 | -add_image_size( 'lsx-thumbnail-single', 750, 350, true ); |
|
| 305 | 303 | \ No newline at end of file |
| 304 | +add_image_size('lsx-thumbnail-wide', 350, 230, true); |
|
| 305 | +add_image_size('lsx-thumbnail-single', 750, 350, true); |
|
| 306 | 306 | \ No newline at end of file |