@@ -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); |
|
@@ -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">$19.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">$19.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> |