@@ -9,66 +9,66 @@ |
||
9 | 9 | * |
10 | 10 | */ |
11 | 11 | |
12 | -if ( ! defined( 'ABSPATH' ) ) { |
|
13 | - die( '-1' ); |
|
12 | +if ( ! defined('ABSPATH')) { |
|
13 | + die('-1'); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | $venue_details = tribe_get_venue_details(); |
17 | 17 | |
18 | 18 | // Venue microformats |
19 | -$has_venue = ( $venue_details ) ? ' vcard' : ''; |
|
20 | -$has_venue_address = ( ! empty( $venue_details['address'] ) ) ? ' location' : ''; |
|
19 | +$has_venue = ($venue_details) ? ' vcard' : ''; |
|
20 | +$has_venue_address = ( ! empty($venue_details['address'])) ? ' location' : ''; |
|
21 | 21 | |
22 | 22 | // Event Image |
23 | -echo tribe_event_featured_image( null, 'large' ); |
|
23 | +echo tribe_event_featured_image(null, 'large'); |
|
24 | 24 | ?> |
25 | 25 | |
26 | 26 | <div class="tribe-events-event-content"> |
27 | 27 | <!-- Event Title --> |
28 | - <?php do_action( 'tribe_events_before_the_event_title' ) ?> |
|
28 | + <?php do_action('tribe_events_before_the_event_title') ?> |
|
29 | 29 | <h2 class="tribe-events-list-event-title summary"> |
30 | - <a class="url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title_attribute() ?>" rel="bookmark"> |
|
30 | + <a class="url" href="<?php echo esc_url(tribe_get_event_link()); ?>" title="<?php the_title_attribute() ?>" rel="bookmark"> |
|
31 | 31 | <?php the_title() ?> |
32 | 32 | </a> |
33 | 33 | </h2> |
34 | - <?php do_action( 'tribe_events_after_the_event_title' ) ?> |
|
34 | + <?php do_action('tribe_events_after_the_event_title') ?> |
|
35 | 35 | |
36 | 36 | <!-- Event Meta --> |
37 | - <?php do_action( 'tribe_events_before_the_meta' ) ?> |
|
38 | - <div class="tribe-events-event-meta <?php echo esc_attr( $has_venue . $has_venue_address ); ?>"> |
|
37 | + <?php do_action('tribe_events_before_the_meta') ?> |
|
38 | + <div class="tribe-events-event-meta <?php echo esc_attr($has_venue . $has_venue_address); ?>"> |
|
39 | 39 | |
40 | 40 | <!-- Schedule & Recurrence Details --> |
41 | 41 | <div class="tribe-updated published time-details"> |
42 | 42 | <?php echo tribe_events_event_schedule_details(); ?> |
43 | 43 | </div> |
44 | 44 | |
45 | - <?php if ( $venue_details ) : ?> |
|
45 | + <?php if ($venue_details) : ?> |
|
46 | 46 | <!-- Venue Display Info --> |
47 | 47 | <div class="tribe-events-venue-details"> |
48 | - <?php echo implode( ', ', $venue_details ); ?> |
|
48 | + <?php echo implode(', ', $venue_details); ?> |
|
49 | 49 | </div> <!-- .tribe-events-venue-details --> |
50 | 50 | <?php endif; ?> |
51 | 51 | |
52 | 52 | </div><!-- .tribe-events-event-meta --> |
53 | - <?php do_action( 'tribe_events_after_the_meta' ) ?> |
|
53 | + <?php do_action('tribe_events_after_the_meta') ?> |
|
54 | 54 | |
55 | - <?php if ( tribe_get_cost() ) : ?> |
|
55 | + <?php if (tribe_get_cost()) : ?> |
|
56 | 56 | <div class="tribe-events-event-cost"> |
57 | - <?php esc_html_e( 'Price:', 'lsx' ) ?> |
|
58 | - <span class="ticket-cost"><?php echo tribe_get_cost( null, true ); ?></span> |
|
57 | + <?php esc_html_e('Price:', 'lsx') ?> |
|
58 | + <span class="ticket-cost"><?php echo tribe_get_cost(null, true); ?></span> |
|
59 | 59 | <?php |
60 | 60 | /** This action is documented in the-events-calendar/src/views/list/single-event.php */ |
61 | - do_action( 'tribe_events_inside_cost' ) |
|
61 | + do_action('tribe_events_inside_cost') |
|
62 | 62 | ?> |
63 | 63 | </div> |
64 | 64 | <?php endif; ?> |
65 | 65 | |
66 | 66 | <!-- Event Content --> |
67 | - <?php do_action( 'tribe_events_before_the_content' ) ?> |
|
67 | + <?php do_action('tribe_events_before_the_content') ?> |
|
68 | 68 | <div class="tribe-events-list-event-description tribe-events-content description entry-summary"> |
69 | 69 | <?php echo tribe_events_get_the_excerpt(); ?> |
70 | - <a href="<?php echo esc_url( tribe_get_event_link() ); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e( 'Find out more', 'lsx' ) ?></a> |
|
70 | + <a href="<?php echo esc_url(tribe_get_event_link()); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e('Find out more', 'lsx') ?></a> |
|
71 | 71 | </div><!-- .tribe-events-list-event-description --> |
72 | 72 | |
73 | - <?php do_action( 'tribe_events_after_the_content' ); ?> |
|
73 | + <?php do_action('tribe_events_after_the_content'); ?> |
|
74 | 74 | </div> |
@@ -8,8 +8,8 @@ discard block |
||
8 | 8 | * @version 4.6.3 |
9 | 9 | * |
10 | 10 | */ |
11 | -if ( ! defined( 'ABSPATH' ) ) { |
|
12 | - die( '-1' ); |
|
11 | +if ( ! defined('ABSPATH')) { |
|
12 | + die('-1'); |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | // Setup an array of venue details for use later in the template |
@@ -20,45 +20,45 @@ discard block |
||
20 | 20 | $venue_address = tribe_get_address(); |
21 | 21 | |
22 | 22 | // Venue |
23 | -$has_venue_address = ( ! empty( $venue_details['address'] ) ) ? ' location' : ''; |
|
23 | +$has_venue_address = ( ! empty($venue_details['address'])) ? ' location' : ''; |
|
24 | 24 | |
25 | 25 | // Organizer |
26 | 26 | $organizer = tribe_get_organizer(); |
27 | 27 | |
28 | 28 | // Event Image |
29 | -echo tribe_event_featured_image( null, 'medium' ); |
|
29 | +echo tribe_event_featured_image(null, 'medium'); |
|
30 | 30 | ?> |
31 | 31 | |
32 | 32 | <div class="tribe-events-event-content"> |
33 | 33 | <!-- Event Title --> |
34 | - <?php do_action( 'tribe_events_before_the_event_title' ) ?> |
|
34 | + <?php do_action('tribe_events_before_the_event_title') ?> |
|
35 | 35 | <h2 class="tribe-events-list-event-title"> |
36 | - <a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title_attribute() ?>" rel="bookmark"> |
|
36 | + <a class="tribe-event-url" href="<?php echo esc_url(tribe_get_event_link()); ?>" title="<?php the_title_attribute() ?>" rel="bookmark"> |
|
37 | 37 | <?php the_title() ?> |
38 | 38 | </a> |
39 | 39 | </h2> |
40 | - <?php do_action( 'tribe_events_after_the_event_title' ) ?> |
|
40 | + <?php do_action('tribe_events_after_the_event_title') ?> |
|
41 | 41 | |
42 | 42 | <!-- Event Meta --> |
43 | - <?php do_action( 'tribe_events_before_the_meta' ) ?> |
|
43 | + <?php do_action('tribe_events_before_the_meta') ?> |
|
44 | 44 | <div class="tribe-events-event-meta"> |
45 | - <div class="author <?php echo esc_attr( $has_venue_address ); ?>"> |
|
45 | + <div class="author <?php echo esc_attr($has_venue_address); ?>"> |
|
46 | 46 | |
47 | 47 | <!-- Schedule & Recurrence Details --> |
48 | 48 | <div class="tribe-event-schedule-details"> |
49 | 49 | <?php echo tribe_events_event_schedule_details() ?> |
50 | 50 | </div> |
51 | 51 | |
52 | - <?php if ( $venue_details ) : ?> |
|
52 | + <?php if ($venue_details) : ?> |
|
53 | 53 | <!-- Venue Display Info --> |
54 | 54 | <div class="tribe-events-venue-details"> |
55 | 55 | <?php |
56 | - $address_delimiter = empty( $venue_address ) ? ' ' : ', '; |
|
56 | + $address_delimiter = empty($venue_address) ? ' ' : ', '; |
|
57 | 57 | |
58 | 58 | // These details are already escaped in various ways earlier in the process. |
59 | - echo implode( $address_delimiter, $venue_details ); |
|
59 | + echo implode($address_delimiter, $venue_details); |
|
60 | 60 | |
61 | - if ( tribe_show_google_map_link() ) { |
|
61 | + if (tribe_show_google_map_link()) { |
|
62 | 62 | echo tribe_get_map_link_html(); |
63 | 63 | } |
64 | 64 | ?> |
@@ -69,29 +69,29 @@ discard block |
||
69 | 69 | </div><!-- .tribe-events-event-meta --> |
70 | 70 | |
71 | 71 | <!-- Event Cost --> |
72 | - <?php if ( tribe_get_cost() ) : ?> |
|
72 | + <?php if (tribe_get_cost()) : ?> |
|
73 | 73 | <div class="tribe-events-event-cost"> |
74 | - <?php esc_html_e( 'Price:', 'lsx' ) ?> |
|
75 | - <span class="ticket-cost"><?php echo tribe_get_cost( null, true ); ?></span> |
|
74 | + <?php esc_html_e('Price:', 'lsx') ?> |
|
75 | + <span class="ticket-cost"><?php echo tribe_get_cost(null, true); ?></span> |
|
76 | 76 | <?php |
77 | 77 | /** |
78 | 78 | * Runs after cost is displayed in list style views |
79 | 79 | * |
80 | 80 | * @since 4.5 |
81 | 81 | */ |
82 | - do_action( 'tribe_events_inside_cost' ) |
|
82 | + do_action('tribe_events_inside_cost') |
|
83 | 83 | ?> |
84 | 84 | </div> |
85 | 85 | <?php endif; ?> |
86 | 86 | |
87 | - <?php do_action( 'tribe_events_after_the_meta' ) ?> |
|
87 | + <?php do_action('tribe_events_after_the_meta') ?> |
|
88 | 88 | |
89 | 89 | <!-- Event Content --> |
90 | - <?php do_action( 'tribe_events_before_the_content' ); ?> |
|
90 | + <?php do_action('tribe_events_before_the_content'); ?> |
|
91 | 91 | <div class="tribe-events-list-event-description tribe-events-content description entry-summary"> |
92 | - <?php echo tribe_events_get_the_excerpt( null, wp_kses_allowed_html( 'post' ) ); ?> |
|
93 | - <a href="<?php echo esc_url( tribe_get_event_link() ); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e( 'Find out more', 'lsx' ) ?></a> |
|
92 | + <?php echo tribe_events_get_the_excerpt(null, wp_kses_allowed_html('post')); ?> |
|
93 | + <a href="<?php echo esc_url(tribe_get_event_link()); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e('Find out more', 'lsx') ?></a> |
|
94 | 94 | </div><!-- .tribe-events-list-event-description --> |
95 | 95 | |
96 | - <?php do_action( 'tribe_events_after_the_content' ); ?> |
|
96 | + <?php do_action('tribe_events_after_the_content'); ?> |
|
97 | 97 | </div> |
@@ -8,51 +8,51 @@ discard block |
||
8 | 8 | * @version 4.6.3 |
9 | 9 | * |
10 | 10 | */ |
11 | -if ( ! defined( 'ABSPATH' ) ) { |
|
12 | - die( '-1' ); |
|
11 | +if ( ! defined('ABSPATH')) { |
|
12 | + die('-1'); |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | // Setup an array of venue details for use later in the template |
16 | 16 | $venue_details = tribe_get_venue_details(); |
17 | 17 | |
18 | 18 | // Venue |
19 | -$has_venue_address = ( ! empty( $venue_details['address'] ) ) ? ' location' : ''; |
|
19 | +$has_venue_address = ( ! empty($venue_details['address'])) ? ' location' : ''; |
|
20 | 20 | |
21 | 21 | // Organizer |
22 | 22 | $organizer = tribe_get_organizer(); |
23 | 23 | |
24 | 24 | // Event Image |
25 | -echo tribe_event_featured_image( null, 'large' ); |
|
25 | +echo tribe_event_featured_image(null, 'large'); |
|
26 | 26 | ?> |
27 | 27 | |
28 | 28 | <div class="tribe-events-event-content"> |
29 | 29 | <!-- Event Title --> |
30 | - <?php do_action( 'tribe_events_before_the_event_title' ) ?> |
|
30 | + <?php do_action('tribe_events_before_the_event_title') ?> |
|
31 | 31 | <h2 class="tribe-events-list-event-title"> |
32 | - <a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title_attribute() ?>" rel="bookmark"> |
|
32 | + <a class="tribe-event-url" href="<?php echo esc_url(tribe_get_event_link()); ?>" title="<?php the_title_attribute() ?>" rel="bookmark"> |
|
33 | 33 | <?php the_title() ?> |
34 | 34 | </a> |
35 | 35 | |
36 | - <span class="label label-default"><?php esc_html_e( 'Featured', 'lsx' ) ?></span> |
|
36 | + <span class="label label-default"><?php esc_html_e('Featured', 'lsx') ?></span> |
|
37 | 37 | </h2> |
38 | - <?php do_action( 'tribe_events_after_the_event_title' ) ?> |
|
38 | + <?php do_action('tribe_events_after_the_event_title') ?> |
|
39 | 39 | |
40 | 40 | <!-- Event Meta --> |
41 | - <?php do_action( 'tribe_events_before_the_meta' ) ?> |
|
41 | + <?php do_action('tribe_events_before_the_meta') ?> |
|
42 | 42 | <div class="tribe-events-event-meta"> |
43 | - <div class="author <?php echo esc_attr( $has_venue_address ); ?>"> |
|
43 | + <div class="author <?php echo esc_attr($has_venue_address); ?>"> |
|
44 | 44 | |
45 | 45 | <!-- Schedule & Recurrence Details --> |
46 | 46 | <div class="tribe-event-schedule-details"> |
47 | 47 | <?php echo tribe_events_event_schedule_details() ?> |
48 | 48 | </div> |
49 | 49 | |
50 | - <?php if ( $venue_details ) : ?> |
|
50 | + <?php if ($venue_details) : ?> |
|
51 | 51 | <!-- Venue Display Info --> |
52 | 52 | <div class="tribe-events-venue-details"> |
53 | - <?php echo implode( ', ', $venue_details ); ?> |
|
53 | + <?php echo implode(', ', $venue_details); ?> |
|
54 | 54 | <?php |
55 | - if ( tribe_show_google_map_link() ) { |
|
55 | + if (tribe_show_google_map_link()) { |
|
56 | 56 | echo tribe_get_map_link_html(); |
57 | 57 | } |
58 | 58 | ?> |
@@ -61,26 +61,26 @@ discard block |
||
61 | 61 | |
62 | 62 | </div> |
63 | 63 | </div><!-- .tribe-events-event-meta --> |
64 | - <?php do_action( 'tribe_events_after_the_meta' ) ?> |
|
64 | + <?php do_action('tribe_events_after_the_meta') ?> |
|
65 | 65 | |
66 | 66 | <!-- Event Cost --> |
67 | - <?php if ( tribe_get_cost() ) : ?> |
|
67 | + <?php if (tribe_get_cost()) : ?> |
|
68 | 68 | <div class="tribe-events-event-cost featured-event"> |
69 | - <?php esc_html_e( 'Price:', 'lsx' ) ?> |
|
70 | - <span class="ticket-cost"><?php echo esc_html( tribe_get_cost( null, true ) ); ?></span> |
|
69 | + <?php esc_html_e('Price:', 'lsx') ?> |
|
70 | + <span class="ticket-cost"><?php echo esc_html(tribe_get_cost(null, true)); ?></span> |
|
71 | 71 | <?php |
72 | 72 | /** This action is documented in the-events-calendar/src/views/list/single-event.php */ |
73 | - do_action( 'tribe_events_inside_cost' ) |
|
73 | + do_action('tribe_events_inside_cost') |
|
74 | 74 | ?> |
75 | 75 | </div> |
76 | 76 | <?php endif; ?> |
77 | 77 | |
78 | 78 | <!-- Event Content --> |
79 | - <?php do_action( 'tribe_events_before_the_content' ) ?> |
|
79 | + <?php do_action('tribe_events_before_the_content') ?> |
|
80 | 80 | <div class="tribe-events-list-event-description tribe-events-content"> |
81 | - <?php echo tribe_events_get_the_excerpt( null, wp_kses_allowed_html( 'post' ) ); ?> |
|
82 | - <a href="<?php echo esc_url( tribe_get_event_link() ); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e( 'Find out more', 'lsx' ) ?></a> |
|
81 | + <?php echo tribe_events_get_the_excerpt(null, wp_kses_allowed_html('post')); ?> |
|
82 | + <a href="<?php echo esc_url(tribe_get_event_link()); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e('Find out more', 'lsx') ?></a> |
|
83 | 83 | </div><!-- .tribe-events-list-event-description --> |
84 | 84 | |
85 | - <?php do_action( 'tribe_events_after_the_content' ); ?> |
|
85 | + <?php do_action('tribe_events_after_the_content'); ?> |
|
86 | 86 | </div> |
@@ -10,30 +10,30 @@ discard block |
||
10 | 10 | <div class="row"> |
11 | 11 | <div class="col-md-6"> |
12 | 12 | <div class="box mailchimp"> |
13 | - <h2><?php esc_html_e( 'Newsletter', 'lsx' ); ?></h2> |
|
14 | - <p><?php esc_html_e( 'Subscribe to our mailing list.', 'lsx' ); ?></p> |
|
13 | + <h2><?php esc_html_e('Newsletter', 'lsx'); ?></h2> |
|
14 | + <p><?php esc_html_e('Subscribe to our mailing list.', 'lsx'); ?></p> |
|
15 | 15 | |
16 | 16 | <!-- Begin MailChimp Signup Form --> |
17 | 17 | <form action="//lsdev.us2.list-manage.com/subscribe/post?u=e50b2c5c82f4b42ea978af479&id=92c36218e5" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> |
18 | 18 | <div id="mc_embed_signup"> |
19 | 19 | <div id="mc_embed_signup_scroll"> |
20 | 20 | <div class="mc-field-group"> |
21 | - <label for="mce-EMAIL"><?php esc_html_e( 'Email Address', 'lsx' ); ?> <span class="asterisk">*</span></label> |
|
21 | + <label for="mce-EMAIL"><?php esc_html_e('Email Address', 'lsx'); ?> <span class="asterisk">*</span></label> |
|
22 | 22 | <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"> |
23 | 23 | </div> |
24 | 24 | <div class="mc-field-group"> |
25 | - <label for="mce-FNAME"><?php esc_html_e( 'First Name', 'lsx' ); ?> </label> |
|
25 | + <label for="mce-FNAME"><?php esc_html_e('First Name', 'lsx'); ?> </label> |
|
26 | 26 | <input type="text" value="" name="FNAME" class="" id="mce-FNAME"> |
27 | 27 | </div> |
28 | 28 | <div class="mc-field-group"> |
29 | - <label for="mce-LNAME"><?php esc_html_e( 'Last Name', 'lsx' ); ?> </label> |
|
29 | + <label for="mce-LNAME"><?php esc_html_e('Last Name', 'lsx'); ?> </label> |
|
30 | 30 | <input type="text" value="" name="LNAME" class="" id="mce-LNAME"> |
31 | 31 | </div> |
32 | 32 | </div> |
33 | 33 | <div style="position:absolute;left:-5000px;" aria-hidden="true"><input type="text" name="b_e50b2c5c82f4b42ea978af479_92c36218e5" tabindex="-1" value=""></div> |
34 | 34 | </div> |
35 | 35 | <div class="more-button"> |
36 | - <input type="submit" value="<?php esc_html_e( 'Subscribe', 'lsx' ); ?>" name="subscribe" class="button button-primary"> |
|
36 | + <input type="submit" value="<?php esc_html_e('Subscribe', 'lsx'); ?>" name="subscribe" class="button button-primary"> |
|
37 | 37 | </div> |
38 | 38 | </form> |
39 | 39 | <!--End mc_embed_signup--> |
@@ -42,13 +42,13 @@ discard block |
||
42 | 42 | |
43 | 43 | <div class="col-md-6"> |
44 | 44 | <div class="box suggest"> |
45 | - <h2><?php esc_html_e( 'Enjoying LSX?', 'lsx' ); ?></h2> |
|
45 | + <h2><?php esc_html_e('Enjoying LSX?', 'lsx'); ?></h2> |
|
46 | 46 | |
47 | 47 | <p> |
48 | 48 | <?php |
49 | 49 | printf( |
50 | 50 | /* Translators: 1: HTML open tag link, 2: HTML close tag link */ |
51 | - esc_html__( 'Why not %1$sleave a review%2$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx' ), |
|
51 | + esc_html__('Why not %1$sleave a review%2$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx'), |
|
52 | 52 | '<a href="https://wordpress.org/themes/lsx" target="_blank rel="noopener noreferrer">', |
53 | 53 | '</a>' |
54 | 54 | ); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | <?php lsx_content_wrap_before(); ?> |
14 | 14 | |
15 | -<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
15 | +<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
16 | 16 | |
17 | 17 | <?php lsx_content_before(); ?> |
18 | 18 | |
@@ -20,9 +20,9 @@ discard block |
||
20 | 20 | |
21 | 21 | <?php lsx_content_top(); ?> |
22 | 22 | |
23 | - <?php if ( have_posts() ) : ?> |
|
23 | + <?php if (have_posts()) : ?> |
|
24 | 24 | |
25 | - <?php while ( have_posts() ) : the_post(); ?> |
|
25 | + <?php while (have_posts()) : the_post(); ?> |
|
26 | 26 | |
27 | 27 | <?php lsx_entry_before(); ?> |
28 | 28 | |
@@ -55,6 +55,6 @@ discard block |
||
55 | 55 | |
56 | 56 | <?php lsx_content_wrap_after(); ?> |
57 | 57 | |
58 | -<?php get_sidebar( 'sitemap' ); ?> |
|
58 | +<?php get_sidebar('sitemap'); ?> |
|
59 | 59 | |
60 | 60 | <?php get_footer(); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | <?php lsx_content_wrap_before(); ?> |
14 | 14 | |
15 | -<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
15 | +<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
16 | 16 | |
17 | 17 | <?php lsx_content_before(); ?> |
18 | 18 | |
@@ -20,9 +20,9 @@ discard block |
||
20 | 20 | |
21 | 21 | <?php lsx_content_top(); ?> |
22 | 22 | |
23 | - <?php if ( have_posts() ) : ?> |
|
23 | + <?php if (have_posts()) : ?> |
|
24 | 24 | |
25 | - <?php while ( have_posts() ) : the_post(); ?> |
|
25 | + <?php while (have_posts()) : the_post(); ?> |
|
26 | 26 | |
27 | 27 | <?php lsx_entry_before(); ?> |
28 | 28 | |
@@ -31,25 +31,25 @@ discard block |
||
31 | 31 | <?php lsx_entry_top(); ?> |
32 | 32 | |
33 | 33 | <div class="entry-content"> |
34 | - <h2><?php esc_html_e( 'The Last 30 Posts', 'lsx' ); ?></h2> |
|
34 | + <h2><?php esc_html_e('The Last 30 Posts', 'lsx'); ?></h2> |
|
35 | 35 | |
36 | 36 | <ul> |
37 | 37 | <?php |
38 | - $loop = new WP_Query( array( |
|
38 | + $loop = new WP_Query(array( |
|
39 | 39 | 'posts_per_page' => 30, |
40 | - ) ); |
|
40 | + )); |
|
41 | 41 | ?> |
42 | 42 | |
43 | - <?php if ( $loop->have_posts() ) : ?> |
|
43 | + <?php if ($loop->have_posts()) : ?> |
|
44 | 44 | |
45 | - <?php while ( $loop->have_posts() ) : ?> |
|
45 | + <?php while ($loop->have_posts()) : ?> |
|
46 | 46 | |
47 | 47 | <?php |
48 | 48 | $loop->the_post(); |
49 | 49 | $loop->is_home = false; |
50 | 50 | ?> |
51 | 51 | |
52 | - <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo esc_html( $post->comment_count ); ?> <?php esc_html_e( 'comments', 'lsx' ); ?></li> |
|
52 | + <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time(get_option('date_format')); ?> - <?php echo esc_html($post->comment_count); ?> <?php esc_html_e('comments', 'lsx'); ?></li> |
|
53 | 53 | |
54 | 54 | <?php endwhile; ?> |
55 | 55 | |
@@ -58,16 +58,16 @@ discard block |
||
58 | 58 | <?php wp_reset_postdata(); ?> |
59 | 59 | </ul> |
60 | 60 | |
61 | - <h2><?php esc_html_e( 'Categories', 'lsx' ); ?></h2> |
|
61 | + <h2><?php esc_html_e('Categories', 'lsx'); ?></h2> |
|
62 | 62 | |
63 | 63 | <ul> |
64 | - <?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?> |
|
64 | + <?php wp_list_categories('title_li=&hierarchical=0&show_count=1'); ?> |
|
65 | 65 | </ul> |
66 | 66 | |
67 | - <h2><?php esc_html_e( 'Monthly Archives', 'lsx' ); ?></h2> |
|
67 | + <h2><?php esc_html_e('Monthly Archives', 'lsx'); ?></h2> |
|
68 | 68 | |
69 | 69 | <ul> |
70 | - <?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?> |
|
70 | + <?php wp_get_archives('type=monthly&show_post_count=1'); ?> |
|
71 | 71 | </ul> |
72 | 72 | </div><!-- .entry-content --> |
73 | 73 |
@@ -16,12 +16,12 @@ |
||
16 | 16 | <?php |
17 | 17 | the_content(); |
18 | 18 | |
19 | - wp_link_pages( array( |
|
19 | + wp_link_pages(array( |
|
20 | 20 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
21 | 21 | 'after' => '</div></div>', |
22 | 22 | 'link_before' => '<span>', |
23 | 23 | 'link_after' => '</span>', |
24 | - ) ); |
|
24 | + )); |
|
25 | 25 | ?> |
26 | 26 | </div><!-- .entry-content --> |
27 | 27 |
@@ -24,31 +24,31 @@ |
||
24 | 24 | <?php |
25 | 25 | the_content(); |
26 | 26 | |
27 | - wp_link_pages( array( |
|
27 | + wp_link_pages(array( |
|
28 | 28 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
29 | 29 | 'after' => '</div></div>', |
30 | 30 | 'link_before' => '<span>', |
31 | 31 | 'link_after' => '</span>', |
32 | - ) ); |
|
32 | + )); |
|
33 | 33 | ?> |
34 | 34 | </div><!-- .entry-content --> |
35 | 35 | |
36 | 36 | <footer class="footer-meta clearfix"> |
37 | - <?php if ( has_tag() || class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?> |
|
37 | + <?php if (has_tag() || class_exists('LSX_Sharing') || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?> |
|
38 | 38 | <div class="post-tags-wrapper"> |
39 | 39 | <?php lsx_content_post_tags(); ?> |
40 | 40 | |
41 | 41 | <?php |
42 | - if ( class_exists( 'LSX_Sharing' ) ) { |
|
42 | + if (class_exists('LSX_Sharing')) { |
|
43 | 43 | lsx_content_sharing(); |
44 | 44 | } else { |
45 | - if ( function_exists( 'sharing_display' ) ) { |
|
46 | - sharing_display( '', true ); |
|
45 | + if (function_exists('sharing_display')) { |
|
46 | + sharing_display('', true); |
|
47 | 47 | } |
48 | 48 | |
49 | - if ( class_exists( 'Jetpack_Likes' ) ) { |
|
49 | + if (class_exists('Jetpack_Likes')) { |
|
50 | 50 | $custom_likes = new Jetpack_Likes; |
51 | - echo wp_kses_post( $custom_likes->post_likes( '' ) ); |
|
51 | + echo wp_kses_post($custom_likes->post_likes('')); |
|
52 | 52 | } |
53 | 53 | } |
54 | 54 | ?> |
@@ -16,12 +16,12 @@ |
||
16 | 16 | <?php |
17 | 17 | the_content(); |
18 | 18 | |
19 | - wp_link_pages( array( |
|
19 | + wp_link_pages(array( |
|
20 | 20 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
21 | 21 | 'after' => '</div></div>', |
22 | 22 | 'link_before' => '<span>', |
23 | 23 | 'link_after' => '</span>', |
24 | - ) ); |
|
24 | + )); |
|
25 | 25 | ?> |
26 | 26 | </div><!-- .entry-content --> |
27 | 27 |