Changeset 2926015
- Timestamp:
- 06/14/2023 02:59:32 PM (3 years ago)
- Location:
- display-event-locations-tec
- Files:
-
- 8 added
- 4 deleted
- 12 edited
- 1 copied
-
tags/4.3.0 (copied) (copied from display-event-locations-tec/trunk)
-
tags/4.3.0/README.md (modified) (5 diffs)
-
tags/4.3.0/display-event-locations-tec.php (added)
-
tags/4.3.0/includes/settings-page/admin-menu.php (modified) (2 diffs)
-
tags/4.3.0/includes/settings-page/settings-callbacks.php (modified) (3 diffs)
-
tags/4.3.0/includes/settings-page/settings-page.php (modified) (4 diffs)
-
tags/4.3.0/includes/settings-page/settings-register.php (modified) (1 diff)
-
tags/4.3.0/includes/settings-page/settings-validate.php (modified) (2 diffs)
-
tags/4.3.0/plugin.php (deleted)
-
tags/4.3.0/tribe (deleted)
-
tags/4.3.0/tribe-templates (added)
-
tags/4.3.0/tribe-templates/month (added)
-
tags/4.3.0/tribe-templates/month/tooltip-venue.php (added)
-
trunk/README.md (modified) (5 diffs)
-
trunk/display-event-locations-tec.php (added)
-
trunk/includes/settings-page/admin-menu.php (modified) (2 diffs)
-
trunk/includes/settings-page/settings-callbacks.php (modified) (3 diffs)
-
trunk/includes/settings-page/settings-page.php (modified) (4 diffs)
-
trunk/includes/settings-page/settings-register.php (modified) (1 diff)
-
trunk/includes/settings-page/settings-validate.php (modified) (2 diffs)
-
trunk/plugin.php (deleted)
-
trunk/tribe (deleted)
-
trunk/tribe-templates (added)
-
trunk/tribe-templates/month (added)
-
trunk/tribe-templates/month/tooltip-venue.php (added)
Legend:
- Unmodified
- Added
- Removed
-
display-event-locations-tec/tags/4.3.0/README.md
r2883828 r2926015 3 3 Donate Link: https://paypal.me/michaelw13 4 4 Tags: events, customization, modern-tribe, override, template 5 Requires at least: 5.0 5 Requires at least: 5.0.0 6 6 Tested up to: 6.2.0 7 Stable tag: 4. 2.07 Stable tag: 4.3.0 8 8 Requires PHP: 7.0.0 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 This plugin works with The Events Calendar by Modern Tribe. It changes the popup on the month view to include the event's location within the popup.12 This plugin works with The Events Calendar by Modern Tribe. It adds an event's location information to the tooltip on the monthly calendar view. 13 13 14 14 == Description == … … 46 46 First, make sure that the plugin 'Display Event Location for The Events Calendar' is installed and activated on your website. To check this, click on the `Plugins` option from the left-hand administration sidebar in WordPress. Once the page loads, make sure `Display Event Location for The Events Calendar` is activated. Then try viewing your calendar again to see if the tooltip now displays the location of your events. 47 47 48 If the `Display Event Location for The Events Calendar` plugin is activated and the tooltip still does not show the location of events in your calendar, try navigating your calendar to the next month or backwards to the previous month. Then try hovering over events from that month and see if the tooltip is displaying event locations. If you still do not see a location in the tooltip when hovering over events on the monthly calendar, edit the event in question and ensure that a Venue is selected. You can do this by selecting `Events > Venues > Add New` from your WordPress administration area. Additional instructions for creating venues can be found here: [https://theeventscalendar.com/knowledgebase/k/venue-and-organizer-pages/](https://theeventscalendar.com/knowledgebase/k/venue-and-organizer-pages/) 48 If the `Display Event Location for The Events Calendar` plugin is activated and the tooltip still does not show the location of events in your calendar, try navigating your calendar to the next month or backwards to the previous month. Then try hovering over events from that month and see if the tooltip is displaying event locations. 49 50 If you still do not see a location in the tooltip when hovering over events on the monthly calendar, edit the event in question and ensure that a venue is selected. You can do this by selecting `Events > Venues > Add New` from your WordPress administration area. Additional instructions for creating venues can be found here: [https://theeventscalendar.com/knowledgebase/k/venue-and-organizer-pages/](https://theeventscalendar.com/knowledgebase/k/venue-and-organizer-pages/) 49 51 50 52 If you still aren't seeing the location displayed within the tooltip, you can also try viewing your calendar in a different browser or try clearing your browser's cache and then viewing your calendar again. It is common that the monthly calendar view gets cached in your browser or by your website's hosting service. A clearing of all website and server cache fixes most issues. … … 104 106 = Will this plugin work on both the legacy and v2 calendar views? = 105 107 106 No. As of version `4.0.0` , this plugin modifies***only*** the the new calendar views (v2 views) introduced with The Events Calendar 5.0+ and The Events Calendar Pro 5.0+.108 No. As of version `4.0.0` of this plugin, ***only*** the the new calendar views (v2 views) introduced with The Events Calendar 5.0+ and The Events Calendar Pro 5.0+. 107 109 108 110 == Screenshots== … … 115 117 116 118 == Changelog == 119 120 = 4.3.0 = 121 * Released on Wednesday, June 14, 2023 122 * Added: DELTEC custom templates for The Events Calendar are now found in `/tribe-templates/`. 123 * Added: The custom DELTEC tooltip template now uses a WordPress action to inject the event's venue information into the tooltip that is displayed when hovering over an event on the monthly calendar view. This work creates a clear path forward for future template customizations. 124 * Added: The WordPress Plugin Repository listing for this plugin now features the `Community` tag. 125 * Added: The plugin `README` includes a simpler description on the plugin's functionality and improved clarity to both the installation instructions and the plugin FAQs. All in an effort to make things clearer and less overwhelming to new users. 126 * Added: The logic for the custom tooltip template has been moved into `/tribe-templates/month/tooltip-venue.php` and no longer relies on the title template. This decouples the plugin's custom tooltip modification from changes that the developers of The Events Calendar might make to the title portion of the tooltip. 127 * Fixed: Code throughout the plugin source code was cleaned and simplified for improved clarity and performance. 128 * Removed: DELTEC will no longer look in your active child theme for The Events Calendar templates since all of the custom templates are found within the source code for the DELTEC plugin only. 129 * Added: `tribe-templates/` 130 * Added: `tribe-templates/month/` 131 * Added: `tribe-templates/month/tooltip-venue.php` 132 * Renamed: `plugin.php` to `display-event-locations-tec.php` 133 * Edited: `display-event-locations-tec.php` 134 * Edited: `README.md` 135 * Edited: `/includes/settings-page/admin-menu.php` 136 * Edited: `/includes/settings-page/settings-callbacks.php` 137 * Edited: `/includes/settings-page/settings-page.php` 138 * Edited: `/includes/settings-page/settings-register.php` 139 * Edited: `/includes/settings-page/settings-validate.php` 140 * Removed: `/tribe/events/month/calendar-body/day/calendar-events/calendar-event/tooltip/title.php` 117 141 118 142 = 4.2.0 = … … 364 388 == Upgrade Notice == 365 389 390 = 4.3.0 = 391 Howdy! I've listed this update as a `minor` release, but there is a lot going on under the hood. The core functionality of this plugin has not changed. In fact, with this release of `v4.3.0` there are no new features or changes that you should see on your end. With that being said, I've been doing a ton of work behind the scenes to clean the source code, simplify logic, and make small improvements in performance. For those that are interested in the technical details, those can be found in the changelog. Long story short, I'm working to make sure that this plugin functions correctly, is efficient, and that it is reliable for you. If you run into any issues with your update, please open a support ticket and I will work with you to resolve any issues. Take care! 392 366 393 = 4.2.0 = 367 394 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/). -
display-event-locations-tec/tags/4.3.0/includes/settings-page/admin-menu.php
r2256496 r2926015 1 1 <?php 2 2 3 /**3 /** 4 4 * Exit plugin if it is being accessed directly 5 5 */ … … 9 9 10 10 11 /**11 /** 12 12 * Add submenu page for 'Display Event Location for The Events Calendar' under the Settings tab 13 13 */ -
display-event-locations-tec/tags/4.3.0/includes/settings-page/settings-callbacks.php
r2330375 r2926015 1 1 <?php 2 2 3 /**3 /** 4 4 * Exit plugin if it is being accessed directly 5 5 */ … … 9 9 10 10 11 /**11 /** 12 12 * Callback function for tooltip settings section on the deltec settings page 13 13 * … … 39 39 40 40 41 /**41 /** 42 42 * Callback function for the display-full-address field on the deltec settings page 43 43 * 44 * @see deltec_register_settings 45 * /includes/settings-register.php 44 * @see deltec_register_settings() located at /includes/settings-register.php 46 45 */ 47 46 function deltec_callback_show_full_address_checkbox($args) { -
display-event-locations-tec/tags/4.3.0/includes/settings-page/settings-page.php
r2330375 r2926015 9 9 10 10 11 /**11 /** 12 12 * Add items to the Display Event Location for The Events Calendar settings page 13 13 */ … … 15 15 // Check to make sure the user has access to the page 16 16 if (!current_user_can('manage_options')) { 17 return; // If they do not have the needed permissions to view this page -> return nothing17 return; 18 18 } 19 19 ?> … … 23 23 <form action="options.php" method="post"> 24 24 <?php 25 //Output Se curityFields25 //Output Settings Fields 26 26 settings_fields( 'deltec_options'); 27 27 … … 41 41 <strong><?php $deltec_options = get_option('deltec_options'); $tooltip_message = $deltec_options['pre-venue-message']; echo $tooltip_message ?> </strong>Event Location Name<br /> 42 42 <?php 43 44 // If the checkbox is not set or not checked -> assign $options a value of 045 // If the checkbox is set -> assign $options a value of 146 43 $deltec_checkbox_option = empty(get_option('deltec_options')['display-full-address']) ? 0 : 1; 47 44 48 // If the user is showing the full address, display this within the tooltip preview as well49 45 if ($deltec_checkbox_option == 1) { 50 46 $deltec_html = '<strong>Fake Address 1234<br /> Fake City, Fake State Zip Code <br /> Country</strong>'; -
display-event-locations-tec/tags/4.3.0/includes/settings-page/settings-register.php
r2330375 r2926015 9 9 10 10 11 /**11 /** 12 12 * Register settings for the deltec_settings_page 13 13 */ -
display-event-locations-tec/tags/4.3.0/includes/settings-page/settings-validate.php
r2330375 r2926015 1 1 <?php 2 2 3 /**3 /** 4 4 * Exit file if it is being accessed directly 5 5 */ … … 9 9 10 10 11 /**11 /** 12 12 * Validate & Clean settings fields on the deltec settings page 13 13 * -
display-event-locations-tec/trunk/README.md
r2883828 r2926015 3 3 Donate Link: https://paypal.me/michaelw13 4 4 Tags: events, customization, modern-tribe, override, template 5 Requires at least: 5.0 5 Requires at least: 5.0.0 6 6 Tested up to: 6.2.0 7 Stable tag: 4. 2.07 Stable tag: 4.3.0 8 8 Requires PHP: 7.0.0 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 This plugin works with The Events Calendar by Modern Tribe. It changes the popup on the month view to include the event's location within the popup.12 This plugin works with The Events Calendar by Modern Tribe. It adds an event's location information to the tooltip on the monthly calendar view. 13 13 14 14 == Description == … … 46 46 First, make sure that the plugin 'Display Event Location for The Events Calendar' is installed and activated on your website. To check this, click on the `Plugins` option from the left-hand administration sidebar in WordPress. Once the page loads, make sure `Display Event Location for The Events Calendar` is activated. Then try viewing your calendar again to see if the tooltip now displays the location of your events. 47 47 48 If the `Display Event Location for The Events Calendar` plugin is activated and the tooltip still does not show the location of events in your calendar, try navigating your calendar to the next month or backwards to the previous month. Then try hovering over events from that month and see if the tooltip is displaying event locations. If you still do not see a location in the tooltip when hovering over events on the monthly calendar, edit the event in question and ensure that a Venue is selected. You can do this by selecting `Events > Venues > Add New` from your WordPress administration area. Additional instructions for creating venues can be found here: [https://theeventscalendar.com/knowledgebase/k/venue-and-organizer-pages/](https://theeventscalendar.com/knowledgebase/k/venue-and-organizer-pages/) 48 If the `Display Event Location for The Events Calendar` plugin is activated and the tooltip still does not show the location of events in your calendar, try navigating your calendar to the next month or backwards to the previous month. Then try hovering over events from that month and see if the tooltip is displaying event locations. 49 50 If you still do not see a location in the tooltip when hovering over events on the monthly calendar, edit the event in question and ensure that a venue is selected. You can do this by selecting `Events > Venues > Add New` from your WordPress administration area. Additional instructions for creating venues can be found here: [https://theeventscalendar.com/knowledgebase/k/venue-and-organizer-pages/](https://theeventscalendar.com/knowledgebase/k/venue-and-organizer-pages/) 49 51 50 52 If you still aren't seeing the location displayed within the tooltip, you can also try viewing your calendar in a different browser or try clearing your browser's cache and then viewing your calendar again. It is common that the monthly calendar view gets cached in your browser or by your website's hosting service. A clearing of all website and server cache fixes most issues. … … 104 106 = Will this plugin work on both the legacy and v2 calendar views? = 105 107 106 No. As of version `4.0.0` , this plugin modifies***only*** the the new calendar views (v2 views) introduced with The Events Calendar 5.0+ and The Events Calendar Pro 5.0+.108 No. As of version `4.0.0` of this plugin, ***only*** the the new calendar views (v2 views) introduced with The Events Calendar 5.0+ and The Events Calendar Pro 5.0+. 107 109 108 110 == Screenshots== … … 115 117 116 118 == Changelog == 119 120 = 4.3.0 = 121 * Released on Wednesday, June 14, 2023 122 * Added: DELTEC custom templates for The Events Calendar are now found in `/tribe-templates/`. 123 * Added: The custom DELTEC tooltip template now uses a WordPress action to inject the event's venue information into the tooltip that is displayed when hovering over an event on the monthly calendar view. This work creates a clear path forward for future template customizations. 124 * Added: The WordPress Plugin Repository listing for this plugin now features the `Community` tag. 125 * Added: The plugin `README` includes a simpler description on the plugin's functionality and improved clarity to both the installation instructions and the plugin FAQs. All in an effort to make things clearer and less overwhelming to new users. 126 * Added: The logic for the custom tooltip template has been moved into `/tribe-templates/month/tooltip-venue.php` and no longer relies on the title template. This decouples the plugin's custom tooltip modification from changes that the developers of The Events Calendar might make to the title portion of the tooltip. 127 * Fixed: Code throughout the plugin source code was cleaned and simplified for improved clarity and performance. 128 * Removed: DELTEC will no longer look in your active child theme for The Events Calendar templates since all of the custom templates are found within the source code for the DELTEC plugin only. 129 * Added: `tribe-templates/` 130 * Added: `tribe-templates/month/` 131 * Added: `tribe-templates/month/tooltip-venue.php` 132 * Renamed: `plugin.php` to `display-event-locations-tec.php` 133 * Edited: `display-event-locations-tec.php` 134 * Edited: `README.md` 135 * Edited: `/includes/settings-page/admin-menu.php` 136 * Edited: `/includes/settings-page/settings-callbacks.php` 137 * Edited: `/includes/settings-page/settings-page.php` 138 * Edited: `/includes/settings-page/settings-register.php` 139 * Edited: `/includes/settings-page/settings-validate.php` 140 * Removed: `/tribe/events/month/calendar-body/day/calendar-events/calendar-event/tooltip/title.php` 117 141 118 142 = 4.2.0 = … … 364 388 == Upgrade Notice == 365 389 390 = 4.3.0 = 391 Howdy! I've listed this update as a `minor` release, but there is a lot going on under the hood. The core functionality of this plugin has not changed. In fact, with this release of `v4.3.0` there are no new features or changes that you should see on your end. With that being said, I've been doing a ton of work behind the scenes to clean the source code, simplify logic, and make small improvements in performance. For those that are interested in the technical details, those can be found in the changelog. Long story short, I'm working to make sure that this plugin functions correctly, is efficient, and that it is reliable for you. If you run into any issues with your update, please open a support ticket and I will work with you to resolve any issues. Take care! 392 366 393 = 4.2.0 = 367 394 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/). -
display-event-locations-tec/trunk/includes/settings-page/admin-menu.php
r2256496 r2926015 1 1 <?php 2 2 3 /**3 /** 4 4 * Exit plugin if it is being accessed directly 5 5 */ … … 9 9 10 10 11 /**11 /** 12 12 * Add submenu page for 'Display Event Location for The Events Calendar' under the Settings tab 13 13 */ -
display-event-locations-tec/trunk/includes/settings-page/settings-callbacks.php
r2330375 r2926015 1 1 <?php 2 2 3 /**3 /** 4 4 * Exit plugin if it is being accessed directly 5 5 */ … … 9 9 10 10 11 /**11 /** 12 12 * Callback function for tooltip settings section on the deltec settings page 13 13 * … … 39 39 40 40 41 /**41 /** 42 42 * Callback function for the display-full-address field on the deltec settings page 43 43 * 44 * @see deltec_register_settings 45 * /includes/settings-register.php 44 * @see deltec_register_settings() located at /includes/settings-register.php 46 45 */ 47 46 function deltec_callback_show_full_address_checkbox($args) { -
display-event-locations-tec/trunk/includes/settings-page/settings-page.php
r2330375 r2926015 9 9 10 10 11 /**11 /** 12 12 * Add items to the Display Event Location for The Events Calendar settings page 13 13 */ … … 15 15 // Check to make sure the user has access to the page 16 16 if (!current_user_can('manage_options')) { 17 return; // If they do not have the needed permissions to view this page -> return nothing17 return; 18 18 } 19 19 ?> … … 23 23 <form action="options.php" method="post"> 24 24 <?php 25 //Output Se curityFields25 //Output Settings Fields 26 26 settings_fields( 'deltec_options'); 27 27 … … 41 41 <strong><?php $deltec_options = get_option('deltec_options'); $tooltip_message = $deltec_options['pre-venue-message']; echo $tooltip_message ?> </strong>Event Location Name<br /> 42 42 <?php 43 44 // If the checkbox is not set or not checked -> assign $options a value of 045 // If the checkbox is set -> assign $options a value of 146 43 $deltec_checkbox_option = empty(get_option('deltec_options')['display-full-address']) ? 0 : 1; 47 44 48 // If the user is showing the full address, display this within the tooltip preview as well49 45 if ($deltec_checkbox_option == 1) { 50 46 $deltec_html = '<strong>Fake Address 1234<br /> Fake City, Fake State Zip Code <br /> Country</strong>'; -
display-event-locations-tec/trunk/includes/settings-page/settings-register.php
r2330375 r2926015 9 9 10 10 11 /**11 /** 12 12 * Register settings for the deltec_settings_page 13 13 */ -
display-event-locations-tec/trunk/includes/settings-page/settings-validate.php
r2330375 r2926015 1 1 <?php 2 2 3 /**3 /** 4 4 * Exit file if it is being accessed directly 5 5 */ … … 9 9 10 10 11 /**11 /** 12 12 * Validate & Clean settings fields on the deltec settings page 13 13 *
Note: See TracChangeset
for help on using the changeset viewer.