Skip to content

Commit 6d7c910

Browse files
committed
tagging v3.3 for release
1 parent 972fda0 commit 6d7c910

File tree

7 files changed

+55
-30
lines changed

7 files changed

+55
-30
lines changed

README.md

+32-6
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Contributors: [vikings412](https://profiles.wordpress.org/vikings412/) <br>
1010
Donate Link: https://paypal.me/michaelw13 <br>
1111
Tags: events, customization, modern-tribe, override, template <br>
1212
Requires at least: 4.6 <br>
13-
Tested up to: 5.4.1 <br>
14-
Stable tag: 3.2 <br>
13+
Tested up to: 5.4.2 <br>
14+
Stable tag: 3.3 <br>
1515
Requires PHP: 5.6 <br>
1616
License: GPLv2 or later <br>
1717
License URI: https://www.gnu.org/licenses/gpl-2.0.html <br>
@@ -36,9 +36,9 @@ The plugin can be downloaded and installed right from your WordPress administrat
3636

3737
### From the Github Repository
3838

39-
Go to the [releases](https://github.com/mike-weiner/display-event-locations-tec/releases) section of the repository and download the `wordpress-display-event-locations-tec.zip` from the most recent release.
39+
Go to the [releases](https://github.com/mike-weiner/display-event-locations-tec/releases) section of the repository and download the `wordpress-[version]-display-event-locations-tec.zip` from the most recent release.
4040

41-
Once you have downloaded the `wordpress-display-event-locations-tec.zip` from the releases section of this repo sign into the backend of your WordPress website. From your WordPress administration panel, go to `Plugins > Add New` and click the gray `Upload Plugin` button at the top of the page. Select the `wordpress-display-event-locations-tec.zip` file to upload from your machine when prompted.
41+
Once you have downloaded the `wordpress-[version]-display-event-locations-tec.zip` from the releases section of this repo sign into the backend of your WordPress website. From your WordPress administration panel, go to `Plugins > Add New` and click the gray `Upload Plugin` button at the top of the page. Select the `wordpress-[version]-display-event-locations-tec.zip` file to upload from your machine when prompted.
4242

4343
WordPress will install the plugin. Once the installation is complete, you will be able to activate the plugin and begin using it! Enjoy!
4444

@@ -144,6 +144,30 @@ As great as the block editor is it can cause issues, sometimes. For events that
144144

145145
## Changelog
146146

147+
### 3.3
148+
* Released on June 24, 2020
149+
* Added: Tested up to tag changed to 5.4.2 as support with WordPress 5.4.2 has been confirmed
150+
* Added: Stable tag changed to 3.3 to reflect latest version
151+
* Added: Support with The Events Calendar 5.1.4 has been confirmed
152+
* Added: Support with The Events Calendar PRO 5.1.3 has been confirmed
153+
* Fixed: Removed excess HTML from `tooltip.php` in `/tribe-events/month/`
154+
* Fixed: New Author URI that will link out to my new personal website
155+
* Fixed: Clarified the description of `.deltec-tooltip-message` in the CSS classes area of the arbitrary section of the README
156+
* Fixed: Fixed the typo in admin warning that is displayed with The Events Calendar is not activated on the site
157+
* Fixed: Fixed typos in `plugin.php` file
158+
* Fixed: Fixed the typo in special thanks section of the README
159+
* Fixed: Fixed typos in previous upgrade notices within the README
160+
* Fixed: Fixed typos in the comments of `settings-callbacks.php` in `includes/settings-page/`
161+
* Fixed: Fixed typos in the comments of `settings-page.php` in `includes/settings-page/`
162+
* Fixed: Fixed typos in the comments of `settings-validate.php` in `includes/settings-page/`
163+
* Edited: `plugin.php`
164+
* Edited: `README.md`
165+
* Edited: `includes/settings-page/settings-callbacks.php`
166+
* Edited: `includes/settings-page/settings-page.php`
167+
* Edited: `includes/settings-page/settings-validate.php`
168+
* Edited: `/tribe/events/month/calendar-body/day/calendar-events/calendar-event/tooltip/title.php`
169+
* Edited: `/tribe-events/month/tooltip.php`
170+
147171
### 3.2
148172
* Released on May 13, 2020
149173
* Added: Stable tag updated to 3.2
@@ -247,7 +271,7 @@ As great as the block editor is it can cause issues, sometimes. For events that
247271
### 2.1
248272
* Released on January 8, 2020
249273
* Added: The event street address can now be displayed within the tooltip underneath the location name.
250-
* Added: Uninstallation Hook (Your settings for this plugin will now be deleted from the wp_ database when you uninstall this plugin.)
274+
* Added: Uninstall Hook (Your settings for this plugin will now be deleted from the wp_ database when you uninstall this plugin.)
251275
* Added: An additional line break has been added to featured event tooltips to make things more readable!
252276
* Added: Travis CI has been implemented to automatically check for any syntax and compatibility issues with modern and common versions of PHP.
253277
* Added: New screenshots of the plugin to show the new feature of being able to add the street address to the tooltip.
@@ -310,6 +334,9 @@ As great as the block editor is it can cause issues, sometimes. For events that
310334

311335
## Upgrade Notice
312336

337+
### 3.3
338+
Today's update continues quality of life improvements to help better your experience while also working to keep our footprint on your installation to a minimum. Unnecessary code has been removed. Typos continue to be fixed. Comments have been simplified. Documentation has been reworded for clarity. Updated developer contact information and URIs have been put into place. -- As always, if you experience any issues open a support ticket and I'll get you up and running. Have a great, productive day!
339+
313340
### 3.2
314341
Today's update brings a revamp of the CSS class structure for all information that this plugin adds to the tooltip in your monthly view! You can now control the stylization of all of the individual components that can be added to the tooltip to display your event's location and its street address (if enabled). You can find more detailed information about the new CSS class structure in the Arbitrary section on CSS Classes of the Github Repository[README](https://github.com/mike-weiner/display-event-locations-tec#css-classes). Support for WordPress 5.4.1 has also been confirmed in testing. As always, please let us know if you experience any issues!
315342

@@ -355,7 +382,6 @@ Initial release!
355382
* `.deltec-street-address` - A `span` element that surrounds the all elements of the street address for the event's venue/location (if enabled in Display Event Location for The Events Calendar settings area)
356383

357384
### Github Repository
358-
359385
The Github Repository can be found here: https://github.com/mike-weiner/display-event-locations-tec.
360386

361387
### References:

includes/settings-page/settings-callbacks.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function deltec_callback_pre_venue_message_text_field($args) {
3232
$deltec_prm_label = isset($args['label']) ? $args['label'] : '';
3333
$deltec_prm_value = isset($options[$deltec_prm_id]) ? sanitize_text_field($options[$deltec_prm_id]) : '';
3434

35-
// Eacho out the html for the input tag and the label that will be displayed for the 'Tooltip Message Before Venue/Location Name' text field
35+
// Echo out the html for the input tag and the label that will be displayed for the 'Tooltip Message Before Venue/Location Name' text field
3636
echo '<input id="deltec_options_'.$deltec_prm_id.'"name="deltec_options['.$deltec_prm_id.']" type="text" size="40" value="'.$deltec_prm_value.'"><br />';
3737
echo '<label for="deltec_options_'.$deltec_prm_id.'">'.$deltec_prm_label.'</label>';
3838
}
@@ -45,17 +45,17 @@ function deltec_callback_pre_venue_message_text_field($args) {
4545
* /includes/settings-register.php
4646
*/
4747
function deltec_callback_show_full_address_checkbox($args) {
48-
// Get the option for the check box to dispaly the full address from the Display Event Location for The Events Calendar settings page
48+
// Get the option for the check box to display the full address from the Display Event Location for The Events Calendar settings page
4949
$options = get_option('deltec_options');
5050

5151
// If the checkbox is not set or not checked -> assign $options a value of 0
52-
// If the chekcbox is set -> assign $options a value of 1
52+
// If the checkbox is set -> assign $options a value of 1
5353
$options = empty($options['display-full-address']) ? 0 : 1;
5454

5555
// Create an html checkbox and label to display value of the display full address deltec option
5656
$deltec_dfahtml = '<input type="checkbox" id="deltec_options_display_full_address" name="deltec_options[display-full-address]" value="1"' . checked( 1, $options, false ) . '/><br>';
5757
$deltec_dfahtml .= '<label for="deltec_options_display_full_address">Enable the full address to be displayed underneath the venue/location name within the tooltip.</label>';
5858

59-
// Eacho out the html for the input tag and the label that will be displayed for the 'Show Full Venue Address Inside Tooltip' checkbox
59+
// Echo out the html for the input tag and the label that will be displayed for the 'Show Full Venue Address Inside Tooltip' checkbox
6060
echo $deltec_dfahtml;
6161
}

includes/settings-page/settings-page.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function deltec_display_settings_page() {
4242
<?php
4343

4444
// If the checkbox is not set or not checked -> assign $options a value of 0
45-
// If the chekcbox is set -> assign $options a value of 1
45+
// If the checkbox is set -> assign $options a value of 1
4646
$deltec_checkbox_option = empty(get_option('deltec_options')['display-full-address']) ? 0 : 1;
4747

4848
// If the user is showing the full address, display this within the tooltip preview as well

includes/settings-page/settings-register.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function deltec_register_settings(){
3030
['id' => 'pre-venue-message', 'label' => "Enter the message/phrase that you would like to display before the event location name in the tooltip."] // Array that contains data for the callback function
3131
);
3232

33-
// Adds setting field for chekcbox to display full address or not inside of tooltip
33+
// Adds setting field for checkbox to display full address or not inside of tooltip
3434
add_settings_field (
3535
'display-full-address', // Setting ID
3636
'Show Full Venue Address Inside Tooltip', // Title of the setting displayed on the page

includes/settings-page/settings-validate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @see deltec_register_settings() located at /includes/settings-register.php
1515
*
16-
* @return string Returns a string containing the sanitized input from the 'Tooltip Message Before Venue/Location Name' textfield
16+
* @return string Returns a string containing the sanitized input from the 'Tooltip Message Before Venue/Location Name' text field
1717
*/
1818
function deltec_validate_options($input)
1919
{

plugin.php

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22
/**
33
* Plugin Name: Display Event Location for The Events Calendar
4-
* Plugin URI: https://thetechsurge.com/
4+
* Plugin URI: https://michaelweiner.org/
55
* 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.
66
* Author: Michael Weiner
7-
* Author URI: https://thetechsurge.com/
8-
* Version: 3.2
7+
* Author URI: https://michaelweiner.org/
8+
* Version: 3.3
99
* License: GPL2+
1010
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
1111
*/
@@ -15,7 +15,7 @@
1515
exit;
1616
}
1717

18-
// Call dependecies to other files for admin views
18+
// Call dependencies to other files for admin views
1919
if (is_admin()) {
2020
require_once plugin_dir_path(__FILE__) . 'includes/settings-page/admin-menu.php';
2121
require_once plugin_dir_path(__FILE__) . 'includes/settings-page/settings-page.php';
@@ -42,10 +42,10 @@ function deltec_tribe_custom_template_paths_legacy_views ( string $file, string
4242
// Variable to store complete path to plugin with trailing slash
4343
$deltec_base_plugin_path = trailingslashit( plugin_dir_path( __FILE__ ) );
4444

45-
// Variable to store commplete path to active theme with trailing slash
45+
// Variable to store complete path to active theme with trailing slash
4646
$deltec_active_theme_path = trailingslashit( get_stylesheet_directory() );
4747

48-
// Put custom temapltes in order of priority for legacy calendar views (up to The Events Calendar 4.9.14)
48+
// Put custom templates in order of priority for legacy calendar views (up to The Events Calendar 4.9.14)
4949
// Check this plugin for template overrides and then the current theme for template overrides for every template being loaded
5050
$deltec_template_paths_legacy = [
5151
'deltec_plugin_tec_legacy' => $deltec_base_plugin_path . 'tribe-events/' . $template,
@@ -93,7 +93,7 @@ function deltec_tribe_custom_template_paths_v2_views( $folders ) {
9393
// Variable to store complete path to plugin with trailing slash
9494
$deltec_base_plugin_path = trailingslashit( plugin_dir_path( __FILE__ ) );
9595

96-
// Variable to store commplete path to active theme with trailing slash
96+
// Variable to store complete path to active theme with trailing slash
9797
$deltec_active_theme_path = trailingslashit( get_stylesheet_directory() );
9898

9999
/*
@@ -127,18 +127,18 @@ function deltec_tribe_custom_template_paths_v2_views( $folders ) {
127127
function deltec_error_install_tec_plugin() {
128128
global $pagenow; // Get pagenow global variable
129129

130-
// Delcare a variable to store the url for TEC WP plugin directory listing to display within iframe
130+
// Declare a variable to store the url for TEC WP plugin directory listing to display within iframe
131131
$deltec_url = 'plugin-install.php?tab=plugin-information&plugin=the-events-calendar&TB_iframe=true';
132132

133133
// If the current page is the plugins page and the current user has administration privileges
134134
if ( $pagenow == 'plugins.php' && current_user_can( 'manage_options' ) ) {
135135

136-
// Display error message to user that is non-dissmissable
136+
// Display error message to user that is non-dismissible
137137
echo '<div class="error"><p>'
138138
.sprintf(
139139
'%1s <a href="%2s" class="thickbox" title="%3s">%4s</a>.',
140140

141-
esc_html__( 'Display Event Location for The Events Calendar requires The Events Claendar to function properly. Please, install and activate the latest version of', 'tribe-events-calendar' ),
141+
esc_html__( 'Display Event Location for The Events Calendar requires The Events Calendar to function properly. Please, install and activate the latest version of', 'tribe-events-calendar' ),
142142
esc_url( $deltec_url ),
143143
esc_html__( 'The Events Calendar', 'tribe-events-calendar' ),
144144
esc_html__( 'The Events Calendar', 'tribe-events-calendar' )
@@ -150,7 +150,7 @@ function deltec_error_install_tec_plugin() {
150150

151151

152152
/**
153-
* Check to determine if The Events Calendar pluin is activated anytime a plugin is activated or deactivated
153+
* Check to determine if The Events Calendar plugin is activated anytime a plugin is activated or deactivated
154154
*
155155
* @see deltec_error_install_tec_plugin()
156156
*/
@@ -178,14 +178,14 @@ function deltec_on_activate(){
178178
* Initialize default deltec_options to WP options database upon installation
179179
*/
180180
function deltec_on_uninstall() {
181-
// Remove deltec_options from the WP database upon uninstallation
181+
// Remove deltec_options from the WP database upon deletion
182182
delete_option('deltec_options');
183183
}
184184
register_uninstall_hook( __FILE__, 'deltec_on_uninstall' );
185185

186186

187187
/**
188-
* Initialize an array to store the deafult deltec_options for WP to use
188+
* Initialize an array to store the default deltec_options for WP to use
189189
*
190190
* @see deltec_on_activate()
191191
*/
@@ -265,11 +265,11 @@ function deltec_tribe_template_data_array ( $json, $event, $additional ){
265265
// Get the venue being hovered over
266266
$deltec_venue = tribe_get_venue_id($event);
267267

268-
// Check to make sure the current event has a venue set before adding data trying to retrive infromation about the venue
268+
// Check to make sure the current event has a venue set before adding data trying to retrieve information about the venue
269269
// If no venue is set, the unaltered json data will be returned
270270
$deltec_venue_is_set = isset($deltec_venue);
271271

272-
// If the venue exists get the inforation needed for the tooltip template override
272+
// If the venue exists get the information needed for the tooltip template override
273273
if ($deltec_venue_is_set) {
274274
$json['venue'] = $deltec_venue;
275275
$json['venue_link'] = tribe_get_venue_link($deltec_venue, false);

tribe/events/month/calendar-body/day/calendar-events/calendar-event/tooltip/title.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
class="tribe-events-calendar-month__calendar-event-tooltip-title-link tribe-common-anchor-thin"
3636
>
3737
<?php
38-
// phpcs:ignore
39-
echo $event->title;
38+
echo $event->title;
4039
?>
4140
</a>
4241
</h3>

0 commit comments

Comments
 (0)