Created
January 17, 2018 19:29
-
-
Save jentheo/49a164f0bc41ad10f6ce94f3fae70770 to your computer and use it in GitHub Desktop.
Make tooltip clickable in month view
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. | |
* | |
* Override this template in your own theme by creating a file at: | |
* | |
* [your-theme]/tribe-events/month/tooltip.php | |
* @version 4.4 | |
*/ | |
?> | |
<script type="text/html" id="tribe_tmpl_tooltip"> | |
<a href="[[=permalink]]"> | |
<div id="tribe-events-tooltip-[[=eventId]]" class="tribe-events-tooltip"> | |
<h4 class="entry-title summary">[[=raw title]]</h4> | |
<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> | |
</div> | |
</a> | |
</script> | |
<script type="text/html" id="tribe_tmpl_tooltip_featured"> | |
<a href="[[=permalink]]"> | |
<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> | |
[[ } ]] | |
<h4 class="entry-title summary">[[=raw title]]</h4> | |
<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> | |
</div> | |
</a> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment