File "list.php"
Full Path: /home/romayxjt/public_html/wp-content/plugins/the-events-calendar/src/views/v2/components/subscribe-links/list.php
File size: 1.51 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Component: Subscribe To Calendar List
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe/events/v2/components/subscribe-links/list.php
*
* See more documentation about our views templating system.
*
* @link http://evnt.is/1aiy
*
* @version 5.12.0
*
* @var array<Tribe\Events\Views\V2\iCalendar\Links\Link_Abstract> $items Array containing subscribe/export objects.
*
*/
if ( empty( $items ) ) {
return;
}
?>
<div class="tribe-events-c-subscribe-dropdown__container">
<div class="tribe-events-c-subscribe-dropdown">
<div class="tribe-common-c-btn-border tribe-events-c-subscribe-dropdown__button">
<button
class="tribe-events-c-subscribe-dropdown__button-text tribe-common-c-btn--clear"
aria-expanded="false"
aria-controls="tribe-events-subscribe-dropdown-content"
aria-label="<?php esc_attr__( 'View links to add events to your calendar', 'the-events-calendar' ); ?>"
>
<?php echo esc_html__( 'Subscribe to calendar', 'the-events-calendar' ); ?>
</button>
<?php $this->template( 'components/icons/caret-down', [ 'classes' => [ 'tribe-events-c-subscribe-dropdown__button-icon' ] ] ); ?>
</div>
<div id="tribe-events-c-subscribe-dropdown-content" class="tribe-events-c-subscribe-dropdown__content">
<ul class="tribe-events-c-subscribe-dropdown__list">
<?php foreach ( $items as $item ) : ?>
<?php $this->template( 'components/subscribe-links/item', [ 'item' => $item ] ); ?>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>