lightspeeddevelopment /
lsx
This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include, or for example
via PHP's auto-loading mechanism.
| 1 | <?php |
||||
| 2 | /** |
||||
| 3 | * List View Single Event |
||||
| 4 | * This file contains one event in the list view |
||||
| 5 | * |
||||
| 6 | * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.php |
||||
| 7 | * |
||||
| 8 | * @version 4.6.3 |
||||
| 9 | * @package TribeEventsCalendarPro |
||||
| 10 | */ |
||||
| 11 | |||||
| 12 | if ( ! defined( 'ABSPATH' ) ) { |
||||
| 13 | die( '-1' ); |
||||
| 14 | } |
||||
| 15 | |||||
| 16 | // Setup an array of venue details for use later in the template. |
||||
| 17 | $venue_details = tribe_get_venue_details(); |
||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||
| 18 | |||||
| 19 | // The address string via tribe_get_venue_details will often be populated even when there's |
||||
| 20 | // no address, so let's get the address string on its own for a couple of checks below. |
||||
| 21 | $venue_address = tribe_get_address(); |
||||
|
0 ignored issues
–
show
The function
tribe_get_address was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 22 | |||||
| 23 | // Venue. |
||||
| 24 | $has_venue_address = ( ! empty( $venue_details['address'] ) ) ? ' location' : ''; |
||||
| 25 | |||||
| 26 | // Organizer. |
||||
| 27 | $organizer = tribe_get_organizer(); |
||||
|
0 ignored issues
–
show
The function
tribe_get_organizer was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 28 | |||||
| 29 | // Event Image. |
||||
| 30 | echo wp_kses_post( tribe_event_featured_image( null, 'medium' ) ); |
||||
|
0 ignored issues
–
show
The function
tribe_event_featured_image was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 31 | ?> |
||||
| 32 | |||||
| 33 | <div class="tribe-events-event-content"> |
||||
| 34 | <!-- Event Title --> |
||||
| 35 | <?php do_action( 'tribe_events_before_the_event_title' ); ?> |
||||
| 36 | <h2 class="tribe-events-list-event-title"> |
||||
| 37 | <a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"> |
||||
|
0 ignored issues
–
show
The function
tribe_get_event_link was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 38 | <?php the_title(); ?> |
||||
| 39 | </a> |
||||
| 40 | </h2> |
||||
| 41 | <?php do_action( 'tribe_events_after_the_event_title' ); ?> |
||||
| 42 | |||||
| 43 | <!-- Event Meta --> |
||||
| 44 | <?php do_action( 'tribe_events_before_the_meta' ); ?> |
||||
| 45 | <div class="tribe-events-event-meta"> |
||||
| 46 | <div class="author <?php echo esc_attr( $has_venue_address ); ?>"> |
||||
| 47 | |||||
| 48 | <!-- Schedule & Recurrence Details --> |
||||
| 49 | <div class="tribe-event-schedule-details"> |
||||
| 50 | <?php echo wp_kses_post( tribe_events_event_schedule_details() ); ?> |
||||
|
0 ignored issues
–
show
The function
tribe_events_event_schedule_details was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 51 | </div> |
||||
| 52 | |||||
| 53 | <?php if ( $venue_details ) : ?> |
||||
| 54 | <!-- Venue Display Info --> |
||||
| 55 | <div class="tribe-events-venue-details"> |
||||
| 56 | <?php |
||||
| 57 | $address_delimiter = empty( $venue_address ) ? ' ' : ', '; |
||||
| 58 | |||||
| 59 | // These details are already escaped in various ways earlier in the process. |
||||
| 60 | echo implode( $address_delimiter, $venue_details ); |
||||
|
0 ignored issues
–
show
|
|||||
| 61 | |||||
| 62 | if ( tribe_show_google_map_link() ) { |
||||
|
0 ignored issues
–
show
The function
tribe_show_google_map_link was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 63 | echo wp_kses_post( tribe_get_map_link_html() ); |
||||
|
0 ignored issues
–
show
The function
tribe_get_map_link_html was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 64 | } |
||||
| 65 | ?> |
||||
| 66 | </div> <!-- .tribe-events-venue-details --> |
||||
| 67 | <?php endif; ?> |
||||
| 68 | |||||
| 69 | </div> |
||||
| 70 | </div><!-- .tribe-events-event-meta --> |
||||
| 71 | |||||
| 72 | <!-- Event Cost --> |
||||
| 73 | <?php if ( tribe_get_cost() ) : ?> |
||||
|
0 ignored issues
–
show
The function
tribe_get_cost was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 74 | <div class="tribe-events-event-cost"> |
||||
| 75 | <?php esc_html_e( 'Price:', 'lsx' ); ?> |
||||
| 76 | <span class="ticket-cost"><?php echo tribe_get_cost( null, true ); ?></span> |
||||
|
0 ignored issues
–
show
|
|||||
| 77 | <?php |
||||
| 78 | /** |
||||
| 79 | * Runs after cost is displayed in list style views |
||||
| 80 | * |
||||
| 81 | * @since 4.5 |
||||
| 82 | */ |
||||
| 83 | do_action( 'tribe_events_inside_cost' ) |
||||
| 84 | ?> |
||||
| 85 | </div> |
||||
| 86 | <?php endif; ?> |
||||
| 87 | |||||
| 88 | <?php do_action( 'tribe_events_after_the_meta' ); ?> |
||||
| 89 | |||||
| 90 | <!-- Event Content --> |
||||
| 91 | <?php do_action( 'tribe_events_before_the_content' ); ?> |
||||
| 92 | <div class="tribe-events-list-event-description tribe-events-content description entry-summary"> |
||||
| 93 | <?php echo wp_kses_post( tribe_events_get_the_excerpt() ); ?> |
||||
|
0 ignored issues
–
show
The function
tribe_events_get_the_excerpt was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 94 | <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> |
||||
| 95 | </div><!-- .tribe-events-list-event-description --> |
||||
| 96 | |||||
| 97 | <?php do_action( 'tribe_events_after_the_content' ); ?> |
||||
| 98 | </div> |
||||
| 99 |