Created
May 21, 2015 08:42
-
-
Save anonymous/cf0193db26af724a56a7 to your computer and use it in GitHub Desktop.
mobile.php from the events calendar wordpress plugin in views/month
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* Please see single-event.php in this directory for detailed instructions on how to use and modify these templates. | |
* | |
*/ | |
?> | |
<script type="text/html" id="tribe_tmpl_month_mobile_day_header"> | |
<div class="tribe-mobile-day" data-day="[[=date]]">[[ if(date_name.length) { ]] | |
<h3 class="tribe-mobile-day-heading"><?php _e( 'Events for', 'tribe-events-calendar' ); ?> <span>[[=raw date_name]]</span></h3>[[ } ]] | |
</div> | |
</script> | |
<script type="text/html" id="tribe_tmpl_month_mobile"> | |
<div class="tribe-events-mobile hentry vevent tribe-clearfix tribe-events-mobile-event-[[=eventId]][[ if(categoryClasses.length) { ]] [[= categoryClasses]][[ } ]]"> | |
<h4 class="summary"> | |
<a class="url" href="[[=permalink]]" title="[[=title]]" rel="bookmark">[[=title]]</a> | |
</h4> | |
<div class="tribe-events-event-body"> | |
<div class="updated published time-details"> | |
<span class="date-start dtstart">[[=startTime]] </span> | |
[[ if(endTime.length) { ]] | |
-<span class="date-end dtend"> [[=endTime]]</span> | |
[[ } ]] | |
</div> | |
[[ if(imageSrc.length) { ]] | |
<div class="tribe-events-event-image"> | |
<a href="[[=permalink]]" title="[[=title]]"> | |
<img src="[[=imageSrc]]" alt="[[=title]]" title="[[=title]]"> | |
</a> | |
</div> | |
[[ } ]] | |
<div class="bildunterschrift"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></div> | |
[[ if(excerpt.length) { ]] | |
<p class="entry-summary description">[[=raw excerpt]]</p> | |
[[ } ]] | |
<a href="[[=permalink]]" class="tribe-events-read-more" rel="bookmark"><?php _e( 'Find out more »', 'tribe-events-calendar' ); ?></a> | |
</div> | |
</div> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment