Skip to content

Commit

Permalink
Release v4.2.0 (#25)
Browse files Browse the repository at this point in the history
* add logic to support venues without address
* tagging v4.2.0 for release
  • Loading branch information
mike-weiner authored Oct 11, 2022
1 parent 7cc3c15 commit d0957eb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Donate Link: https://paypal.me/michaelw13 <br>
Tags: events, customization, modern-tribe, override, template <br>
Requires at least: 5.0 <br>
Tested up to: 6.0 <br>
Stable tag: 4.1.0 <br>
Stable tag: 4.2.0 <br>
Requires PHP: 7.0.0 <br>
License: GPLv2 or later <br>
License URI: https://www.gnu.org/licenses/gpl-2.0.html <br>
Expand Down Expand Up @@ -144,6 +144,13 @@ As great as the block editor is it can cause issues, sometimes. For events that

## Changelog

### 4.2.0
* Released on October 11, 2022
* Fixed: Fixed a bug that kept the event venue name and location from displaying on venues without an address.
* Edited: `/tribe/events/month/calendar-body/day/calendar-events/calendar-event/tooltip/title.php`
* Edited: `plugin.php`
* Edited: `README.md`

### 4.1.0
* Released on September 23, 2022
* Fixed: Fixed a bug that caused the full street address not to be displayed even if the user had it set to display on the plugin's setting page.
Expand Down Expand Up @@ -385,6 +392,9 @@ As great as the block editor is it can cause issues, sometimes. For events that

## Upgrade Notice

### 4.2.0
This update contains another small bug fix. Several users reported that the location name and address would not display after upgrading to The Events Calendar v6.0+. This was caused by venues that were created without specifying a street address. Updating to version 4.2.0 of this plugin corrects that bug. Thank you to user [hakonknappen](https://wordpress.org/support/users/hakonknappen/) and [dcw4](https://wordpress.org/support/users/dcw4/) on the Wordpress.org support forum for [reporting the issue](https://wordpress.org/support/topic/the-venue-isnt-displayd-in-tooltip-after-upgrading-the-events-calendar/).

### 4.1.0
This update contains a small bug fix. There was a bug related to the full street address not displaying, even when you had it set to be displayed in our plugin's settings page. If you have any other issues after updating, please feel free to reach out and open a support ticket.

Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Add the event venue/location to the tooltip that is displayed on hover over in the month view of the calendar when using The Events Calendar or The Events Calendar Pro by Modern Tribe.
* Author: Michael Weiner
* Author URI: https://michaelweiner.org/
* Version: 4.1.0
* Version: 4.2.0
* License: GPL2+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,21 @@ class="tribe-events-calendar-month__calendar-event-tooltip-title-link tribe-comm
<span class= "deltec-tribe-events-location">

<?php
if ( tribe_address_exists( esc_url( $event->permalink ) ) ) {
$deltec_venue_name = tribe_get_venue( esc_url( $event->permalink ) );

$deltec_tooltip_message_and_venue_name = '<span class= "deltec-location-name-prefix">' . $deltec_tooltip_message . '</span><span class= "deltec-location-name"> ' . $deltec_venue_name . '</span><br>';
echo $deltec_tooltip_message_and_venue_name;
}
$deltec_venue_name = tribe_get_venue();

if ( !empty($deltec_venue_name) ) {
$deltec_tooltip_message_and_venue_name = '<span class= "deltec-location-name-prefix">' . $deltec_tooltip_message . '</span><span class= "deltec-location-name"> ' . $deltec_venue_name . '</span><br>';
echo $deltec_tooltip_message_and_venue_name;
}
?>

<?php if ($deltec_display_full_address == 1) {
$deltec_location_html = '<span class= "deltec-street-address">' . tribe_get_full_address() . '</span>';
echo $deltec_location_html;
} else {
$deltec_location_html = '';
}
<?php
if ( tribe_address_exists() == 1 && $deltec_display_full_address == 1 ) {
$deltec_location_html = '<span class= "deltec-street-address">' . tribe_get_full_address() . '</span>';
echo $deltec_location_html;
} else {
$deltec_location_html = '';
}
?>
</span>
</p>

0 comments on commit d0957eb

Please sign in to comment.