@@ -7,18 +7,18 @@ discard block |
||
| 7 | 7 | <?php lsx_entry_before(); ?> |
| 8 | 8 | |
| 9 | 9 | <?php |
| 10 | - if ( has_post_thumbnail() ) { |
|
| 10 | + if (has_post_thumbnail()) { |
|
| 11 | 11 | $thumb_class = 'has-thumb'; |
| 12 | 12 | } else { |
| 13 | 13 | $thumb_class = 'no-thumb'; |
| 14 | 14 | } |
| 15 | 15 | ?> |
| 16 | 16 | |
| 17 | -<article id="post-<?php the_ID(); ?>" <?php post_class( $thumb_class ); ?>> |
|
| 17 | +<article id="post-<?php the_ID(); ?>" <?php post_class($thumb_class); ?>> |
|
| 18 | 18 | <?php lsx_entry_top(); ?> |
| 19 | 19 | |
| 20 | 20 | <header class="entry-header"> |
| 21 | - <?php if ( has_post_thumbnail() ) { ?> |
|
| 21 | + <?php if (has_post_thumbnail()) { ?> |
|
| 22 | 22 | <div class="entry-image"> |
| 23 | 23 | <a class="thumbnail" href="<?php the_permalink(); ?>"> |
| 24 | 24 | <?php lsx_thumbnail('lsx-single-thumbnail'); ?> |
@@ -28,35 +28,35 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | <?php |
| 30 | 30 | $format = get_post_format(); |
| 31 | - if ( false === $format ) { |
|
| 31 | + if (false === $format) { |
|
| 32 | 32 | $format = 'standard'; |
| 33 | - $show_on_front = get_option('show_on_front','posts'); |
|
| 34 | - if('page' == $show_on_front){ |
|
| 33 | + $show_on_front = get_option('show_on_front', 'posts'); |
|
| 34 | + if ('page' == $show_on_front) { |
|
| 35 | 35 | $archive_link = get_permalink(get_option('page_for_posts')); |
| 36 | - }else{ |
|
| 36 | + } else { |
|
| 37 | 37 | $archive_link = home_url(); |
| 38 | 38 | } |
| 39 | - }else{ |
|
| 39 | + } else { |
|
| 40 | 40 | $archive_link = get_post_format_link($format); |
| 41 | 41 | } |
| 42 | 42 | $format = lsx_translate_format_to_fontawesome($format); |
| 43 | 43 | ?> |
| 44 | 44 | |
| 45 | 45 | <h1 class="entry-title"> |
| 46 | - <?php if ( has_post_thumbnail() ) { ?> |
|
| 47 | - <a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
| 46 | + <?php if (has_post_thumbnail()) { ?> |
|
| 47 | + <a href="<?php echo esc_url($archive_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a> |
|
| 48 | 48 | <?php } else { ?> |
| 49 | - <a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
| 49 | + <a href="<?php echo esc_url($archive_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a> |
|
| 50 | 50 | <?php } ?> |
| 51 | 51 | |
| 52 | - <?php if ( has_post_format( array('link') ) ) { ?> |
|
| 53 | - <a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
|
| 52 | + <?php if (has_post_format(array('link'))) { ?> |
|
| 53 | + <a href="<?php echo esc_url(lsx_get_my_url()); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
|
| 54 | 54 | <?php } else { ?> |
| 55 | 55 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
| 56 | 56 | <?php } ?> |
| 57 | 57 | |
| 58 | - <?php if ( is_sticky() ) { ?> |
|
| 59 | - <span class="label label-default label-sticky"><?php esc_html_e('Featured','lsx'); ?></span> |
|
| 58 | + <?php if (is_sticky()) { ?> |
|
| 59 | + <span class="label label-default label-sticky"><?php esc_html_e('Featured', 'lsx'); ?></span> |
|
| 60 | 60 | <?php } ?> |
| 61 | 61 | </h1> |
| 62 | 62 | |
@@ -65,37 +65,37 @@ discard block |
||
| 65 | 65 | </div><!-- .entry-meta --> |
| 66 | 66 | </header><!-- .entry-header --> |
| 67 | 67 | |
| 68 | - <?php if ( !is_singular() && !has_post_format( array('video', 'audio', 'quote', 'link') ) ) : // Only display Excerpts for Search and Archives ?> |
|
| 68 | + <?php if ( ! is_singular() && ! has_post_format(array('video', 'audio', 'quote', 'link'))) : // Only display Excerpts for Search and Archives ?> |
|
| 69 | 69 | <div class="entry-summary"> |
| 70 | 70 | <?php the_excerpt(); ?> |
| 71 | 71 | </div><!-- .entry-summary --> |
| 72 | - <?php elseif ( has_post_format( array('link') ) ) : ?> |
|
| 72 | + <?php elseif (has_post_format(array('link'))) : ?> |
|
| 73 | 73 | |
| 74 | 74 | <?php else : ?> |
| 75 | 75 | <div class="entry-content"> |
| 76 | 76 | <?php |
| 77 | 77 | the_content(); |
| 78 | 78 | |
| 79 | - wp_link_pages( array( |
|
| 79 | + wp_link_pages(array( |
|
| 80 | 80 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
| 81 | 81 | 'after' => '</div></div>', |
| 82 | 82 | 'link_before' => '<span>', |
| 83 | 83 | 'link_after' => '</span>' |
| 84 | - ) ); |
|
| 84 | + )); |
|
| 85 | 85 | ?> |
| 86 | 86 | </div><!-- .entry-content --> |
| 87 | 87 | <?php endif; ?> |
| 88 | 88 | |
| 89 | - <?php if ( has_tag() || ( comments_open() && ! empty( get_comments_number() ) ) ) : ?> |
|
| 89 | + <?php if (has_tag() || (comments_open() && ! empty(get_comments_number()))) : ?> |
|
| 90 | 90 | <div class="post-tags-wrapper"> |
| 91 | 91 | <?php lsx_content_post_tags(); ?> |
| 92 | 92 | |
| 93 | - <?php if ( comments_open() && ! empty( get_comments_number() ) ) : ?> |
|
| 93 | + <?php if (comments_open() && ! empty(get_comments_number())) : ?> |
|
| 94 | 94 | <div class="post-comments"> |
| 95 | 95 | <a href="<?php the_permalink() ?>#comments"> |
| 96 | 96 | <?php |
| 97 | 97 | $count = get_comments_number(); |
| 98 | - printf( esc_html( _n( 'One Comment', '%1$s Comments', $count, 'lsx' ) ), esc_html( number_format_i18n( $count ) ) ); |
|
| 98 | + printf(esc_html(_n('One Comment', '%1$s Comments', $count, 'lsx')), esc_html(number_format_i18n($count))); |
|
| 99 | 99 | ?> |
| 100 | 100 | </a> |
| 101 | 101 | </div> |
@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | <div class="clearfix"></div> |
| 110 | 110 | |
| 111 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<span class="edit-link">', '</span>' ); ?> |
|
| 111 | + <?php edit_post_link(__('Edit', 'lsx'), '<span class="edit-link">', '</span>'); ?> |
|
| 112 | 112 | |
| 113 | - <?php if ( !is_singular() && !is_single() ) { // Display full-width divider on Archives ?> |
|
| 113 | + <?php if ( ! is_singular() && ! is_single()) { // Display full-width divider on Archives ?> |
|
| 114 | 114 | <div class="lsx-breaker"></div> |
| 115 | 115 | <?php } ?> |
| 116 | 116 | </article><!-- #post-## --> |
@@ -12,20 +12,20 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | <?php |
| 14 | 14 | $format = get_post_format(); |
| 15 | - if ( false === $format ) { |
|
| 15 | + if (false === $format) { |
|
| 16 | 16 | $format = 'standard'; |
| 17 | 17 | } |
| 18 | 18 | $format_link = get_post_format_link($format); |
| 19 | 19 | $format = lsx_translate_format_to_fontawesome($format); |
| 20 | 20 | ?> |
| 21 | 21 | |
| 22 | - <?php if ( ! is_single() ) { ?> |
|
| 22 | + <?php if ( ! is_single()) { ?> |
|
| 23 | 23 | <header class="entry-header"> |
| 24 | 24 | <h1 class="entry-title"> |
| 25 | - <?php if ( has_post_thumbnail() ) { ?> |
|
| 26 | - <a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
| 25 | + <?php if (has_post_thumbnail()) { ?> |
|
| 26 | + <a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a> |
|
| 27 | 27 | <?php } else { ?> |
| 28 | - <a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
| 28 | + <a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a> |
|
| 29 | 29 | <?php } ?> |
| 30 | 30 | |
| 31 | 31 | <span><?php the_title(); ?></span> |
@@ -39,33 +39,33 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | <div class="entry-content"> |
| 41 | 41 | <?php |
| 42 | - if ( ! is_singular() ) { |
|
| 42 | + if ( ! is_singular()) { |
|
| 43 | 43 | the_excerpt(); |
| 44 | 44 | } else { |
| 45 | 45 | the_content(); |
| 46 | 46 | |
| 47 | - wp_link_pages( array( |
|
| 47 | + wp_link_pages(array( |
|
| 48 | 48 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
| 49 | 49 | 'after' => '</div></div>', |
| 50 | 50 | 'link_before' => '<span>', |
| 51 | 51 | 'link_after' => '</span>' |
| 52 | - ) ); |
|
| 52 | + )); |
|
| 53 | 53 | } ?> |
| 54 | 54 | </div><!-- .entry-content --> |
| 55 | 55 | |
| 56 | 56 | <footer class="footer-meta"> |
| 57 | - <?php if ( has_tag() || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?> |
|
| 57 | + <?php if (has_tag() || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?> |
|
| 58 | 58 | <div class="post-tags-wrapper"> |
| 59 | 59 | <?php lsx_content_post_tags(); ?> |
| 60 | 60 | |
| 61 | 61 | <?php |
| 62 | - if ( function_exists( 'sharing_display' ) ) { |
|
| 63 | - sharing_display( '', true ); |
|
| 62 | + if (function_exists('sharing_display')) { |
|
| 63 | + sharing_display('', true); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - if ( class_exists( 'Jetpack_Likes' ) ) { |
|
| 66 | + if (class_exists('Jetpack_Likes')) { |
|
| 67 | 67 | $custom_likes = new Jetpack_Likes; |
| 68 | - echo wp_kses_post( $custom_likes->post_likes( '' ) ); |
|
| 68 | + echo wp_kses_post($custom_likes->post_likes('')); |
|
| 69 | 69 | } |
| 70 | 70 | ?> |
| 71 | 71 | </div> |
@@ -73,8 +73,8 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | <?php |
| 75 | 75 | // If comments are open or we have at least one comment, load up the comment template |
| 76 | - if ( comments_open() || '0' != get_comments_number() ) : ?> |
|
| 77 | - <a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html( get_comments_number() ) ?></strong> <?php esc_html_e('Comments','lsx'); ?> <span class="fa fa-chevron-down"></span></a> |
|
| 76 | + if (comments_open() || '0' != get_comments_number()) : ?> |
|
| 77 | + <a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html(get_comments_number()) ?></strong> <?php esc_html_e('Comments', 'lsx'); ?> <span class="fa fa-chevron-down"></span></a> |
|
| 78 | 78 | |
| 79 | 79 | <div class="collapse" id="comments-collapse"> |
| 80 | 80 | <?php |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | <?php endif; ?> |
| 85 | 85 | </footer><!-- .footer-meta --> |
| 86 | 86 | |
| 87 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
| 87 | + <?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
| 88 | 88 | |
| 89 | 89 | <?php lsx_portfolio_related_posts(); ?> |
| 90 | 90 | |
@@ -12,20 +12,20 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | <?php |
| 14 | 14 | $format = get_post_format(); |
| 15 | - if ( false === $format ) { |
|
| 15 | + if (false === $format) { |
|
| 16 | 16 | $format = 'standard'; |
| 17 | 17 | } |
| 18 | 18 | $format_link = get_post_format_link($format); |
| 19 | 19 | $format = lsx_translate_format_to_fontawesome($format); |
| 20 | 20 | ?> |
| 21 | 21 | |
| 22 | - <?php if ( ! is_single() ) { ?> |
|
| 22 | + <?php if ( ! is_single()) { ?> |
|
| 23 | 23 | <header class="entry-header"> |
| 24 | 24 | <h1 class="entry-title"> |
| 25 | - <?php if ( has_post_thumbnail() ) { ?> |
|
| 26 | - <a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
| 25 | + <?php if (has_post_thumbnail()) { ?> |
|
| 26 | + <a href="<?php echo esc_url($format_link) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format) ?>"></a> |
|
| 27 | 27 | <?php } else { ?> |
| 28 | - <a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a> |
|
| 28 | + <a href="<?php echo esc_url($format_link) ?>" class="format-link fa fa-<?php echo esc_attr($format) ?>"></a> |
|
| 29 | 29 | <?php } ?> |
| 30 | 30 | |
| 31 | 31 | <span><?php the_title(); ?></span> |
@@ -39,33 +39,33 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | <div class="entry-content"> |
| 41 | 41 | <?php |
| 42 | - if ( ! is_singular() ) { |
|
| 42 | + if ( ! is_singular()) { |
|
| 43 | 43 | the_excerpt(); |
| 44 | 44 | } else { |
| 45 | 45 | the_content(); |
| 46 | 46 | |
| 47 | - wp_link_pages( array( |
|
| 47 | + wp_link_pages(array( |
|
| 48 | 48 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
| 49 | 49 | 'after' => '</div></div>', |
| 50 | 50 | 'link_before' => '<span>', |
| 51 | 51 | 'link_after' => '</span>' |
| 52 | - ) ); |
|
| 52 | + )); |
|
| 53 | 53 | } ?> |
| 54 | 54 | </div><!-- .entry-content --> |
| 55 | 55 | |
| 56 | 56 | <footer class="footer-meta"> |
| 57 | - <?php if ( has_tag() || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?> |
|
| 57 | + <?php if (has_tag() || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?> |
|
| 58 | 58 | <div class="post-tags-wrapper"> |
| 59 | 59 | <?php lsx_content_post_tags(); ?> |
| 60 | 60 | |
| 61 | 61 | <?php |
| 62 | - if ( function_exists( 'sharing_display' ) ) { |
|
| 63 | - sharing_display( '', true ); |
|
| 62 | + if (function_exists('sharing_display')) { |
|
| 63 | + sharing_display('', true); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - if ( class_exists( 'Jetpack_Likes' ) ) { |
|
| 66 | + if (class_exists('Jetpack_Likes')) { |
|
| 67 | 67 | $custom_likes = new Jetpack_Likes; |
| 68 | - echo wp_kses_post( $custom_likes->post_likes( '' ) ); |
|
| 68 | + echo wp_kses_post($custom_likes->post_likes('')); |
|
| 69 | 69 | } |
| 70 | 70 | ?> |
| 71 | 71 | </div> |
@@ -73,8 +73,8 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | <?php |
| 75 | 75 | // If comments are open or we have at least one comment, load up the comment template |
| 76 | - if ( comments_open() || '0' != get_comments_number() ) : ?> |
|
| 77 | - <a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html( get_comments_number() ) ?></strong> <?php esc_html_e('Comments','lsx'); ?> <span class="fa fa-chevron-down"></span></a> |
|
| 76 | + if (comments_open() || '0' != get_comments_number()) : ?> |
|
| 77 | + <a class="comments-link post-meta-link" data-toggle="collapse" href="#comments-collapse"><strong><?php echo esc_html(get_comments_number()) ?></strong> <?php esc_html_e('Comments', 'lsx'); ?> <span class="fa fa-chevron-down"></span></a> |
|
| 78 | 78 | |
| 79 | 79 | <div class="collapse" id="comments-collapse"> |
| 80 | 80 | <?php |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | <?php endif; ?> |
| 85 | 85 | </footer><!-- .footer-meta --> |
| 86 | 86 | |
| 87 | - <?php edit_post_link( __( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> |
|
| 87 | + <?php edit_post_link(__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?> |
|
| 88 | 88 | |
| 89 | 89 | <?php lsx_portfolio_related_posts(); ?> |
| 90 | 90 | |
@@ -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 | * Yoast Breadcrumbs on Twitter Bootstrap |
@@ -10,21 +10,21 @@ discard block |
||
| 10 | 10 | * @param string $sep Your custom separator |
| 11 | 11 | */ |
| 12 | 12 | function lsx_breadcrumbs() { |
| 13 | - if (!function_exists('yoast_breadcrumb') && !function_exists('woocommerce_breadcrumb')) { |
|
| 13 | + if ( ! function_exists('yoast_breadcrumb') && ! function_exists('woocommerce_breadcrumb')) { |
|
| 14 | 14 | return null; |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | $show_on_front = get_option('show_on_front'); |
| 18 | - if ( ('posts' == $show_on_front && is_home()) || ('page' == $show_on_front && is_front_page()) ) { |
|
| 18 | + if (('posts' == $show_on_front && is_home()) || ('page' == $show_on_front && is_front_page())) { |
|
| 19 | 19 | return; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - if(function_exists('woocommerce_breadcrumb')){ |
|
| 22 | + if (function_exists('woocommerce_breadcrumb')) { |
|
| 23 | 23 | ob_start(); |
| 24 | 24 | woocommerce_breadcrumb(); |
| 25 | 25 | $output = ob_get_clean(); |
| 26 | 26 | $output = str_replace('woocommerce-breadcrumb', 'woocommerce-breadcrumb breadcrumbs-container', $output); |
| 27 | - }elseif(function_exists('yoast_breadcrumb')){ |
|
| 27 | + }elseif (function_exists('yoast_breadcrumb')) { |
|
| 28 | 28 | // Default Yoast Breadcrumbs Separator |
| 29 | 29 | $old_sep = '\»\;'; |
| 30 | 30 | |
@@ -42,11 +42,11 @@ discard block |
||
| 42 | 42 | $output = '<div class="breadcrumbs-container">' . $output . '</div>'; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - $output = apply_filters('lsx_breadcrumbs',$output); |
|
| 45 | + $output = apply_filters('lsx_breadcrumbs', $output); |
|
| 46 | 46 | |
| 47 | 47 | echo $output; |
| 48 | 48 | } |
| 49 | -add_action( 'lsx_content_top', 'lsx_breadcrumbs', 100 ); |
|
| 49 | +add_action('lsx_content_top', 'lsx_breadcrumbs', 100); |
|
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * Replaces the seperator with a blank space. |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | function lsx_breadcrumbs_seperator_filter($seperator) { |
| 56 | 56 | return ''; |
| 57 | 57 | } |
| 58 | -add_filter( 'wpseo_breadcrumb_separator', 'lsx_breadcrumbs_seperator_filter' ); |
|
| 58 | +add_filter('wpseo_breadcrumb_separator', 'lsx_breadcrumbs_seperator_filter'); |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * Custom template tags for this theme. |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @package lsx |
| 65 | 65 | */ |
| 66 | -if ( ! function_exists( 'lsx_site_title' ) ) : |
|
| 66 | +if ( ! function_exists('lsx_site_title')) : |
|
| 67 | 67 | /** |
| 68 | 68 | * Displays logo when applicable |
| 69 | 69 | * |
@@ -72,8 +72,8 @@ discard block |
||
| 72 | 72 | function lsx_site_title() { |
| 73 | 73 | ?> |
| 74 | 74 | <div class="site-branding"> |
| 75 | - <h1 class="site-title"><a title="<?php bloginfo( 'name' ); ?>" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
|
| 76 | - <p class="site-description"><?php bloginfo( 'description' ); ?></p> |
|
| 75 | + <h1 class="site-title"><a title="<?php bloginfo('name'); ?>" href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1> |
|
| 76 | + <p class="site-description"><?php bloginfo('description'); ?></p> |
|
| 77 | 77 | </div> |
| 78 | 78 | <?php |
| 79 | 79 | } |
@@ -82,9 +82,9 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * Add customisable post meta. |
| 84 | 84 | */ |
| 85 | -if ( ! function_exists( 'lsx_post_meta' ) ) { |
|
| 85 | +if ( ! function_exists('lsx_post_meta')) { |
|
| 86 | 86 | function lsx_post_meta() { |
| 87 | - if ( ( is_page() && ! ( is_home() || is_front_page() ) ) && ! is_page_template( 'page-templates/template-blog.php' ) ) { |
|
| 87 | + if ((is_page() && ! (is_home() || is_front_page())) && ! is_page_template('page-templates/template-blog.php')) { |
|
| 88 | 88 | return; |
| 89 | 89 | } |
| 90 | 90 | ?> |
@@ -99,85 +99,85 @@ discard block |
||
| 99 | 99 | /** |
| 100 | 100 | * Add customisable post meta: post date |
| 101 | 101 | */ |
| 102 | -if ( ! function_exists( 'lsx_post_meta_date' ) ) { |
|
| 102 | +if ( ! function_exists('lsx_post_meta_date')) { |
|
| 103 | 103 | function lsx_post_meta_date() { |
| 104 | 104 | $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; |
| 105 | 105 | |
| 106 | - $time_string = sprintf( $time_string, |
|
| 107 | - esc_attr( get_the_date( 'c' ) ), |
|
| 106 | + $time_string = sprintf($time_string, |
|
| 107 | + esc_attr(get_the_date('c')), |
|
| 108 | 108 | get_the_date(), |
| 109 | - esc_attr( get_the_modified_date( 'c' ) ), |
|
| 109 | + esc_attr(get_the_modified_date('c')), |
|
| 110 | 110 | get_the_modified_date() |
| 111 | 111 | ); |
| 112 | 112 | |
| 113 | - printf( '<span class="post-meta-time"><span>%1$s</span> <a href="%2$s" rel="bookmark">%3$s</a></span>', |
|
| 114 | - _x( 'Posted on:', 'Used before publish date.', 'lsx' ), |
|
| 115 | - esc_url( get_permalink() ), |
|
| 113 | + printf('<span class="post-meta-time"><span>%1$s</span> <a href="%2$s" rel="bookmark">%3$s</a></span>', |
|
| 114 | + _x('Posted on:', 'Used before publish date.', 'lsx'), |
|
| 115 | + esc_url(get_permalink()), |
|
| 116 | 116 | $time_string |
| 117 | 117 | ); |
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | -add_action( 'lsx_content_post_meta', 'lsx_post_meta_date', 10 ); |
|
| 120 | +add_action('lsx_content_post_meta', 'lsx_post_meta_date', 10); |
|
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | 123 | * Add customisable post meta: post author |
| 124 | 124 | */ |
| 125 | -if ( ! function_exists( 'lsx_post_meta_author' ) ) { |
|
| 125 | +if ( ! function_exists('lsx_post_meta_author')) { |
|
| 126 | 126 | function lsx_post_meta_author() { |
| 127 | - printf( '<span class="post-meta-author"><span>%1$s</span> <a href="%2$s">%3$s</a></span>', |
|
| 128 | - _x( 'Posted by:', 'Used before post author name.', 'lsx' ), |
|
| 129 | - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), |
|
| 127 | + printf('<span class="post-meta-author"><span>%1$s</span> <a href="%2$s">%3$s</a></span>', |
|
| 128 | + _x('Posted by:', 'Used before post author name.', 'lsx'), |
|
| 129 | + esc_url(get_author_posts_url(get_the_author_meta('ID'))), |
|
| 130 | 130 | get_the_author() |
| 131 | 131 | ); |
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | -add_action( 'lsx_content_post_meta', 'lsx_post_meta_author', 20 ); |
|
| 134 | +add_action('lsx_content_post_meta', 'lsx_post_meta_author', 20); |
|
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | 137 | * Add customisable post meta: post category(ies) |
| 138 | 138 | */ |
| 139 | -if ( ! function_exists( 'lsx_post_meta_category' ) ) { |
|
| 139 | +if ( ! function_exists('lsx_post_meta_category')) { |
|
| 140 | 140 | function lsx_post_meta_category() { |
| 141 | - $post_categories = wp_get_post_categories( get_the_ID() ); |
|
| 141 | + $post_categories = wp_get_post_categories(get_the_ID()); |
|
| 142 | 142 | $cats = array(); |
| 143 | 143 | |
| 144 | - foreach( $post_categories as $c ) { |
|
| 145 | - $cat = get_category( $c ); |
|
| 146 | - $cats[] = '<a href="' . get_category_link( $cat->term_id ) . '" title="' . sprintf( esc_html__( 'View all posts in %s' , 'lsx' ), $cat->name ) . '" ' . '>' . $cat->name . '</a>'; |
|
| 144 | + foreach ($post_categories as $c) { |
|
| 145 | + $cat = get_category($c); |
|
| 146 | + $cats[] = '<a href="' . get_category_link($cat->term_id) . '" title="' . sprintf(esc_html__('View all posts in %s', 'lsx'), $cat->name) . '" ' . '>' . $cat->name . '</a>'; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | - if ( ! empty( $cats ) ) { |
|
| 149 | + if ( ! empty($cats)) { |
|
| 150 | 150 | ?> |
| 151 | - <span class="post-meta-categories"><span><?php esc_html_e( 'Posted in:', 'lsx' ); ?></span> <?php echo implode( ', ', $cats ); ?></span> |
|
| 151 | + <span class="post-meta-categories"><span><?php esc_html_e('Posted in:', 'lsx'); ?></span> <?php echo implode(', ', $cats); ?></span> |
|
| 152 | 152 | <?php |
| 153 | 153 | } |
| 154 | 154 | } |
| 155 | 155 | } |
| 156 | -add_action( 'lsx_content_post_meta', 'lsx_post_meta_category', 30 ); |
|
| 156 | +add_action('lsx_content_post_meta', 'lsx_post_meta_category', 30); |
|
| 157 | 157 | |
| 158 | 158 | /** |
| 159 | 159 | * Add customisable post meta: post tag(s) |
| 160 | 160 | */ |
| 161 | -if ( ! function_exists( 'lsx_post_tags' ) ) { |
|
| 161 | +if ( ! function_exists('lsx_post_tags')) { |
|
| 162 | 162 | function lsx_post_tags() { |
| 163 | - if ( has_tag() ) : |
|
| 163 | + if (has_tag()) : |
|
| 164 | 164 | ?> |
| 165 | 165 | <div class="post-tags"> |
| 166 | - <span><?php esc_html_e( 'Tagged as:', 'lsx' ); ?></span> <?php echo wp_kses_post( get_the_tag_list( '' ) ); ?> |
|
| 166 | + <span><?php esc_html_e('Tagged as:', 'lsx'); ?></span> <?php echo wp_kses_post(get_the_tag_list('')); ?> |
|
| 167 | 167 | </div> |
| 168 | 168 | <?php |
| 169 | 169 | endif; |
| 170 | 170 | } |
| 171 | 171 | } |
| 172 | -add_action( 'lsx_content_post_tags', 'lsx_post_tags', 10 ); |
|
| 172 | +add_action('lsx_content_post_tags', 'lsx_post_tags', 10); |
|
| 173 | 173 | |
| 174 | 174 | /** |
| 175 | 175 | * Translate post format to Font Awesome class |
| 176 | 176 | */ |
| 177 | 177 | |
| 178 | -if ( ! function_exists( 'lsx_translate_format_to_fontawesome' ) ) { |
|
| 179 | - function lsx_translate_format_to_fontawesome( $format ) { |
|
| 180 | - switch ( $format ) { |
|
| 178 | +if ( ! function_exists('lsx_translate_format_to_fontawesome')) { |
|
| 179 | + function lsx_translate_format_to_fontawesome($format) { |
|
| 180 | + switch ($format) { |
|
| 181 | 181 | case 'image': |
| 182 | 182 | $format = 'camera'; |
| 183 | 183 | break; |
@@ -222,44 +222,44 @@ discard block |
||
| 222 | 222 | * to be added/modified where necessary. |
| 223 | 223 | */ |
| 224 | 224 | |
| 225 | -if ( ! function_exists( 'lsx_portfolio_meta' ) ) { |
|
| 225 | +if ( ! function_exists('lsx_portfolio_meta')) { |
|
| 226 | 226 | function lsx_portfolio_meta() { |
| 227 | 227 | ?> |
| 228 | 228 | <div id="portfolio-meta" class="portfolio-meta info-box-sticky info-box sticky-wrapper"> |
| 229 | 229 | <?php |
| 230 | - $client = get_post_meta(get_the_ID(),'lsx-client',true); |
|
| 231 | - if(false != $client){ ?> |
|
| 230 | + $client = get_post_meta(get_the_ID(), 'lsx-client', true); |
|
| 231 | + if (false != $client) { ?> |
|
| 232 | 232 | <div class="portfolio-client"> |
| 233 | - <span><span class="fa fa-user"></span><?php _e('Client','lsx'); ?></span> |
|
| 233 | + <span><span class="fa fa-user"></span><?php _e('Client', 'lsx'); ?></span> |
|
| 234 | 234 | <span><?php echo $client ?></span> |
| 235 | 235 | </div> |
| 236 | 236 | <?php } ?> |
| 237 | 237 | |
| 238 | 238 | <?php |
| 239 | - $portfolio_type = get_the_term_list( get_the_ID(), 'jetpack-portfolio-type', '', ', ', '' ); |
|
| 239 | + $portfolio_type = get_the_term_list(get_the_ID(), 'jetpack-portfolio-type', '', ', ', ''); |
|
| 240 | 240 | |
| 241 | - if($portfolio_type){ |
|
| 241 | + if ($portfolio_type) { |
|
| 242 | 242 | ?> |
| 243 | 243 | <div class="portfolio-industry"> |
| 244 | - <span><span class="fa fa-folder-open"></span><?php _e('Industry','lsx'); ?></span> |
|
| 244 | + <span><span class="fa fa-folder-open"></span><?php _e('Industry', 'lsx'); ?></span> |
|
| 245 | 245 | <?php echo $portfolio_type; ?> |
| 246 | 246 | </div> |
| 247 | 247 | <?php } ?> |
| 248 | 248 | |
| 249 | 249 | <?php |
| 250 | - $services = get_the_term_list( get_the_ID(), 'jetpack-portfolio-tag', '', ', ', '' ); |
|
| 251 | - if(false != $services){ ?> |
|
| 250 | + $services = get_the_term_list(get_the_ID(), 'jetpack-portfolio-tag', '', ', ', ''); |
|
| 251 | + if (false != $services) { ?> |
|
| 252 | 252 | <div class="portfolio-services"> |
| 253 | - <span><span class="fa fa-cog"></span><?php _e('Services','lsx'); ?></span> |
|
| 253 | + <span><span class="fa fa-cog"></span><?php _e('Services', 'lsx'); ?></span> |
|
| 254 | 254 | <?php echo $services ?> |
| 255 | 255 | </div> |
| 256 | 256 | <?php } ?> |
| 257 | 257 | |
| 258 | 258 | <?php |
| 259 | - $website = esc_url( get_post_meta(get_the_ID(),'lsx-website',true) ); |
|
| 260 | - if(false != $website){ ?> |
|
| 259 | + $website = esc_url(get_post_meta(get_the_ID(), 'lsx-website', true)); |
|
| 260 | + if (false != $website) { ?> |
|
| 261 | 261 | <div class="portfolio-website"> |
| 262 | - <span><span class="fa fa-link"></span><?php _e('Website','lsx'); ?></span> |
|
| 262 | + <span><span class="fa fa-link"></span><?php _e('Website', 'lsx'); ?></span> |
|
| 263 | 263 | <a target="_blank" href="<?php echo esc_url($website); ?>"><?php echo $website ?></a> |
| 264 | 264 | </div> |
| 265 | 265 | <?php } ?> |
@@ -274,29 +274,29 @@ discard block |
||
| 274 | 274 | * |
| 275 | 275 | */ |
| 276 | 276 | |
| 277 | -if ( ! function_exists( 'lsx_portfolio_gallery' ) ) { |
|
| 277 | +if ( ! function_exists('lsx_portfolio_gallery')) { |
|
| 278 | 278 | function lsx_portfolio_gallery() { |
| 279 | 279 | |
| 280 | - $media = get_attached_media( 'image' ); |
|
| 280 | + $media = get_attached_media('image'); |
|
| 281 | 281 | $media_array = array(); |
| 282 | 282 | $post_thumbnail_id = get_post_thumbnail_id(get_the_ID()); |
| 283 | 283 | |
| 284 | - if(!empty($media)){ |
|
| 285 | - foreach($media as $media_item){ |
|
| 286 | - if($post_thumbnail_id != $media_item->ID) { |
|
| 284 | + if ( ! empty($media)) { |
|
| 285 | + foreach ($media as $media_item) { |
|
| 286 | + if ($post_thumbnail_id != $media_item->ID) { |
|
| 287 | 287 | $media_array[] = $media_item->ID; |
| 288 | 288 | } |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | - if(!empty($media_array)){ |
|
| 292 | - echo gallery_shortcode(array('size'=>'full','ids'=>implode(',', $media_array))); |
|
| 291 | + if ( ! empty($media_array)) { |
|
| 292 | + echo gallery_shortcode(array('size'=>'full', 'ids'=>implode(',', $media_array))); |
|
| 293 | 293 | } |
| 294 | 294 | } |
| 295 | 295 | |
| 296 | 296 | } |
| 297 | 297 | } |
| 298 | 298 | |
| 299 | -if ( ! function_exists( 'lsx_paging_nav' ) ) : |
|
| 299 | +if ( ! function_exists('lsx_paging_nav')) : |
|
| 300 | 300 | /** |
| 301 | 301 | * Display navigation to next/previous set of posts when applicable. |
| 302 | 302 | * |
@@ -304,22 +304,22 @@ discard block |
||
| 304 | 304 | */ |
| 305 | 305 | function lsx_paging_nav() { |
| 306 | 306 | // Don't print empty markup if there's only one page. |
| 307 | - if ( $GLOBALS['wp_query']->max_num_pages < 2 ) { |
|
| 307 | + if ($GLOBALS['wp_query']->max_num_pages < 2) { |
|
| 308 | 308 | return; |
| 309 | 309 | } |
| 310 | 310 | |
| 311 | - if(current_theme_supports('infinite-scroll') && class_exists('The_Neverending_Home_Page')){ |
|
| 311 | + if (current_theme_supports('infinite-scroll') && class_exists('The_Neverending_Home_Page')) { |
|
| 312 | 312 | return true; |
| 313 | - }elseif(function_exists('wp_pagenavi')){ |
|
| 313 | + }elseif (function_exists('wp_pagenavi')) { |
|
| 314 | 314 | wp_pagenavi(); |
| 315 | - }else{ |
|
| 315 | + } else { |
|
| 316 | 316 | |
| 317 | 317 | $labels = array( |
| 318 | - 'next' => '<span class="meta-nav">←</span> '.__( 'Older posts', 'lsx' ), |
|
| 319 | - 'previous' => __( 'Newer posts', 'lsx' ).' <span class="meta-nav">→</span>', |
|
| 320 | - 'title' => __( 'Posts navigation', 'lsx' ) |
|
| 318 | + 'next' => '<span class="meta-nav">←</span> ' . __('Older posts', 'lsx'), |
|
| 319 | + 'previous' => __('Newer posts', 'lsx') . ' <span class="meta-nav">→</span>', |
|
| 320 | + 'title' => __('Posts navigation', 'lsx') |
|
| 321 | 321 | ); |
| 322 | - $labels = apply_filters('lsx_post_navigation_labels',$labels); |
|
| 322 | + $labels = apply_filters('lsx_post_navigation_labels', $labels); |
|
| 323 | 323 | |
| 324 | 324 | extract($labels); |
| 325 | 325 | ?> |
@@ -327,12 +327,12 @@ discard block |
||
| 327 | 327 | <div class="lsx-breaker"></div> |
| 328 | 328 | <h1 class="screen-reader-text"><?php echo $title; ?></h1> |
| 329 | 329 | <div class="nav-links"> |
| 330 | - <?php if ( get_next_posts_link() ) : ?> |
|
| 331 | - <div class="nav-previous"><?php next_posts_link( $next ); ?></div> |
|
| 330 | + <?php if (get_next_posts_link()) : ?> |
|
| 331 | + <div class="nav-previous"><?php next_posts_link($next); ?></div> |
|
| 332 | 332 | <?php endif; ?> |
| 333 | 333 | |
| 334 | - <?php if ( get_previous_posts_link() ) : ?> |
|
| 335 | - <div class="nav-next"><?php previous_posts_link( $previous ); ?></div> |
|
| 334 | + <?php if (get_previous_posts_link()) : ?> |
|
| 335 | + <div class="nav-next"><?php previous_posts_link($previous); ?></div> |
|
| 336 | 336 | <?php endif; ?> |
| 337 | 337 | |
| 338 | 338 | <div class="clearfix"></div> |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | } |
| 344 | 344 | endif; |
| 345 | 345 | |
| 346 | -if ( ! function_exists( 'lsx_post_nav' ) ) : |
|
| 346 | +if ( ! function_exists('lsx_post_nav')) : |
|
| 347 | 347 | /** |
| 348 | 348 | * Display navigation to next/previous post when applicable. |
| 349 | 349 | * |
@@ -351,10 +351,10 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | function lsx_post_nav() { |
| 353 | 353 | // Don't print empty markup if there's nowhere to navigate. |
| 354 | - $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true ); |
|
| 355 | - $next = get_adjacent_post( false, '', false ); |
|
| 354 | + $previous = (is_attachment()) ? get_post(get_post()->post_parent) : get_adjacent_post(false, '', true); |
|
| 355 | + $next = get_adjacent_post(false, '', false); |
|
| 356 | 356 | |
| 357 | - if ( ! $next && ! $previous ) { |
|
| 357 | + if ( ! $next && ! $previous) { |
|
| 358 | 358 | return; |
| 359 | 359 | } |
| 360 | 360 | ?> |
@@ -364,13 +364,13 @@ discard block |
||
| 364 | 364 | <div class="nav-links pager row"> |
| 365 | 365 | |
| 366 | 366 | <?php |
| 367 | - $previous_post = get_previous_post_link( '%link', '<div class="previous col-md-6"><p class="nav-links-description">'._x( 'Previous Post', 'Previous post link', 'lsx' ).'</p><h3>%title</h3></div>' ); |
|
| 368 | - $previous_post = str_replace('<a','<a',$previous_post); |
|
| 367 | + $previous_post = get_previous_post_link('%link', '<div class="previous col-md-6"><p class="nav-links-description">' . _x('Previous Post', 'Previous post link', 'lsx') . '</p><h3>%title</h3></div>'); |
|
| 368 | + $previous_post = str_replace('<a', '<a', $previous_post); |
|
| 369 | 369 | echo $previous_post; |
| 370 | 370 | ?> |
| 371 | 371 | <?php |
| 372 | - $next_post = get_next_post_link( '%link', '<div class="next col-md-6"><p class="nav-links-description">'._x( 'Next Post', 'Next post link', 'lsx' ).'</p><h3>%title</h3></div>' ); |
|
| 373 | - $next_post = str_replace('<a','<a',$next_post); |
|
| 372 | + $next_post = get_next_post_link('%link', '<div class="next col-md-6"><p class="nav-links-description">' . _x('Next Post', 'Next post link', 'lsx') . '</p><h3>%title</h3></div>'); |
|
| 373 | + $next_post = str_replace('<a', '<a', $next_post); |
|
| 374 | 374 | echo $next_post; |
| 375 | 375 | ?> |
| 376 | 376 | |
@@ -387,16 +387,16 @@ discard block |
||
| 387 | 387 | * @subpackage template-tags |
| 388 | 388 | * @category header |
| 389 | 389 | */ |
| 390 | -if(!function_exists('lsx_site_identity')){ |
|
| 391 | - function lsx_site_identity(){ |
|
| 390 | +if ( ! function_exists('lsx_site_identity')) { |
|
| 391 | + function lsx_site_identity() { |
|
| 392 | 392 | |
| 393 | - if ( function_exists('has_custom_logo') && has_custom_logo() ) { |
|
| 393 | + if (function_exists('has_custom_logo') && has_custom_logo()) { |
|
| 394 | 394 | the_custom_logo(); |
| 395 | - }elseif ( function_exists( 'jetpack_has_site_logo' ) && jetpack_has_site_logo() ) { |
|
| 395 | + }elseif (function_exists('jetpack_has_site_logo') && jetpack_has_site_logo()) { |
|
| 396 | 396 | jetpack_the_site_logo(); |
| 397 | - }else{ |
|
| 397 | + } else { |
|
| 398 | 398 | // shouldn't show both together.. its just strange |
| 399 | - if(true == get_theme_mod('site_logo_header_text',1)){ |
|
| 399 | + if (true == get_theme_mod('site_logo_header_text', 1)) { |
|
| 400 | 400 | lsx_site_title(); |
| 401 | 401 | } |
| 402 | 402 | } |
@@ -411,17 +411,17 @@ discard block |
||
| 411 | 411 | * @subpackage template-tags |
| 412 | 412 | * @category navigation |
| 413 | 413 | */ |
| 414 | -if(!function_exists('lsx_navbar_header')){ |
|
| 415 | - function lsx_navbar_header(){ ?> |
|
| 414 | +if ( ! function_exists('lsx_navbar_header')) { |
|
| 415 | + function lsx_navbar_header() { ?> |
|
| 416 | 416 | <div class="navbar-header" itemscope itemtype="http://schema.org/WebPage"> |
| 417 | 417 | |
| 418 | 418 | <?php |
| 419 | - $nav_menu = get_theme_mod('nav_menu_locations',false); |
|
| 419 | + $nav_menu = get_theme_mod('nav_menu_locations', false); |
|
| 420 | 420 | //print_r(get_nav_menu_locations()); |
| 421 | 421 | |
| 422 | - if(false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']){ ?> |
|
| 422 | + if (false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']) { ?> |
|
| 423 | 423 | <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".primary-navbar"> |
| 424 | - <span class="sr-only"><?php _e('Toggle navigation','lsx'); ?></span> |
|
| 424 | + <span class="sr-only"><?php _e('Toggle navigation', 'lsx'); ?></span> |
|
| 425 | 425 | <span class="icon-bar"></span> |
| 426 | 426 | <span class="icon-bar"></span> |
| 427 | 427 | <span class="icon-bar"></span> |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | <?php } |
| 434 | 434 | } |
| 435 | 435 | //the if statement is for backwards compatability with previous versions of the theme. |
| 436 | -add_action('lsx_nav_before','lsx_navbar_header'); |
|
| 436 | +add_action('lsx_nav_before', 'lsx_navbar_header'); |
|
| 437 | 437 | |
| 438 | 438 | /** |
| 439 | 439 | * Outputs the Nav Menu |
@@ -442,16 +442,16 @@ discard block |
||
| 442 | 442 | * @subpackage template-tags |
| 443 | 443 | * @category navigation |
| 444 | 444 | */ |
| 445 | -if(!function_exists('lsx_nav_menu')){ |
|
| 446 | - function lsx_nav_menu(){ |
|
| 447 | - $nav_menu = get_theme_mod('nav_menu_locations',false); |
|
| 445 | +if ( ! function_exists('lsx_nav_menu')) { |
|
| 446 | + function lsx_nav_menu() { |
|
| 447 | + $nav_menu = get_theme_mod('nav_menu_locations', false); |
|
| 448 | 448 | |
| 449 | 449 | //print_r(get_nav_menu_locations()); |
| 450 | 450 | |
| 451 | - if(false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']){ ?> |
|
| 451 | + if (false != $nav_menu && isset($nav_menu['primary']) && 0 != $nav_menu['primary']) { ?> |
|
| 452 | 452 | <nav class="primary-navbar collapse navbar-collapse"> |
| 453 | 453 | <?php |
| 454 | - wp_nav_menu( array( |
|
| 454 | + wp_nav_menu(array( |
|
| 455 | 455 | 'theme_location' => 'primary', |
| 456 | 456 | 'menu' => $nav_menu['primary'], |
| 457 | 457 | 'depth' => 3, |
@@ -461,9 +461,9 @@ discard block |
||
| 461 | 461 | ); |
| 462 | 462 | ?> |
| 463 | 463 | </nav> |
| 464 | - <?php } elseif(is_customize_preview()) { ?> |
|
| 464 | + <?php } elseif (is_customize_preview()) { ?> |
|
| 465 | 465 | <nav class="primary-navbar collapse navbar-collapse"> |
| 466 | - <div class="alert alert-info" role="alert"><?php _e('Create a menu and assign it here via the "Navigation" panel.','lsx');?></div> |
|
| 466 | + <div class="alert alert-info" role="alert"><?php _e('Create a menu and assign it here via the "Navigation" panel.', 'lsx'); ?></div> |
|
| 467 | 467 | </nav> |
| 468 | 468 | </div> |
| 469 | 469 | <?php } |
@@ -477,9 +477,9 @@ discard block |
||
| 477 | 477 | * @subpackage template-tags |
| 478 | 478 | * @category sitemap |
| 479 | 479 | */ |
| 480 | -function lsx_sitemap_pages(){ |
|
| 480 | +function lsx_sitemap_pages() { |
|
| 481 | 481 | $posts_per_page = get_option('posts_per_page'); |
| 482 | - if(false == $posts_per_page){ |
|
| 482 | + if (false == $posts_per_page) { |
|
| 483 | 483 | $posts_per_page = 10; |
| 484 | 484 | } |
| 485 | 485 | |
@@ -490,13 +490,13 @@ discard block |
||
| 490 | 490 | 'post_type' => 'page', |
| 491 | 491 | ); |
| 492 | 492 | $pages = new WP_Query($page_args); |
| 493 | - if($pages->have_posts()){ |
|
| 493 | + if ($pages->have_posts()) { |
|
| 494 | 494 | |
| 495 | - echo '<h2>'.__( 'Pages', 'lsx' ).'</h2>'; |
|
| 495 | + echo '<h2>' . __('Pages', 'lsx') . '</h2>'; |
|
| 496 | 496 | |
| 497 | 497 | echo '<ul>'; |
| 498 | - while($pages->have_posts()){ $pages->the_post(); |
|
| 499 | - echo '<li class="page_item page-item-'.get_the_ID().'"><a href="'.get_permalink().'" title="">'.get_the_title().'</a></li>'; |
|
| 498 | + while ($pages->have_posts()) { $pages->the_post(); |
|
| 499 | + echo '<li class="page_item page-item-' . get_the_ID() . '"><a href="' . get_permalink() . '" title="">' . get_the_title() . '</a></li>'; |
|
| 500 | 500 | } |
| 501 | 501 | echo '</ul>'; |
| 502 | 502 | |
@@ -511,10 +511,10 @@ discard block |
||
| 511 | 511 | * @subpackage template-tags |
| 512 | 512 | * @category sitemap |
| 513 | 513 | */ |
| 514 | -function lsx_sitemap_custom_post_type(){ |
|
| 514 | +function lsx_sitemap_custom_post_type() { |
|
| 515 | 515 | |
| 516 | 516 | $posts_per_page = get_option('posts_per_page'); |
| 517 | - if(false == $posts_per_page){ |
|
| 517 | + if (false == $posts_per_page) { |
|
| 518 | 518 | $posts_per_page = 10; |
| 519 | 519 | } |
| 520 | 520 | |
@@ -522,8 +522,8 @@ discard block |
||
| 522 | 522 | 'public' => true, |
| 523 | 523 | '_builtin' => false |
| 524 | 524 | ); |
| 525 | - $post_types = get_post_types($args , 'names'); |
|
| 526 | - foreach($post_types as $post_type){ |
|
| 525 | + $post_types = get_post_types($args, 'names'); |
|
| 526 | + foreach ($post_types as $post_type) { |
|
| 527 | 527 | |
| 528 | 528 | $post_type_args = array( |
| 529 | 529 | 'post_type' => 'page', |
@@ -534,19 +534,19 @@ discard block |
||
| 534 | 534 | $post_type_items = new WP_Query($post_type_args); |
| 535 | 535 | |
| 536 | 536 | $post_type_object = get_post_type_object($post_type); |
| 537 | - if(null != $post_type_object){ |
|
| 537 | + if (null != $post_type_object) { |
|
| 538 | 538 | $title = $post_type_object->labels->name; |
| 539 | - }else{ |
|
| 539 | + } else { |
|
| 540 | 540 | $title = ucwords($post_type); |
| 541 | 541 | } |
| 542 | 542 | |
| 543 | - if($post_type_items->have_posts()){ |
|
| 543 | + if ($post_type_items->have_posts()) { |
|
| 544 | 544 | |
| 545 | - printf( '<h2>'.__( '%1$s', 'lsx' ).'</h2>', $title ); |
|
| 545 | + printf('<h2>' . __('%1$s', 'lsx') . '</h2>', $title); |
|
| 546 | 546 | |
| 547 | 547 | echo '<ul>'; |
| 548 | - while($post_type_items->have_posts()){ $post_type_items->the_post(); |
|
| 549 | - echo '<li class="'.get_post_type().'_item '.get_post_type().'-item-'.get_the_ID().'"><a href="'.get_permalink().'" title="">'.get_the_title().'</a></li>'; |
|
| 548 | + while ($post_type_items->have_posts()) { $post_type_items->the_post(); |
|
| 549 | + echo '<li class="' . get_post_type() . '_item ' . get_post_type() . '-item-' . get_the_ID() . '"><a href="' . get_permalink() . '" title="">' . get_the_title() . '</a></li>'; |
|
| 550 | 550 | } |
| 551 | 551 | echo '</ul>'; |
| 552 | 552 | |
@@ -562,20 +562,20 @@ discard block |
||
| 562 | 562 | * @subpackage template-tags |
| 563 | 563 | * @category sitemap |
| 564 | 564 | */ |
| 565 | -function lsx_sitemap_taxonomy_clouds(){ |
|
| 565 | +function lsx_sitemap_taxonomy_clouds() { |
|
| 566 | 566 | |
| 567 | - $taxonomy_args = array( |
|
| 567 | + $taxonomy_args = array( |
|
| 568 | 568 | 'public' => true, |
| 569 | 569 | '_builtin' => false |
| 570 | 570 | ); |
| 571 | 571 | $taxonomies = get_taxonomies($taxonomy_args); |
| 572 | - if(!empty($taxonomies)){ |
|
| 573 | - foreach($taxonomies as $taxonomy_id => $taxonomy) { |
|
| 572 | + if ( ! empty($taxonomies)) { |
|
| 573 | + foreach ($taxonomies as $taxonomy_id => $taxonomy) { |
|
| 574 | 574 | |
| 575 | - $tag_cloud = wp_tag_cloud(array('taxonomy'=>$taxonomy_id,'echo'=>false)); |
|
| 576 | - if(null != $tag_cloud){ |
|
| 577 | - printf( '<h2>'.__( '%1$s', 'lsx' ).'</h2>', $taxonomy ); |
|
| 578 | - echo '<aside id="'.$taxonomy_id.'" class="widget widget_'.$taxonomy_id.'">'.$tag_cloud.'</aside>'; |
|
| 575 | + $tag_cloud = wp_tag_cloud(array('taxonomy'=>$taxonomy_id, 'echo'=>false)); |
|
| 576 | + if (null != $tag_cloud) { |
|
| 577 | + printf('<h2>' . __('%1$s', 'lsx') . '</h2>', $taxonomy); |
|
| 578 | + echo '<aside id="' . $taxonomy_id . '" class="widget widget_' . $taxonomy_id . '">' . $tag_cloud . '</aside>'; |
|
| 579 | 579 | } |
| 580 | 580 | } |
| 581 | 581 | } |
@@ -588,15 +588,15 @@ discard block |
||
| 588 | 588 | * @subpackage hooks |
| 589 | 589 | * @category forms |
| 590 | 590 | */ |
| 591 | -add_action( 'lsx_footer_before', 'lsx_footer_subscription_cta', 10 ); |
|
| 591 | +add_action('lsx_footer_before', 'lsx_footer_subscription_cta', 10); |
|
| 592 | 592 | function lsx_footer_subscription_cta() { |
| 593 | - if(!function_exists('lsx_is_form_enabled')){ return; } |
|
| 593 | + if ( ! function_exists('lsx_is_form_enabled')) { return; } |
|
| 594 | 594 | $subscribe_form_id = lsx_is_form_enabled('subscribe'); |
| 595 | - if(false == $subscribe_form_id) { return; } |
|
| 595 | + if (false == $subscribe_form_id) { return; } |
|
| 596 | 596 | |
| 597 | 597 | //add Caldera Forms Fields Scripts |
| 598 | - if( defined( 'CFCORE_VER' ) ){ |
|
| 599 | - wp_enqueue_script( 'cf-frontend-fields', CFCORE_URL . 'assets/js/fields.min.js', array('jquery'), CFCORE_VER ); |
|
| 598 | + if (defined('CFCORE_VER')) { |
|
| 599 | + wp_enqueue_script('cf-frontend-fields', CFCORE_URL . 'assets/js/fields.min.js', array('jquery'), CFCORE_VER); |
|
| 600 | 600 | } |
| 601 | 601 | |
| 602 | 602 | ?> |
@@ -604,8 +604,8 @@ discard block |
||
| 604 | 604 | <div class="container"> |
| 605 | 605 | <div class="row"> |
| 606 | 606 | <div class="col-md-12"> |
| 607 | - <h2><?php _e( 'Subscribe to Our Newsletter', 'lsx' ); ?></h2> |
|
| 608 | - <?php echo do_shortcode( '[caldera_form id="'.$subscribe_form_id.'"]' ); ?> |
|
| 607 | + <h2><?php _e('Subscribe to Our Newsletter', 'lsx'); ?></h2> |
|
| 608 | + <?php echo do_shortcode('[caldera_form id="' . $subscribe_form_id . '"]'); ?> |
|
| 609 | 609 | </div> |
| 610 | 610 | </div> |
| 611 | 611 | </div> |
@@ -620,14 +620,14 @@ discard block |
||
| 620 | 620 | * @subpackage hooks |
| 621 | 621 | * @category menu |
| 622 | 622 | */ |
| 623 | -add_action( 'lsx_header_top', 'lsx_add_top_menu' ); |
|
| 623 | +add_action('lsx_header_top', 'lsx_add_top_menu'); |
|
| 624 | 624 | function lsx_add_top_menu() { |
| 625 | 625 | if (has_nav_menu('top-menu')) { ?> |
| 626 | 626 | <div id="top-menu" class="<?php lsx_top_menu_classes(); ?>"> |
| 627 | 627 | <div class="container"> |
| 628 | 628 | <nav class="top-menu"> |
| 629 | 629 | <?php |
| 630 | - wp_nav_menu( array( |
|
| 630 | + wp_nav_menu(array( |
|
| 631 | 631 | 'theme_location' => 'top-menu', |
| 632 | 632 | 'walker' => new lsx_bootstrap_navwalker()) |
| 633 | 633 | ); |
@@ -645,24 +645,24 @@ discard block |
||
| 645 | 645 | * @subpackage template-tag |
| 646 | 646 | * @category forms |
| 647 | 647 | */ |
| 648 | -if ( class_exists('Caldera_Forms') && !function_exists( 'lsx_is_form_enabled' ) ) { |
|
| 648 | +if (class_exists('Caldera_Forms') && ! function_exists('lsx_is_form_enabled')) { |
|
| 649 | 649 | function lsx_is_form_enabled($slug = false) { |
| 650 | - if(false == $slug){ return false; } |
|
| 650 | + if (false == $slug) { return false; } |
|
| 651 | 651 | |
| 652 | 652 | $match = false; |
| 653 | - $forms = get_option( '_caldera_forms' , false ); |
|
| 654 | - if(false !== $forms ) { |
|
| 655 | - foreach($forms as $form_id=>$form_maybe){ |
|
| 656 | - if( trim(strtolower($slug)) == strtolower($form_maybe['name']) ){ |
|
| 653 | + $forms = get_option('_caldera_forms', false); |
|
| 654 | + if (false !== $forms) { |
|
| 655 | + foreach ($forms as $form_id=>$form_maybe) { |
|
| 656 | + if (trim(strtolower($slug)) == strtolower($form_maybe['name'])) { |
|
| 657 | 657 | $match = $form_id; |
| 658 | 658 | break; |
| 659 | 659 | } |
| 660 | 660 | } |
| 661 | 661 | } |
| 662 | - if( false === $match ){ |
|
| 663 | - $is_form = Caldera_Forms::get_form( strtolower( $slug ) ); |
|
| 664 | - if( !empty( $is_form ) ){ |
|
| 665 | - return strtolower( $slug ); |
|
| 662 | + if (false === $match) { |
|
| 663 | + $is_form = Caldera_Forms::get_form(strtolower($slug)); |
|
| 664 | + if ( ! empty($is_form)) { |
|
| 665 | + return strtolower($slug); |
|
| 666 | 666 | } |
| 667 | 667 | } |
| 668 | 668 | |
@@ -678,10 +678,10 @@ discard block |
||
| 678 | 678 | * @category urls |
| 679 | 679 | */ |
| 680 | 680 | function lsx_get_my_url() { |
| 681 | - if ( ! preg_match( '/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) ) |
|
| 681 | + if ( ! preg_match('/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches)) |
|
| 682 | 682 | return false; |
| 683 | 683 | |
| 684 | - return esc_url_raw( $matches[1] ); |
|
| 684 | + return esc_url_raw($matches[1]); |
|
| 685 | 685 | } |
| 686 | 686 | |
| 687 | 687 | /** |
@@ -691,19 +691,19 @@ discard block |
||
| 691 | 691 | * @subpackage extras |
| 692 | 692 | * @category urls |
| 693 | 693 | */ |
| 694 | -function lsx_get_template_part($slug,$part) { |
|
| 694 | +function lsx_get_template_part($slug, $part) { |
|
| 695 | 695 | $template = array(); |
| 696 | 696 | $part = (string) $part; |
| 697 | - if ( '' !== $part ){ |
|
| 697 | + if ('' !== $part) { |
|
| 698 | 698 | $template = "{$slug}-{$part}.php"; |
| 699 | - }else{ |
|
| 699 | + } else { |
|
| 700 | 700 | $template = "{$slug}.php"; |
| 701 | 701 | } |
| 702 | - $file_path = apply_filters('lsx_content_path',false,$slug,$part); |
|
| 702 | + $file_path = apply_filters('lsx_content_path', false, $slug, $part); |
|
| 703 | 703 | |
| 704 | - if ( false !== $file_path && '' == locate_template( array( $template ) ) && file_exists( $file_path.$template) ) { |
|
| 705 | - load_template( $file_path.$template, false ); |
|
| 706 | - }else{ |
|
| 707 | - get_template_part($slug,$part); |
|
| 704 | + if (false !== $file_path && '' == locate_template(array($template)) && file_exists($file_path . $template)) { |
|
| 705 | + load_template($file_path . $template, false); |
|
| 706 | + } else { |
|
| 707 | + get_template_part($slug, $part); |
|
| 708 | 708 | } |
| 709 | 709 | } |
| 710 | 710 | \ No newline at end of file |
@@ -24,11 +24,11 @@ discard block |
||
| 24 | 24 | * $lsx_supports[] = 'body'; |
| 25 | 25 | */ |
| 26 | 26 | function lsx_body_top() { |
| 27 | - do_action( 'lsx_body_top' ); |
|
| 27 | + do_action('lsx_body_top'); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | function lsx_body_bottom() { |
| 31 | - do_action( 'lsx_body_bottom' ); |
|
| 31 | + do_action('lsx_body_bottom'); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -37,11 +37,11 @@ discard block |
||
| 37 | 37 | * $lsx_supports[] = 'head'; |
| 38 | 38 | */ |
| 39 | 39 | function lsx_head_top() { |
| 40 | - do_action( 'lsx_head_top' ); |
|
| 40 | + do_action('lsx_head_top'); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | function lsx_head_bottom() { |
| 44 | - do_action( 'lsx_head_bottom' ); |
|
| 44 | + do_action('lsx_head_bottom'); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -50,27 +50,27 @@ discard block |
||
| 50 | 50 | * $lsx_supports[] = 'header'; |
| 51 | 51 | */ |
| 52 | 52 | function lsx_header_before() { |
| 53 | - do_action( 'lsx_header_before' ); |
|
| 53 | + do_action('lsx_header_before'); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | function lsx_header_after() { |
| 57 | - do_action( 'lsx_header_after' ); |
|
| 57 | + do_action('lsx_header_after'); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | function lsx_header_top() { |
| 61 | - do_action( 'lsx_header_top' ); |
|
| 61 | + do_action('lsx_header_top'); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | function lsx_header_bottom() { |
| 65 | - do_action( 'lsx_header_bottom' ); |
|
| 65 | + do_action('lsx_header_bottom'); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | function lsx_nav_before() { |
| 69 | - do_action( 'lsx_nav_before' ); |
|
| 69 | + do_action('lsx_nav_before'); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | function lsx_nav_after() { |
| 73 | - do_action( 'lsx_nav_after' ); |
|
| 73 | + do_action('lsx_nav_after'); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | |
| 82 | 82 | function lsx_banner_content() { |
| 83 | - do_action( 'lsx_banner_content' ); |
|
| 83 | + do_action('lsx_banner_content'); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -89,35 +89,35 @@ discard block |
||
| 89 | 89 | * $lsx_supports[] = 'content'; |
| 90 | 90 | */ |
| 91 | 91 | function lsx_content_wrap_before() { |
| 92 | - do_action( 'lsx_content_wrap_before' ); |
|
| 92 | + do_action('lsx_content_wrap_before'); |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | function lsx_content_wrap_after() { |
| 96 | - do_action( 'lsx_content_wrap_after' ); |
|
| 96 | + do_action('lsx_content_wrap_after'); |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | function lsx_content_before() { |
| 100 | - do_action( 'lsx_content_before' ); |
|
| 100 | + do_action('lsx_content_before'); |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | function lsx_content_after() { |
| 104 | - do_action( 'lsx_content_after' ); |
|
| 104 | + do_action('lsx_content_after'); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | function lsx_content_top() { |
| 108 | - do_action( 'lsx_content_top' ); |
|
| 108 | + do_action('lsx_content_top'); |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | function lsx_content_bottom() { |
| 112 | - do_action( 'lsx_content_bottom' ); |
|
| 112 | + do_action('lsx_content_bottom'); |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | function lsx_content_post_meta() { |
| 116 | - do_action( 'lsx_content_post_meta' ); |
|
| 116 | + do_action('lsx_content_post_meta'); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | function lsx_content_post_tags() { |
| 120 | - do_action( 'lsx_content_post_tags' ); |
|
| 120 | + do_action('lsx_content_post_tags'); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
@@ -126,19 +126,19 @@ discard block |
||
| 126 | 126 | * $lsx_supports[] = 'entry'; |
| 127 | 127 | */ |
| 128 | 128 | function lsx_entry_before() { |
| 129 | - do_action( 'lsx_entry_before' ); |
|
| 129 | + do_action('lsx_entry_before'); |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | function lsx_entry_after() { |
| 133 | - do_action( 'lsx_entry_after' ); |
|
| 133 | + do_action('lsx_entry_after'); |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | function lsx_entry_top() { |
| 137 | - do_action( 'lsx_entry_top' ); |
|
| 137 | + do_action('lsx_entry_top'); |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | function lsx_entry_bottom() { |
| 141 | - do_action( 'lsx_entry_bottom' ); |
|
| 141 | + do_action('lsx_entry_bottom'); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
@@ -147,11 +147,11 @@ discard block |
||
| 147 | 147 | * $lsx_supports[] = 'comments'; |
| 148 | 148 | */ |
| 149 | 149 | function lsx_comments_before() { |
| 150 | - do_action( 'lsx_comments_before' ); |
|
| 150 | + do_action('lsx_comments_before'); |
|
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | function lsx_comments_after() { |
| 154 | - do_action( 'lsx_comments_after' ); |
|
| 154 | + do_action('lsx_comments_after'); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
@@ -160,19 +160,19 @@ discard block |
||
| 160 | 160 | * $lsx_supports[] = 'sidebar'; |
| 161 | 161 | */ |
| 162 | 162 | function lsx_sidebars_before() { |
| 163 | - do_action( 'lsx_sidebars_before' ); |
|
| 163 | + do_action('lsx_sidebars_before'); |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | function lsx_sidebars_after() { |
| 167 | - do_action( 'lsx_sidebars_after' ); |
|
| 167 | + do_action('lsx_sidebars_after'); |
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | function lsx_sidebar_top() { |
| 171 | - do_action( 'lsx_sidebar_top' ); |
|
| 171 | + do_action('lsx_sidebar_top'); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | function lsx_sidebar_bottom() { |
| 175 | - do_action( 'lsx_sidebar_bottom' ); |
|
| 175 | + do_action('lsx_sidebar_bottom'); |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | /** |
@@ -181,17 +181,17 @@ discard block |
||
| 181 | 181 | * $lsx_supports[] = 'footer'; |
| 182 | 182 | */ |
| 183 | 183 | function lsx_footer_before() { |
| 184 | - do_action( 'lsx_footer_before' ); |
|
| 184 | + do_action('lsx_footer_before'); |
|
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | function lsx_footer_after() { |
| 188 | - do_action( 'lsx_footer_after' ); |
|
| 188 | + do_action('lsx_footer_after'); |
|
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | function lsx_footer_top() { |
| 192 | - do_action( 'lsx_footer_top' ); |
|
| 192 | + do_action('lsx_footer_top'); |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | function lsx_footer_bottom() { |
| 196 | - do_action( 'lsx_footer_bottom' ); |
|
| 196 | + do_action('lsx_footer_bottom'); |
|
| 197 | 197 | } |
| 198 | 198 | \ No newline at end of file |