@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Constructor |
| 15 | - **/ |
|
| 15 | + **/ |
|
| 16 | 16 | public function __construct($title, $location, $cssDeclaration, $cssClass) |
| 17 | 17 | { |
| 18 | 18 | $this->title = $title; |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * Getters |
| 26 | 26 | * taken from: http://stackoverflow.com/questions/4478661/getter-and-setter |
| 27 | - **/ |
|
| 27 | + **/ |
|
| 28 | 28 | public function __get($property) |
| 29 | 29 | { |
| 30 | 30 | if (property_exists($this, $property)) { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
| 3 | 3 | /** |
| 4 | 4 | * Google_Font Class |
| 5 | 5 | **/ |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -1,5 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * lsx Comment Walker |
@@ -67,7 +70,7 @@ discard block |
||
| 67 | 70 | foreach($fields as &$field){ |
| 68 | 71 | if(stristr('class=', $field)){ |
| 69 | 72 | $field = str_replace('class="', 'class="form-control ', $field); |
| 70 | - }else{ |
|
| 73 | + } else{ |
|
| 71 | 74 | $field = str_replace('<input', '<input class="form-control" ', $field); |
| 72 | 75 | } |
| 73 | 76 | } |
@@ -14,25 +14,25 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | class LSX_Walker_Comment extends Walker_Comment { |
| 16 | 16 | function start_lvl(&$output, $depth = 0, $args = array()) { |
| 17 | - $GLOBALS['comment_depth'] = $depth + 1; ?> |
|
| 17 | + $GLOBALS['comment_depth'] = $depth + 1; ?> |
|
| 18 | 18 | <ul <?php comment_class('media unstyled comment-' . get_comment_ID()); ?>> |
| 19 | 19 | <?php |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | function end_lvl(&$output, $depth = 0, $args = array()) { |
| 23 | - $GLOBALS['comment_depth'] = $depth + 1; |
|
| 24 | - echo '</ul>'; |
|
| 23 | + $GLOBALS['comment_depth'] = $depth + 1; |
|
| 24 | + echo '</ul>'; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | function start_el(&$output, $comment, $depth = 0, $args = array(), $id = 0) { |
| 28 | - $depth++; |
|
| 29 | - $GLOBALS['comment_depth'] = $depth; |
|
| 30 | - $GLOBALS['comment'] = $comment; |
|
| 28 | + $depth++; |
|
| 29 | + $GLOBALS['comment_depth'] = $depth; |
|
| 30 | + $GLOBALS['comment'] = $comment; |
|
| 31 | 31 | |
| 32 | - if (!empty($args['callback'])) { |
|
| 33 | - call_user_func($args['callback'], $comment, $args, $depth); |
|
| 34 | - return; |
|
| 35 | - }?> |
|
| 32 | + if (!empty($args['callback'])) { |
|
| 33 | + call_user_func($args['callback'], $comment, $args, $depth); |
|
| 34 | + return; |
|
| 35 | + }?> |
|
| 36 | 36 | |
| 37 | 37 | <li id="comment-<?php comment_ID(); ?>" <?php comment_class('media comment-' . get_comment_ID()); ?>> |
| 38 | 38 | <?php get_template_part('comment'); ?> |
@@ -40,11 +40,11 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | function end_el(&$output, $comment, $depth = 0, $args = array()) { |
| 43 | - if (!empty($args['end-callback'])) { |
|
| 44 | - call_user_func($args['end-callback'], $comment, $args, $depth); |
|
| 45 | - return; |
|
| 46 | - } |
|
| 47 | - echo "</div></li>\n"; |
|
| 43 | + if (!empty($args['end-callback'])) { |
|
| 44 | + call_user_func($args['end-callback'], $comment, $args, $depth); |
|
| 45 | + return; |
|
| 46 | + } |
|
| 47 | + echo "</div></li>\n"; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * lsx Comment Walker |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | $GLOBALS['comment_depth'] = $depth; |
| 30 | 30 | $GLOBALS['comment'] = $comment; |
| 31 | 31 | |
| 32 | - if (!empty($args['callback'])) { |
|
| 32 | + if ( ! empty($args['callback'])) { |
|
| 33 | 33 | call_user_func($args['callback'], $comment, $args, $depth); |
| 34 | 34 | return; |
| 35 | 35 | }?> |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | function end_el(&$output, $comment, $depth = 0, $args = array()) { |
| 43 | - if (!empty($args['end-callback'])) { |
|
| 43 | + if ( ! empty($args['end-callback'])) { |
|
| 44 | 44 | call_user_func($args['end-callback'], $comment, $args, $depth); |
| 45 | 45 | return; |
| 46 | 46 | } |
@@ -62,13 +62,13 @@ discard block |
||
| 62 | 62 | * @subpackage layout |
| 63 | 63 | */ |
| 64 | 64 | function lsx_comment_form_fields_filter($fields) { |
| 65 | - foreach($fields as &$field){ |
|
| 66 | - if(stristr('class=', $field)){ |
|
| 65 | + foreach ($fields as &$field) { |
|
| 66 | + if (stristr('class=', $field)) { |
|
| 67 | 67 | $field = str_replace('class="', 'class="form-control ', $field); |
| 68 | - }else{ |
|
| 68 | + } else { |
|
| 69 | 69 | $field = str_replace('<input', '<input class="form-control" ', $field); |
| 70 | 70 | } |
| 71 | 71 | } |
| 72 | 72 | return $fields; |
| 73 | 73 | } |
| 74 | -add_filter( 'comment_form_default_fields', 'lsx_comment_form_fields_filter'); |
|
| 74 | +add_filter('comment_form_default_fields', 'lsx_comment_form_fields_filter'); |
|
@@ -14,6 +14,6 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | function lsx_wp_job_manager_styles() { |
| 17 | - wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css' ); |
|
| 17 | + wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css' ); |
|
| 18 | 18 | } |
| 19 | 19 | add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' ); |
| 20 | 20 | \ No newline at end of file |
@@ -14,6 +14,6 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | function lsx_wp_job_manager_styles() { |
| 17 | - wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css' ); |
|
| 17 | + wp_enqueue_style('wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css'); |
|
| 18 | 18 | } |
| 19 | -add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' ); |
|
| 20 | 19 | \ No newline at end of file |
| 20 | +add_action('wp_enqueue_scripts', 'lsx_wp_job_manager_styles'); |
|
| 21 | 21 | \ No newline at end of file |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Constructor |
| 15 | - **/ |
|
| 15 | + **/ |
|
| 16 | 16 | public function __construct($fonts) |
| 17 | 17 | { |
| 18 | 18 | if(empty($fonts)) |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * getFontFamilyNameArray Function |
| 35 | 35 | * this function returns an array containing all of the font family names |
| 36 | - **/ |
|
| 36 | + **/ |
|
| 37 | 37 | function getFontFamilyNameArray() |
| 38 | 38 | { |
| 39 | 39 | $result; |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * getTitle |
| 49 | 49 | * this function returns the font title |
| 50 | - **/ |
|
| 50 | + **/ |
|
| 51 | 51 | function getTitle($key) |
| 52 | 52 | { |
| 53 | 53 | return $this->fonts[$key]->__get("title"); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | /** |
| 57 | 57 | * getLocation |
| 58 | 58 | * this function returns the font location |
| 59 | - **/ |
|
| 59 | + **/ |
|
| 60 | 60 | function getLocation($key) |
| 61 | 61 | { |
| 62 | 62 | return $this->fonts[$key]->__get("location"); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * getCssDeclaration |
| 67 | 67 | * this function returns the font css declaration |
| 68 | - **/ |
|
| 68 | + **/ |
|
| 69 | 69 | function getCssDeclaration($key) |
| 70 | 70 | { |
| 71 | 71 | return $this->fonts[$key]->__get("cssDeclaration"); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * this function returns an array of css classes |
| 78 | 78 | * this function is used when displaying the fancy list of fonts in the theme customizer |
| 79 | 79 | * this function is used to send a JS file an array for the postMessage transport option in the theme customizer |
| 80 | - **/ |
|
| 80 | + **/ |
|
| 81 | 81 | function getCssClassArray() |
| 82 | 82 | { |
| 83 | 83 | $result; |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | /** |
| 92 | 92 | * getTotalNumberOfFonts |
| 93 | 93 | * this function returns the total number of fonts |
| 94 | - **/ |
|
| 94 | + **/ |
|
| 95 | 95 | function getTotalNumberOfFonts() |
| 96 | 96 | { |
| 97 | 97 | return count($this->fonts); |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | /** |
| 101 | 101 | * printThemeCustomizerCssLocations |
| 102 | 102 | * this function prints the links to the css files for the theme customizer |
| 103 | - **/ |
|
| 103 | + **/ |
|
| 104 | 104 | function printThemeCustomizerCssLocations() |
| 105 | 105 | { |
| 106 | 106 | foreach ($this->fonts as $key => $value) |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | /** |
| 117 | 117 | * printThemeCustomizerCssClasses |
| 118 | 118 | * this function prints the theme customizer css classes necessary to display all of the fonts |
| 119 | - **/ |
|
| 119 | + **/ |
|
| 120 | 120 | function printThemeCustomizerCssClasses() |
| 121 | 121 | { |
| 122 | 122 | ?> |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
| 3 | 3 | /** |
| 4 | 4 | * Google Font_Collection Class |
| 5 | 5 | **/ |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | **/ |
| 16 | 16 | public function __construct($fonts) |
| 17 | 17 | { |
| 18 | - if(empty($fonts)) |
|
| 18 | + if (empty($fonts)) |
|
| 19 | 19 | { |
| 20 | 20 | //we didn't get the required data |
| 21 | 21 | return false; |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | // create fonts |
| 25 | 25 | foreach ($fonts as $key => $value) |
| 26 | 26 | { |
| 27 | - if( empty( $value["system"] ) ){ |
|
| 27 | + if (empty($value["system"])) { |
|
| 28 | 28 | $this->fonts[$value["title"]] = new LSX_Google_Font($value["title"], $value["location"], $value["cssDeclaration"], $value["cssClass"]); |
| 29 | 29 | } |
| 30 | 30 | } |
@@ -106,9 +106,9 @@ discard block |
||
| 106 | 106 | foreach ($this->fonts as $key => $value) |
| 107 | 107 | { |
| 108 | 108 | $protocol = 'http'; |
| 109 | - if(is_ssl()){ $protocol.='s'; } |
|
| 109 | + if (is_ssl()) { $protocol .= 's'; } |
|
| 110 | 110 | ?> |
| 111 | - <link href="<?php echo esc_attr( $protocol ); ?>://fonts.googleapis.com/css?family=<?php echo esc_attr( $value->__get( "location" ) ); ?>" rel='stylesheet'> |
|
| 111 | + <link href="<?php echo esc_attr($protocol); ?>://fonts.googleapis.com/css?family=<?php echo esc_attr($value->__get("location")); ?>" rel='stylesheet'> |
|
| 112 | 112 | <?php |
| 113 | 113 | } |
| 114 | 114 | } |
@@ -125,8 +125,8 @@ discard block |
||
| 125 | 125 | foreach ($this->fonts as $key => $value) |
| 126 | 126 | { |
| 127 | 127 | ?> |
| 128 | - .<?php echo esc_attr( $value->__get( "cssClass" ) ); ?>{ |
|
| 129 | - font-family: <?php echo esc_attr( $value->__get( "cssDeclaration" ) ); ?>; |
|
| 128 | + .<?php echo esc_attr($value->__get("cssClass")); ?>{ |
|
| 129 | + font-family: <?php echo esc_attr($value->__get("cssDeclaration")); ?>; |
|
| 130 | 130 | } |
| 131 | 131 | <?php |
| 132 | 132 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * Enqueue scripts and styles. |
@@ -10,12 +10,12 @@ discard block |
||
| 10 | 10 | function lsx_scripts() { |
| 11 | 11 | global $content_width; |
| 12 | 12 | |
| 13 | - wp_enqueue_style('lsx_main_style', get_stylesheet_uri() , false, '23a2bd43791de3fa3cab2d2af5fec6a2'); |
|
| 13 | + wp_enqueue_style('lsx_main_style', get_stylesheet_uri(), false, '23a2bd43791de3fa3cab2d2af5fec6a2'); |
|
| 14 | 14 | |
| 15 | 15 | wp_enqueue_style('lsx_main', get_template_directory_uri() . '/css/app.css', false, '48a2bd26791de3fa7cab2d2af5fec6a2'); |
| 16 | 16 | |
| 17 | - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { |
|
| 18 | - wp_enqueue_script( 'comment-reply' ); |
|
| 17 | + if (is_singular() && comments_open() && get_option('thread_comments')) { |
|
| 18 | + wp_enqueue_script('comment-reply'); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/vendor/bootstrap.min.js', array('jquery'), 'c9f983e2965b9c7888dac272e56c4f4b', false); |
@@ -26,38 +26,38 @@ discard block |
||
| 26 | 26 | wp_enqueue_script('picturefill', get_template_directory_uri() . '/js/vendor/picturefill.min.js', array(), null, false); |
| 27 | 27 | |
| 28 | 28 | wp_enqueue_script('masonry'); |
| 29 | - wp_enqueue_script('imagesLoaded', get_template_directory_uri().'/js/vendor/imagesloaded.pkgd.min.js', array('jquery','masonry')); |
|
| 30 | - if(defined('WP_DEBUG') && true === WP_DEBUG){ |
|
| 29 | + wp_enqueue_script('imagesLoaded', get_template_directory_uri() . '/js/vendor/imagesloaded.pkgd.min.js', array('jquery', 'masonry')); |
|
| 30 | + if (defined('WP_DEBUG') && true === WP_DEBUG) { |
|
| 31 | 31 | wp_enqueue_script('lsx_script', get_template_directory_uri() . '/js/lsx-script.js', array('masonry'), null, false); |
| 32 | - }else{ |
|
| 32 | + } else { |
|
| 33 | 33 | wp_enqueue_script('lsx_script', get_template_directory_uri() . '/js/lsx-script.min.js', array('masonry'), null, false); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | //Set some parameters that we can use in the JS |
| 37 | 37 | $is_portfolio = false; |
| 38 | - if(is_post_type_archive('jetpack-portfolio') || is_tax('jetpack-portfolio-type') || is_tax('jetpack-portfolio-tag') || is_page_template('page-templates/template-portfolio.php')){ |
|
| 38 | + if (is_post_type_archive('jetpack-portfolio') || is_tax('jetpack-portfolio-type') || is_tax('jetpack-portfolio-tag') || is_page_template('page-templates/template-portfolio.php')) { |
|
| 39 | 39 | $is_portfolio = true; |
| 40 | 40 | } |
| 41 | 41 | $param_array = array( |
| 42 | 42 | 'is_portfolio' => $is_portfolio |
| 43 | 43 | ); |
| 44 | 44 | //Set the columns for the archives |
| 45 | - $param_array['columns'] = apply_filters('lsx_archive_column_number',3); |
|
| 46 | - wp_localize_script( 'lsx_script', 'lsx_params', $param_array ); |
|
| 45 | + $param_array['columns'] = apply_filters('lsx_archive_column_number', 3); |
|
| 46 | + wp_localize_script('lsx_script', 'lsx_params', $param_array); |
|
| 47 | 47 | |
| 48 | 48 | |
| 49 | - wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/css/font-awesome.min.css'); |
|
| 49 | + wp_enqueue_style('fontawesome', get_template_directory_uri() . '/css/font-awesome.min.css'); |
|
| 50 | 50 | |
| 51 | 51 | |
| 52 | - if(is_child_theme() && file_exists(get_stylesheet_directory() . '/custom.css')) { |
|
| 53 | - wp_enqueue_style( 'child-css', get_stylesheet_directory_uri() . '/custom.css' ); |
|
| 52 | + if (is_child_theme() && file_exists(get_stylesheet_directory() . '/custom.css')) { |
|
| 53 | + wp_enqueue_style('child-css', get_stylesheet_directory_uri() . '/custom.css'); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | wp_enqueue_style('medium-break', get_template_directory_uri() . '/css/medium-nav-break.css', false); |
| 57 | 57 | |
| 58 | 58 | |
| 59 | - $font = get_theme_mod('lsx_font','raleway_open_sans'); |
|
| 60 | - switch($font){ |
|
| 59 | + $font = get_theme_mod('lsx_font', 'raleway_open_sans'); |
|
| 60 | + switch ($font) { |
|
| 61 | 61 | case 'raleway_open_sans': |
| 62 | 62 | $header_font_location = 'Raleway'; |
| 63 | 63 | $body_font_location = 'Open+Sans'; |
@@ -86,18 +86,18 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | $http_var = 'http'; |
| 89 | - if(is_ssl()){ $http_var .= 's'; } |
|
| 89 | + if (is_ssl()) { $http_var .= 's'; } |
|
| 90 | 90 | |
| 91 | 91 | //Call the Google Fonts and then Enque them. |
| 92 | - wp_register_style('lsx-header-font', $http_var.'://fonts.googleapis.com/css?family='.$header_font_location); |
|
| 93 | - wp_register_style('lsx-body-font', $http_var.'://fonts.googleapis.com/css?family='.$body_font_location); |
|
| 94 | - wp_enqueue_style( 'lsx-header-font'); |
|
| 95 | - wp_enqueue_style( 'lsx-body-font'); |
|
| 92 | + wp_register_style('lsx-header-font', $http_var . '://fonts.googleapis.com/css?family=' . $header_font_location); |
|
| 93 | + wp_register_style('lsx-body-font', $http_var . '://fonts.googleapis.com/css?family=' . $body_font_location); |
|
| 94 | + wp_enqueue_style('lsx-header-font'); |
|
| 95 | + wp_enqueue_style('lsx-body-font'); |
|
| 96 | 96 | |
| 97 | - wp_enqueue_style('lsx_font_scheme', esc_url( get_template_directory_uri() . '/css/'.$font.'.css'), false, '48a2bd26791de3fa7cab2d2af5fec6a4'); |
|
| 97 | + wp_enqueue_style('lsx_font_scheme', esc_url(get_template_directory_uri() . '/css/' . $font . '.css'), false, '48a2bd26791de3fa7cab2d2af5fec6a4'); |
|
| 98 | 98 | |
| 99 | 99 | } |
| 100 | -add_action( 'wp_enqueue_scripts', 'lsx_scripts' ); |
|
| 100 | +add_action('wp_enqueue_scripts', 'lsx_scripts'); |
|
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | 103 | * Defer JavaScript |
@@ -105,14 +105,14 @@ discard block |
||
| 105 | 105 | * @package lsx |
| 106 | 106 | * @subpackage scripts |
| 107 | 107 | */ |
| 108 | -function lsx_scripts_defer_parsing( $url ) { |
|
| 109 | - if ( ! ( is_admin() ) ) { |
|
| 110 | - if ( FALSE === strpos( $url, '.js' ) ) return $url; |
|
| 111 | - if ( strpos( $url, 'jquery.js' ) ) return $url; |
|
| 112 | - if ( strpos( $url, ' defer ' ) ) return $url; |
|
| 108 | +function lsx_scripts_defer_parsing($url) { |
|
| 109 | + if ( ! (is_admin())) { |
|
| 110 | + if (FALSE === strpos($url, '.js')) return $url; |
|
| 111 | + if (strpos($url, 'jquery.js')) return $url; |
|
| 112 | + if (strpos($url, ' defer ')) return $url; |
|
| 113 | 113 | return "$url' defer onload='"; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | return $url; |
| 117 | 117 | } |
| 118 | -add_filter( 'clean_url', 'lsx_scripts_defer_parsing', 11, 1 ); |
|
| 118 | +add_filter('clean_url', 'lsx_scripts_defer_parsing', 11, 1); |
|
@@ -1,5 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Enqueue scripts and styles. |
@@ -29,7 +32,7 @@ discard block |
||
| 29 | 32 | wp_enqueue_script('imagesLoaded', get_template_directory_uri().'/js/vendor/imagesloaded.pkgd.min.js', array('jquery','masonry')); |
| 30 | 33 | if(defined('WP_DEBUG') && true === WP_DEBUG){ |
| 31 | 34 | wp_enqueue_script('lsx_script', get_template_directory_uri() . '/js/lsx-script.js', array('masonry'), null, false); |
| 32 | - }else{ |
|
| 35 | + } else{ |
|
| 33 | 36 | wp_enqueue_script('lsx_script', get_template_directory_uri() . '/js/lsx-script.min.js', array('masonry'), null, false); |
| 34 | 37 | } |
| 35 | 38 | |
@@ -107,9 +110,15 @@ discard block |
||
| 107 | 110 | */ |
| 108 | 111 | function lsx_scripts_defer_parsing( $url ) { |
| 109 | 112 | if ( ! ( is_admin() ) ) { |
| 110 | - if ( FALSE === strpos( $url, '.js' ) ) return $url; |
|
| 111 | - if ( strpos( $url, 'jquery.js' ) ) return $url; |
|
| 112 | - if ( strpos( $url, ' defer ' ) ) return $url; |
|
| 113 | + if ( FALSE === strpos( $url, '.js' ) ) { |
|
| 114 | + return $url; |
|
| 115 | + } |
|
| 116 | + if ( strpos( $url, 'jquery.js' ) ) { |
|
| 117 | + return $url; |
|
| 118 | + } |
|
| 119 | + if ( strpos( $url, ' defer ' ) ) { |
|
| 120 | + return $url; |
|
| 121 | + } |
|
| 113 | 122 | return "$url' defer onload='"; |
| 114 | 123 | } |
| 115 | 124 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * Customizer Configuration File |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * @author [email protected] <lsdev.biz> |
| 10 | 10 | * |
| 11 | 11 | */ |
| 12 | -if ( ! class_exists( 'LSX_Theme_Customizer' ) ) { |
|
| 12 | +if ( ! class_exists('LSX_Theme_Customizer')) { |
|
| 13 | 13 | |
| 14 | 14 | class LSX_Theme_Customizer { |
| 15 | 15 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @since 1.0.0 |
| 31 | 31 | */ |
| 32 | - public function __construct( $controls ) { |
|
| 32 | + public function __construct($controls) { |
|
| 33 | 33 | require get_template_directory() . '/inc/google-font.php'; |
| 34 | 34 | require get_template_directory() . '/inc/google-font-collection.php'; |
| 35 | 35 | require get_template_directory() . '/inc/customizer-core.php'; |
@@ -40,19 +40,19 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | $this->controls = $controls; |
| 42 | 42 | |
| 43 | - add_action( 'customize_preview_init', array($this,'customize_preview_js' ),20); |
|
| 44 | - add_action( 'customize_register', array($this,'customizer'), 11 ); |
|
| 43 | + add_action('customize_preview_init', array($this, 'customize_preview_js'), 20); |
|
| 44 | + add_action('customize_register', array($this, 'customizer'), 11); |
|
| 45 | 45 | |
| 46 | - add_action( 'wp_ajax_customizer_site_title', array($this,'ajax_site_title') ); |
|
| 47 | - add_action( 'wp_ajax_nopriv_customizer_site_title', array($this,'ajax_site_title') ); |
|
| 46 | + add_action('wp_ajax_customizer_site_title', array($this, 'ajax_site_title')); |
|
| 47 | + add_action('wp_ajax_nopriv_customizer_site_title', array($this, 'ajax_site_title')); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. |
| 52 | 52 | */ |
| 53 | 53 | function customize_preview_js() { |
| 54 | - wp_enqueue_script( 'lsx_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ) , wp_get_theme()->Version, true ); |
|
| 55 | - wp_localize_script( 'lsx_customizer', 'lsx_customizer_params', array( 'template_directory' => get_template_directory_uri() ) ); |
|
| 54 | + wp_enqueue_script('lsx_customizer', get_template_directory_uri() . '/js/customizer.js', array('customize-preview'), wp_get_theme()->Version, true); |
|
| 55 | + wp_localize_script('lsx_customizer', 'lsx_customizer_params', array('template_directory' => get_template_directory_uri())); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -60,40 +60,40 @@ discard block |
||
| 60 | 60 | * |
| 61 | 61 | * @since 1.0.0 |
| 62 | 62 | */ |
| 63 | - public function customizer( $wp_customize ) { |
|
| 63 | + public function customizer($wp_customize) { |
|
| 64 | 64 | // start panels |
| 65 | - if( !empty( $this->controls['panels'] ) ){ |
|
| 66 | - foreach( $this->controls['panels'] as $panel_slug => $args ){ |
|
| 67 | - $this->add_panel( $panel_slug, $args, $wp_customize ); |
|
| 65 | + if ( ! empty($this->controls['panels'])) { |
|
| 66 | + foreach ($this->controls['panels'] as $panel_slug => $args) { |
|
| 67 | + $this->add_panel($panel_slug, $args, $wp_customize); |
|
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | // start sections |
| 72 | - if( !empty( $this->controls['sections'] ) ){ |
|
| 73 | - foreach( $this->controls['sections'] as $section_slug => $args ){ |
|
| 74 | - $this->add_section( $section_slug, $args, $wp_customize ); |
|
| 72 | + if ( ! empty($this->controls['sections'])) { |
|
| 73 | + foreach ($this->controls['sections'] as $section_slug => $args) { |
|
| 74 | + $this->add_section($section_slug, $args, $wp_customize); |
|
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | // start settings |
| 79 | - if( !empty( $this->controls['settings'] ) ){ |
|
| 80 | - foreach( $this->controls['settings'] as $settings_slug => $args ){ |
|
| 81 | - $this->add_setting( $settings_slug, $args, $wp_customize ); |
|
| 79 | + if ( ! empty($this->controls['settings'])) { |
|
| 80 | + foreach ($this->controls['settings'] as $settings_slug => $args) { |
|
| 81 | + $this->add_setting($settings_slug, $args, $wp_customize); |
|
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | // start fields |
| 86 | - if( !empty( $this->controls['fields'] ) ){ |
|
| 87 | - foreach( $this->controls['fields'] as $field_slug => $args ){ |
|
| 88 | - $this->add_control( $field_slug, $args, $wp_customize ); |
|
| 86 | + if ( ! empty($this->controls['fields'])) { |
|
| 87 | + foreach ($this->controls['fields'] as $field_slug => $args) { |
|
| 88 | + $this->add_control($field_slug, $args, $wp_customize); |
|
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; |
|
| 93 | - $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; |
|
| 94 | - $wp_customize->get_setting( 'background_color' )->transport = 'postMessage'; |
|
| 92 | + $wp_customize->get_setting('blogname')->transport = 'postMessage'; |
|
| 93 | + $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; |
|
| 94 | + $wp_customize->get_setting('background_color')->transport = 'postMessage'; |
|
| 95 | 95 | |
| 96 | - $wp_customize->remove_control( 'background_color' ); |
|
| 96 | + $wp_customize->remove_control('background_color'); |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * |
| 102 | 102 | * @since 1.0.0 |
| 103 | 103 | */ |
| 104 | - private function add_panel( $slug, $args, $wp_customize ) { |
|
| 104 | + private function add_panel($slug, $args, $wp_customize) { |
|
| 105 | 105 | $default_args = array( |
| 106 | 106 | 'title' => null, |
| 107 | 107 | 'description' => null, |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | $wp_customize->add_panel( |
| 111 | 111 | $slug, |
| 112 | - array_merge( $default_args, $args ) |
|
| 112 | + array_merge($default_args, $args) |
|
| 113 | 113 | ); |
| 114 | 114 | } |
| 115 | 115 | |
@@ -118,14 +118,14 @@ discard block |
||
| 118 | 118 | * |
| 119 | 119 | * @since 1.0.0 |
| 120 | 120 | */ |
| 121 | - private function add_section( $slug, $args, $wp_customize ) { |
|
| 121 | + private function add_section($slug, $args, $wp_customize) { |
|
| 122 | 122 | $default_args = array( |
| 123 | 123 | 'capability' => 'edit_theme_options', //Capability needed to tweak |
| 124 | 124 | 'description' => null, //Descriptive tooltip |
| 125 | 125 | ); |
| 126 | 126 | |
| 127 | - $wp_customize->add_section( $slug, |
|
| 128 | - array_merge( $default_args, $args ) |
|
| 127 | + $wp_customize->add_section($slug, |
|
| 128 | + array_merge($default_args, $args) |
|
| 129 | 129 | ); |
| 130 | 130 | } |
| 131 | 131 | |
@@ -134,15 +134,15 @@ discard block |
||
| 134 | 134 | * |
| 135 | 135 | * @since 1.0.0 |
| 136 | 136 | */ |
| 137 | - private function add_setting( $slug, $args, $wp_customize ) { |
|
| 138 | - $wp_customize->add_setting( $slug, //No need to use a SERIALIZED name, as `theme_mod` settings already live under one db record |
|
| 139 | - array_merge( array( |
|
| 137 | + private function add_setting($slug, $args, $wp_customize) { |
|
| 138 | + $wp_customize->add_setting($slug, //No need to use a SERIALIZED name, as `theme_mod` settings already live under one db record |
|
| 139 | + array_merge(array( |
|
| 140 | 140 | 'default' => null, //Default setting/value to save |
| 141 | 141 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
| 142 | 142 | 'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting. |
| 143 | 143 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
| 144 | 144 | 'sanitize_callback' => 'lsx_sanitize_choices' |
| 145 | - ), $args ) |
|
| 145 | + ), $args) |
|
| 146 | 146 | ); |
| 147 | 147 | } |
| 148 | 148 | |
@@ -151,28 +151,28 @@ discard block |
||
| 151 | 151 | * |
| 152 | 152 | * @since 1.0.0 |
| 153 | 153 | */ |
| 154 | - private function add_control( $slug, $args, $wp_customize ) { |
|
| 154 | + private function add_control($slug, $args, $wp_customize) { |
|
| 155 | 155 | $default_args = array( |
| 156 | 156 | |
| 157 | 157 | ); |
| 158 | 158 | |
| 159 | - if( isset( $args['control'] ) && class_exists( $args['control'] )){ |
|
| 159 | + if (isset($args['control']) && class_exists($args['control'])) { |
|
| 160 | 160 | |
| 161 | 161 | $control_class = $args['control']; |
| 162 | - unset( $args['control'] ); |
|
| 162 | + unset($args['control']); |
|
| 163 | 163 | |
| 164 | - $control = new $control_class( $wp_customize, $slug, array_merge( $default_args, $args ) ); |
|
| 165 | - $wp_customize->add_control( $control ); |
|
| 164 | + $control = new $control_class($wp_customize, $slug, array_merge($default_args, $args)); |
|
| 165 | + $wp_customize->add_control($control); |
|
| 166 | 166 | |
| 167 | - }else{ |
|
| 167 | + } else { |
|
| 168 | 168 | |
| 169 | - if( isset( $args['control'] ) ){ |
|
| 170 | - unset( $args['control'] ); |
|
| 169 | + if (isset($args['control'])) { |
|
| 170 | + unset($args['control']); |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | $wp_customize->add_control( |
| 174 | 174 | $slug, |
| 175 | - array_merge( $default_args, $args ) |
|
| 175 | + array_merge($default_args, $args) |
|
| 176 | 176 | ); |
| 177 | 177 | } |
| 178 | 178 | } |
@@ -1,5 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customizer Configuration File |
@@ -164,7 +167,7 @@ discard block |
||
| 164 | 167 | $control = new $control_class( $wp_customize, $slug, array_merge( $default_args, $args ) ); |
| 165 | 168 | $wp_customize->add_control( $control ); |
| 166 | 169 | |
| 167 | - }else{ |
|
| 170 | + } else{ |
|
| 168 | 171 | |
| 169 | 172 | if( isset( $args['control'] ) ){ |
| 170 | 173 | unset( $args['control'] ); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | function lsx_events_styles() { |
| 21 | - wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css' ); |
|
| 21 | + wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css' ); |
|
| 22 | 22 | } |
| 23 | 23 | add_action( 'wp_enqueue_scripts', 'lsx_events_styles' ); |
| 24 | 24 | |
@@ -18,9 +18,9 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | function lsx_events_styles() { |
| 21 | - wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css' ); |
|
| 21 | + wp_enqueue_style('events', get_template_directory_uri() . '/css/the-events-calendar.css'); |
|
| 22 | 22 | } |
| 23 | -add_action( 'wp_enqueue_scripts', 'lsx_events_styles' ); |
|
| 23 | +add_action('wp_enqueue_scripts', 'lsx_events_styles'); |
|
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -32,41 +32,41 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | function lsx_tribe_breadcrumbs($output) { |
| 34 | 34 | global $wp_query; |
| 35 | - if( (isset($wp_query->tribe_is_event) && true === $wp_query->tribe_is_event) || (isset($wp_query->query_vars['post_type']) && !is_array($wp_query->query_vars['post_type']) && 'tribe_venue' === $wp_query->query_vars['post_type'])){ |
|
| 36 | - if(function_exists('woocommerce_breadcrumb')){ |
|
| 35 | + if ((isset($wp_query->tribe_is_event) && true === $wp_query->tribe_is_event) || (isset($wp_query->query_vars['post_type']) && ! is_array($wp_query->query_vars['post_type']) && 'tribe_venue' === $wp_query->query_vars['post_type'])) { |
|
| 36 | + if (function_exists('woocommerce_breadcrumb')) { |
|
| 37 | 37 | $closing_div = '</nav>'; |
| 38 | 38 | |
| 39 | - if( is_single()) { |
|
| 40 | - $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>',$output); |
|
| 41 | - if(isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']){ |
|
| 42 | - $output = str_replace($closing_div,get_the_title($wp_query->query_vars['post_parent']).$closing_div,$output); |
|
| 43 | - }else{ |
|
| 39 | + if (is_single()) { |
|
| 40 | + $output = str_replace('Page', '<a href="' . get_post_type_archive_link('tribe_events') . '">' . __('Events', 'lsx') . '</a>', $output); |
|
| 41 | + if (isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']) { |
|
| 42 | + $output = str_replace($closing_div, get_the_title($wp_query->query_vars['post_parent']) . $closing_div, $output); |
|
| 43 | + } else { |
|
| 44 | 44 | $single_event = get_queried_object(); |
| 45 | - $output = str_replace($closing_div,apply_filters('the_title',$single_event->post_title).$closing_div,$output); |
|
| 45 | + $output = str_replace($closing_div, apply_filters('the_title', $single_event->post_title) . $closing_div, $output); |
|
| 46 | 46 | } |
| 47 | - }elseif( is_tax()) { |
|
| 47 | + }elseif (is_tax()) { |
|
| 48 | 48 | $tax_event = get_queried_object(); |
| 49 | - $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>',$output); |
|
| 50 | - $output = str_replace($closing_div,' / '.apply_filters('the_title',$tax_event->name).$closing_div,$output); |
|
| 51 | - }else{ |
|
| 52 | - $output = str_replace('Page',__('Events','lsx'),$output); |
|
| 49 | + $output = str_replace('Page', '<a href="' . get_post_type_archive_link('tribe_events') . '">' . __('Events', 'lsx') . '</a>', $output); |
|
| 50 | + $output = str_replace($closing_div, ' / ' . apply_filters('the_title', $tax_event->name) . $closing_div, $output); |
|
| 51 | + } else { |
|
| 52 | + $output = str_replace('Page', __('Events', 'lsx'), $output); |
|
| 53 | 53 | } |
| 54 | - }elseif(function_exists('yoast_breadcrumb')){ |
|
| 54 | + }elseif (function_exists('yoast_breadcrumb')) { |
|
| 55 | 55 | $closing_div = '</div>'; |
| 56 | - $last_breadcrumb = '<span class="breadcrumb_last">'.__('Events','lsx').'</span>'; |
|
| 56 | + $last_breadcrumb = '<span class="breadcrumb_last">' . __('Events', 'lsx') . '</span>'; |
|
| 57 | 57 | |
| 58 | - if( is_single()) { |
|
| 58 | + if (is_single()) { |
|
| 59 | 59 | $single_event = get_queried_object(); |
| 60 | - $output = str_replace($closing_div,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a> / '.apply_filters('the_title',$single_event->post_title),$output); |
|
| 61 | - }elseif( is_tax()) { |
|
| 60 | + $output = str_replace($closing_div, '<a href="' . get_post_type_archive_link('tribe_events') . '">' . __('Events', 'lsx') . '</a> / ' . apply_filters('the_title', $single_event->post_title), $output); |
|
| 61 | + }elseif (is_tax()) { |
|
| 62 | 62 | $tax_event = get_queried_object(); |
| 63 | - $output = str_replace($last_breadcrumb,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a> / '.apply_filters('the_title',$tax_event->name),$output); |
|
| 63 | + $output = str_replace($last_breadcrumb, '<a href="' . get_post_type_archive_link('tribe_events') . '">' . __('Events', 'lsx') . '</a> / ' . apply_filters('the_title', $tax_event->name), $output); |
|
| 64 | 64 | |
| 65 | - }else{ |
|
| 66 | - $output = str_replace('Page',__('Events','lsx'),$output); |
|
| 65 | + } else { |
|
| 66 | + $output = str_replace('Page', __('Events', 'lsx'), $output); |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | return $output; |
| 71 | 71 | } |
| 72 | -add_filter( 'lsx_breadcrumbs', 'lsx_tribe_breadcrumbs',1,10 ); |
|
| 73 | 72 | \ No newline at end of file |
| 73 | +add_filter('lsx_breadcrumbs', 'lsx_tribe_breadcrumbs', 1, 10); |
|
| 74 | 74 | \ No newline at end of file |
@@ -40,29 +40,29 @@ |
||
| 40 | 40 | $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>',$output); |
| 41 | 41 | if(isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']){ |
| 42 | 42 | $output = str_replace($closing_div,get_the_title($wp_query->query_vars['post_parent']).$closing_div,$output); |
| 43 | - }else{ |
|
| 43 | + } else{ |
|
| 44 | 44 | $single_event = get_queried_object(); |
| 45 | 45 | $output = str_replace($closing_div,apply_filters('the_title',$single_event->post_title).$closing_div,$output); |
| 46 | 46 | } |
| 47 | - }elseif( is_tax()) { |
|
| 47 | + } elseif( is_tax()) { |
|
| 48 | 48 | $tax_event = get_queried_object(); |
| 49 | 49 | $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a>',$output); |
| 50 | 50 | $output = str_replace($closing_div,' / '.apply_filters('the_title',$tax_event->name).$closing_div,$output); |
| 51 | - }else{ |
|
| 51 | + } else{ |
|
| 52 | 52 | $output = str_replace('Page',__('Events','lsx'),$output); |
| 53 | 53 | } |
| 54 | - }elseif(function_exists('yoast_breadcrumb')){ |
|
| 54 | + } elseif(function_exists('yoast_breadcrumb')){ |
|
| 55 | 55 | $closing_div = '</div>'; |
| 56 | 56 | $last_breadcrumb = '<span class="breadcrumb_last">'.__('Events','lsx').'</span>'; |
| 57 | 57 | |
| 58 | 58 | if( is_single()) { |
| 59 | 59 | $single_event = get_queried_object(); |
| 60 | 60 | $output = str_replace($closing_div,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a> / '.apply_filters('the_title',$single_event->post_title),$output); |
| 61 | - }elseif( is_tax()) { |
|
| 61 | + } elseif( is_tax()) { |
|
| 62 | 62 | $tax_event = get_queried_object(); |
| 63 | 63 | $output = str_replace($last_breadcrumb,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.__('Events','lsx').'</a> / '.apply_filters('the_title',$tax_event->name),$output); |
| 64 | 64 | |
| 65 | - }else{ |
|
| 65 | + } else{ |
|
| 66 | 66 | $output = str_replace('Page',__('Events','lsx'),$output); |
| 67 | 67 | } |
| 68 | 68 | } |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -1,12 +1,12 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined('ABSPATH')) return; // Exit if accessed directly |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * Customize Swatch Control Class |
| 6 | 6 | * |
| 7 | 7 | * @since 1.0.0 |
| 8 | 8 | */ |
| 9 | -if( !class_exists( 'WP_Customize_Control' ) ){ |
|
| 9 | +if ( ! class_exists('WP_Customize_Control')) { |
|
| 10 | 10 | return; |
| 11 | 11 | } |
| 12 | 12 | class LSX_Customize_Layout_Control extends WP_Customize_Control { |
@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | * @param string $id |
| 39 | 39 | * @param array $args |
| 40 | 40 | */ |
| 41 | - public function __construct( $manager, $id, $args = array() ) { |
|
| 42 | - parent::__construct( $manager, $id, $args ); |
|
| 43 | - if( !empty( $args['choices'] ) ){ |
|
| 41 | + public function __construct($manager, $id, $args = array()) { |
|
| 42 | + parent::__construct($manager, $id, $args); |
|
| 43 | + if ( ! empty($args['choices'])) { |
|
| 44 | 44 | $this->layouts = $args['choices']; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function enqueue() { |
| 54 | 54 | // |
| 55 | - wp_enqueue_script( 'lsx-layout-control', get_template_directory_uri() .'/js/customizer-layout.js', array('jquery'), null, true ); |
|
| 55 | + wp_enqueue_script('lsx-layout-control', get_template_directory_uri() . '/js/customizer-layout.js', array('jquery'), null, true); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -62,30 +62,30 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function render_content() { |
| 64 | 64 | |
| 65 | - $post_id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ); |
|
| 65 | + $post_id = 'customize-control-' . str_replace('[', '-', str_replace(']', '', $this->id)); |
|
| 66 | 66 | $class = 'customize-control customize-control-' . $this->type; |
| 67 | 67 | $value = $this->value(); |
| 68 | 68 | |
| 69 | 69 | ?> |
| 70 | 70 | <label> |
| 71 | - <?php if ( ! empty( $this->label ) ) { ?> |
|
| 72 | - <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> |
|
| 71 | + <?php if ( ! empty($this->label)) { ?> |
|
| 72 | + <span class="customize-control-title"><?php echo esc_html($this->label); ?></span> |
|
| 73 | 73 | <?php } |
| 74 | - if ( ! empty( $this->description ) ) { ?> |
|
| 75 | - <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span> |
|
| 74 | + if ( ! empty($this->description)) { ?> |
|
| 75 | + <span class="description customize-control-description"><?php echo esc_html($this->description); ?></span> |
|
| 76 | 76 | <?php } ?> |
| 77 | 77 | <div class="layouts-selector"> |
| 78 | 78 | <?php |
| 79 | - foreach( $this->layouts as $layout ){ |
|
| 79 | + foreach ($this->layouts as $layout) { |
|
| 80 | 80 | $sel = 'border: 1px solid transparent;'; |
| 81 | - if( $value == $layout ){ |
|
| 81 | + if ($value == $layout) { |
|
| 82 | 82 | $sel = 'border: 1px solid rgb(43, 166, 203);'; |
| 83 | 83 | } |
| 84 | - echo '<img class="layout-button" style="padding:2px;'. esc_attr( $sel ) .'" src="' . esc_attr( get_template_directory_uri() ) .'/img/' . esc_attr( $layout ) . '.png" data-option="' . esc_attr( $layout ) . '">'; |
|
| 84 | + echo '<img class="layout-button" style="padding:2px;' . esc_attr($sel) . '" src="' . esc_attr(get_template_directory_uri()) . '/img/' . esc_attr($layout) . '.png" data-option="' . esc_attr($layout) . '">'; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | ?> |
| 88 | - <input <?php $this->link(); ?> class="selected-layout <?php echo esc_attr( $class ); ?>" id="<?php echo esc_attr( $post_id ); ?>" type="hidden" value="<?php echo esc_attr( $value ); ?>" <?php $this->input_attrs(); ?>> |
|
| 88 | + <input <?php $this->link(); ?> class="selected-layout <?php echo esc_attr($class); ?>" id="<?php echo esc_attr($post_id); ?>" type="hidden" value="<?php echo esc_attr($value); ?>" <?php $this->input_attrs(); ?>> |
|
| 89 | 89 | </div> |
| 90 | 90 | </label> |
| 91 | 91 | <?php |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + return; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Customize Swatch Control Class |
@@ -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,22 +21,22 @@ 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 | 36 | require get_template_directory() . '/inc/template-tags.php'; |
| 37 | 37 | require get_template_directory() . '/inc/extras.php'; |
| 38 | 38 | require get_template_directory() . '/inc/wp_bootstrap_navwalker.php'; |
| 39 | -if(class_exists('Sensei_WC')){ |
|
| 39 | +if (class_exists('Sensei_WC')) { |
|
| 40 | 40 | require get_template_directory() . '/inc/sensei.php'; |
| 41 | 41 | } |
| 42 | 42 | |
@@ -48,10 +48,10 @@ discard block |
||
| 48 | 48 | * @category customizer |
| 49 | 49 | * @return $lsx_controls array() |
| 50 | 50 | */ |
| 51 | -function lsx_customizer_core_controls( $lsx_controls ) { |
|
| 51 | +function lsx_customizer_core_controls($lsx_controls) { |
|
| 52 | 52 | $lsx_controls['sections']['lsx-core'] = array( |
| 53 | - 'title' => esc_html__( 'Core Settings', 'lsx' ), |
|
| 54 | - 'description' => __( 'Change the core settings.', 'lsx' ), |
|
| 53 | + 'title' => esc_html__('Core Settings', 'lsx'), |
|
| 54 | + 'description' => __('Change the core settings.', 'lsx'), |
|
| 55 | 55 | 'priority' => 21 |
| 56 | 56 | ); |
| 57 | 57 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | 64 | $lsx_controls['fields']['lsx_lazyload_status'] = array( |
| 65 | - 'label' => __( 'Lazy Loading Images', 'lsx' ), |
|
| 65 | + 'label' => __('Lazy Loading Images', 'lsx'), |
|
| 66 | 66 | 'section' => 'lsx-core', |
| 67 | 67 | 'type' => 'checkbox', |
| 68 | 68 | ); |
@@ -74,14 +74,14 @@ discard block |
||
| 74 | 74 | ); |
| 75 | 75 | |
| 76 | 76 | $lsx_controls['fields']['lsx_preloader_content_status'] = array( |
| 77 | - 'label' => __( 'Preloader Content', 'lsx' ), |
|
| 77 | + 'label' => __('Preloader Content', 'lsx'), |
|
| 78 | 78 | 'section' => 'lsx-core', |
| 79 | 79 | 'type' => 'checkbox', |
| 80 | 80 | ); |
| 81 | 81 | |
| 82 | 82 | return $lsx_controls; |
| 83 | 83 | } |
| 84 | -add_filter( 'lsx_customizer_controls', 'lsx_customizer_core_controls' ); |
|
| 84 | +add_filter('lsx_customizer_controls', 'lsx_customizer_core_controls'); |
|
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * Returns an array of the colour scheme picker. |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * @category customizer |
| 92 | 92 | * @return $lsx_controls array() |
| 93 | 93 | */ |
| 94 | -function lsx_customizer_colour_scheme_controls( $lsx_controls ) { |
|
| 94 | +function lsx_customizer_colour_scheme_controls($lsx_controls) { |
|
| 95 | 95 | global $customizer_colour_names; |
| 96 | 96 | global $customizer_colour_choices; |
| 97 | 97 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | ); |
| 103 | 103 | |
| 104 | 104 | $lsx_controls['fields']['color_scheme'] = array( |
| 105 | - 'label' => esc_html__( 'Base Color Scheme', 'lsx' ), |
|
| 105 | + 'label' => esc_html__('Base Color Scheme', 'lsx'), |
|
| 106 | 106 | 'section' => 'colors', |
| 107 | 107 | 'type' => 'select', |
| 108 | 108 | 'priority' => 1, |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | $counter = 0; |
| 114 | 114 | |
| 115 | - foreach ( $customizer_colour_names as $key => $value ) { |
|
| 115 | + foreach ($customizer_colour_names as $key => $value) { |
|
| 116 | 116 | $lsx_controls['settings'][$key] = array( |
| 117 | 117 | 'default' => $customizer_colour_choices['default']['colors'][$counter], |
| 118 | 118 | 'type' => 'theme_mod', |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | return $lsx_controls; |
| 133 | 133 | } |
| 134 | -add_filter( 'lsx_customizer_controls', 'lsx_customizer_colour_scheme_controls' ); |
|
| 134 | +add_filter('lsx_customizer_controls', 'lsx_customizer_colour_scheme_controls'); |
|
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | 137 | * Returns an array of the layout panel. |
@@ -142,56 +142,56 @@ discard block |
||
| 142 | 142 | * @return $lsx_controls array() |
| 143 | 143 | */ |
| 144 | 144 | function lsx_customizer_layout_controls($lsx_controls) { |
| 145 | - $lsx_controls['settings']['lsx_header_layout'] = array( |
|
| 145 | + $lsx_controls['settings']['lsx_header_layout'] = array( |
|
| 146 | 146 | 'default' => 'inline', //Default setting/value to save |
| 147 | 147 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
| 148 | 148 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
| 149 | 149 | ); |
| 150 | 150 | $lsx_controls['fields']['lsx_header_layout'] = array( |
| 151 | - 'label' => __('Header','lsx'), |
|
| 151 | + 'label' => __('Header', 'lsx'), |
|
| 152 | 152 | 'section' => 'lsx-layout', |
| 153 | 153 | 'control' => 'LSX_Customize_Header_Layout_Control', |
| 154 | - 'choices' => array('central','expanded','inline') |
|
| 154 | + 'choices' => array('central', 'expanded', 'inline') |
|
| 155 | 155 | ); |
| 156 | 156 | $lsx_controls['sections']['lsx-layout'] = array( |
| 157 | - 'title' => esc_html__( 'Layout', 'lsx' ), |
|
| 158 | - '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' ), |
|
| 157 | + 'title' => esc_html__('Layout', 'lsx'), |
|
| 158 | + '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'), |
|
| 159 | 159 | 'priority' => 22 |
| 160 | 160 | ); |
| 161 | - $lsx_controls['settings']['lsx_layout'] = array( |
|
| 161 | + $lsx_controls['settings']['lsx_layout'] = array( |
|
| 162 | 162 | 'default' => '2cr', //Default setting/value to save |
| 163 | 163 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
| 164 | 164 | 'transport' => 'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
| 165 | 165 | ); |
| 166 | - $lsx_controls['settings']['lsx_header_fixed'] = array( |
|
| 166 | + $lsx_controls['settings']['lsx_header_fixed'] = array( |
|
| 167 | 167 | 'default' => false, //Default setting/value to save |
| 168 | 168 | 'sanitize_callback' => 'lsx_sanitize_checkbox', |
| 169 | 169 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
| 170 | 170 | ); |
| 171 | 171 | $lsx_controls['fields']['lsx_header_fixed'] = array( |
| 172 | - 'label' => __('Fixed Header','lsx'), |
|
| 172 | + 'label' => __('Fixed Header', 'lsx'), |
|
| 173 | 173 | 'section' => 'lsx-layout', |
| 174 | 174 | 'type' => 'checkbox', |
| 175 | 175 | ); |
| 176 | - $lsx_controls['settings']['lsx_header_search'] = array( |
|
| 176 | + $lsx_controls['settings']['lsx_header_search'] = array( |
|
| 177 | 177 | 'default' => false, //Default setting/value to save |
| 178 | 178 | 'sanitize_callback' => 'lsx_sanitize_checkbox', |
| 179 | 179 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
| 180 | 180 | ); |
| 181 | 181 | $lsx_controls['fields']['lsx_header_search'] = array( |
| 182 | - 'label' => __('Search Box in Header','lsx'), |
|
| 182 | + 'label' => __('Search Box in Header', 'lsx'), |
|
| 183 | 183 | 'section' => 'lsx-layout', |
| 184 | 184 | 'type' => 'checkbox', |
| 185 | 185 | ); |
| 186 | 186 | $lsx_controls['fields']['lsx_layout'] = array( |
| 187 | - 'label' => __('Body','lsx'), |
|
| 187 | + 'label' => __('Body', 'lsx'), |
|
| 188 | 188 | 'section' => 'lsx-layout', |
| 189 | 189 | 'control' => 'LSX_Customize_Layout_Control', |
| 190 | - 'choices' => array('1c','2cr','2cl') |
|
| 190 | + 'choices' => array('1c', '2cr', '2cl') |
|
| 191 | 191 | ); |
| 192 | 192 | return $lsx_controls; |
| 193 | 193 | } |
| 194 | -add_filter('lsx_customizer_controls','lsx_customizer_layout_controls'); |
|
| 194 | +add_filter('lsx_customizer_controls', 'lsx_customizer_layout_controls'); |
|
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | 197 | * Returns an array of the font controls. |
@@ -203,11 +203,11 @@ discard block |
||
| 203 | 203 | */ |
| 204 | 204 | function lsx_customizer_font_controls($lsx_controls) { |
| 205 | 205 | $lsx_controls['sections']['lsx-font'] = array( |
| 206 | - 'title' => __( 'Font', 'lsx' ), |
|
| 206 | + 'title' => __('Font', 'lsx'), |
|
| 207 | 207 | 'description' => 'Change the fonts sitewide.', |
| 208 | 208 | 'priority' => 41 |
| 209 | 209 | ); |
| 210 | - $lsx_controls['settings']['lsx_font'] = array( |
|
| 210 | + $lsx_controls['settings']['lsx_font'] = array( |
|
| 211 | 211 | 'default' => 'raleway_open_sans', //Default setting/value to save |
| 212 | 212 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? |
| 213 | 213 | 'transport' => 'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? |
@@ -221,13 +221,13 @@ discard block |
||
| 221 | 221 | 'choices' => array( |
| 222 | 222 | 'raleway_open_sans' => array( |
| 223 | 223 | 'header' => array( |
| 224 | - "title" => __( 'Raleway', 'lsx' ), |
|
| 224 | + "title" => __('Raleway', 'lsx'), |
|
| 225 | 225 | "location" => "Raleway", |
| 226 | 226 | "cssDeclaration" => "'Raleway', sans-serif", |
| 227 | 227 | "cssClass" => "raleway", |
| 228 | 228 | ), |
| 229 | 229 | 'body' => array( |
| 230 | - "title" => __( 'Open Sans', 'lsx' ), |
|
| 230 | + "title" => __('Open Sans', 'lsx'), |
|
| 231 | 231 | "location" => "Open+Sans", |
| 232 | 232 | "cssDeclaration" => "'Open Sans', sans-serif", |
| 233 | 233 | "cssClass" => "openSans" |
@@ -235,13 +235,13 @@ discard block |
||
| 235 | 235 | ), |
| 236 | 236 | 'noto_serif_noto_sans' => array( |
| 237 | 237 | 'header' => array( |
| 238 | - "title" => __( 'Noto Serif', 'lsx' ), |
|
| 238 | + "title" => __('Noto Serif', 'lsx'), |
|
| 239 | 239 | "location" => "Noto+Serif", |
| 240 | 240 | "cssDeclaration" => "'Noto Serif', serif", |
| 241 | 241 | "cssClass" => "notoSerif", |
| 242 | 242 | ), |
| 243 | 243 | 'body' => array( |
| 244 | - "title" => __( 'Noto Sans', 'lsx' ), |
|
| 244 | + "title" => __('Noto Sans', 'lsx'), |
|
| 245 | 245 | "location" => "Noto+Sans", |
| 246 | 246 | "cssDeclaration" => "'Noto Sans', sans-serif", |
| 247 | 247 | "cssClass" => "notoSans", |
@@ -249,13 +249,13 @@ discard block |
||
| 249 | 249 | ), |
| 250 | 250 | 'noto_sans_noto_sans' => array( |
| 251 | 251 | 'header' => array( |
| 252 | - "title" => __( 'Noto Sans', 'lsx' ), |
|
| 252 | + "title" => __('Noto Sans', 'lsx'), |
|
| 253 | 253 | "location" => "Noto+Sans", |
| 254 | 254 | "cssDeclaration" => "'Noto Sans', sans-serif", |
| 255 | 255 | "cssClass" => "notoSans", |
| 256 | 256 | ), |
| 257 | 257 | 'body' => array( |
| 258 | - "title" => __( 'Noto Sans', 'lsx' ), |
|
| 258 | + "title" => __('Noto Sans', 'lsx'), |
|
| 259 | 259 | "location" => "Noto+Sans", |
| 260 | 260 | "cssDeclaration" => "'Noto Sans', sans-serif", |
| 261 | 261 | "cssClass" => "notoSans", |
@@ -263,13 +263,13 @@ discard block |
||
| 263 | 263 | ), |
| 264 | 264 | 'alegreya_open_sans' => array( |
| 265 | 265 | 'header' => array( |
| 266 | - "title" => __( 'Alegreya', 'lsx' ), |
|
| 266 | + "title" => __('Alegreya', 'lsx'), |
|
| 267 | 267 | "location" => "Alegreya", |
| 268 | 268 | "cssDeclaration" => "'Alegreya', serif", |
| 269 | 269 | "cssClass" => "alegreya", |
| 270 | 270 | ), |
| 271 | 271 | 'body' => array( |
| 272 | - "title" => __( 'Open Sans', 'lsx' ), |
|
| 272 | + "title" => __('Open Sans', 'lsx'), |
|
| 273 | 273 | "location" => "Open+Sans", |
| 274 | 274 | "cssDeclaration" => "'Open Sans', sans-serif", |
| 275 | 275 | "cssClass" => "openSans" |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | ); |
| 281 | 281 | return $lsx_controls; |
| 282 | 282 | } |
| 283 | -add_filter('lsx_customizer_controls','lsx_customizer_font_controls'); |
|
| 283 | +add_filter('lsx_customizer_controls', 'lsx_customizer_font_controls'); |
|
| 284 | 284 | |
| 285 | 285 | /** |
| 286 | 286 | * Returns an array of $controls for the customizer class to generate. |
@@ -290,12 +290,12 @@ discard block |
||
| 290 | 290 | * @category customizer |
| 291 | 291 | * @return $lsx_controls array() |
| 292 | 292 | */ |
| 293 | -function lsx_get_customizer_controls(){ |
|
| 293 | +function lsx_get_customizer_controls() { |
|
| 294 | 294 | $lsx_controls = array(); |
| 295 | 295 | $lsx_controls = apply_filters('lsx_customizer_controls', $lsx_controls); |
| 296 | 296 | return $lsx_controls; |
| 297 | 297 | } |
| 298 | -$lsx_customizer = new LSX_Theme_Customizer( lsx_get_customizer_controls() ); |
|
| 298 | +$lsx_customizer = new LSX_Theme_Customizer(lsx_get_customizer_controls()); |
|
| 299 | 299 | |
| 300 | -add_image_size( 'lsx-thumbnail-wide', 350, 230, true ); |
|
| 301 | -add_image_size( 'lsx-thumbnail-single', 750, 350, true ); |
|
| 302 | 300 | \ No newline at end of file |
| 301 | +add_image_size('lsx-thumbnail-wide', 350, 230, true); |
|
| 302 | +add_image_size('lsx-thumbnail-single', 750, 350, true); |
|
| 303 | 303 | \ No newline at end of file |