@@ -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 | /** |
5 | 5 | * Cleaner walker for wp_nav_menu() |
@@ -25,17 +25,17 @@ discard block |
||
25 | 25 | $item_html = ''; |
26 | 26 | |
27 | 27 | //If there is no menu set, dont use the pages, the objects are not the same as whats supposed to be used. |
28 | - if(isset($item->title)){ |
|
28 | + if (isset($item->title)) { |
|
29 | 29 | |
30 | 30 | parent::start_el($item_html, $item, $depth, $args); |
31 | 31 | |
32 | - if ( $item->is_dropdown && ( 0 === $depth ) ) { |
|
32 | + if ($item->is_dropdown && (0 === $depth)) { |
|
33 | 33 | $item_html = str_replace('<a', '<a class="dropdown-toggle" data-target="#"', $item_html); |
34 | 34 | $item_html = str_replace('</a>', ' <b class="caret"></b></a>', $item_html); |
35 | - } elseif ( stristr( $item_html, 'li class="divider"' ) ) { |
|
35 | + } elseif (stristr($item_html, 'li class="divider"')) { |
|
36 | 36 | $item_html = preg_replace('/<a[^>]*>.*?<\/a>/iU', '', $item_html); |
37 | - } elseif ( stristr( $item_html, 'li class="dropdown-header"' ) ) { |
|
38 | - $item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '$1', $item_html ); |
|
37 | + } elseif (stristr($item_html, 'li class="dropdown-header"')) { |
|
38 | + $item_html = preg_replace('/<a[^>]*>(.*)<\/a>/iU', '$1', $item_html); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | $item_html = apply_filters('lsx_wp_nav_menu_item', $item_html); |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | function display_element($element, &$children_elements, $max_depth, $depth = 0, $args, &$output) { |
48 | - $element->is_dropdown = ( ( ! empty( $children_elements[$element->ID] ) && ( ( $depth + 1 ) < $max_depth || ( 0 === $max_depth ) ) ) ); |
|
48 | + $element->is_dropdown = (( ! empty($children_elements[$element->ID]) && (($depth + 1) < $max_depth || (0 === $max_depth)))); |
|
49 | 49 | |
50 | - if ( $element->is_dropdown ) { |
|
51 | - if ( $depth > 0 ) { |
|
50 | + if ($element->is_dropdown) { |
|
51 | + if ($depth > 0) { |
|
52 | 52 | $element->classes[] = 'dropdown-submenu'; |
53 | 53 | } else { |
54 | 54 | $element->classes[] = 'dropdown'; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $classes = preg_replace('/(current(-menu-|[-_]page[-_])(item|parent|ancestor))/', 'active', $classes); |
69 | 69 | $classes = preg_replace('/^((menu|page)[-_\w+]+)+/', '', $classes); |
70 | 70 | |
71 | - $classes[] = 'menu-'.$slug; |
|
71 | + $classes[] = 'menu-' . $slug; |
|
72 | 72 | |
73 | 73 | $classes = array_unique($classes); |
74 | 74 | |
@@ -86,15 +86,15 @@ discard block |
||
86 | 86 | function lsx_nav_menu_args($args = '') { |
87 | 87 | $roots_nav_menu_args['container'] = false; |
88 | 88 | |
89 | - if (!$args['items_wrap']) { |
|
89 | + if ( ! $args['items_wrap']) { |
|
90 | 90 | $roots_nav_menu_args['items_wrap'] = '<ul class="%2$s">%3$s</ul>'; |
91 | 91 | } |
92 | 92 | |
93 | - if (current_theme_supports('bootstrap-top-navbar') && !$args['depth']) { |
|
93 | + if (current_theme_supports('bootstrap-top-navbar') && ! $args['depth']) { |
|
94 | 94 | $roots_nav_menu_args['depth'] = 2; |
95 | 95 | } |
96 | 96 | |
97 | - if (!$args['walker']) { |
|
97 | + if ( ! $args['walker']) { |
|
98 | 98 | $roots_nav_menu_args['walker'] = new LSX_Nav_Walker(); |
99 | 99 | } |
100 | 100 |
@@ -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 | /** |
5 | 5 | * Theme Configuration File |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * @package lsx |
9 | 9 | */ |
10 | 10 | |
11 | -if ( ! function_exists( 'lsx_setup' ) ) : |
|
11 | +if ( ! function_exists('lsx_setup')) : |
|
12 | 12 | /** |
13 | 13 | * Sets up theme defaults and registers support for various WordPress features. |
14 | 14 | * |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | function lsx_setup() { |
20 | 20 | global $content_width; |
21 | 21 | |
22 | - load_theme_textdomain( 'lsx', get_template_directory() . '/languages' ); |
|
22 | + load_theme_textdomain('lsx', get_template_directory() . '/languages'); |
|
23 | 23 | |
24 | 24 | $args = array( |
25 | 25 | 'header-text' => array( |
@@ -28,50 +28,50 @@ discard block |
||
28 | 28 | ), |
29 | 29 | 'size' => 'medium', |
30 | 30 | ); |
31 | - add_theme_support( 'site-logo', $args ); |
|
31 | + add_theme_support('site-logo', $args); |
|
32 | 32 | |
33 | - add_theme_support( 'custom-logo', array( |
|
33 | + add_theme_support('custom-logo', array( |
|
34 | 34 | 'height' => 50, |
35 | 35 | 'width' => 150, |
36 | 36 | 'flex-width' => true, |
37 | 37 | 'flex-height' => true, |
38 | - ) ); |
|
38 | + )); |
|
39 | 39 | |
40 | - add_theme_support( 'automatic-feed-links' ); |
|
41 | - add_theme_support( 'title-tag' ); |
|
42 | - add_theme_support( 'post-thumbnails' ); |
|
43 | - add_theme_support( 'post-formats', array('image', 'video', 'gallery', 'audio', 'link', 'quote', 'aside') ); |
|
40 | + add_theme_support('automatic-feed-links'); |
|
41 | + add_theme_support('title-tag'); |
|
42 | + add_theme_support('post-thumbnails'); |
|
43 | + add_theme_support('post-formats', array('image', 'video', 'gallery', 'audio', 'link', 'quote', 'aside')); |
|
44 | 44 | |
45 | 45 | // This theme uses wp_nav_menu() in one location. |
46 | - register_nav_menus( array( |
|
47 | - 'primary' => __( 'Primary Menu', 'lsx' ), |
|
48 | - 'top-menu'=> __( 'Top Menu' , 'lsx' ), |
|
49 | - 'social'=> __( 'Social Menu' , 'lsx' ), |
|
50 | - 'footer'=> __( 'Footer Menu' , 'lsx' ) |
|
51 | - ) ); |
|
46 | + register_nav_menus(array( |
|
47 | + 'primary' => __('Primary Menu', 'lsx'), |
|
48 | + 'top-menu'=> __('Top Menu', 'lsx'), |
|
49 | + 'social'=> __('Social Menu', 'lsx'), |
|
50 | + 'footer'=> __('Footer Menu', 'lsx') |
|
51 | + )); |
|
52 | 52 | |
53 | 53 | //Set the content width |
54 | 54 | $content_width = 1140; |
55 | 55 | |
56 | - add_editor_style( get_template_directory_uri() . '/css/editor-style.css' ); |
|
57 | - add_theme_support( 'html5', array( 'caption' ) ); |
|
56 | + add_editor_style(get_template_directory_uri() . '/css/editor-style.css'); |
|
57 | + add_theme_support('html5', array('caption')); |
|
58 | 58 | |
59 | - add_theme_support( 'woocommerce' ); |
|
60 | - add_theme_support( 'sensei' ); |
|
59 | + add_theme_support('woocommerce'); |
|
60 | + add_theme_support('sensei'); |
|
61 | 61 | } |
62 | 62 | endif; // lsx_setup |
63 | -add_action( 'after_setup_theme', 'lsx_setup' ); |
|
63 | +add_action('after_setup_theme', 'lsx_setup'); |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Removes the "Custom Fields" meta box. |
67 | 67 | */ |
68 | 68 | function lsx_remove_meta_boxes() { |
69 | 69 | $post_types = get_post_types(); |
70 | - foreach($post_types as $post_type){ |
|
71 | - remove_meta_box( 'postcustom' , $post_type , 'normal' ); |
|
70 | + foreach ($post_types as $post_type) { |
|
71 | + remove_meta_box('postcustom', $post_type, 'normal'); |
|
72 | 72 | } |
73 | 73 | } |
74 | -add_action( 'admin_menu' , 'lsx_remove_meta_boxes' ); |
|
74 | +add_action('admin_menu', 'lsx_remove_meta_boxes'); |
|
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Overwrite the $content_width var, based on the layout of the page. |
@@ -83,33 +83,33 @@ discard block |
||
83 | 83 | function lsx_process_content_width() { |
84 | 84 | global $content_width; |
85 | 85 | |
86 | - if( |
|
86 | + if ( |
|
87 | 87 | is_page_template('page-templates/template-portfolio.php') || |
88 | 88 | is_page_template('page-templates/template-front-page.php') || |
89 | 89 | is_page_template('page-templates/template-full-width.php') || |
90 | 90 | is_post_type_archive('jetpack-portfolio') || |
91 | - is_tax(array('jetpack-portfolio-type','jetpack-portfolio-tag')) || |
|
91 | + is_tax(array('jetpack-portfolio-type', 'jetpack-portfolio-tag')) || |
|
92 | 92 | is_singular('jetpack-portfolio') |
93 | - ){ |
|
93 | + ) { |
|
94 | 94 | $content_width = 1140; |
95 | 95 | } |
96 | 96 | } |
97 | -add_action('wp_head','lsx_process_content_width'); |
|
97 | +add_action('wp_head', 'lsx_process_content_width'); |
|
98 | 98 | |
99 | 99 | /** |
100 | 100 | * Disable the comments form by default for the page post type. |
101 | 101 | * @package lsx |
102 | 102 | * @subpackage config |
103 | 103 | */ |
104 | -function lsx_page_comments_off( $data ) { |
|
105 | - if ( 'page' == $data['post_type'] && 'auto-draft' == $data['post_status'] && esc_html__( 'Auto Draft', 'lsx' ) == $data['post_title'] ) { |
|
104 | +function lsx_page_comments_off($data) { |
|
105 | + if ('page' == $data['post_type'] && 'auto-draft' == $data['post_status'] && esc_html__('Auto Draft', 'lsx') == $data['post_title']) { |
|
106 | 106 | $data['comment_status'] = 0; |
107 | 107 | $data['ping_status'] = 0; |
108 | 108 | } |
109 | 109 | |
110 | 110 | return $data; |
111 | 111 | } |
112 | -add_filter( 'wp_insert_post_data', 'lsx_page_comments_off' ); |
|
112 | +add_filter('wp_insert_post_data', 'lsx_page_comments_off'); |
|
113 | 113 | |
114 | 114 | /** |
115 | 115 | * Disable the comments form by default for the page post type. |
@@ -117,14 +117,14 @@ discard block |
||
117 | 117 | * @subpackage config |
118 | 118 | */ |
119 | 119 | function lsx_is_legacy($data) { |
120 | - if ( 'page' == $data['post_type'] && 'auto-draft' == $data['post_status'] && esc_html__( 'Auto Draft', 'lsx' ) == $data['post_title'] ) { |
|
120 | + if ('page' == $data['post_type'] && 'auto-draft' == $data['post_status'] && esc_html__('Auto Draft', 'lsx') == $data['post_title']) { |
|
121 | 121 | $data['comment_status'] = 0; |
122 | 122 | $data['ping_status'] = 0; |
123 | 123 | } |
124 | 124 | |
125 | 125 | return $data; |
126 | 126 | } |
127 | -add_filter( 'wp_insert_post_data', 'lsx_page_comments_off' ); |
|
127 | +add_filter('wp_insert_post_data', 'lsx_page_comments_off'); |
|
128 | 128 | |
129 | 129 | /** |
130 | 130 | * Run the init command |
@@ -132,11 +132,11 @@ discard block |
||
132 | 132 | * @subpackage config |
133 | 133 | */ |
134 | 134 | function lsx_init() { |
135 | - if(class_exists('WooCommerce')){ |
|
136 | - remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 ); |
|
135 | + if (class_exists('WooCommerce')) { |
|
136 | + remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0); |
|
137 | 137 | } |
138 | 138 | } |
139 | -add_action( 'init', 'lsx_init',100 ); |
|
139 | +add_action('init', 'lsx_init', 100); |
|
140 | 140 | |
141 | 141 | /** |
142 | 142 | * Run on the wp_head |
@@ -145,11 +145,11 @@ discard block |
||
145 | 145 | */ |
146 | 146 | function lsx_wp_head() { |
147 | 147 | |
148 | - $layout = get_theme_mod('lsx_layout','2cr'); |
|
149 | - $layout = apply_filters( 'lsx_layout', $layout ); |
|
148 | + $layout = get_theme_mod('lsx_layout', '2cr'); |
|
149 | + $layout = apply_filters('lsx_layout', $layout); |
|
150 | 150 | |
151 | - if('1c' === $layout && (is_author() || is_search() || (is_post_type_archive(array('post','page','jetpack-portfolio')) && !is_post_type_archive('tribe_events')) || is_tag() || is_category() || is_date() || is_tax('post_format')) ){ |
|
152 | - remove_action('lsx_content_top', 'lsx_breadcrumbs', 100 ); |
|
151 | + if ('1c' === $layout && (is_author() || is_search() || (is_post_type_archive(array('post', 'page', 'jetpack-portfolio')) && ! is_post_type_archive('tribe_events')) || is_tag() || is_category() || is_date() || is_tax('post_format'))) { |
|
152 | + remove_action('lsx_content_top', 'lsx_breadcrumbs', 100); |
|
153 | 153 | } |
154 | 154 | } |
155 | -add_action( 'wp_head', 'lsx_wp_head',100 ); |
|
155 | +add_action('wp_head', 'lsx_wp_head', 100); |
@@ -69,8 +69,8 @@ |
||
69 | 69 | add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' ); |
70 | 70 | |
71 | 71 | function lsx_woocommerce_styles() { |
72 | - wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' ); |
|
73 | - wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | - wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' ); |
|
72 | + wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' ); |
|
73 | + wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | + wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' ); |
|
75 | 75 | } |
76 | 76 | add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' ); |
77 | 77 | \ No newline at end of file |
@@ -9,8 +9,8 @@ discard block |
||
9 | 9 | /* |
10 | 10 | * Hooks |
11 | 11 | */ |
12 | -remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); |
|
13 | -remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); |
|
12 | +remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); |
|
13 | +remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); |
|
14 | 14 | |
15 | 15 | add_action('woocommerce_before_main_content', 'lsx_woocommerce_before_content', 10); |
16 | 16 | add_action('woocommerce_after_main_content', 'lsx_woocommerce_after_content', 10); |
@@ -25,10 +25,10 @@ discard block |
||
25 | 25 | * @subpackage woocommerce |
26 | 26 | * @category layout |
27 | 27 | */ |
28 | -function lsx_woocommerce_before_content(){ ?> |
|
28 | +function lsx_woocommerce_before_content() { ?> |
|
29 | 29 | <?php lsx_content_wrap_before(); ?> |
30 | 30 | |
31 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
31 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
32 | 32 | |
33 | 33 | <?php lsx_content_before(); ?> |
34 | 34 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @subpackage woocommerce |
44 | 44 | * @category layout |
45 | 45 | */ |
46 | -function lsx_woocommerce_after_content(){ ?> |
|
46 | +function lsx_woocommerce_after_content() { ?> |
|
47 | 47 | <?php lsx_content_bottom(); ?> |
48 | 48 | |
49 | 49 | </main><!-- #main --> |
@@ -66,11 +66,11 @@ discard block |
||
66 | 66 | * @subpackage woocommerce |
67 | 67 | * @category styles |
68 | 68 | */ |
69 | -add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' ); |
|
69 | +add_filter('woocommerce_enqueue_styles', '__return_empty_array'); |
|
70 | 70 | |
71 | 71 | function lsx_woocommerce_styles() { |
72 | - wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all' ); |
|
73 | - wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), WC_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | - wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all' ); |
|
72 | + wp_enqueue_style('woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), WC_VERSION, 'all'); |
|
73 | + wp_enqueue_style('woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array('woocommerce-layout'), WC_VERSION, 'only screen and (max-width: 767px)'); |
|
74 | + wp_enqueue_style('woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), WC_VERSION, 'all'); |
|
75 | 75 | } |
76 | -add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' ); |
|
77 | 76 | \ No newline at end of file |
77 | +add_action('wp_enqueue_scripts', 'lsx_woocommerce_styles'); |
|
78 | 78 | \ No newline at end of file |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | <?php lsx_content_wrap_before(); ?> |
16 | 16 | |
17 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
17 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
18 | 18 | |
19 | 19 | <?php lsx_content_before(); ?> |
20 | 20 | |
@@ -22,9 +22,9 @@ discard block |
||
22 | 22 | |
23 | 23 | <?php lsx_content_top(); ?> |
24 | 24 | |
25 | - <?php while ( have_posts() ) : the_post(); ?> |
|
25 | + <?php while (have_posts()) : the_post(); ?> |
|
26 | 26 | |
27 | - <?php get_template_part( 'content', get_post_type() ); ?> |
|
27 | + <?php get_template_part('content', get_post_type()); ?> |
|
28 | 28 | |
29 | 29 | <?php endwhile; // end of the loop. ?> |
30 | 30 |
@@ -10,23 +10,23 @@ discard block |
||
10 | 10 | |
11 | 11 | <?php lsx_content_top(); ?> |
12 | 12 | |
13 | - <?php if(is_tax()){ ?> |
|
13 | + <?php if (is_tax()) { ?> |
|
14 | 14 | <div class="entry-content"> |
15 | 15 | <?php the_archive_description(); ?> |
16 | 16 | </div> |
17 | 17 | <?php } ?> |
18 | 18 | |
19 | 19 | <?php |
20 | - if ( post_type_exists( 'jetpack-portfolio' ) && have_posts() ) : |
|
20 | + if (post_type_exists('jetpack-portfolio') && have_posts()) : |
|
21 | 21 | ?> |
22 | 22 | |
23 | - <?php if(!is_tax()){ lsx_portfolio_sorter(); } ?> |
|
23 | + <?php if ( ! is_tax()) { lsx_portfolio_sorter(); } ?> |
|
24 | 24 | |
25 | 25 | <div class="filter-items-wrapper lsx-portfolio-wrapper"> |
26 | 26 | <div id="portfolio-infinite-scroll-wrapper" class="filter-items-container lsx-portfolio masonry"> |
27 | - <?php while ( have_posts() ) : the_post(); ?> |
|
27 | + <?php while (have_posts()) : the_post(); ?> |
|
28 | 28 | |
29 | - <?php get_template_part( 'content', 'portfolio' ); ?> |
|
29 | + <?php get_template_part('content', 'portfolio'); ?> |
|
30 | 30 | |
31 | 31 | <?php endwhile; ?> |
32 | 32 | </div> |
@@ -40,17 +40,17 @@ discard block |
||
40 | 40 | |
41 | 41 | <section class="no-results not-found"> |
42 | 42 | <header class="page-header"> |
43 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1> |
|
43 | + <h1 class="page-title"><?php esc_html_e('Nothing Found', 'lsx'); ?></h1> |
|
44 | 44 | </header><!-- .page-header --> |
45 | 45 | |
46 | 46 | <div class="page-content"> |
47 | - <?php if ( current_user_can( 'publish_posts' ) ) : ?> |
|
47 | + <?php if (current_user_can('publish_posts')) : ?> |
|
48 | 48 | |
49 | - <p><?php esc_html_e( 'Ready to publish your first project?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p> |
|
49 | + <p><?php esc_html_e('Ready to publish your first project?', 'lsx'); ?> <a href="<?php echo esc_url(admin_url('post-new.php?post_type=jetpack-portfolio')) ?>"><?php esc_html_e('Get started here', 'lsx'); ?></a></p> |
|
50 | 50 | |
51 | 51 | <?php else : ?> |
52 | 52 | |
53 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
53 | + <p><?php esc_html_e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx'); ?></p> |
|
54 | 54 | <?php get_search_form(); ?> |
55 | 55 | |
56 | 56 | <?php endif; ?> |
@@ -36,11 +36,14 @@ discard block |
||
36 | 36 | |
37 | 37 | <?php lsx_paging_nav(); ?> |
38 | 38 | |
39 | - <?php else : ?> |
|
39 | + <?php else { |
|
40 | + : ?> |
|
40 | 41 | |
41 | 42 | <section class="no-results not-found"> |
42 | 43 | <header class="page-header"> |
43 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1> |
|
44 | + <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); |
|
45 | +} |
|
46 | +?></h1> |
|
44 | 47 | </header><!-- .page-header --> |
45 | 48 | |
46 | 49 | <div class="page-content"> |
@@ -48,9 +51,12 @@ discard block |
||
48 | 51 | |
49 | 52 | <p><?php esc_html_e( 'Ready to publish your first project?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=jetpack-portfolio' ) ) ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p> |
50 | 53 | |
51 | - <?php else : ?> |
|
54 | + <?php else { |
|
55 | + : ?> |
|
52 | 56 | |
53 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
57 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); |
|
58 | +} |
|
59 | +?></p> |
|
54 | 60 | <?php get_search_form(); ?> |
55 | 61 | |
56 | 62 | <?php endif; ?> |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | |
6 | 6 | <?php lsx_content_wrap_before(); ?> |
7 | 7 | |
8 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
8 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
9 | 9 | |
10 | 10 | <?php lsx_content_before(); ?> |
11 | 11 | |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | <?php lsx_content_top(); ?> |
15 | 15 | |
16 | - <?php while ( have_posts() ) : the_post(); ?> |
|
16 | + <?php while (have_posts()) : the_post(); ?> |
|
17 | 17 | |
18 | 18 | <?php lsx_entry_before(); ?> |
19 | 19 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | <?php lsx_sitemap_custom_post_type(); ?> |
29 | 29 | |
30 | 30 | </div><!-- .entry-content --> |
31 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
31 | + <?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
32 | 32 | |
33 | 33 | <?php lsx_entry_bottom(); ?> |
34 | 34 |
@@ -7,22 +7,22 @@ |
||
7 | 7 | |
8 | 8 | get_header(); ?> |
9 | 9 | |
10 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
10 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
11 | 11 | <main id="main" class="site-main"> |
12 | 12 | |
13 | 13 | <section class="error-404 not-found"> |
14 | 14 | <header class="page-header"> |
15 | - <h1 class="page-title"><?php esc_html_e( 'Whoops!', 'lsx' ); ?></h1> |
|
15 | + <h1 class="page-title"><?php esc_html_e('Whoops!', 'lsx'); ?></h1> |
|
16 | 16 | </header><!-- .page-header --> |
17 | 17 | |
18 | 18 | <div class="page-content"> |
19 | - <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'lsx' ); ?></p> |
|
19 | + <p><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'lsx'); ?></p> |
|
20 | 20 | |
21 | 21 | </div> <!-- .row --> |
22 | 22 | <?php get_search_form(); ?> |
23 | 23 | <br /> |
24 | 24 | |
25 | - <p><?php esc_html_e( 'Alternatively, you can check out the', 'lsx' ); ?> <a href="/sitemap"><strong><?php esc_html_e( 'sitemap', 'lsx' ); ?></strong></a></p> |
|
25 | + <p><?php esc_html_e('Alternatively, you can check out the', 'lsx'); ?> <a href="/sitemap"><strong><?php esc_html_e('sitemap', 'lsx'); ?></strong></a></p> |
|
26 | 26 | |
27 | 27 | </div><!-- .page-content --> |
28 | 28 | </section><!-- .error-404 --> |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | <?php lsx_content_wrap_before(); ?> |
11 | 11 | |
12 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
12 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
13 | 13 | |
14 | 14 | <?php lsx_content_before(); ?> |
15 | 15 | |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | |
18 | 18 | <?php lsx_content_top(); ?> |
19 | 19 | |
20 | - <?php while ( have_posts() ) : the_post(); ?> |
|
20 | + <?php while (have_posts()) : the_post(); ?> |
|
21 | 21 | |
22 | - <?php get_template_part( 'content', get_post_type() ); ?> |
|
22 | + <?php get_template_part('content', get_post_type()); ?> |
|
23 | 23 | |
24 | 24 | <?php endwhile; // end of the loop. ?> |
25 | 25 | |
@@ -35,6 +35,6 @@ discard block |
||
35 | 35 | <?php lsx_content_wrap_after(); ?> |
36 | 36 | |
37 | 37 | <?php get_sidebar(); ?> |
38 | -<?php get_sidebar( 'alt' ); ?> |
|
38 | +<?php get_sidebar('alt'); ?> |
|
39 | 39 | |
40 | 40 | <?php get_footer(); |
41 | 41 | \ No newline at end of file |
@@ -18,17 +18,17 @@ discard block |
||
18 | 18 | <div class="col-sm-12"> |
19 | 19 | <div class="entry-content"> |
20 | 20 | |
21 | - <?php if ( ! is_singular() ) { |
|
21 | + <?php if ( ! is_singular()) { |
|
22 | 22 | the_excerpt(); |
23 | 23 | } else { |
24 | 24 | the_content(); |
25 | 25 | |
26 | - wp_link_pages( array( |
|
26 | + wp_link_pages(array( |
|
27 | 27 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
28 | 28 | 'after' => '</div></div>', |
29 | 29 | 'link_before' => '<span>', |
30 | 30 | 'link_after' => '</span>' |
31 | - ) ); |
|
31 | + )); |
|
32 | 32 | } ?> |
33 | 33 | |
34 | 34 | <?php lsx_portfolio_gallery(); ?> |
@@ -36,13 +36,13 @@ discard block |
||
36 | 36 | <?php lsx_post_nav(); ?> |
37 | 37 | |
38 | 38 | <?php |
39 | - if ( function_exists( 'sharing_display' ) ) { |
|
40 | - sharing_display( '', true ); |
|
39 | + if (function_exists('sharing_display')) { |
|
40 | + sharing_display('', true); |
|
41 | 41 | } |
42 | 42 | |
43 | - if ( class_exists( 'Jetpack_Likes' ) ) { |
|
43 | + if (class_exists('Jetpack_Likes')) { |
|
44 | 44 | $custom_likes = new Jetpack_Likes; |
45 | - echo wp_kses_post( $custom_likes->post_likes( '' ) ); |
|
45 | + echo wp_kses_post($custom_likes->post_likes('')); |
|
46 | 46 | } |
47 | 47 | ?> |
48 | 48 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | </div> |
54 | 54 | </div> |
55 | 55 | |
56 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
56 | + <?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
57 | 57 | |
58 | 58 | <?php lsx_entry_bottom(); ?> |
59 | 59 |