| @@ -13,17 +13,17 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | |
| 15 | 15 | // If this file is called directly, abort. | 
| 16 | -if ( ! defined( 'WPINC' ) ) { | |
| 16 | +if ( ! defined('WPINC')) { | |
| 17 | 17 | die; | 
| 18 | 18 | } | 
| 19 | 19 | |
| 20 | -define( 'LSX_TO_TEAM_PATH', plugin_dir_path( __FILE__ ) ); | |
| 21 | -define( 'LSX_TO_TEAM_CORE', __FILE__ ); | |
| 22 | -define( 'LSX_TO_TEAM_URL', plugin_dir_url( __FILE__ ) ); | |
| 23 | -define( 'LSX_TO_TEAM_VER', '1.2.2' ); | |
| 20 | +define('LSX_TO_TEAM_PATH', plugin_dir_path(__FILE__)); | |
| 21 | +define('LSX_TO_TEAM_CORE', __FILE__); | |
| 22 | +define('LSX_TO_TEAM_URL', plugin_dir_url(__FILE__)); | |
| 23 | +define('LSX_TO_TEAM_VER', '1.2.2'); | |
| 24 | 24 | |
| 25 | -if ( ! defined( 'TEAM_ARCHIVE_URL' ) ) { | |
| 26 | - define( 'TEAM_ARCHIVE_URL', 'team-members' ); | |
| 25 | +if ( ! defined('TEAM_ARCHIVE_URL')) { | |
| 26 | +	define('TEAM_ARCHIVE_URL', 'team-members'); | |
| 27 | 27 | } | 
| 28 | 28 | |
| 29 | 29 | /* ======================= Below is the Plugin Class init ========================= */ | 
| @@ -14,7 +14,7 @@ discard block | ||
| 14 | 14 | |
| 15 | 15 | // If this file is called directly, abort. | 
| 16 | 16 |  if ( ! defined( 'WPINC' ) ) { | 
| 17 | - die; | |
| 17 | + die; | |
| 18 | 18 | } | 
| 19 | 19 | |
| 20 | 20 | define( 'LSX_TO_TEAM_PATH', plugin_dir_path( __FILE__ ) ); | 
| @@ -23,7 +23,7 @@ discard block | ||
| 23 | 23 | define( 'LSX_TO_TEAM_VER', '1.2.2' ); | 
| 24 | 24 | |
| 25 | 25 |  if ( ! defined( 'TEAM_ARCHIVE_URL' ) ) { | 
| 26 | - define( 'TEAM_ARCHIVE_URL', 'team-members' ); | |
| 26 | + define( 'TEAM_ARCHIVE_URL', 'team-members' ); | |
| 27 | 27 | } | 
| 28 | 28 | |
| 29 | 29 | /* ======================= Below is the Plugin Class init ========================= */ | 
| @@ -10,7 +10,7 @@ discard block | ||
| 10 | 10 | |
| 11 | 11 | <?php lsx_content_wrap_before(); ?> | 
| 12 | 12 | |
| 13 | - <div id="primary" class="content-area col-sm-12 <?php echo esc_attr( lsx_main_class() ); ?>"> | |
| 13 | + <div id="primary" class="content-area col-sm-12 <?php echo esc_attr(lsx_main_class()); ?>"> | |
| 14 | 14 | |
| 15 | 15 | <?php lsx_content_before(); ?> | 
| 16 | 16 | |
| @@ -18,14 +18,14 @@ discard block | ||
| 18 | 18 | |
| 19 | 19 | <?php lsx_content_top(); ?> | 
| 20 | 20 | |
| 21 | - <?php if ( have_posts() ) : ?> | |
| 21 | + <?php if (have_posts()) : ?> | |
| 22 | 22 | |
| 23 | - <div class="row lsx-to-archive-items lsx-to-archive-template-<?php echo esc_attr( tour_operator()->archive_layout ); ?> lsx-to-archive-template-image-<?php echo esc_attr( tour_operator()->archive_list_layout_image_style ); ?>"> | |
| 23 | + <div class="row lsx-to-archive-items lsx-to-archive-template-<?php echo esc_attr(tour_operator()->archive_layout); ?> lsx-to-archive-template-image-<?php echo esc_attr(tour_operator()->archive_list_layout_image_style); ?>"> | |
| 24 | 24 | |
| 25 | - <?php while ( have_posts() ) : the_post(); ?> | |
| 25 | + <?php while (have_posts()) : the_post(); ?> | |
| 26 | 26 | |
| 27 | - <div class="<?php echo esc_attr( lsx_to_archive_class( 'lsx-to-archive-item' ) ); ?>"> | |
| 28 | - <?php lsx_to_content( 'content', get_post_type() ); ?> | |
| 27 | +						<div class="<?php echo esc_attr(lsx_to_archive_class('lsx-to-archive-item')); ?>"> | |
| 28 | +							<?php lsx_to_content('content', get_post_type()); ?> | |
| 29 | 29 | </div> | 
| 30 | 30 | |
| 31 | 31 | <?php endwhile; ?> | 
| @@ -34,7 +34,7 @@ discard block | ||
| 34 | 34 | |
| 35 | 35 | <?php else : ?> | 
| 36 | 36 | |
| 37 | - <?php get_template_part( 'partials/content', 'none' ); ?> | |
| 37 | +				<?php get_template_part('partials/content', 'none'); ?> | |
| 38 | 38 | |
| 39 | 39 | <?php endif; ?> | 
| 40 | 40 | |
| @@ -32,9 +32,12 @@ | ||
| 32 | 32 | |
| 33 | 33 | </div> | 
| 34 | 34 | |
| 35 | - <?php else : ?> | |
| 35 | +			<?php else { | |
| 36 | + : ?> | |
| 36 | 37 | |
| 37 | - <?php get_template_part( 'partials/content', 'none' ); ?> | |
| 38 | + <?php get_template_part( 'partials/content', 'none' ); | |
| 39 | +} | |
| 40 | +?> | |
| 38 | 41 | |
| 39 | 42 | <?php endif; ?> | 
| 40 | 43 | |
| @@ -8,38 +8,38 @@ | ||
| 8 | 8 | |
| 9 | 9 | global $lsx_to_archive, $post; | 
| 10 | 10 | |
| 11 | -if ( 1 !== $lsx_to_archive ) { | |
| 11 | +if (1 !== $lsx_to_archive) { | |
| 12 | 12 | $lsx_to_archive = false; | 
| 13 | 13 | } | 
| 14 | 14 | ?> | 
| 15 | 15 | |
| 16 | 16 | <?php lsx_entry_before(); ?> | 
| 17 | 17 | |
| 18 | -<article id="team-<?php echo esc_attr( $post->post_name ); ?>" <?php post_class( 'lsx-to-archive-container' ); ?>> | |
| 18 | +<article id="team-<?php echo esc_attr($post->post_name); ?>" <?php post_class('lsx-to-archive-container'); ?>> | |
| 19 | 19 | <?php lsx_entry_top(); ?> | 
| 20 | 20 | |
| 21 | -	<?php if ( is_single() && false === $lsx_to_archive ) { ?> | |
| 21 | +	<?php if (is_single() && false === $lsx_to_archive) { ?> | |
| 22 | 22 | |
| 23 | - <div <?php lsx_to_entry_class( 'entry-content' ); ?>> | |
| 23 | +		<div <?php lsx_to_entry_class('entry-content'); ?>> | |
| 24 | 24 | <div class="lsx-to-section-inner"> | 
| 25 | 25 | <h2 class="lsx-to-team-name"><?php the_title(); ?></h2> | 
| 26 | - <?php lsx_to_team_role( '<h5 class="lsx-to-team-job-title">', '</h5>' ); ?> | |
| 26 | +				<?php lsx_to_team_role('<h5 class="lsx-to-team-job-title">', '</h5>'); ?> | |
| 27 | 27 | |
| 28 | 28 | <div class="lsx-to-team-content"><?php the_content(); ?></div> | 
| 29 | 29 | |
| 30 | 30 | <ul class="lsx-to-team-contact list-inline"> | 
| 31 | 31 | <?php | 
| 32 | - lsx_to_team_contact_number( '<li><i class="fa fa-phone orange"></i> ', '</li>' ); | |
| 33 | - lsx_to_team_contact_email( '<li><i class="fa fa-envelope orange"></i> ', '</li>' ); | |
| 34 | - lsx_to_team_contact_skype( '<li><i class="fa fa-skype orange"></i> ', '</li>' ); | |
| 32 | +						lsx_to_team_contact_number('<li><i class="fa fa-phone orange"></i> ', '</li>'); | |
| 33 | +						lsx_to_team_contact_email('<li><i class="fa fa-envelope orange"></i> ', '</li>'); | |
| 34 | +						lsx_to_team_contact_skype('<li><i class="fa fa-skype orange"></i> ', '</li>'); | |
| 35 | 35 | ?> | 
| 36 | 36 | </ul> | 
| 37 | 37 | </div> | 
| 38 | 38 | </div> | 
| 39 | 39 | |
| 40 | -	<?php } elseif ( is_search() || empty( tour_operator()->options[ get_post_type() ]['disable_entry_text'] ) ) { ?> | |
| 40 | +	<?php } elseif (is_search() || empty(tour_operator()->options[get_post_type()]['disable_entry_text'])) { ?> | |
| 41 | 41 | |
| 42 | - <div <?php lsx_to_entry_class( 'entry-content' ); ?>> | |
| 42 | +		<div <?php lsx_to_entry_class('entry-content'); ?>> | |
| 43 | 43 | <?php | 
| 44 | 44 | lsx_to_entry_content_top(); | 
| 45 | 45 | the_excerpt(); | 
| @@ -9,7 +9,7 @@ discard block | ||
| 9 | 9 | global $lsx_to_archive, $post; | 
| 10 | 10 | |
| 11 | 11 |  if ( 1 !== $lsx_to_archive ) { | 
| 12 | - $lsx_to_archive = false; | |
| 12 | + $lsx_to_archive = false; | |
| 13 | 13 | } | 
| 14 | 14 | ?> | 
| 15 | 15 | |
| @@ -29,10 +29,10 @@ discard block | ||
| 29 | 29 | |
| 30 | 30 | <ul class="lsx-to-team-contact list-inline"> | 
| 31 | 31 | <?php | 
| 32 | - lsx_to_team_contact_number( '<li><i class="fa fa-phone orange"></i> ', '</li>' ); | |
| 33 | - lsx_to_team_contact_email( '<li><i class="fa fa-envelope orange"></i> ', '</li>' ); | |
| 34 | - lsx_to_team_contact_skype( '<li><i class="fa fa-skype orange"></i> ', '</li>' ); | |
| 35 | - ?> | |
| 32 | + lsx_to_team_contact_number( '<li><i class="fa fa-phone orange"></i> ', '</li>' ); | |
| 33 | + lsx_to_team_contact_email( '<li><i class="fa fa-envelope orange"></i> ', '</li>' ); | |
| 34 | + lsx_to_team_contact_skype( '<li><i class="fa fa-skype orange"></i> ', '</li>' ); | |
| 35 | + ?> | |
| 36 | 36 | </ul> | 
| 37 | 37 | </div> | 
| 38 | 38 | </div> | 
| @@ -41,10 +41,10 @@ discard block | ||
| 41 | 41 | |
| 42 | 42 | <div <?php lsx_to_entry_class( 'entry-content' ); ?>> | 
| 43 | 43 | <?php | 
| 44 | - lsx_to_entry_content_top(); | |
| 45 | - the_excerpt(); | |
| 46 | - lsx_to_entry_content_bottom(); | |
| 47 | - ?> | |
| 44 | + lsx_to_entry_content_top(); | |
| 45 | + the_excerpt(); | |
| 46 | + lsx_to_entry_content_bottom(); | |
| 47 | + ?> | |
| 48 | 48 | </div> | 
| 49 | 49 | |
| 50 | 50 | <?php } ?> | 
| @@ -10,7 +10,7 @@ discard block | ||
| 10 | 10 | |
| 11 | 11 | <?php lsx_content_wrap_before(); ?> | 
| 12 | 12 | |
| 13 | - <div id="primary" class="content-area col-sm-12 <?php echo esc_attr( lsx_main_class() ); ?>"> | |
| 13 | + <div id="primary" class="content-area col-sm-12 <?php echo esc_attr(lsx_main_class()); ?>"> | |
| 14 | 14 | |
| 15 | 15 | <?php lsx_content_before(); ?> | 
| 16 | 16 | |
| @@ -18,15 +18,15 @@ discard block | ||
| 18 | 18 | |
| 19 | 19 | <?php lsx_content_top(); ?> | 
| 20 | 20 | |
| 21 | - <?php while ( have_posts() ) : the_post(); ?> | |
| 21 | + <?php while (have_posts()) : the_post(); ?> | |
| 22 | 22 | |
| 23 | 23 | <section id="summary" class="lsx-to-section lsx-to-collapse-section"> | 
| 24 | - <h2 class="lsx-to-section-title lsx-to-collapse-title lsx-title hidden-lg" data-toggle="collapse" data-target="#collapse-summary"><?php esc_html_e( 'Summary', 'to-team' ); ?></h2> | |
| 24 | +					<h2 class="lsx-to-section-title lsx-to-collapse-title lsx-title hidden-lg" data-toggle="collapse" data-target="#collapse-summary"><?php esc_html_e('Summary', 'to-team'); ?></h2> | |
| 25 | 25 | |
| 26 | 26 | <div id="collapse-summary" class="collapse in"> | 
| 27 | 27 | <div class="collapse-inner"> | 
| 28 | 28 | <div class="row"> | 
| 29 | - <?php lsx_to_content( 'content', 'team' ); ?> | |
| 29 | +								<?php lsx_to_content('content', 'team'); ?> | |
| 30 | 30 | </div> | 
| 31 | 31 | </div> | 
| 32 | 32 | </div> | 
| @@ -10,7 +10,7 @@ discard block | ||
| 10 | 10 | |
| 11 | 11 | <?php lsx_content_wrap_before(); ?> | 
| 12 | 12 | |
| 13 | - <div id="primary" class="content-area col-sm-12 <?php echo esc_attr( lsx_main_class() ); ?>"> | |
| 13 | + <div id="primary" class="content-area col-sm-12 <?php echo esc_attr(lsx_main_class()); ?>"> | |
| 14 | 14 | |
| 15 | 15 | <?php lsx_content_before(); ?> | 
| 16 | 16 | |
| @@ -18,30 +18,30 @@ discard block | ||
| 18 | 18 | |
| 19 | 19 | <?php lsx_content_top(); ?> | 
| 20 | 20 | |
| 21 | - <?php if ( have_posts() ) : ?> | |
| 21 | + <?php if (have_posts()) : ?> | |
| 22 | 22 | |
| 23 | 23 | <?php | 
| 24 | 24 | $header_before = ''; | 
| 25 | 25 | $group_items_by_role = false; | 
| 26 | 26 | |
| 27 | -					if ( isset( tour_operator()->options['team'] ) && isset( tour_operator()->options['team']['group_items_by_role'] ) ) { | |
| 27 | +					if (isset(tour_operator()->options['team']) && isset(tour_operator()->options['team']['group_items_by_role'])) { | |
| 28 | 28 | $group_items_by_role = true; | 
| 29 | 29 | } | 
| 30 | 30 | |
| 31 | 31 | $count = 0; | 
| 32 | 32 | ?> | 
| 33 | 33 | |
| 34 | - <?php while ( have_posts() ) : the_post(); ?> | |
| 34 | + <?php while (have_posts()) : the_post(); ?> | |
| 35 | 35 | |
| 36 | 36 | <?php | 
| 37 | -						if ( true === $group_items_by_role ) { | |
| 38 | - $header_current = get_the_terms( get_the_id(), 'role' ); | |
| 37 | +						if (true === $group_items_by_role) { | |
| 38 | + $header_current = get_the_terms(get_the_id(), 'role'); | |
| 39 | 39 | $header_html = ''; | 
| 40 | 40 | |
| 41 | -							if ( ! is_wp_error( $header_current ) && is_array( $header_current ) && ! empty( $header_current ) ) { | |
| 41 | +							if ( ! is_wp_error($header_current) && is_array($header_current) && ! empty($header_current)) { | |
| 42 | 42 | $header_current = $header_current[0]->name; | 
| 43 | 43 | |
| 44 | -								if ( $header_before !== $header_current ) { | |
| 44 | +								if ($header_before !== $header_current) { | |
| 45 | 45 | $header_html = '<h3 class="lsx-to-archive-items-separator lsx-title">' . $header_current . '</h3>'; | 
| 46 | 46 | $header_before = $header_current; | 
| 47 | 47 | } | 
| @@ -51,23 +51,23 @@ discard block | ||
| 51 | 51 | $count++; | 
| 52 | 52 | ?> | 
| 53 | 53 | |
| 54 | -					<?php if ( $count > 1 && true === $group_items_by_role && ! empty( $header_html ) ) { ?> | |
| 54 | +					<?php if ($count > 1 && true === $group_items_by_role && ! empty($header_html)) { ?> | |
| 55 | 55 | </div> | 
| 56 | 56 | <?php } ?> | 
| 57 | 57 | |
| 58 | -					<?php if ( 1 === $count || ( true === $group_items_by_role && ! empty( $header_html ) ) ) { ?> | |
| 59 | -						<?php if ( true === $group_items_by_role && ! empty( $header_html ) ) { ?> | |
| 60 | - <?php echo wp_kses_post( $header_html ); ?> | |
| 58 | +					<?php if (1 === $count || (true === $group_items_by_role && ! empty($header_html))) { ?> | |
| 59 | +						<?php if (true === $group_items_by_role && ! empty($header_html)) { ?> | |
| 60 | + <?php echo wp_kses_post($header_html); ?> | |
| 61 | 61 | <?php } ?> | 
| 62 | 62 | |
| 63 | - <div class="row lsx-to-archive-items lsx-to-archive-template-<?php echo esc_attr( tour_operator()->archive_layout ); ?> lsx-to-archive-template-image-<?php echo esc_attr( tour_operator()->archive_list_layout_image_style ); ?>"> | |
| 63 | + <div class="row lsx-to-archive-items lsx-to-archive-template-<?php echo esc_attr(tour_operator()->archive_layout); ?> lsx-to-archive-template-image-<?php echo esc_attr(tour_operator()->archive_list_layout_image_style); ?>"> | |
| 64 | 64 | <?php } ?> | 
| 65 | 65 | |
| 66 | - <div class="<?php echo esc_attr( lsx_to_archive_class( 'lsx-to-archive-item' ) ); ?>"> | |
| 67 | - <?php lsx_to_team_content( 'content', 'team' ); ?> | |
| 66 | +					<div class="<?php echo esc_attr(lsx_to_archive_class('lsx-to-archive-item')); ?>"> | |
| 67 | +						<?php lsx_to_team_content('content', 'team'); ?> | |
| 68 | 68 | </div> | 
| 69 | 69 | |
| 70 | -					<?php if ( $GLOBALS['wp_query']->post_count === $count ) { ?> | |
| 70 | +					<?php if ($GLOBALS['wp_query']->post_count === $count) { ?> | |
| 71 | 71 | </div> | 
| 72 | 72 | <?php } ?> | 
| 73 | 73 | |
| @@ -75,7 +75,7 @@ discard block | ||
| 75 | 75 | |
| 76 | 76 | <?php else : ?> | 
| 77 | 77 | |
| 78 | - <?php get_template_part( 'partials/content', 'none' ); ?> | |
| 78 | +				<?php get_template_part('partials/content', 'none'); ?> | |
| 79 | 79 | |
| 80 | 80 | <?php endif; ?> | 
| 81 | 81 | |
| @@ -21,35 +21,35 @@ | ||
| 21 | 21 | <?php if ( have_posts() ) : ?> | 
| 22 | 22 | |
| 23 | 23 | <?php | 
| 24 | - $header_before = ''; | |
| 25 | - $group_items_by_role = false; | |
| 24 | + $header_before = ''; | |
| 25 | + $group_items_by_role = false; | |
| 26 | 26 | |
| 27 | -					if ( isset( tour_operator()->options['team'] ) && isset( tour_operator()->options['team']['group_items_by_role'] ) ) { | |
| 28 | - $group_items_by_role = true; | |
| 29 | - } | |
| 27 | +                         if ( isset( tour_operator()->options['team'] ) && isset( tour_operator()->options['team']['group_items_by_role'] ) ) { | |
| 28 | + $group_items_by_role = true; | |
| 29 | + } | |
| 30 | 30 | |
| 31 | - $count = 0; | |
| 32 | - ?> | |
| 31 | + $count = 0; | |
| 32 | + ?> | |
| 33 | 33 | |
| 34 | 34 | <?php while ( have_posts() ) : the_post(); ?> | 
| 35 | 35 | |
| 36 | 36 | <?php | 
| 37 | -						if ( true === $group_items_by_role ) { | |
| 38 | - $header_current = get_the_terms( get_the_id(), 'role' ); | |
| 39 | - $header_html = ''; | |
| 40 | - | |
| 41 | -							if ( ! is_wp_error( $header_current ) && is_array( $header_current ) && ! empty( $header_current ) ) { | |
| 42 | - $header_current = $header_current[0]->name; | |
| 43 | - | |
| 44 | -								if ( $header_before !== $header_current ) { | |
| 45 | - $header_html = '<h3 class="lsx-to-archive-items-separator lsx-title">' . $header_current . '</h3>'; | |
| 46 | - $header_before = $header_current; | |
| 47 | - } | |
| 48 | - } | |
| 49 | - } | |
| 50 | - | |
| 51 | - $count++; | |
| 52 | - ?> | |
| 37 | +                              if ( true === $group_items_by_role ) { | |
| 38 | + $header_current = get_the_terms( get_the_id(), 'role' ); | |
| 39 | + $header_html = ''; | |
| 40 | + | |
| 41 | +                                   if ( ! is_wp_error( $header_current ) && is_array( $header_current ) && ! empty( $header_current ) ) { | |
| 42 | + $header_current = $header_current[0]->name; | |
| 43 | + | |
| 44 | +                                        if ( $header_before !== $header_current ) { | |
| 45 | + $header_html = '<h3 class="lsx-to-archive-items-separator lsx-title">' . $header_current . '</h3>'; | |
| 46 | + $header_before = $header_current; | |
| 47 | + } | |
| 48 | + } | |
| 49 | + } | |
| 50 | + | |
| 51 | + $count++; | |
| 52 | + ?> | |
| 53 | 53 | |
| 54 | 54 |  					<?php if ( $count > 1 && true === $group_items_by_role && ! empty( $header_html ) ) { ?> | 
| 55 | 55 | </div> | 
| @@ -73,9 +73,12 @@ | ||
| 73 | 73 | |
| 74 | 74 | <?php endwhile; ?> | 
| 75 | 75 | |
| 76 | - <?php else : ?> | |
| 76 | +			<?php else { | |
| 77 | + : ?> | |
| 77 | 78 | |
| 78 | - <?php get_template_part( 'partials/content', 'none' ); ?> | |
| 79 | + <?php get_template_part( 'partials/content', 'none' ); | |
| 80 | +} | |
| 81 | +?> | |
| 79 | 82 | |
| 80 | 83 | <?php endif; ?> | 
| 81 | 84 | |
| @@ -9,22 +9,22 @@ | ||
| 9 | 9 | |
| 10 | 10 | <?php | 
| 11 | 11 | $description = term_description(); | 
| 12 | - if ( ! empty( $description ) ) : | |
| 12 | + if ( ! empty($description)) : | |
| 13 | 13 | ?> | 
| 14 | 14 | |
| 15 | 15 | <div class="lsx-to-archive-header row"> | 
| 16 | 16 | <div class="col-xs-12 <?php echo lsx_to_has_enquiry_contact() ? 'col-sm-12 col-md-6' : '' ?> lsx-to-archive-description"> | 
| 17 | - <?php echo wp_kses_post( $description ); ?> | |
| 17 | + <?php echo wp_kses_post($description); ?> | |
| 18 | 18 | </div> | 
| 19 | 19 | |
| 20 | - <?php if ( lsx_to_has_enquiry_contact() ) : ?> | |
| 20 | + <?php if (lsx_to_has_enquiry_contact()) : ?> | |
| 21 | 21 | <div class="col-xs-12 col-sm-12 col-md-6"> | 
| 22 | 22 | <div class="lsx-to-contact-widget"> | 
| 23 | 23 | <?php | 
| 24 | -						if ( function_exists( 'lsx_to_has_team_member' ) && lsx_to_has_team_member() ) { | |
| 25 | - lsx_to_team_member_panel( '<div class="lsx-to-contact">', '</div>' ); | |
| 24 | +						if (function_exists('lsx_to_has_team_member') && lsx_to_has_team_member()) { | |
| 25 | +							lsx_to_team_member_panel('<div class="lsx-to-contact">', '</div>'); | |
| 26 | 26 |  						} else { | 
| 27 | - lsx_to_enquiry_contact( '<div class="lsx-to-contact">', '</div>' ); | |
| 27 | +							lsx_to_enquiry_contact('<div class="lsx-to-contact">', '</div>'); | |
| 28 | 28 | } | 
| 29 | 29 | |
| 30 | 30 | lsx_to_enquire_modal(); | 
| @@ -8,8 +8,8 @@ discard block | ||
| 8 | 8 | ?> | 
| 9 | 9 | |
| 10 | 10 | <?php | 
| 11 | - $description = term_description(); | |
| 12 | - if ( ! empty( $description ) ) : | |
| 11 | + $description = term_description(); | |
| 12 | + if ( ! empty( $description ) ) : | |
| 13 | 13 | ?> | 
| 14 | 14 | |
| 15 | 15 | <div class="lsx-to-archive-header row"> | 
| @@ -21,14 +21,14 @@ discard block | ||
| 21 | 21 | <div class="col-xs-12 col-sm-12 col-md-6"> | 
| 22 | 22 | <div class="lsx-to-contact-widget"> | 
| 23 | 23 | <?php | 
| 24 | -						if ( function_exists( 'lsx_to_has_team_member' ) && lsx_to_has_team_member() ) { | |
| 25 | - lsx_to_team_member_panel( '<div class="lsx-to-contact">', '</div>' ); | |
| 26 | -						} else { | |
| 27 | - lsx_to_enquiry_contact( '<div class="lsx-to-contact">', '</div>' ); | |
| 28 | - } | |
| 24 | +                              if ( function_exists( 'lsx_to_has_team_member' ) && lsx_to_has_team_member() ) { | |
| 25 | + lsx_to_team_member_panel( '<div class="lsx-to-contact">', '</div>' ); | |
| 26 | +                              } else { | |
| 27 | + lsx_to_enquiry_contact( '<div class="lsx-to-contact">', '</div>' ); | |
| 28 | + } | |
| 29 | 29 | |
| 30 | - lsx_to_enquire_modal(); | |
| 31 | - ?> | |
| 30 | + lsx_to_enquire_modal(); | |
| 31 | + ?> | |
| 32 | 32 | </div> | 
| 33 | 33 | </div> | 
| 34 | 34 | <?php endif ?> | 
| @@ -14,44 +14,44 @@ | ||
| 14 | 14 | $has_single = ! lsx_to_is_single_disabled(); | 
| 15 | 15 | $permalink = ''; | 
| 16 | 16 | |
| 17 | -if ( $has_single ) { | |
| 17 | +if ($has_single) { | |
| 18 | 18 | $permalink = get_the_permalink(); | 
| 19 | -} elseif ( ! is_post_type_archive( 'team' ) ) { | |
| 19 | +} elseif ( ! is_post_type_archive('team')) { | |
| 20 | 20 | $has_single = true; | 
| 21 | - $permalink = get_post_type_archive_link( 'team' ) . '#team-' . $post->post_name; | |
| 21 | +	$permalink = get_post_type_archive_link('team') . '#team-' . $post->post_name; | |
| 22 | 22 | } | 
| 23 | 23 | ?> | 
| 24 | 24 | <article <?php post_class(); ?>> | 
| 25 | -	<?php if ( empty( $disable_placeholder ) ) { ?> | |
| 25 | +	<?php if (empty($disable_placeholder)) { ?> | |
| 26 | 26 | <div class="lsx-to-widget-thumb"> | 
| 27 | -			<?php if ( $has_single ) { ?><a href="<?php echo esc_url( $permalink ); ?>"><?php } ?> | |
| 28 | - <?php lsx_thumbnail( 'lsx-thumbnail-square' ); ?> | |
| 29 | -			<?php if ( $has_single ) { ?></a><?php } ?> | |
| 27 | +			<?php if ($has_single) { ?><a href="<?php echo esc_url($permalink); ?>"><?php } ?> | |
| 28 | +				<?php lsx_thumbnail('lsx-thumbnail-square'); ?> | |
| 29 | +			<?php if ($has_single) { ?></a><?php } ?> | |
| 30 | 30 | </div> | 
| 31 | 31 | <?php } ?> | 
| 32 | 32 | |
| 33 | 33 | <h4 class="lsx-to-widget-title text-center"> | 
| 34 | -		<?php if ( $has_single ) { ?><a href="<?php echo esc_url( $permalink ); ?>"><?php } ?> | |
| 34 | +		<?php if ($has_single) { ?><a href="<?php echo esc_url($permalink); ?>"><?php } ?> | |
| 35 | 35 | <?php the_title(); ?> | 
| 36 | -		<?php if ( $has_single ) { ?></a><?php } ?> | |
| 36 | +		<?php if ($has_single) { ?></a><?php } ?> | |
| 37 | 37 | </h4> | 
| 38 | 38 | |
| 39 | 39 | <?php | 
| 40 | -	if ( empty( $disable_text ) ) { | |
| 41 | - lsx_to_team_role( '<p class="lsx-to-widget-tagline text-center">', '</p>' ); | |
| 40 | +	if (empty($disable_text)) { | |
| 41 | +		lsx_to_team_role('<p class="lsx-to-widget-tagline text-center">', '</p>'); | |
| 42 | 42 | |
| 43 | - $member_description = apply_filters( 'the_excerpt', get_the_excerpt() ); | |
| 43 | +		$member_description = apply_filters('the_excerpt', get_the_excerpt()); | |
| 44 | 44 | |
| 45 | -		if ( empty( $member_description ) ) { | |
| 46 | - $member_description = apply_filters( 'the_excerpt', wp_trim_words( $post->post_content, 20 ) ); | |
| 45 | +		if (empty($member_description)) { | |
| 46 | +			$member_description = apply_filters('the_excerpt', wp_trim_words($post->post_content, 20)); | |
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | - $member_description = ! empty( $member_description ) ? "<div class='lsx-team-description'>$member_description</div>" : ''; | |
| 50 | - echo wp_kses_post( $member_description ); | |
| 49 | + $member_description = ! empty($member_description) ? "<div class='lsx-team-description'>$member_description</div>" : ''; | |
| 50 | + echo wp_kses_post($member_description); | |
| 51 | 51 | } | 
| 52 | 52 | ?> | 
| 53 | 53 | |
| 54 | -	<?php if ( $has_single && empty( $disable_view_more ) ) { ?> | |
| 55 | - <p class="text-center lsx-to-single-link"><a href="<?php echo esc_url( $permalink ); ?>"><?php echo esc_html__( 'More about', 'to-team' ) . ' ' . esc_html( strtok( $member_name, ' ' ) ); ?> <i class="fa fa-angle-right" aria-hidden="true"></i></a></p> | |
| 54 | +	<?php if ($has_single && empty($disable_view_more)) { ?> | |
| 55 | +		<p class="text-center lsx-to-single-link"><a href="<?php echo esc_url($permalink); ?>"><?php echo esc_html__('More about', 'to-team') . ' ' . esc_html(strtok($member_name, ' ')); ?> <i class="fa fa-angle-right" aria-hidden="true"></i></a></p> | |
| 56 | 56 | <?php } ?> | 
| 57 | 57 | </article> | 
| @@ -15,10 +15,10 @@ discard block | ||
| 15 | 15 | $permalink = ''; | 
| 16 | 16 | |
| 17 | 17 |  if ( $has_single ) { | 
| 18 | - $permalink = get_the_permalink(); | |
| 18 | + $permalink = get_the_permalink(); | |
| 19 | 19 |  } elseif ( ! is_post_type_archive( 'team' ) ) { | 
| 20 | - $has_single = true; | |
| 21 | - $permalink = get_post_type_archive_link( 'team' ) . '#team-' . $post->post_name; | |
| 20 | + $has_single = true; | |
| 21 | + $permalink = get_post_type_archive_link( 'team' ) . '#team-' . $post->post_name; | |
| 22 | 22 | } | 
| 23 | 23 | ?> | 
| 24 | 24 | <article <?php post_class(); ?>> | 
| @@ -37,19 +37,19 @@ discard block | ||
| 37 | 37 | </h4> | 
| 38 | 38 | |
| 39 | 39 | <?php | 
| 40 | -	if ( empty( $disable_text ) ) { | |
| 41 | - lsx_to_team_role( '<p class="lsx-to-widget-tagline text-center">', '</p>' ); | |
| 40 | +     if ( empty( $disable_text ) ) { | |
| 41 | + lsx_to_team_role( '<p class="lsx-to-widget-tagline text-center">', '</p>' ); | |
| 42 | 42 | |
| 43 | - $member_description = apply_filters( 'the_excerpt', get_the_excerpt() ); | |
| 43 | + $member_description = apply_filters( 'the_excerpt', get_the_excerpt() ); | |
| 44 | 44 | |
| 45 | -		if ( empty( $member_description ) ) { | |
| 46 | - $member_description = apply_filters( 'the_excerpt', wp_trim_words( $post->post_content, 20 ) ); | |
| 47 | - } | |
| 45 | +          if ( empty( $member_description ) ) { | |
| 46 | + $member_description = apply_filters( 'the_excerpt', wp_trim_words( $post->post_content, 20 ) ); | |
| 47 | + } | |
| 48 | 48 | |
| 49 | - $member_description = ! empty( $member_description ) ? "<div class='lsx-team-description'>$member_description</div>" : ''; | |
| 50 | - echo wp_kses_post( $member_description ); | |
| 51 | - } | |
| 52 | - ?> | |
| 49 | + $member_description = ! empty( $member_description ) ? "<div class='lsx-team-description'>$member_description</div>" : ''; | |
| 50 | + echo wp_kses_post( $member_description ); | |
| 51 | + } | |
| 52 | + ?> | |
| 53 | 53 | |
| 54 | 54 |  	<?php if ( $has_single && empty( $disable_view_more ) ) { ?> | 
| 55 | 55 | <p class="text-center lsx-to-single-link"><a href="<?php echo esc_url( $permalink ); ?>"><?php echo esc_html__( 'More about', 'to-team' ) . ' ' . esc_html( strtok( $member_name, ' ' ) ); ?> <i class="fa fa-angle-right" aria-hidden="true"></i></a></p> |