Skip to content

Instantly share code, notes, and snippets.

@michael-pratt
Created February 7, 2019 04:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-pratt/5b5a3be6a255f0c30a991bc1ee4557e2 to your computer and use it in GitHub Desktop.
Save michael-pratt/5b5a3be6a255f0c30a991bc1ee4557e2 to your computer and use it in GitHub Desktop.
customize-events-calendar-popup-tooltip-php
<?php
/**
* Please see single-event.php in this directory for detailed instructions on how to use and modify these templates.
*
* Override this template in your own theme by creating a file at:
*
* [your-theme]/tribe-events/month/tooltip.php
* @version 4.6.21
*/
?>
<script type="text/html" id="tribe_tmpl_tooltip">
<div id="tribe-events-tooltip-[[=eventId]]" class="tribe-events-tooltip">
<h3 class="entry-title summary">[[=raw title]] [[=price]]<\/h3>
<div class="tribe-events-event-body">
<div class="tribe-event-duration">
<abbr class="tribe-events-abbr tribe-event-date-start">[[=dateDisplay]] <\/abbr>
<\/div>
[[ if(imageTooltipSrc.length) { ]]
<div class="tribe-events-event-thumb">
<img src="[[=imageTooltipSrc]]" alt="[[=title]]" \/>
<\/div>
[[ } ]]
[[ if(excerpt.length) { ]]
<div class="tribe-event-description">[[=raw excerpt]]<\/div>
[[ } ]]
<span class="tribe-events-arrow"><\/span>
<div style="text-align: left" class="tribe-event-description"><p>[[=stock]]<\/p><\/div>
<div style="text-align: left"><p><a class="tribe-events-button" href="[[=link]]">Read More<\/a><\/p><\/div>
<\/div>
<\/div>
</script>
<script type="text/html" id="tribe_tmpl_tooltip_featured">
<div id="tribe-events-tooltip-[[=eventId]]" class="tribe-events-tooltip tribe-event-featured">
[[ if(imageTooltipSrc.length) { ]]
<div class="tribe-events-event-thumb">
<img src="[[=imageTooltipSrc]]" alt="[[=title]]" \/>
<\/div>
[[ } ]]
<h3 class="entry-title summary">[[=raw title]] [[=price]]<\/h3>
<div class="tribe-events-event-body">
<div class="tribe-event-duration">
<abbr class="tribe-events-abbr tribe-event-date-start">[[=dateDisplay]] <\/abbr>
<\/div>
[[ if(excerpt.length) { ]]
<div class="tribe-event-description">[[=raw excerpt]]<\/div>
[[ } ]]
<span class="tribe-events-arrow"><\/span>
<div style="text-align: left" class="tribe-event-description"><p>[[=stock]]<\/p><\/div>
<div style="text-align: left"><p><a class="tribe-events-button" href="[[=link]]">Read More<\/a><\/p><\/div>
<\/div>
<\/div>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment