@@ -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 |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | <?php lsx_content_wrap_before(); ?> |
| 17 | 17 | |
| 18 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
| 18 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
| 19 | 19 | |
| 20 | 20 | <?php lsx_content_before(); ?> |
| 21 | 21 | |
@@ -23,17 +23,17 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | <?php lsx_content_top(); ?> |
| 25 | 25 | |
| 26 | - <?php if ( have_posts() ) : ?> |
|
| 26 | + <?php if (have_posts()) : ?> |
|
| 27 | 27 | |
| 28 | 28 | <?php /* Start the Loop */ ?> |
| 29 | - <?php while ( have_posts() ) : the_post(); ?> |
|
| 29 | + <?php while (have_posts()) : the_post(); ?> |
|
| 30 | 30 | |
| 31 | 31 | <?php |
| 32 | 32 | /* Include the Post-Format-specific template for the content. |
| 33 | 33 | * If you want to override this in a child theme, then include a file |
| 34 | 34 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
| 35 | 35 | */ |
| 36 | - get_template_part( 'content', get_post_format() ); |
|
| 36 | + get_template_part('content', get_post_format()); |
|
| 37 | 37 | ?> |
| 38 | 38 | |
| 39 | 39 | <?php endwhile; ?> |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | <?php else : ?> |
| 44 | 44 | |
| 45 | - <?php get_template_part( 'content', 'none' ); ?> |
|
| 45 | + <?php get_template_part('content', 'none'); ?> |
|
| 46 | 46 | |
| 47 | 47 | <?php endif; ?> |
| 48 | 48 | |
@@ -56,5 +56,5 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | <?php lsx_content_wrap_after(); ?> |
| 58 | 58 | |
| 59 | -<?php get_sidebar( 'sidebar' ); ?> |
|
| 59 | +<?php get_sidebar('sidebar'); ?> |
|
| 60 | 60 | <?php get_footer(); |
| 61 | 61 | \ No newline at end of file |
@@ -12,16 +12,16 @@ discard block |
||
| 12 | 12 | <html <?php language_attributes(); ?>> |
| 13 | 13 | <head> |
| 14 | 14 | <?php lsx_head_top(); ?> |
| 15 | -<meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
| 15 | +<meta charset="<?php bloginfo('charset'); ?>"> |
|
| 16 | 16 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
| 17 | -<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
|
| 17 | +<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> |
|
| 18 | 18 | <?php lsx_head_bottom(); ?> |
| 19 | 19 | <?php wp_head(); ?> |
| 20 | 20 | </head> |
| 21 | -<body <?php body_class( 'lsx' ); ?>> |
|
| 21 | +<body <?php body_class('lsx'); ?>> |
|
| 22 | 22 | <?php lsx_body_top(); ?> |
| 23 | 23 | |
| 24 | -<?php if ( !is_singular('landing-page') ) { ?> |
|
| 24 | +<?php if ( ! is_singular('landing-page')) { ?> |
|
| 25 | 25 | |
| 26 | 26 | <?php lsx_header_before(); ?> |
| 27 | 27 | <header class="<?php lsx_header_classes(); ?>"> |
@@ -57,17 +57,17 @@ discard block |
||
| 57 | 57 | </div> |
| 58 | 58 | |
| 59 | 59 | <div class="header-links"> |
| 60 | - <strong><?php esc_html_e( 'Get your Tourism Establishment Online', 'lsx' ); ?></strong> |
|
| 60 | + <strong><?php esc_html_e('Get your Tourism Establishment Online', 'lsx'); ?></strong> |
|
| 61 | 61 | |
| 62 | 62 | <?php |
| 63 | - if(is_singular('landing-page')){ |
|
| 64 | - $email_address = get_post_meta(get_the_ID(),'email_address',true); |
|
| 65 | - if(false === $email_address){ |
|
| 63 | + if (is_singular('landing-page')) { |
|
| 64 | + $email_address = get_post_meta(get_the_ID(), 'email_address', true); |
|
| 65 | + if (false === $email_address) { |
|
| 66 | 66 | $email_address = '[email protected]'; |
| 67 | 67 | } |
| 68 | 68 | } ?> |
| 69 | 69 | |
| 70 | - <span class="email-address"><?php esc_html_e( 'Questions? Email Us: ', 'lsx' ); ?><a href="mailto:<?php echo esc_attr( $email_address ); ?>"><?php echo esc_html( $email_address ); ?></a></span> |
|
| 70 | + <span class="email-address"><?php esc_html_e('Questions? Email Us: ', 'lsx'); ?><a href="mailto:<?php echo esc_attr($email_address); ?>"><?php echo esc_html($email_address); ?></a></span> |
|
| 71 | 71 | </div> |
| 72 | 72 | </div> |
| 73 | 73 | |
@@ -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 | |
@@ -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 |
@@ -10,22 +10,22 @@ |
||
| 10 | 10 | |
| 11 | 11 | <section class="no-results not-found"> |
| 12 | 12 | <header class="page-header"> |
| 13 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lsx' ); ?></h1> |
|
| 13 | + <h1 class="page-title"><?php esc_html_e('Nothing Found', 'lsx'); ?></h1> |
|
| 14 | 14 | </header><!-- .page-header --> |
| 15 | 15 | |
| 16 | 16 | <div class="page-content"> |
| 17 | - <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> |
|
| 17 | + <?php if (is_home() && current_user_can('publish_posts')) : ?> |
|
| 18 | 18 | |
| 19 | - <p><?php esc_html_e( 'Ready to publish your first post?', 'lsx' ); ?> <a href="<?php echo esc_url( admin_url( 'post-new.php' ) ) ?>"><?php esc_html_e( 'Get started here', 'lsx' ); ?></a></p> |
|
| 19 | + <p><?php esc_html_e('Ready to publish your first post?', 'lsx'); ?> <a href="<?php echo esc_url(admin_url('post-new.php')) ?>"><?php esc_html_e('Get started here', 'lsx'); ?></a></p> |
|
| 20 | 20 | |
| 21 | - <?php elseif ( is_search() ) : ?> |
|
| 21 | + <?php elseif (is_search()) : ?> |
|
| 22 | 22 | |
| 23 | - <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx' ); ?></p> |
|
| 23 | + <p><?php esc_html_e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx'); ?></p> |
|
| 24 | 24 | <?php get_search_form(); ?> |
| 25 | 25 | |
| 26 | 26 | <?php else : ?> |
| 27 | 27 | |
| 28 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
| 28 | + <p><?php esc_html_e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx'); ?></p> |
|
| 29 | 29 | <?php get_search_form(); ?> |
| 30 | 30 | |
| 31 | 31 | <?php endif; ?> |
@@ -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="'. __( '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="' . __('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">'. __( 'Name', 'lsx' ) .'</label> ' . |
|
| 84 | - ( $req ? '<span class="required">*</span>' : '' ) . |
|
| 85 | - '<input class="form-control" placeholder="'. __( '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">' . __('Name', 'lsx') . '</label> ' . |
|
| 84 | + ($req ? '<span class="required">*</span>' : '') . |
|
| 85 | + '<input class="form-control" placeholder="' . __('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">'. __( 'Email', 'lsx' ) .'</label> ' . |
|
| 88 | - ( $req ? '<span class="required">*</span>' : '' ) . |
|
| 89 | - '<input class="form-control" placeholder="'. __( '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">' . __('Email', 'lsx') . '</label> ' . |
|
| 88 | + ($req ? '<span class="required">*</span>' : '') . |
|
| 89 | + '<input class="form-control" placeholder="' . __('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">'. __( 'Website', 'lsx' ) .'</label>' . |
|
| 92 | - '<input class="form-control" placeholder="'. __( '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">' . __('Website', 'lsx') . '</label>' . |
|
| 92 | + '<input class="form-control" placeholder="' . __('Website', 'lsx') . '" id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30"></p>' |
|
| 93 | 93 | ) |
| 94 | 94 | ); |
| 95 | 95 | ?> |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | * @package lsx |
| 8 | 8 | */ |
| 9 | 9 | ?> |
| 10 | -<?php if ( !is_singular('landing-page') ) { ?> |
|
| 10 | +<?php if ( ! is_singular('landing-page')) { ?> |
|
| 11 | 11 | |
| 12 | 12 | </div><!-- .content --> |
| 13 | 13 | </div><!-- wrap --> |
@@ -21,12 +21,12 @@ discard block |
||
| 21 | 21 | <div class="footer-menu"> |
| 22 | 22 | <?php |
| 23 | 23 | |
| 24 | - if(!is_user_logged_in()){ |
|
| 25 | - if(has_nav_menu('footer-menu')){ |
|
| 24 | + if ( ! is_user_logged_in()) { |
|
| 25 | + if (has_nav_menu('footer-menu')) { |
|
| 26 | 26 | wp_nav_menu(array('theme_location' => 'footer-menu')); |
| 27 | 27 | } |
| 28 | - }else{ |
|
| 29 | - if(has_nav_menu('footer_logged_in')){ |
|
| 28 | + } else { |
|
| 29 | + if (has_nav_menu('footer_logged_in')) { |
|
| 30 | 30 | wp_nav_menu(array('theme_location' => 'footer_logged_in')); |
| 31 | 31 | } |
| 32 | 32 | } |
@@ -41,26 +41,26 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | <?php lsx_footer_top(); ?> |
| 43 | 43 | |
| 44 | - <p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) { ?>credit-float<?php } ?>"><?php printf( esc_html__( '© %1$s %2$s All Rights Reserved.', 'lsx' ), esc_html( date_i18n( 'Y' ) ), esc_html( get_bloginfo( 'name' ) ) ); ?></p> |
|
| 45 | - <?php if ( has_nav_menu( 'social' ) ) { ?> |
|
| 44 | + <p class="credit <?php if (has_nav_menu('social') || has_nav_menu('footer')) { ?>credit-float<?php } ?>"><?php printf(esc_html__('© %1$s %2$s All Rights Reserved.', 'lsx'), esc_html(date_i18n('Y')), esc_html(get_bloginfo('name'))); ?></p> |
|
| 45 | + <?php if (has_nav_menu('social')) { ?> |
|
| 46 | 46 | <nav id="social-navigation" class="social-navigation"> |
| 47 | 47 | <?php |
| 48 | 48 | // Social links navigation menu. |
| 49 | - wp_nav_menu( array( |
|
| 49 | + wp_nav_menu(array( |
|
| 50 | 50 | 'theme_location' => 'social', |
| 51 | 51 | 'depth' => 1, |
| 52 | - ) ); |
|
| 52 | + )); |
|
| 53 | 53 | ?> |
| 54 | 54 | </nav><!-- .social-navigation --> |
| 55 | 55 | <?php } ?> |
| 56 | - <?php if ( has_nav_menu( 'footer' ) ) { ?> |
|
| 56 | + <?php if (has_nav_menu('footer')) { ?> |
|
| 57 | 57 | <nav id="footer-navigation" class="footer-navigation"> |
| 58 | 58 | <?php |
| 59 | 59 | // Footer links navigation menu. |
| 60 | - wp_nav_menu( array( |
|
| 60 | + wp_nav_menu(array( |
|
| 61 | 61 | 'theme_location' => 'footer', |
| 62 | 62 | 'depth' => 1, |
| 63 | - ) ); |
|
| 63 | + )); |
|
| 64 | 64 | ?> |
| 65 | 65 | </nav><!-- .footer-navigation --> |
| 66 | 66 | <?php } ?> |
@@ -87,15 +87,15 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | <?php lsx_footer_top(); ?> |
| 89 | 89 | |
| 90 | - <p class="credit <?php if ( has_nav_menu( 'social' ) ) { ?>credit-float<?php } ?>"><?php printf( esc_html__( '© %1$s %2$s All Rights Reserved.', 'lsx' ), esc_html( date_i18n( 'Y' ) ), esc_html( get_bloginfo( 'name' ) ) ); ?></p> |
|
| 91 | - <?php if ( has_nav_menu( 'social' ) ) { ?> |
|
| 90 | + <p class="credit <?php if (has_nav_menu('social')) { ?>credit-float<?php } ?>"><?php printf(esc_html__('© %1$s %2$s All Rights Reserved.', 'lsx'), esc_html(date_i18n('Y')), esc_html(get_bloginfo('name'))); ?></p> |
|
| 91 | + <?php if (has_nav_menu('social')) { ?> |
|
| 92 | 92 | <nav id="social-navigation" class="social-navigation" role="navigation"> |
| 93 | 93 | <?php |
| 94 | 94 | // Social links navigation menu. |
| 95 | - wp_nav_menu( array( |
|
| 95 | + wp_nav_menu(array( |
|
| 96 | 96 | 'theme_location' => 'social', |
| 97 | 97 | 'depth' => 1, |
| 98 | - ) ); |
|
| 98 | + )); |
|
| 99 | 99 | ?> |
| 100 | 100 | </nav><!-- .social-navigation --> |
| 101 | 101 | <?php } ?> |
@@ -1,77 +1,77 @@ 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 | * Filter: lsx_customizer_colour_names |
| 6 | 6 | * |
| 7 | 7 | * Add two new colors (test) in main array of colors |
| 8 | 8 | */ |
| 9 | -function test_lsx_customizer_colour_names( $array ) { |
|
| 10 | - $array['test_text_color'] = esc_html__( 'TEST: Text', 'lsx' ); |
|
| 11 | - $array['test_text_color_hover'] = esc_html__( 'TEST: Text (hover)', 'lsx' ); |
|
| 9 | +function test_lsx_customizer_colour_names($array) { |
|
| 10 | + $array['test_text_color'] = esc_html__('TEST: Text', 'lsx'); |
|
| 11 | + $array['test_text_color_hover'] = esc_html__('TEST: Text (hover)', 'lsx'); |
|
| 12 | 12 | return $array; |
| 13 | 13 | } |
| 14 | -add_filter( 'lsx_customizer_colour_names', 'test_lsx_customizer_colour_names' ); |
|
| 14 | +add_filter('lsx_customizer_colour_names', 'test_lsx_customizer_colour_names'); |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Filter: lsx_customizer_colour_choices_default |
| 18 | 18 | * |
| 19 | 19 | * Add the new colors (test) in default scheme |
| 20 | 20 | */ |
| 21 | -function test_lsx_customizer_colour_choices_default( $array ) { |
|
| 21 | +function test_lsx_customizer_colour_choices_default($array) { |
|
| 22 | 22 | $array[] = '#ddddd1'; |
| 23 | 23 | $array[] = '#eeeee1'; |
| 24 | 24 | return $array; |
| 25 | 25 | } |
| 26 | -add_filter( 'lsx_customizer_colour_choices_default', 'test_lsx_customizer_colour_choices_default' ); |
|
| 26 | +add_filter('lsx_customizer_colour_choices_default', 'test_lsx_customizer_colour_choices_default'); |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Filter: lsx_customizer_colour_choices_red |
| 30 | 30 | * |
| 31 | 31 | * Add the new colors (test) in red scheme |
| 32 | 32 | */ |
| 33 | -function test_lsx_customizer_colour_choices_red( $array ) { |
|
| 33 | +function test_lsx_customizer_colour_choices_red($array) { |
|
| 34 | 34 | $array[] = '#ddddd2'; |
| 35 | 35 | $array[] = '#eeeee2'; |
| 36 | 36 | return $array; |
| 37 | 37 | } |
| 38 | -add_filter( 'lsx_customizer_colour_choices_red', 'test_lsx_customizer_colour_choices_red' ); |
|
| 38 | +add_filter('lsx_customizer_colour_choices_red', 'test_lsx_customizer_colour_choices_red'); |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * Filter: lsx_customizer_colour_choices_orange |
| 42 | 42 | * |
| 43 | 43 | * Add the new colors (test) in orange scheme |
| 44 | 44 | */ |
| 45 | -function test_lsx_customizer_colour_choices_orange( $array ) { |
|
| 45 | +function test_lsx_customizer_colour_choices_orange($array) { |
|
| 46 | 46 | $array[] = '#ddddd3'; |
| 47 | 47 | $array[] = '#eeeee3'; |
| 48 | 48 | return $array; |
| 49 | 49 | } |
| 50 | -add_filter( 'lsx_customizer_colour_choices_orange', 'test_lsx_customizer_colour_choices_orange' ); |
|
| 50 | +add_filter('lsx_customizer_colour_choices_orange', 'test_lsx_customizer_colour_choices_orange'); |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Filter: lsx_customizer_colour_choices_green |
| 54 | 54 | * |
| 55 | 55 | * Add the new colors (test) in green scheme |
| 56 | 56 | */ |
| 57 | -function test_lsx_customizer_colour_choices_green( $array ) { |
|
| 57 | +function test_lsx_customizer_colour_choices_green($array) { |
|
| 58 | 58 | $array[] = '#ddddd4'; |
| 59 | 59 | $array[] = '#eeeee4'; |
| 60 | 60 | return $array; |
| 61 | 61 | } |
| 62 | -add_filter( 'lsx_customizer_colour_choices_green', 'test_lsx_customizer_colour_choices_green' ); |
|
| 62 | +add_filter('lsx_customizer_colour_choices_green', 'test_lsx_customizer_colour_choices_green'); |
|
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * Filter: lsx_customizer_colour_choices_brown |
| 66 | 66 | * |
| 67 | 67 | * Add the new colors (test) in brown scheme |
| 68 | 68 | */ |
| 69 | -function test_lsx_customizer_colour_choices_brown( $array ) { |
|
| 69 | +function test_lsx_customizer_colour_choices_brown($array) { |
|
| 70 | 70 | $array[] = '#ddddd5'; |
| 71 | 71 | $array[] = '#eeeee5'; |
| 72 | 72 | return $array; |
| 73 | 73 | } |
| 74 | -add_filter( 'lsx_customizer_colour_choices_brown', 'test_lsx_customizer_colour_choices_brown' ); |
|
| 74 | +add_filter('lsx_customizer_colour_choices_brown', 'test_lsx_customizer_colour_choices_brown'); |
|
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * Filter: lsx_customizer_colour_choices |
@@ -79,9 +79,9 @@ discard block |
||
| 79 | 79 | * Add a new scheme |
| 80 | 80 | * Also add the new colors (test) in new scheme |
| 81 | 81 | */ |
| 82 | -function test_lsx_customizer_colour_choices( $array ) { |
|
| 82 | +function test_lsx_customizer_colour_choices($array) { |
|
| 83 | 83 | $array['test'] = array( |
| 84 | - 'label' => __( 'Test', 'lsx' ), |
|
| 84 | + 'label' => __('Test', 'lsx'), |
|
| 85 | 85 | 'colors' => array( |
| 86 | 86 | // Button |
| 87 | 87 | '#428bca', '#2a6496', '#ffffff', '#ffffff', |
@@ -110,14 +110,14 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | return $array; |
| 112 | 112 | } |
| 113 | -add_filter( 'lsx_customizer_colour_choices', 'test_lsx_customizer_colour_choices' ); |
|
| 113 | +add_filter('lsx_customizer_colour_choices', 'test_lsx_customizer_colour_choices'); |
|
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * Filter: lsx_customizer_colour_selectors_button |
| 117 | 117 | * |
| 118 | 118 | * Add new selectors in "button" group of colours |
| 119 | 119 | */ |
| 120 | -function test_lsx_customizer_colour_selectors_button( $css, $colors ) { |
|
| 120 | +function test_lsx_customizer_colour_selectors_button($css, $colors) { |
|
| 121 | 121 | $css .= <<<CSS |
| 122 | 122 | |
| 123 | 123 | /* Button TEST */ |
@@ -132,14 +132,14 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | return $css; |
| 134 | 134 | } |
| 135 | -add_filter( 'lsx_customizer_colour_selectors_button', 'test_lsx_customizer_colour_selectors_button', 10, 2 ); |
|
| 135 | +add_filter('lsx_customizer_colour_selectors_button', 'test_lsx_customizer_colour_selectors_button', 10, 2); |
|
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | 138 | * Filter: lsx_customizer_colour_selectors_button_cta |
| 139 | 139 | * |
| 140 | 140 | * Add new selectors in "button cta" group of colours |
| 141 | 141 | */ |
| 142 | -function test_lsx_customizer_colour_selectors_button_cta( $css, $colors ) { |
|
| 142 | +function test_lsx_customizer_colour_selectors_button_cta($css, $colors) { |
|
| 143 | 143 | $css .= <<<CSS |
| 144 | 144 | |
| 145 | 145 | /* Button CTA TEST */ |
@@ -154,14 +154,14 @@ discard block |
||
| 154 | 154 | |
| 155 | 155 | return $css; |
| 156 | 156 | } |
| 157 | -add_filter( 'lsx_customizer_colour_selectors_button_cta', 'test_lsx_customizer_colour_selectors_button_cta', 10, 2 ); |
|
| 157 | +add_filter('lsx_customizer_colour_selectors_button_cta', 'test_lsx_customizer_colour_selectors_button_cta', 10, 2); |
|
| 158 | 158 | |
| 159 | 159 | /** |
| 160 | 160 | * Filter: lsx_customizer_colour_selectors_top_menu |
| 161 | 161 | * |
| 162 | 162 | * Add new selectors in "top menu" group of colours |
| 163 | 163 | */ |
| 164 | -function test_lsx_customizer_colour_selectors_top_menu( $css, $colors ) { |
|
| 164 | +function test_lsx_customizer_colour_selectors_top_menu($css, $colors) { |
|
| 165 | 165 | $css .= <<<CSS |
| 166 | 166 | |
| 167 | 167 | /* Top Menu TEST */ |
@@ -175,14 +175,14 @@ discard block |
||
| 175 | 175 | |
| 176 | 176 | return $css; |
| 177 | 177 | } |
| 178 | -add_filter( 'lsx_customizer_colour_selectors_top_menu', 'test_lsx_customizer_colour_selectors_top_menu', 10, 2 ); |
|
| 178 | +add_filter('lsx_customizer_colour_selectors_top_menu', 'test_lsx_customizer_colour_selectors_top_menu', 10, 2); |
|
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * Filter: lsx_customizer_colour_selectors_header |
| 182 | 182 | * |
| 183 | 183 | * Add new selectors in "header" group of colours |
| 184 | 184 | */ |
| 185 | -function test_lsx_customizer_colour_selectors_header( $css, $colors ) { |
|
| 185 | +function test_lsx_customizer_colour_selectors_header($css, $colors) { |
|
| 186 | 186 | $css .= <<<CSS |
| 187 | 187 | |
| 188 | 188 | /* Header TEST */ |
@@ -197,14 +197,14 @@ discard block |
||
| 197 | 197 | |
| 198 | 198 | return $css; |
| 199 | 199 | } |
| 200 | -add_filter( 'lsx_customizer_colour_selectors_header', 'test_lsx_customizer_colour_selectors_header', 10, 2 ); |
|
| 200 | +add_filter('lsx_customizer_colour_selectors_header', 'test_lsx_customizer_colour_selectors_header', 10, 2); |
|
| 201 | 201 | |
| 202 | 202 | /** |
| 203 | 203 | * Filter: lsx_customizer_colour_selectors_main_menu |
| 204 | 204 | * |
| 205 | 205 | * Add new selectors in "main meun" group of colours |
| 206 | 206 | */ |
| 207 | -function test_lsx_customizer_colour_selectors_main_menu( $css, $colors ) { |
|
| 207 | +function test_lsx_customizer_colour_selectors_main_menu($css, $colors) { |
|
| 208 | 208 | $css .= <<<CSS |
| 209 | 209 | |
| 210 | 210 | /* Main Menu TEST */ |
@@ -220,14 +220,14 @@ discard block |
||
| 220 | 220 | |
| 221 | 221 | return $css; |
| 222 | 222 | } |
| 223 | -add_filter( 'lsx_customizer_colour_selectors_main_menu', 'test_lsx_customizer_colour_selectors_main_menu', 10, 2 ); |
|
| 223 | +add_filter('lsx_customizer_colour_selectors_main_menu', 'test_lsx_customizer_colour_selectors_main_menu', 10, 2); |
|
| 224 | 224 | |
| 225 | 225 | /** |
| 226 | 226 | * Filter: lsx_customizer_colour_selectors_banner |
| 227 | 227 | * |
| 228 | 228 | * Add new selectors in "banner" group of colours |
| 229 | 229 | */ |
| 230 | -function test_lsx_customizer_colour_selectors_banner( $css, $colors ) { |
|
| 230 | +function test_lsx_customizer_colour_selectors_banner($css, $colors) { |
|
| 231 | 231 | $css .= <<<CSS |
| 232 | 232 | |
| 233 | 233 | /* Banner TEST */ |
@@ -241,14 +241,14 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | return $css; |
| 243 | 243 | } |
| 244 | -add_filter( 'lsx_customizer_colour_selectors_banner', 'test_lsx_customizer_colour_selectors_banner', 10, 2 ); |
|
| 244 | +add_filter('lsx_customizer_colour_selectors_banner', 'test_lsx_customizer_colour_selectors_banner', 10, 2); |
|
| 245 | 245 | |
| 246 | 246 | /** |
| 247 | 247 | * Filter: lsx_customizer_colour_selectors_body |
| 248 | 248 | * |
| 249 | 249 | * Add new selectors in "body" group of colours |
| 250 | 250 | */ |
| 251 | -function test_lsx_customizer_colour_selectors_body( $css, $colors ) { |
|
| 251 | +function test_lsx_customizer_colour_selectors_body($css, $colors) { |
|
| 252 | 252 | $css .= <<<CSS |
| 253 | 253 | |
| 254 | 254 | /* Body TEST */ |
@@ -265,14 +265,14 @@ discard block |
||
| 265 | 265 | |
| 266 | 266 | return $css; |
| 267 | 267 | } |
| 268 | -add_filter( 'lsx_customizer_colour_selectors_body', 'test_lsx_customizer_colour_selectors_body', 10, 2 ); |
|
| 268 | +add_filter('lsx_customizer_colour_selectors_body', 'test_lsx_customizer_colour_selectors_body', 10, 2); |
|
| 269 | 269 | |
| 270 | 270 | /** |
| 271 | 271 | * Filter: lsx_customizer_colour_selectors_footer_cta |
| 272 | 272 | * |
| 273 | 273 | * Add new selectors in "footer cta" group of colours |
| 274 | 274 | */ |
| 275 | -function test_lsx_customizer_colour_selectors_footer_cta( $css, $colors ) { |
|
| 275 | +function test_lsx_customizer_colour_selectors_footer_cta($css, $colors) { |
|
| 276 | 276 | $css .= <<<CSS |
| 277 | 277 | |
| 278 | 278 | /* Footer CTA TEST */ |
@@ -287,14 +287,14 @@ discard block |
||
| 287 | 287 | |
| 288 | 288 | return $css; |
| 289 | 289 | } |
| 290 | -add_filter( 'lsx_customizer_colour_selectors_footer_cta', 'test_lsx_customizer_colour_selectors_footer_cta', 10, 2 ); |
|
| 290 | +add_filter('lsx_customizer_colour_selectors_footer_cta', 'test_lsx_customizer_colour_selectors_footer_cta', 10, 2); |
|
| 291 | 291 | |
| 292 | 292 | /** |
| 293 | 293 | * Filter: lsx_customizer_colour_selectors_footer_widgets |
| 294 | 294 | * |
| 295 | 295 | * Add new selectors in "footer widgets" group of colours |
| 296 | 296 | */ |
| 297 | -function test_lsx_customizer_colour_selectors_footer_widgets( $css, $colors ) { |
|
| 297 | +function test_lsx_customizer_colour_selectors_footer_widgets($css, $colors) { |
|
| 298 | 298 | $css .= <<<CSS |
| 299 | 299 | |
| 300 | 300 | /* Footer Widgets TEST */ |
@@ -309,14 +309,14 @@ discard block |
||
| 309 | 309 | |
| 310 | 310 | return $css; |
| 311 | 311 | } |
| 312 | -add_filter( 'lsx_customizer_colour_selectors_footer_widgets', 'test_lsx_customizer_colour_selectors_footer_widgets', 10, 2 ); |
|
| 312 | +add_filter('lsx_customizer_colour_selectors_footer_widgets', 'test_lsx_customizer_colour_selectors_footer_widgets', 10, 2); |
|
| 313 | 313 | |
| 314 | 314 | /** |
| 315 | 315 | * Filter: lsx_customizer_colour_selectors_footer |
| 316 | 316 | * |
| 317 | 317 | * Add new selectors in "footer" group of colours |
| 318 | 318 | */ |
| 319 | -function test_lsx_customizer_colour_selectors_footer( $css, $colors ) { |
|
| 319 | +function test_lsx_customizer_colour_selectors_footer($css, $colors) { |
|
| 320 | 320 | $css .= <<<CSS |
| 321 | 321 | |
| 322 | 322 | /* Footer TEST */ |
@@ -331,4 +331,4 @@ discard block |
||
| 331 | 331 | |
| 332 | 332 | return $css; |
| 333 | 333 | } |
| 334 | -add_filter( 'lsx_customizer_colour_selectors_footer', 'test_lsx_customizer_colour_selectors_footer', 10, 2 ); |
|
| 334 | +add_filter('lsx_customizer_colour_selectors_footer', 'test_lsx_customizer_colour_selectors_footer', 10, 2); |
|