@@ -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 | |
@@ -33,10 +33,10 @@ discard block |
||
33 | 33 | <?php } elseif ( is_search() || empty( tour_operator()->options[ get_post_type() ]['disable_entry_text'] ) ) { ?> |
34 | 34 | |
35 | 35 | <div <?php lsx_to_entry_class( 'entry-content' ); ?>><?php |
36 | - lsx_to_entry_content_top(); |
|
37 | - the_excerpt(); |
|
38 | - lsx_to_entry_content_bottom(); |
|
39 | - ?></div> |
|
36 | + lsx_to_entry_content_top(); |
|
37 | + the_excerpt(); |
|
38 | + lsx_to_entry_content_bottom(); |
|
39 | + ?></div> |
|
40 | 40 | |
41 | 41 | <?php } ?> |
42 | 42 |
@@ -14,10 +14,10 @@ discard block |
||
14 | 14 | $tour_operator = tour_operator(); |
15 | 15 | |
16 | 16 | if ( $has_single ) { |
17 | - $permalink = get_the_permalink(); |
|
17 | + $permalink = get_the_permalink(); |
|
18 | 18 | } elseif ( ! is_post_type_archive( 'special' ) ) { |
19 | - $has_single = true; |
|
20 | - $permalink = get_post_type_archive_link( 'special' ) . '#special-' . $post->post_name; |
|
19 | + $has_single = true; |
|
20 | + $permalink = get_post_type_archive_link( 'special' ) . '#special-' . $post->post_name; |
|
21 | 21 | } |
22 | 22 | ?> |
23 | 23 | <article <?php post_class(); ?>> |
@@ -37,43 +37,43 @@ discard block |
||
37 | 37 | </h4> |
38 | 38 | |
39 | 39 | <?php |
40 | - // if ( empty( $disable_text ) ) { |
|
41 | - // lsx_to_tagline( '<p class="lsx-to-widget-tagline text-center">', '</p>' ); |
|
42 | - // } |
|
43 | - ?> |
|
40 | + // if ( empty( $disable_text ) ) { |
|
41 | + // lsx_to_tagline( '<p class="lsx-to-widget-tagline text-center">', '</p>' ); |
|
42 | + // } |
|
43 | + ?> |
|
44 | 44 | |
45 | 45 | <div class="lsx-to-widget-meta-data"> |
46 | 46 | <?php |
47 | - $meta_class = 'lsx-to-meta-data lsx-to-meta-data-'; |
|
47 | + $meta_class = 'lsx-to-meta-data lsx-to-meta-data-'; |
|
48 | 48 | |
49 | - lsx_to_price( '<span class="' . $meta_class . 'price"><span class="lsx-to-meta-data-key">' . esc_html__( 'From price', 'to-specials' ) . ':</span> ', '</span>' ); |
|
50 | - lsx_to_connected_tours( '<span class="' . $meta_class . 'tours"><span class="lsx-to-meta-data-key">' . __( 'Tours', 'to-specials' ) . ':</span> ', '</span>' ); |
|
51 | - lsx_to_connected_accommodation( '<span class="' . $meta_class . 'accommodations"><span class="lsx-to-meta-data-key">' . __( 'Accommodation', 'to-specials' ) . ':</span> ', '</span>' ); |
|
52 | - the_terms( get_the_ID(), 'travel-style', '<span class="' . $meta_class . 'style"><span class="lsx-to-meta-data-key">' . __( 'Travel Style', 'to-specials' ) . ':</span> ', ', ', '</span>' ); |
|
53 | - the_terms( get_the_ID(), 'special-type', '<span class="' . $meta_class . 'special"><span class="lsx-to-meta-data-key">' . __( 'Type', 'to-specials' ) . ':</span> ', ', ', '</span>' ); |
|
54 | - lsx_to_connected_destinations( '<span class="' . $meta_class . 'destinations"><span class="lsx-to-meta-data-key">' . __( 'Destinations', 'to-specials' ) . ':</span> ', '</span>' ); |
|
55 | - lsx_to_specials_validity( '<span class="' . $meta_class . 'valid-from"><span class="lsx-to-meta-data-key">' . __( 'Booking Validity', 'to-specials' ) . ':</span> ', '</span>' ); |
|
49 | + lsx_to_price( '<span class="' . $meta_class . 'price"><span class="lsx-to-meta-data-key">' . esc_html__( 'From price', 'to-specials' ) . ':</span> ', '</span>' ); |
|
50 | + lsx_to_connected_tours( '<span class="' . $meta_class . 'tours"><span class="lsx-to-meta-data-key">' . __( 'Tours', 'to-specials' ) . ':</span> ', '</span>' ); |
|
51 | + lsx_to_connected_accommodation( '<span class="' . $meta_class . 'accommodations"><span class="lsx-to-meta-data-key">' . __( 'Accommodation', 'to-specials' ) . ':</span> ', '</span>' ); |
|
52 | + the_terms( get_the_ID(), 'travel-style', '<span class="' . $meta_class . 'style"><span class="lsx-to-meta-data-key">' . __( 'Travel Style', 'to-specials' ) . ':</span> ', ', ', '</span>' ); |
|
53 | + the_terms( get_the_ID(), 'special-type', '<span class="' . $meta_class . 'special"><span class="lsx-to-meta-data-key">' . __( 'Type', 'to-specials' ) . ':</span> ', ', ', '</span>' ); |
|
54 | + lsx_to_connected_destinations( '<span class="' . $meta_class . 'destinations"><span class="lsx-to-meta-data-key">' . __( 'Destinations', 'to-specials' ) . ':</span> ', '</span>' ); |
|
55 | + lsx_to_specials_validity( '<span class="' . $meta_class . 'valid-from"><span class="lsx-to-meta-data-key">' . __( 'Booking Validity', 'to-specials' ) . ':</span> ', '</span>' ); |
|
56 | 56 | |
57 | - if ( function_exists( 'lsx_to_connected_activities' ) ) { |
|
58 | - lsx_to_connected_activities( '<span class="' . $meta_class . 'activities"><span class="lsx-to-meta-data-key">' . __( 'Activites', 'to-specials' ) . ':</span> ', '</span>' ); |
|
59 | - } |
|
60 | - ?> |
|
57 | + if ( function_exists( 'lsx_to_connected_activities' ) ) { |
|
58 | + lsx_to_connected_activities( '<span class="' . $meta_class . 'activities"><span class="lsx-to-meta-data-key">' . __( 'Activites', 'to-specials' ) . ':</span> ', '</span>' ); |
|
59 | + } |
|
60 | + ?> |
|
61 | 61 | </div> |
62 | 62 | |
63 | 63 | <?php |
64 | - ob_start(); |
|
65 | - lsx_to_widget_entry_content_top(); |
|
66 | - the_excerpt(); |
|
67 | - lsx_to_widget_entry_content_bottom(); |
|
68 | - $excerpt = ob_get_clean(); |
|
64 | + ob_start(); |
|
65 | + lsx_to_widget_entry_content_top(); |
|
66 | + the_excerpt(); |
|
67 | + lsx_to_widget_entry_content_bottom(); |
|
68 | + $excerpt = ob_get_clean(); |
|
69 | 69 | |
70 | - if ( empty( $disable_text ) && ! empty( $excerpt ) ) { |
|
71 | - echo wp_kses_post( $excerpt ); |
|
72 | - } elseif ( $has_single && true !== $disable_view_more && '1' !== $disable_view_more ) { |
|
73 | - ?> |
|
70 | + if ( empty( $disable_text ) && ! empty( $excerpt ) ) { |
|
71 | + echo wp_kses_post( $excerpt ); |
|
72 | + } elseif ( $has_single && true !== $disable_view_more && '1' !== $disable_view_more ) { |
|
73 | + ?> |
|
74 | 74 | <p class="moretag-wrapper"><a href="<?php echo esc_url( $permalink ); ?>" class="moretag"><?php esc_html_e( 'View more', 'tour-operator' ); ?></a></p> |
75 | 75 | <?php |
76 | - } |
|
77 | - ?> |
|
76 | + } |
|
77 | + ?> |
|
78 | 78 | </div> |
79 | 79 | </article> |
@@ -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,7 +14,7 @@ |
||
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_SPECIALS_PATH', plugin_dir_path( __FILE__ ) ); |