@@ -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', array(), LSX_VERSION ); |
|
17 | + wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION ); |
|
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', array(), LSX_VERSION ); |
|
17 | + wp_enqueue_style('wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION); |
|
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 |
@@ -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(), LSX_VERSION, 'all' ); |
|
73 | - wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | - wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' ); |
|
72 | + wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all' ); |
|
73 | + wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | + wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_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(), LSX_VERSION, 'all' ); |
|
73 | - wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | - wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' ); |
|
72 | + wp_enqueue_style('woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all'); |
|
73 | + wp_enqueue_style('woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array('woocommerce-layout'), LSX_VERSION, 'only screen and (max-width: 767px)'); |
|
74 | + wp_enqueue_style('woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_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 |
@@ -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'), LSX_VERSION, true ); |
|
55 | + wp_enqueue_script('lsx-layout-control', get_template_directory_uri() . '/js/customizer-layout.js', array('jquery'), LSX_VERSION, 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 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | <h3> |
28 | 28 | <?php |
29 | 29 | $count = get_comments_number(); |
30 | - printf( esc_html( _n( 'One Response to “%2$s”', '%1$s Responses to “%2$s”', $count, 'lsx' ) ), esc_html( number_format_i18n( $count ) ), get_the_title() ); |
|
30 | + printf(esc_html(_n('One Response to “%2$s”', '%1$s Responses to “%2$s”', $count, 'lsx')), esc_html(number_format_i18n($count)), get_the_title()); |
|
31 | 31 | ?> |
32 | 32 | </h3> |
33 | 33 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | </nav> |
49 | 49 | <?php endif; ?> |
50 | 50 | |
51 | -<?php if (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
51 | +<?php if ( ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
52 | 52 | <div class="alert alert-warning"> |
53 | 53 | <?php esc_html_e('Comments are closed.', 'lsx'); ?> |
54 | 54 | </div> |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | <?php endif; ?> |
61 | 61 | |
62 | -<?php if (!have_comments() && !comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
62 | +<?php if ( ! have_comments() && ! comments_open() && ! is_page() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
63 | 63 | <section id="comments"> |
64 | 64 | <div class="alert alert-warning"> |
65 | 65 | <?php esc_html_e('Comments are closed.', 'lsx'); ?> |
@@ -72,24 +72,24 @@ discard block |
||
72 | 72 | |
73 | 73 | <?php |
74 | 74 | $commenter = wp_get_current_commenter(); |
75 | - $req = get_option( 'require_name_email' ); |
|
76 | - $aria_req = ( $req ? " aria-required='true'" : '' ); |
|
77 | - $html_req = ( $req ? " required='required'" : '' ); |
|
75 | + $req = get_option('require_name_email'); |
|
76 | + $aria_req = ($req ? " aria-required='true'" : ''); |
|
77 | + $html_req = ($req ? " required='required'" : ''); |
|
78 | 78 | |
79 | 79 | $comment_form_args = array( |
80 | - 'comment_field' => '<p class="comment-form-comment"><textarea placeholder="'. esc_html__( 'Comment', 'lsx' ) .'" id="comment" class="form-control" name="comment" cols="45" rows="8"'. $aria_req . $html_req .'></textarea></p>', |
|
80 | + 'comment_field' => '<p class="comment-form-comment"><textarea placeholder="' . esc_html__('Comment', 'lsx') . '" id="comment" class="form-control" name="comment" cols="45" rows="8"' . $aria_req . $html_req . '></textarea></p>', |
|
81 | 81 | |
82 | 82 | 'fields' => array( |
83 | - 'author' => '<p class="comment-form-author"><label for="author">'. esc_html__( 'Name', 'lsx' ) .'</label> ' . |
|
84 | - ( $req ? '<span class="required">*</span>' : '' ) . |
|
85 | - '<input class="form-control" placeholder="'. esc_html__( 'Name', 'lsx' ) .'" id="author" name="author" type="text" value="'. esc_attr( $commenter['comment_author'] ) .'" size="30"'. $aria_req . $html_req .'></p>', |
|
83 | + 'author' => '<p class="comment-form-author"><label for="author">' . esc_html__('Name', 'lsx') . '</label> ' . |
|
84 | + ($req ? '<span class="required">*</span>' : '') . |
|
85 | + '<input class="form-control" placeholder="' . esc_html__('Name', 'lsx') . '" id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . $html_req . '></p>', |
|
86 | 86 | |
87 | - 'email' => '<p class="comment-form-email"><label for="email">'. esc_html__( 'Email', 'lsx' ) .'</label> ' . |
|
88 | - ( $req ? '<span class="required">*</span>' : '' ) . |
|
89 | - '<input class="form-control" placeholder="'. esc_html__( 'Email', 'lsx' ) .'" id="email" name="email" type="text" value="'. esc_attr( $commenter['comment_author_email'] ) .'" size="30"' . $aria_req . $html_req . '></p>', |
|
87 | + 'email' => '<p class="comment-form-email"><label for="email">' . esc_html__('Email', 'lsx') . '</label> ' . |
|
88 | + ($req ? '<span class="required">*</span>' : '') . |
|
89 | + '<input class="form-control" placeholder="' . esc_html__('Email', 'lsx') . '" id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . $html_req . '></p>', |
|
90 | 90 | |
91 | - 'url' => '<p class="comment-form-url"><label for="url">'. esc_html__( 'Website', 'lsx' ) .'</label>' . |
|
92 | - '<input class="form-control" placeholder="'. esc_html__( 'Website', 'lsx' ) .'" id="url" name="url" type="text" value="'. esc_attr( $commenter['comment_author_url'] ) .'" size="30"></p>' |
|
91 | + 'url' => '<p class="comment-form-url"><label for="url">' . esc_html__('Website', 'lsx') . '</label>' . |
|
92 | + '<input class="form-control" placeholder="' . esc_html__('Website', 'lsx') . '" id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30"></p>' |
|
93 | 93 | ) |
94 | 94 | ); |
95 | 95 | ?> |
@@ -16,15 +16,15 @@ |
||
16 | 16 | <?php |
17 | 17 | the_content(); |
18 | 18 | |
19 | - wp_link_pages( array( |
|
19 | + wp_link_pages(array( |
|
20 | 20 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
21 | 21 | 'after' => '</div></div>', |
22 | 22 | 'link_before' => '<span>', |
23 | 23 | 'link_after' => '</span>' |
24 | - ) ); |
|
24 | + )); |
|
25 | 25 | ?> |
26 | 26 | </div><!-- .entry-content --> |
27 | - <?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
27 | + <?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
28 | 28 | |
29 | 29 | <?php lsx_entry_bottom(); ?> |
30 | 30 |
@@ -1,8 +1,8 @@ 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 | -if ( ! function_exists( 'lsx_activation_admin_notice' ) ) : |
|
5 | +if ( ! function_exists('lsx_activation_admin_notice')) : |
|
6 | 6 | /** |
7 | 7 | * Adds an admin notice upon successful activation. |
8 | 8 | * |
@@ -12,15 +12,15 @@ discard block |
||
12 | 12 | function lsx_activation_admin_notice() { |
13 | 13 | global $pagenow; |
14 | 14 | |
15 | - if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) { |
|
16 | - add_action( 'admin_notices', 'lsx_welcome_admin_notice', 99 ); |
|
15 | + if (is_admin() && 'themes.php' == $pagenow && isset($_GET['activated'])) { |
|
16 | + add_action('admin_notices', 'lsx_welcome_admin_notice', 99); |
|
17 | 17 | } |
18 | 18 | } |
19 | 19 | endif; // lsx_activation_admin_notice |
20 | -add_action( 'load-themes.php', 'lsx_activation_admin_notice' ); |
|
20 | +add_action('load-themes.php', 'lsx_activation_admin_notice'); |
|
21 | 21 | |
22 | 22 | |
23 | -if ( ! function_exists( 'lsx_welcome_admin_notice' ) ) : |
|
23 | +if ( ! function_exists('lsx_welcome_admin_notice')) : |
|
24 | 24 | /** |
25 | 25 | * Display an admin notice linking to the welcome screen. |
26 | 26 | * |
@@ -30,15 +30,15 @@ discard block |
||
30 | 30 | function lsx_welcome_admin_notice() { |
31 | 31 | ?> |
32 | 32 | <div class="updated notice is-dismissible"> |
33 | - <p><?php echo sprintf( esc_html__( 'Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx' ), '<a href="' . esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ) . '">', '</a>' ); ?></p> |
|
34 | - <p><a href="<?php echo esc_url( admin_url( 'themes.php?page=lsx-welcome' ) ); ?>" class="button" style="text-decoration: none;"><?php esc_attr_e( 'Get started with LSX', 'lsx' ); ?></a></p> |
|
33 | + <p><?php echo sprintf(esc_html__('Thanks for choosing LSX! You can read hints and tips on how get the most out of your new theme on the %1$swelcome screen%2$s.', 'lsx'), '<a href="' . esc_url(admin_url('themes.php?page=lsx-welcome')) . '">', '</a>'); ?></p> |
|
34 | + <p><a href="<?php echo esc_url(admin_url('themes.php?page=lsx-welcome')); ?>" class="button" style="text-decoration: none;"><?php esc_attr_e('Get started with LSX', 'lsx'); ?></a></p> |
|
35 | 35 | </div> |
36 | 36 | <?php |
37 | 37 | } |
38 | 38 | endif; // lsx_welcome_admin_notice |
39 | 39 | |
40 | 40 | |
41 | -if ( ! function_exists( 'lsx_welcome_style' ) ) : |
|
41 | +if ( ! function_exists('lsx_welcome_style')) : |
|
42 | 42 | /** |
43 | 43 | * Load welcome screen css. |
44 | 44 | * |
@@ -46,16 +46,16 @@ discard block |
||
46 | 46 | * @since 1.8.0 |
47 | 47 | * @package lsx |
48 | 48 | */ |
49 | - function lsx_welcome_style( $hook_suffix ) { |
|
50 | - if ( 'appearance_page_lsx-welcome' == $hook_suffix ) { |
|
51 | - wp_enqueue_style( 'lsx-welcome-screen', get_template_directory_uri() . '/css/admin/welcome-screen/welcome.css', array(), LSX_VERSION ); |
|
49 | + function lsx_welcome_style($hook_suffix) { |
|
50 | + if ('appearance_page_lsx-welcome' == $hook_suffix) { |
|
51 | + wp_enqueue_style('lsx-welcome-screen', get_template_directory_uri() . '/css/admin/welcome-screen/welcome.css', array(), LSX_VERSION); |
|
52 | 52 | } |
53 | 53 | } |
54 | 54 | endif; // lsx_welcome_style |
55 | -add_action( 'admin_enqueue_scripts', 'lsx_welcome_style' ); |
|
55 | +add_action('admin_enqueue_scripts', 'lsx_welcome_style'); |
|
56 | 56 | |
57 | 57 | |
58 | -if ( ! function_exists( 'lsx_welcome_register_menu' ) ) : |
|
58 | +if ( ! function_exists('lsx_welcome_register_menu')) : |
|
59 | 59 | /** |
60 | 60 | * Creates the dashboard page. |
61 | 61 | * |
@@ -63,13 +63,13 @@ discard block |
||
63 | 63 | * @package lsx |
64 | 64 | */ |
65 | 65 | function lsx_welcome_register_menu() { |
66 | - add_theme_page( 'LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen' ); |
|
66 | + add_theme_page('LSX', 'LSX', 'activate_plugins', 'lsx-welcome', 'lsx_welcome_screen'); |
|
67 | 67 | } |
68 | 68 | endif; // lsx_welcome_register_menu |
69 | -add_action( 'admin_menu', 'lsx_welcome_register_menu' ); |
|
69 | +add_action('admin_menu', 'lsx_welcome_register_menu'); |
|
70 | 70 | |
71 | 71 | |
72 | -if ( ! function_exists( 'lsx_welcome_screen' ) ) : |
|
72 | +if ( ! function_exists('lsx_welcome_screen')) : |
|
73 | 73 | /** |
74 | 74 | * The welcome screen. |
75 | 75 | * |
@@ -77,9 +77,9 @@ discard block |
||
77 | 77 | * @package lsx |
78 | 78 | */ |
79 | 79 | function lsx_welcome_screen() { |
80 | - require_once( ABSPATH . 'wp-load.php' ); |
|
81 | - require_once( ABSPATH . 'wp-admin/admin.php' ); |
|
82 | - require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
|
80 | + require_once(ABSPATH . 'wp-load.php'); |
|
81 | + require_once(ABSPATH . 'wp-admin/admin.php'); |
|
82 | + require_once(ABSPATH . 'wp-admin/admin-header.php'); |
|
83 | 83 | ?> |
84 | 84 | <div class="wrap about-wrap"> |
85 | 85 | <?php |
@@ -90,14 +90,14 @@ discard block |
||
90 | 90 | * @hooked lsx_welcome_enhance - 20 |
91 | 91 | * @hooked lsx_welcome_footer - 30 |
92 | 92 | */ |
93 | - do_action( 'lsx_welcome' ); ?> |
|
93 | + do_action('lsx_welcome'); ?> |
|
94 | 94 | </div> |
95 | 95 | <?php |
96 | 96 | } |
97 | 97 | endif; // lsx_welcome_screen |
98 | 98 | |
99 | 99 | |
100 | -if ( ! function_exists( 'lsx_welcome_header' ) ) : |
|
100 | +if ( ! function_exists('lsx_welcome_header')) : |
|
101 | 101 | /** |
102 | 102 | * Welcome screen intro |
103 | 103 | * |
@@ -105,13 +105,13 @@ discard block |
||
105 | 105 | * @package lsx |
106 | 106 | */ |
107 | 107 | function lsx_welcome_header() { |
108 | - require_once( get_template_directory() . '/inc/admin/welcome-screen/component-header.php' ); |
|
108 | + require_once(get_template_directory() . '/inc/admin/welcome-screen/component-header.php'); |
|
109 | 109 | } |
110 | 110 | endif; // lsx_welcome_header |
111 | -add_action( 'lsx_welcome', 'lsx_welcome_header', 10 ); |
|
111 | +add_action('lsx_welcome', 'lsx_welcome_header', 10); |
|
112 | 112 | |
113 | 113 | |
114 | -if ( ! function_exists( 'lsx_welcome_enhance' ) ) : |
|
114 | +if ( ! function_exists('lsx_welcome_enhance')) : |
|
115 | 115 | /** |
116 | 116 | * Welcome screen enhance section |
117 | 117 | * |
@@ -119,13 +119,13 @@ discard block |
||
119 | 119 | * @package lsx |
120 | 120 | */ |
121 | 121 | function lsx_welcome_enhance() { |
122 | - require_once( get_template_directory() . '/inc/admin/welcome-screen/component-enhance.php' ); |
|
122 | + require_once(get_template_directory() . '/inc/admin/welcome-screen/component-enhance.php'); |
|
123 | 123 | } |
124 | 124 | endif; // lsx_welcome_enhance |
125 | -add_action( 'lsx_welcome', 'lsx_welcome_enhance', 20 ); |
|
125 | +add_action('lsx_welcome', 'lsx_welcome_enhance', 20); |
|
126 | 126 | |
127 | 127 | |
128 | -if ( ! function_exists( 'lsx_welcome_footer' ) ) : |
|
128 | +if ( ! function_exists('lsx_welcome_footer')) : |
|
129 | 129 | /** |
130 | 130 | * Welcome screen contribute section |
131 | 131 | * |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @package lsx |
134 | 134 | */ |
135 | 135 | function lsx_welcome_footer() { |
136 | - require_once( get_template_directory() . '/inc/admin/welcome-screen/component-footer.php' ); |
|
136 | + require_once(get_template_directory() . '/inc/admin/welcome-screen/component-footer.php'); |
|
137 | 137 | } |
138 | 138 | endif; // lsx_welcome_footer |
139 | -add_action( 'lsx_welcome', 'lsx_welcome_footer', 30 ); |
|
139 | +add_action('lsx_welcome', 'lsx_welcome_footer', 30); |
@@ -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 | if ( ! function_exists( 'lsx_activation_admin_notice' ) ) : |
@@ -9,47 +9,47 @@ discard block |
||
9 | 9 | |
10 | 10 | <div class="row"> |
11 | 11 | <div class="col-md-6"> |
12 | - <h1><?php echo esc_html__( 'LSX', 'lsx' ) . ' <sup class="version">' . esc_attr( LSX_VERSION ) . '</sup>'; ?></h1> |
|
12 | + <h1><?php echo esc_html__('LSX', 'lsx') . ' <sup class="version">' . esc_attr(LSX_VERSION) . '</sup>'; ?></h1> |
|
13 | 13 | </div> |
14 | 14 | |
15 | 15 | <div class="col-md-6"> |
16 | - <p class="review"><?php echo sprintf( esc_html__( '%1$sEnjoying LSX?%2$s Why not %3$sleave a review%4$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx' ), '<strong>', '</strong>', '<a href="https://wordpress.org/themes/lsx" target="_blank">', '</a>' ); ?></p> |
|
16 | + <p class="review"><?php echo sprintf(esc_html__('%1$sEnjoying LSX?%2$s Why not %3$sleave a review%4$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx'), '<strong>', '</strong>', '<a href="https://wordpress.org/themes/lsx" target="_blank">', '</a>'); ?></p> |
|
17 | 17 | </div> |
18 | 18 | </div> |
19 | 19 | |
20 | 20 | <div class="row"> |
21 | 21 | <div class="col-md-6"> |
22 | 22 | <div class="box enrich"> |
23 | - <h2><?php esc_html_e( 'Built to enrich your WordPress experience', 'lsx' ); ?></h2> |
|
24 | - <p><?php esc_html_e( 'Whether you\'re using LSX for your personal blog, as the platform for a powerful WooCommerce store or as the foundation for your own child-theme, you\'ll find it\'s the perfect fit for WordPress.', 'lsx' ); ?></p> |
|
23 | + <h2><?php esc_html_e('Built to enrich your WordPress experience', 'lsx'); ?></h2> |
|
24 | + <p><?php esc_html_e('Whether you\'re using LSX for your personal blog, as the platform for a powerful WooCommerce store or as the foundation for your own child-theme, you\'ll find it\'s the perfect fit for WordPress.', 'lsx'); ?></p> |
|
25 | 25 | </div> |
26 | 26 | </div> |
27 | 27 | |
28 | 28 | <div class="col-md-6"> |
29 | 29 | <div class="box news"> |
30 | - <h2><?php esc_html_e( 'LSX News & Documentation', 'lsx' ); ?></h2> |
|
30 | + <h2><?php esc_html_e('LSX News & Documentation', 'lsx'); ?></h2> |
|
31 | 31 | |
32 | 32 | <div class="row"> |
33 | 33 | <div class="col-md-6 news"> |
34 | - <h3><?php esc_html_e( 'Recent News', 'lsx' ); ?></h3> |
|
34 | + <h3><?php esc_html_e('Recent News', 'lsx'); ?></h3> |
|
35 | 35 | |
36 | 36 | <ul> |
37 | 37 | <?php |
38 | - $rss = fetch_feed( 'https://www.lsdev.biz/lsx/feed/' ); |
|
38 | + $rss = fetch_feed('https://www.lsdev.biz/lsx/feed/'); |
|
39 | 39 | $rss_items = array(); |
40 | 40 | |
41 | - if ( ! is_wp_error( $rss ) ) { |
|
42 | - $maxitems = $rss->get_item_quantity( 3 ); |
|
43 | - $rss_items = $rss->get_items( 0, $maxitems ); |
|
41 | + if ( ! is_wp_error($rss)) { |
|
42 | + $maxitems = $rss->get_item_quantity(3); |
|
43 | + $rss_items = $rss->get_items(0, $maxitems); |
|
44 | 44 | } |
45 | 45 | |
46 | - foreach ( $rss_items as $item ) : ?> |
|
46 | + foreach ($rss_items as $item) : ?> |
|
47 | 47 | <li> |
48 | - <a href="<?php echo esc_url( $item->get_permalink() ); ?>" target="_blank"> |
|
49 | - <?php echo esc_html( $item->get_title() ); ?> |
|
48 | + <a href="<?php echo esc_url($item->get_permalink()); ?>" target="_blank"> |
|
49 | + <?php echo esc_html($item->get_title()); ?> |
|
50 | 50 | </a> |
51 | 51 | </li> |
52 | - <span class="date"><?php echo esc_attr( $item->get_date( 'j F Y' ) ); ?></span> |
|
52 | + <span class="date"><?php echo esc_attr($item->get_date('j F Y')); ?></span> |
|
53 | 53 | <?php |
54 | 54 | endforeach; |
55 | 55 | ?> |
@@ -57,11 +57,11 @@ discard block |
||
57 | 57 | </div> |
58 | 58 | |
59 | 59 | <div class="col-md-6 docs"> |
60 | - <h3><?php esc_html_e( 'Documentation', 'lsx' ); ?></h3> |
|
60 | + <h3><?php esc_html_e('Documentation', 'lsx'); ?></h3> |
|
61 | 61 | |
62 | 62 | <ul> |
63 | 63 | <li> |
64 | - <a href="https://www.lsdev.biz/documentation/lsx/" target="_blank"><?php esc_html_e( 'Installation & configuration', 'lsx' ); ?></a> |
|
64 | + <a href="https://www.lsdev.biz/documentation/lsx/" target="_blank"><?php esc_html_e('Installation & configuration', 'lsx'); ?></a> |
|
65 | 65 | </li> |
66 | 66 | </ul> |
67 | 67 | </div> |
@@ -10,12 +10,12 @@ discard block |
||
10 | 10 | <div class="row"> |
11 | 11 | <div class="col-md-4"> |
12 | 12 | <div class="box customise"> |
13 | - <h2><?php esc_html_e( 'Theme Customizer', 'lsx' ); ?> - <span class="price">$59.00</span></h2> |
|
14 | - <p><?php esc_html_e( 'You\'ve installed LSX, so now why not make it all yours? Whether it\'s a small CSS tweak or changing the entire layout of pages, posts or archives, please make use of the Theme Customizer plugin. Click below to install and get custom!', 'lsx' ); ?></p> |
|
13 | + <h2><?php esc_html_e('Theme Customizer', 'lsx'); ?> - <span class="price">$59.00</span></h2> |
|
14 | + <p><?php esc_html_e('You\'ve installed LSX, so now why not make it all yours? Whether it\'s a small CSS tweak or changing the entire layout of pages, posts or archives, please make use of the Theme Customizer plugin. Click below to install and get custom!', 'lsx'); ?></p> |
|
15 | 15 | |
16 | 16 | <div class="more-button"> |
17 | 17 | <a href="https://www.lsdev.biz/product/lsx-theme-customizer/" target="_blank" class="button button-primary"> |
18 | - <?php esc_html_e( 'Theme Customizer', 'lsx' ); ?> |
|
18 | + <?php esc_html_e('Theme Customizer', 'lsx'); ?> |
|
19 | 19 | </a> |
20 | 20 | </div> |
21 | 21 | </div> |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | |
24 | 24 | <div class="col-md-4"> |
25 | 25 | <div class="box support"> |
26 | - <h2><?php esc_html_e( 'Get support', 'lsx' ); ?></h2> |
|
27 | - <p><?php printf( esc_html__( 'You\'ll find information on how to use and customize the LSX theme in our %1$sdocumentation%2$s section. However, please do %3$scontact us%4$s for support should you still find yourself unable to achieve your needs.', 'lsx' ), '<a href="https://www.lsdev.biz/documentation/lsx/" target="_blank">', '</a>', '<a href="https://www.lsdev.biz/contact-us/" target="_blank">', '</a>' ); ?></p> |
|
26 | + <h2><?php esc_html_e('Get support', 'lsx'); ?></h2> |
|
27 | + <p><?php printf(esc_html__('You\'ll find information on how to use and customize the LSX theme in our %1$sdocumentation%2$s section. However, please do %3$scontact us%4$s for support should you still find yourself unable to achieve your needs.', 'lsx'), '<a href="https://www.lsdev.biz/documentation/lsx/" target="_blank">', '</a>', '<a href="https://www.lsdev.biz/contact-us/" target="_blank">', '</a>'); ?></p> |
|
28 | 28 | |
29 | 29 | <div class="more-button"> |
30 | 30 | <a href="https://www.lsdev.biz/contact-us/" target="_blank" class="button button-primary"> |
31 | - <?php esc_html_e( 'Get in touch', 'lsx' ); ?> |
|
31 | + <?php esc_html_e('Get in touch', 'lsx'); ?> |
|
32 | 32 | </a> |
33 | 33 | </div> |
34 | 34 | </div> |
@@ -36,12 +36,12 @@ discard block |
||
36 | 36 | |
37 | 37 | <div class="col-md-4"> |
38 | 38 | <div class="box suggest"> |
39 | - <h2><?php esc_html_e( 'Suggest a feature', 'lsx' ); ?></h2> |
|
40 | - <p><?php printf( esc_html__( 'If you\'d like to suggest a feature for inclusion in upcoming releases of the LSX theme, please don\'t hesitate to %1$scontact us%2$s directly. We\'re always on the lookout for fresh ideas to help make LSX even better.', 'lsx' ), '<a href="https://www.lsdev.biz/contact-us/" target="_blank">', '</a>' ); ?></p> |
|
39 | + <h2><?php esc_html_e('Suggest a feature', 'lsx'); ?></h2> |
|
40 | + <p><?php printf(esc_html__('If you\'d like to suggest a feature for inclusion in upcoming releases of the LSX theme, please don\'t hesitate to %1$scontact us%2$s directly. We\'re always on the lookout for fresh ideas to help make LSX even better.', 'lsx'), '<a href="https://www.lsdev.biz/contact-us/" target="_blank">', '</a>'); ?></p> |
|
41 | 41 | |
42 | 42 | <div class="more-button"> |
43 | 43 | <a href="https://www.lsdev.biz/contact-us/" target="_blank" class="button button-primary"> |
44 | - <?php esc_html_e( 'Submit a request', 'lsx' ); ?> |
|
44 | + <?php esc_html_e('Submit a request', 'lsx'); ?> |
|
45 | 45 | </a> |
46 | 46 | </div> |
47 | 47 | </div> |
@@ -10,28 +10,28 @@ discard block |
||
10 | 10 | <div class="row"> |
11 | 11 | <div class="col-md-12"> |
12 | 12 | <div class="box enhance"> |
13 | - <h2><?php esc_html_e( 'Enhance LSX', 'lsx' ); ?></h2> |
|
14 | - <p><?php esc_html_e( 'Take a look at our range of extensions that add to the already rich functionality of the LSX WordPress theme..', 'lsx' ); ?></p> |
|
13 | + <h2><?php esc_html_e('Enhance LSX', 'lsx'); ?></h2> |
|
14 | + <p><?php esc_html_e('Take a look at our range of extensions that add to the already rich functionality of the LSX WordPress theme..', 'lsx'); ?></p> |
|
15 | 15 | |
16 | 16 | <div class="row"> |
17 | 17 | <div class="col-md-4"> |
18 | 18 | <div class="box-clean"> |
19 | - <a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e( 'Currencies', 'lsx' ); ?> - <span class="price">$59.00</span></a> |
|
20 | - <p><?php esc_html_e( 'The LSX Currencies extension adds currency selection functionality to sites, allowing users to view your products in whatever currencies you choose to sell in.', 'lsx' ); ?></p> |
|
19 | + <a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e('Currencies', 'lsx'); ?> - <span class="price">$59.00</span></a> |
|
20 | + <p><?php esc_html_e('The LSX Currencies extension adds currency selection functionality to sites, allowing users to view your products in whatever currencies you choose to sell in.', 'lsx'); ?></p> |
|
21 | 21 | </div> |
22 | 22 | </div> |
23 | 23 | |
24 | 24 | <div class="col-md-4"> |
25 | 25 | <div class="box-clean"> |
26 | - <a href="https://www.lsdev.biz/product/lsx-banners/" target="_blank"><?php esc_html_e( 'Banners', 'lsx' ); ?> - <span class="price">$49.00</span></a> |
|
27 | - <p><?php esc_html_e( 'The LSX Banners extension adds advanced banner configuration options to your WordPress site running LSX theme.', 'lsx' ); ?></p> |
|
26 | + <a href="https://www.lsdev.biz/product/lsx-banners/" target="_blank"><?php esc_html_e('Banners', 'lsx'); ?> - <span class="price">$49.00</span></a> |
|
27 | + <p><?php esc_html_e('The LSX Banners extension adds advanced banner configuration options to your WordPress site running LSX theme.', 'lsx'); ?></p> |
|
28 | 28 | </div> |
29 | 29 | </div> |
30 | 30 | |
31 | 31 | <div class="col-md-4"> |
32 | 32 | <div class="box-clean"> |
33 | - <a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e( 'Testimonials', 'lsx' ); ?> - <span class="price">$29.00</span></a> |
|
34 | - <p><?php esc_html_e( 'The LSX Testimonials extension adds the "Testimonials" post type, which you can display front-and-centre on your site.', 'lsx' ); ?></p> |
|
33 | + <a href="https://www.lsdev.biz/product/lsx-currencies/" target="_blank"><?php esc_html_e('Testimonials', 'lsx'); ?> - <span class="price">$29.00</span></a> |
|
34 | + <p><?php esc_html_e('The LSX Testimonials extension adds the "Testimonials" post type, which you can display front-and-centre on your site.', 'lsx'); ?></p> |
|
35 | 35 | </div> |
36 | 36 | </div> |
37 | 37 | </div> |
@@ -39,22 +39,22 @@ discard block |
||
39 | 39 | <div class="row"> |
40 | 40 | <div class="col-md-4"> |
41 | 41 | <div class="box-clean"> |
42 | - <a href="https://www.lsdev.biz/product/lsx-team/" target="_blank"><?php esc_html_e( 'Team', 'lsx' ); ?> - <span class="price">$29.00</span></a> |
|
43 | - <p><?php esc_html_e( 'The LSX Team Extension provides a custom post type that allows you to easily show off the people that make up your business.', 'lsx' ); ?></p> |
|
42 | + <a href="https://www.lsdev.biz/product/lsx-team/" target="_blank"><?php esc_html_e('Team', 'lsx'); ?> - <span class="price">$29.00</span></a> |
|
43 | + <p><?php esc_html_e('The LSX Team Extension provides a custom post type that allows you to easily show off the people that make up your business.', 'lsx'); ?></p> |
|
44 | 44 | </div> |
45 | 45 | </div> |
46 | 46 | |
47 | 47 | <div class="col-md-4"> |
48 | 48 | <div class="box-clean"> |
49 | - <a href="https://www.lsdev.biz/product/lsx-mega-menus/" target="_blank"><?php esc_html_e( 'Mega Menus', 'lsx' ); ?> - <span class="price">$39.00</span></a> |
|
50 | - <p><?php esc_html_e( 'Create custom, full-width dropdown menus that contain images, widgets and more that seamlessly tie into your LSX WordPress site.', 'lsx' ); ?></p> |
|
49 | + <a href="https://www.lsdev.biz/product/lsx-mega-menus/" target="_blank"><?php esc_html_e('Mega Menus', 'lsx'); ?> - <span class="price">$39.00</span></a> |
|
50 | + <p><?php esc_html_e('Create custom, full-width dropdown menus that contain images, widgets and more that seamlessly tie into your LSX WordPress site.', 'lsx'); ?></p> |
|
51 | 51 | </div> |
52 | 52 | </div> |
53 | 53 | |
54 | 54 | <div class="col-md-4"> |
55 | 55 | <div class="box-clean"> |
56 | - <a href="https://www.lsdev.biz/product/lsx-login/" target="_blank"><?php esc_html_e( 'Login', 'lsx' ); ?> - <span class="price">$59.00</span></a> |
|
57 | - <p><?php esc_html_e( 'The LSX Login extension allows users to log into a dashboard and then see configurable content based on which users can access which content.', 'lsx' ); ?></p> |
|
56 | + <a href="https://www.lsdev.biz/product/lsx-login/" target="_blank"><?php esc_html_e('Login', 'lsx'); ?> - <span class="price">$59.00</span></a> |
|
57 | + <p><?php esc_html_e('The LSX Login extension allows users to log into a dashboard and then see configurable content based on which users can access which content.', 'lsx'); ?></p> |
|
58 | 58 | </div> |
59 | 59 | </div> |
60 | 60 | </div> |