@@ -40,29 +40,29 @@ |
||
40 | 40 | $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a>',$output); |
41 | 41 | if(isset($wp_query->query_vars['eventDisplay']) && 'all' === $wp_query->query_vars['eventDisplay']){ |
42 | 42 | $output = str_replace($closing_div,get_the_title($wp_query->query_vars['post_parent']).$closing_div,$output); |
43 | - }else{ |
|
43 | + } else{ |
|
44 | 44 | $single_event = get_queried_object(); |
45 | 45 | $output = str_replace($closing_div,apply_filters('the_title',$single_event->post_title).$closing_div,$output); |
46 | 46 | } |
47 | - }elseif( is_tax()) { |
|
47 | + } elseif( is_tax()) { |
|
48 | 48 | $tax_event = get_queried_object(); |
49 | 49 | $output = str_replace('Page','<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a>',$output); |
50 | 50 | $output = str_replace($closing_div,' / '.apply_filters('the_title',$tax_event->name).$closing_div,$output); |
51 | - }else{ |
|
51 | + } else{ |
|
52 | 52 | $output = str_replace('Page',esc_html__('Events','lsx'),$output); |
53 | 53 | } |
54 | - }elseif(function_exists('yoast_breadcrumb')){ |
|
54 | + } elseif(function_exists('yoast_breadcrumb')){ |
|
55 | 55 | $closing_div = '</div>'; |
56 | 56 | $last_breadcrumb = '<span class="breadcrumb_last">'.esc_html__('Events','lsx').'</span>'; |
57 | 57 | |
58 | 58 | if( is_single()) { |
59 | 59 | $single_event = get_queried_object(); |
60 | 60 | $output = str_replace($closing_div,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a> / '.apply_filters('the_title',$single_event->post_title),$output); |
61 | - }elseif( is_tax()) { |
|
61 | + } elseif( is_tax()) { |
|
62 | 62 | $tax_event = get_queried_object(); |
63 | 63 | $output = str_replace($last_breadcrumb,'<a href="'.get_post_type_archive_link( 'tribe_events' ).'">'.esc_html__('Events','lsx').'</a> / '.apply_filters('the_title',$tax_event->name),$output); |
64 | 64 | |
65 | - }else{ |
|
65 | + } else{ |
|
66 | 66 | $output = str_replace('Page',esc_html__('Events','lsx'),$output); |
67 | 67 | } |
68 | 68 | } |
@@ -47,9 +47,12 @@ |
||
47 | 47 | |
48 | 48 | <?php lsx_paging_nav(); ?> |
49 | 49 | |
50 | - <?php else : ?> |
|
50 | + <?php else { |
|
51 | + : ?> |
|
51 | 52 | |
52 | - <?php get_template_part( 'content', 'none' ); ?> |
|
53 | + <?php get_template_part( 'content', 'none' ); |
|
54 | +} |
|
55 | +?> |
|
53 | 56 | |
54 | 57 | <?php endif; ?> |
55 | 58 |
@@ -4,7 +4,10 @@ |
||
4 | 4 | * |
5 | 5 | * @package lsx |
6 | 6 | */ |
7 | -if ( ! defined( 'ABSPATH' ) ) return; // Exit if accessed directly |
|
7 | +if ( ! defined( 'ABSPATH' ) ) { |
|
8 | + return; |
|
9 | +} |
|
10 | +// Exit if accessed directly |
|
8 | 11 | |
9 | 12 | define('LSX_VERSION', '1.8.5'); |
10 | 13 |
@@ -69,14 +69,20 @@ discard block |
||
69 | 69 | <h1 class="entry-title"> |
70 | 70 | <?php if ( has_post_thumbnail() ) : ?> |
71 | 71 | <a href="<?php echo esc_url( $archive_link ) ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ) ?>"></a> |
72 | - <?php else : ?> |
|
72 | + <?php else { |
|
73 | + : ?> |
|
73 | 74 | <a href="<?php echo esc_url( $archive_link ) ?>" class="format-link fa fa-<?php echo esc_attr( $format ) ?>"></a> |
74 | - <?php endif; ?> |
|
75 | + <?php endif; |
|
76 | +} |
|
77 | +?> |
|
75 | 78 | |
76 | 79 | <?php if ( has_post_format( array('link') ) ) : ?> |
77 | 80 | <a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
78 | - <?php else : ?> |
|
79 | - <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
|
81 | + <?php else { |
|
82 | + : ?> |
|
83 | + <a href="<?php the_permalink(); |
|
84 | +} |
|
85 | +?>" rel="bookmark"><?php the_title(); ?></a> |
|
80 | 86 | <?php endif; ?> |
81 | 87 | |
82 | 88 | <?php if ( is_sticky() ) : ?> |
@@ -99,10 +105,12 @@ discard block |
||
99 | 105 | <div class="entry-content"> |
100 | 106 | <?php the_content(); ?> |
101 | 107 | </div><!-- .entry-content --> |
102 | - <?php else : ?> |
|
108 | + <?php else { |
|
109 | + : ?> |
|
103 | 110 | <div class="entry-content"> |
104 | 111 | <?php |
105 | 112 | the_content(); |
113 | +} |
|
106 | 114 | |
107 | 115 | wp_link_pages( array( |
108 | 116 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |