|
@@ -12,38 +12,38 @@ discard block |
|
|
block discarded – undo |
|
12
|
12
|
$has_single = ! lsx_to_is_single_disabled(); |
|
13
|
13
|
$permalink = ''; |
|
14
|
14
|
|
|
15
|
|
-if ( $has_single ) { |
|
|
15
|
+if ($has_single) { |
|
16
|
16
|
$permalink = get_the_permalink(); |
|
17
|
|
-} elseif ( ! is_post_type_archive( 'review' ) ) { |
|
|
17
|
+} elseif ( ! is_post_type_archive('review')) { |
|
18
|
18
|
$has_single = true; |
|
19
|
|
- $permalink = get_post_type_archive_link( 'review' ) . '#review-' . $post->post_name; |
|
|
19
|
+ $permalink = get_post_type_archive_link('review') . '#review-' . $post->post_name; |
|
20
|
20
|
} |
|
21
|
21
|
?> |
|
22
|
22
|
<article <?php post_class(); ?>> |
|
23
|
|
- <?php if ( empty( $disable_placeholder ) ) { ?> |
|
|
23
|
+ <?php if (empty($disable_placeholder)) { ?> |
|
24
|
24
|
<div class="lsx-to-widget-thumb"> |
|
25
|
|
- <?php if ( $has_single ) { ?><a href="<?php echo esc_url( $permalink ); ?>"><?php } ?> |
|
26
|
|
- <?php lsx_thumbnail( 'lsx-thumbnail-wide' ); ?> |
|
27
|
|
- <?php if ( $has_single ) { ?></a><?php } ?> |
|
|
25
|
+ <?php if ($has_single) { ?><a href="<?php echo esc_url($permalink); ?>"><?php } ?> |
|
|
26
|
+ <?php lsx_thumbnail('lsx-thumbnail-wide'); ?> |
|
|
27
|
+ <?php if ($has_single) { ?></a><?php } ?> |
|
28
|
28
|
</div> |
|
29
|
29
|
<?php } ?> |
|
30
|
30
|
|
|
31
|
31
|
<h4 class="lsx-to-widget-title text-center"> |
|
32
|
|
- <?php if ( $has_single ) { ?><a href="<?php echo esc_url( $permalink ); ?>"><?php } ?> |
|
|
32
|
+ <?php if ($has_single) { ?><a href="<?php echo esc_url($permalink); ?>"><?php } ?> |
|
33
|
33
|
<?php the_title(); ?> |
|
34
|
|
- <?php if ( $has_single ) { ?></a><?php } ?> |
|
|
34
|
+ <?php if ($has_single) { ?></a><?php } ?> |
|
35
|
35
|
</h4> |
|
36
|
36
|
|
|
37
|
|
- <?php if ( empty( $disable_text ) ) { ?> |
|
|
37
|
+ <?php if (empty($disable_text)) { ?> |
|
38
|
38
|
<blockquote class="lsx-to-widget-blockquote"> |
|
39
|
39
|
<?php |
|
40
|
40
|
$excerpt = get_the_excerpt(); |
|
41
|
|
- if ( empty( $excerpt ) || '' === $excerpt ) { |
|
42
|
|
- $tooltip = apply_filters( 'get_the_excerpt', get_the_content() ); |
|
43
|
|
- $tooltip = strip_tags( $tooltip ); |
|
44
|
|
- echo wp_kses_post( wpautop( $tooltip ) ); |
|
45
|
|
- } else { |
|
46
|
|
- echo wp_kses_post( $excerpt ); |
|
|
41
|
+ if (empty($excerpt) || '' === $excerpt) { |
|
|
42
|
+ $tooltip = apply_filters('get_the_excerpt', get_the_content()); |
|
|
43
|
+ $tooltip = strip_tags($tooltip); |
|
|
44
|
+ echo wp_kses_post(wpautop($tooltip)); |
|
|
45
|
+ }else { |
|
|
46
|
+ echo wp_kses_post($excerpt); |
|
47
|
47
|
} |
|
48
|
48
|
?> |
|
49
|
49
|
</blockquote> |
|
@@ -53,11 +53,11 @@ discard block |
|
|
block discarded – undo |
|
53
|
53
|
<?php |
|
54
|
54
|
$meta_class = 'lsx-to-meta-data lsx-to-meta-data-'; |
|
55
|
55
|
|
|
56
|
|
- lsx_to_connected_accommodation( '<span class="' . $meta_class . 'accommodations"><span class="lsx-to-meta-data-key">' . __( 'Accommodation', 'to-reviews' ) . ':</span> ', '</span>' ); |
|
57
|
|
- lsx_to_connected_tours( '<span class="' . $meta_class . 'tours"><span class="lsx-to-meta-data-key">' . __( 'Tours', 'to-reviews' ) . ':</span> ', '</span>' ); |
|
58
|
|
- lsx_to_connected_destinations( '<span class="' . $meta_class . 'destinations"><span class="lsx-to-meta-data-key">' . __( 'Destinations', 'to-reviews' ) . ':</span> ', '</span>' ); |
|
59
|
|
- if ( function_exists( 'lsx_to_connected_team' ) ) { |
|
60
|
|
- lsx_to_connected_team( '<span class="' . $meta_class . 'team"><span class="lsx-to-meta-data-key">' . __( 'Advised by', 'to-reviews' ) . ':</span> ', '</span>' ); |
|
|
56
|
+ lsx_to_connected_accommodation('<span class="' . $meta_class . 'accommodations"><span class="lsx-to-meta-data-key">' . __('Accommodation', 'to-reviews') . ':</span> ', '</span>'); |
|
|
57
|
+ lsx_to_connected_tours('<span class="' . $meta_class . 'tours"><span class="lsx-to-meta-data-key">' . __('Tours', 'to-reviews') . ':</span> ', '</span>'); |
|
|
58
|
+ lsx_to_connected_destinations('<span class="' . $meta_class . 'destinations"><span class="lsx-to-meta-data-key">' . __('Destinations', 'to-reviews') . ':</span> ', '</span>'); |
|
|
59
|
+ if (function_exists('lsx_to_connected_team')) { |
|
|
60
|
+ lsx_to_connected_team('<span class="' . $meta_class . 'team"><span class="lsx-to-meta-data-key">' . __('Advised by', 'to-reviews') . ':</span> ', '</span>'); |
|
61
|
61
|
} |
|
62
|
62
|
?> |
|
63
|
63
|
</div> |