Changeset 2526791
- Timestamp:
- 05/05/2021 05:16:54 PM (5 years ago)
- Location:
- hey-notify
- Files:
-
- 6 added
- 24 edited
- 1 copied
-
tags/1.4.0 (copied) (copied from hey-notify/trunk)
-
tags/1.4.0/assets/js/admin.js (modified) (3 diffs)
-
tags/1.4.0/hey-notify.php (modified) (4 diffs)
-
tags/1.4.0/images/services/microsoft_teams.png (added)
-
tags/1.4.0/includes/cpt.php (modified) (1 diff)
-
tags/1.4.0/includes/events/cpt/class-cpt-event.php (modified) (2 diffs)
-
tags/1.4.0/includes/events/page/class-page-event.php (modified) (2 diffs)
-
tags/1.4.0/includes/events/post/class-post-event.php (modified) (2 diffs)
-
tags/1.4.0/includes/fields.php (modified) (1 diff)
-
tags/1.4.0/includes/filters.php (modified) (3 diffs)
-
tags/1.4.0/includes/languages.php (added)
-
tags/1.4.0/includes/scripts.php (modified) (1 diff)
-
tags/1.4.0/includes/services/class-microsoft-teams.php (added)
-
tags/1.4.0/languages/hey-notify.pot (modified) (9 diffs)
-
tags/1.4.0/readme.md (modified) (1 diff)
-
tags/1.4.0/readme.txt (modified) (3 diffs)
-
trunk/assets/js/admin.js (modified) (3 diffs)
-
trunk/hey-notify.php (modified) (4 diffs)
-
trunk/images/services/microsoft_teams.png (added)
-
trunk/includes/cpt.php (modified) (1 diff)
-
trunk/includes/events/cpt/class-cpt-event.php (modified) (2 diffs)
-
trunk/includes/events/page/class-page-event.php (modified) (2 diffs)
-
trunk/includes/events/post/class-post-event.php (modified) (2 diffs)
-
trunk/includes/fields.php (modified) (1 diff)
-
trunk/includes/filters.php (modified) (3 diffs)
-
trunk/includes/languages.php (added)
-
trunk/includes/scripts.php (modified) (1 diff)
-
trunk/includes/services/class-microsoft-teams.php (added)
-
trunk/languages/hey-notify.pot (modified) (9 diffs)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hey-notify/tags/1.4.0/assets/js/admin.js
r2476609 r2526791 9 9 var originalText = e.target.innerHTML; 10 10 e.target.innerHTML = heynotify.messages.running; 11 e.target.classList.add("updating-message"); 11 12 e.target.setAttribute("disabled", ""); 12 13 … … 23 24 }), 24 25 }); 26 e.target.classList.remove("updating-message"); 25 27 if (200 === response.status) { 26 28 e.target.innerHTML = heynotify.messages.done; 29 e.target.classList.add("updated-message"); 27 30 } else { 28 31 e.target.innerHTML = heynotify.messages.error; … … 30 33 setTimeout(function () { 31 34 e.target.innerHTML = originalText; 35 e.target.classList.remove("updated-message"); 32 36 e.target.removeAttribute("disabled"); 33 37 }, 3000); -
hey-notify/tags/1.4.0/hey-notify.php
r2476609 r2526791 4 4 * Plugin URI: https://heynotifywp.com/ 5 5 * Description: Get notified when things happen in WordPress. 6 * Version: 1. 3.06 * Version: 1.4.0 7 7 * Author: FireTree Design, LLC <info@firetreedesign.com> 8 8 * Author URI: https://firetreedesign.com/ 9 9 * Text Domain: hey-notify 10 * Domain Path: /languages 10 11 * License: GPL-2.0+ 11 12 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 19 20 } 20 21 21 define( 'HEY_NOTIFY_VERSION', '1. 3.0' );22 define( 'HEY_NOTIFY_VERSION', '1.4.0' ); 22 23 define( 'HEY_NOTIFY_PLUGIN_FILE', __FILE__ ); 23 24 define( 'HEY_NOTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); … … 35 36 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/scripts.php'; 36 37 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/rest-api.php'; 38 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/languages.php'; 37 39 38 40 // Events. … … 47 49 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-slack.php'; 48 50 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-discord.php'; 51 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-microsoft-teams.php'; 49 52 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-email.php'; -
hey-notify/tags/1.4.0/includes/cpt.php
r2476609 r2526791 187 187 } 188 188 189 /** 190 * Render the add-ons page 191 * 192 * @return void 193 */ 189 194 function addons_page() { 190 195 ?> -
hey-notify/tags/1.4.0/includes/events/cpt/class-cpt-event.php
r2466792 r2526791 106 106 case "{$this->type}_draft": 107 107 add_action( 'auto-draft_to_draft', array( $hook, 'draft' ), 10, 1 ); 108 add_action( 'future_to_draft', array( $hook, 'draft' ), 10, 1 ); 109 add_action( 'new_to_draft', array( $hook, 'draft' ), 10, 1 ); 110 add_action( 'pending_to_draft', array( $hook, 'draft' ), 10, 1 ); 111 add_action( 'private_to_draft', array( $hook, 'draft' ), 10, 1 ); 112 add_action( 'publish_to_draft', array( $hook, 'draft' ), 10, 1 ); 113 add_action( 'trash_to_draft', array( $hook, 'draft' ), 10, 1 ); 108 114 break; 109 115 case "{$this->type}_published": … … 111 117 add_action( 'draft_to_publish', array( $hook, 'published' ), 10, 1 ); 112 118 add_action( 'future_to_publish', array( $hook, 'published' ), 10, 1 ); 119 add_action( 'new_to_publish', array( $hook, 'published' ), 10, 1 ); 113 120 add_action( 'pending_to_publish', array( $hook, 'published' ), 10, 1 ); 121 add_action( 'private_to_publish', array( $hook, 'published' ), 10, 1 ); 122 add_action( 'trash_to_publish', array( $hook, 'published' ), 10, 1 ); 114 123 break; 115 124 case "{$this->type}_scheduled": 116 125 add_action( 'auto-draft_to_future', array( $hook, 'scheduled' ), 10, 1 ); 117 126 add_action( 'draft_to_future', array( $hook, 'scheduled' ), 10, 1 ); 127 add_action( 'new_to_future', array( $hook, 'scheduled' ), 10, 1 ); 128 add_action( 'pending_to_future', array( $hook, 'scheduled' ), 10, 1 ); 129 add_action( 'private_to_future', array( $hook, 'scheduled' ), 10, 1 ); 130 add_action( 'publish_to_future', array( $hook, 'scheduled' ), 10, 1 ); 131 add_action( 'trash_to_future', array( $hook, 'scheduled' ), 10, 1 ); 118 132 break; 119 133 case "{$this->type}_pending": 120 134 add_action( 'auto-draft_to_pending', array( $hook, 'pending' ), 10, 1 ); 121 135 add_action( 'draft_to_pending', array( $hook, 'pending' ), 10, 1 ); 136 add_action( 'future_to_pending', array( $hook, 'pending' ), 10, 1 ); 137 add_action( 'new_to_pending', array( $hook, 'pending' ), 10, 1 ); 138 add_action( 'private_to_pending', array( $hook, 'pending' ), 10, 1 ); 139 add_action( 'publish_to_pending', array( $hook, 'pending' ), 10, 1 ); 140 add_action( 'trash_to_pending', array( $hook, 'pending' ), 10, 1 ); 122 141 break; 123 142 case "{$this->type}_updated": -
hey-notify/tags/1.4.0/includes/events/page/class-page-event.php
r2349284 r2526791 78 78 case 'page_draft': 79 79 add_action( 'auto-draft_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 80 add_action( 'future_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 81 add_action( 'new_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 82 add_action( 'pending_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 83 add_action( 'private_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 84 add_action( 'publish_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 85 add_action( 'trash_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 80 86 break; 81 87 case 'page_published': … … 83 89 add_action( 'draft_to_publish', array( $hook, 'page_published' ), 10, 1 ); 84 90 add_action( 'future_to_publish', array( $hook, 'page_published' ), 10, 1 ); 91 add_action( 'new_to_publish', array( $hook, 'page_published' ), 10, 1 ); 85 92 add_action( 'pending_to_publish', array( $hook, 'page_published' ), 10, 1 ); 93 add_action( 'private_to_publish', array( $hook, 'page_published' ), 10, 1 ); 94 add_action( 'trash_to_publish', array( $hook, 'page_published' ), 10, 1 ); 86 95 break; 87 96 case 'page_scheduled': 88 97 add_action( 'auto-draft_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 89 98 add_action( 'draft_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 99 add_action( 'new_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 100 add_action( 'pending_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 101 add_action( 'private_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 102 add_action( 'publish_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 103 add_action( 'trash_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 90 104 break; 91 105 case 'page_pending': 92 106 add_action( 'auto-draft_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 93 107 add_action( 'draft_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 108 add_action( 'future_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 109 add_action( 'new_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 110 add_action( 'private_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 111 add_action( 'publish_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 112 add_action( 'trash_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 94 113 break; 95 114 case 'page_updated': -
hey-notify/tags/1.4.0/includes/events/post/class-post-event.php
r2349284 r2526791 79 79 case 'post_draft': 80 80 add_action( 'auto-draft_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 81 add_action( 'future_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 82 add_action( 'new_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 83 add_action( 'pending_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 84 add_action( 'private_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 85 add_action( 'publish_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 86 add_action( 'trash_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 81 87 break; 82 88 case 'post_published': … … 84 90 add_action( 'draft_to_publish', array( $hook, 'post_published' ), 10, 1 ); 85 91 add_action( 'future_to_publish', array( $hook, 'post_published' ), 10, 1 ); 92 add_action( 'new_to_publish', array( $hook, 'post_published' ), 10, 1 ); 86 93 add_action( 'pending_to_publish', array( $hook, 'post_published' ), 10, 1 ); 94 add_action( 'private_to_publish', array( $hook, 'post_published' ), 10, 1 ); 95 add_action( 'trash_to_publish', array( $hook, 'post_published' ), 10, 1 ); 87 96 break; 88 97 case 'post_scheduled': 89 98 add_action( 'auto-draft_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 90 99 add_action( 'draft_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 100 add_action( 'new_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 101 add_action( 'pending_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 102 add_action( 'private_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 103 add_action( 'publish_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 104 add_action( 'trash_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 91 105 break; 92 106 case 'post_pending': 93 107 add_action( 'auto-draft_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 94 108 add_action( 'draft_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 109 add_action( 'future_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 110 add_action( 'new_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 111 add_action( 'private_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 112 add_action( 'publish_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 113 add_action( 'trash_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 95 114 break; 96 115 case 'post_updated': -
hey-notify/tags/1.4.0/includes/fields.php
r2466792 r2526791 76 76 ) 77 77 ->add_tab( 78 __( 'Uninstall', 'hey-notify' ), 79 apply_filters( 'hey_notify_settings_uninstall', array() ) 80 ) 81 ->add_tab( 82 __( 'Licenses', 'hey-notify' ), 83 apply_filters( 'hey_notify_settings_licenses', array() ) 78 __( 'Custom Post Types', 'hey-notify' ), 79 apply_filters( 'hey_notify_settings_cpt', array() ) 84 80 ); 85 81 -
hey-notify/tags/1.4.0/includes/filters.php
r2476609 r2526791 83 83 84 84 /** 85 * Settings - Servicesfields85 * Settings - General fields 86 86 * 87 87 * @param array $fields Fields. … … 96 96 ->set_options( get_service_options() ) 97 97 ); 98 99 $fields = settings_cpt_fields( $fields ); 100 101 if ( has_filter( 'hey_notify_settings_uninstall' ) ) { 102 $fields = array_merge( $fields, apply_filters( 'hey_notify_settings_uninstall', array() ) ); 103 } 104 105 if ( has_filter( 'hey_notify_settings_licenses' ) ) { 106 $fields[] = ( 107 Field::make( 'separator', 'hey_notify_licenses_separator', __( 'License Keys', 'hey-notify' ) ) 108 ); 109 110 $fields = array_merge( $fields, apply_filters( 'hey_notify_settings_licenses', array() ) ); 111 } 112 return $fields; 113 } 114 115 /** 116 * Settings - Custom Post Type fields 117 * 118 * @param array $fields Fields. 119 * @return array 120 */ 121 function settings_cpt_fields( $fields = array() ) { 98 122 $fields[] = ( 99 123 Field::make( 'separator', 'hey_notify_cpt_separator', __( 'Custom Post Type Settings', 'hey-notify' ) ) … … 109 133 sprintf( 110 134 '<a class="button" id="hey-notify-cpt-refresh">%s</a><span id="hey-notify-cpt-refresh-status"></span>', 111 __( 'Refresh Custom Post Types', 'hey-notify' )135 __( 'Refresh custom post types', 'hey-notify' ) 112 136 ) 113 137 ) -
hey-notify/tags/1.4.0/includes/scripts.php
r2476609 r2526791 52 52 array( 53 53 'messages' => array( 54 'done' => __( 'Done Refreshing Custom Post Types', 'hey-notify' ),55 'running' => __( 'Refreshing Custom Post Types...', 'hey-notify' ),54 'done' => __( 'Done refreshing custom post types', 'hey-notify' ), 55 'running' => __( 'Refreshing custom post types...', 'hey-notify' ), 56 56 'error' => __( 'Oops, there was an error', 'hey-notify' ), 57 57 ), -
hey-notify/tags/1.4.0/languages/hey-notify.pot
r2476609 r2526791 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Hey Notify 1. 3.0\n"5 "Project-Id-Version: Hey Notify 1.4.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hey-notify\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2021-0 2-17T00:21:28+00:00\n"12 "POT-Creation-Date: 2021-04-21T17:54:23+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.4.0\n" … … 103 103 msgstr "" 104 104 105 #: includes/cpt.php:20 1105 #: includes/cpt.php:206 106 106 msgid "Hey Notify Add-ons" 107 107 msgstr "" 108 108 109 #: includes/cpt.php:20 3109 #: includes/cpt.php:208 110 110 msgid "The following are available add-ons to extend Hey Notify functionality." 111 111 msgstr "" 112 112 113 #: includes/cpt.php:2 16113 #: includes/cpt.php:221 114 114 msgid "Installed" 115 115 msgstr "" 116 116 117 #: includes/cpt.php:2 18117 #: includes/cpt.php:223 118 118 msgid "Activate" 119 119 msgstr "" 120 120 121 #: includes/cpt.php:22 0121 #: includes/cpt.php:225 122 122 msgid "Get this add-on" 123 123 msgstr "" … … 607 607 608 608 #: includes/fields.php:78 609 msgid "Uninstall" 610 msgstr "" 611 612 #: includes/fields.php:82 613 msgid "Licenses" 609 msgid "Custom Post Types" 614 610 msgstr "" 615 611 … … 646 642 msgstr "" 647 643 648 #: includes/filters.php:99 644 #: includes/filters.php:107 645 msgid "License Keys" 646 msgstr "" 647 648 #: includes/filters.php:123 649 649 msgid "Custom Post Type Settings" 650 650 msgstr "" 651 651 652 #: includes/filters.php:1 02652 #: includes/filters.php:126 653 653 msgid "Only display public Custom Post Types" 654 654 msgstr "" 655 655 656 #: includes/filters.php:1 11657 msgid "Refresh Custom Post Types"656 #: includes/filters.php:135 657 msgid "Refresh custom post types" 658 658 msgstr "" 659 659 660 660 #: includes/scripts.php:54 661 msgid "Done Refreshing Custom Post Types"661 msgid "Done refreshing custom post types" 662 662 msgstr "" 663 663 664 664 #: includes/scripts.php:55 665 msgid "Refreshing Custom Post Types..."665 msgid "Refreshing custom post types..." 666 666 msgstr "" 667 667 … … 677 677 #: includes/services/class-discord.php:79 678 678 #: includes/services/class-discord.php:273 679 #: includes/services/class-microsoft-teams.php:81 680 #: includes/services/class-microsoft-teams.php:269 679 681 #: includes/services/class-slack.php:81 680 682 #: includes/services/class-slack.php:342 … … 689 691 #: includes/services/class-discord.php:81 690 692 #: includes/services/class-discord.php:275 693 #: includes/services/class-microsoft-teams.php:83 694 #: includes/services/class-microsoft-teams.php:271 691 695 #: includes/services/class-slack.php:83 692 696 #: includes/services/class-slack.php:344 … … 737 741 msgstr "" 738 742 743 #: includes/services/class-microsoft-teams.php:65 744 #: includes/services/class-microsoft-teams.php:266 745 msgid "Microsoft Teams" 746 msgstr "" 747 748 #: includes/services/class-microsoft-teams.php:83 749 #: includes/services/class-microsoft-teams.php:271 750 msgid "The webhook that you created for your Microsoft Teams channel." 751 msgstr "" 752 753 #: includes/services/class-microsoft-teams.php:95 754 #: includes/services/class-microsoft-teams.php:272 755 #: includes/services/class-slack.php:123 756 #: includes/services/class-slack.php:351 757 msgid "Color" 758 msgstr "" 759 760 #: includes/services/class-microsoft-teams.php:96 761 #: includes/services/class-microsoft-teams.php:273 762 #: includes/services/class-slack.php:124 763 #: includes/services/class-slack.php:352 764 msgid "Select a color to use for the message attachment." 765 msgstr "" 766 767 #: includes/services/class-microsoft-teams.php:142 768 #: includes/services/class-microsoft-teams.php:143 769 #: includes/services/class-microsoft-teams.php:150 770 msgid "Notification from Hey Notify" 771 msgstr "" 772 773 #: includes/services/class-microsoft-teams.php:191 774 msgid "View" 775 msgstr "" 776 777 #: includes/services/class-microsoft-teams.php:268 778 msgid "Default Settings for Microsoft Teams" 779 msgstr "" 780 739 781 #: includes/services/class-slack.php:65 740 782 #: includes/services/class-slack.php:339 … … 762 804 msgstr "" 763 805 764 #: includes/services/class-slack.php:123765 #: includes/services/class-slack.php:351766 msgid "Color"767 msgstr ""768 769 #: includes/services/class-slack.php:124770 #: includes/services/class-slack.php:352771 msgid "Select a color to use for the message attachment."772 msgstr ""773 774 806 #: includes/services/class-slack.php:237 775 807 msgid "Attached image" -
hey-notify/tags/1.4.0/readme.md
r2476609 r2526791 11 11 - Slack 12 12 - Discord 13 - Microsoft Teams 13 14 - Email 14 15 -
hey-notify/tags/1.4.0/readme.txt
r2476609 r2526791 3 3 Tags: notifications, slack, discord, email, ninja forms, gravity forms 4 4 Requires at least: 4.3 5 Tested up to: 5. 65 Tested up to: 5.7 6 6 Requires PHP: 5.3 7 Stable tag: 1. 3.07 Stable tag: 1.4.0 8 8 License: GPLv2 or later 9 9 License URI: http://ww.gnu.org/licenses/gpl-2.0.html … … 19 19 * Slack 20 20 * Discord 21 * Microsoft Teams 21 22 * Email 22 23 … … 74 75 == Changelog == 75 76 77 = 1.4.0 = 78 * Added support for Microsoft Teams. 79 * Improved the type of status changes than can be detected for Posts, Pages, and Custom Post Types. 80 * Reorganized the Settings page. 81 76 82 = 1.3.0 = 77 83 * Added default settings for Slack and Discord. -
hey-notify/trunk/assets/js/admin.js
r2476609 r2526791 9 9 var originalText = e.target.innerHTML; 10 10 e.target.innerHTML = heynotify.messages.running; 11 e.target.classList.add("updating-message"); 11 12 e.target.setAttribute("disabled", ""); 12 13 … … 23 24 }), 24 25 }); 26 e.target.classList.remove("updating-message"); 25 27 if (200 === response.status) { 26 28 e.target.innerHTML = heynotify.messages.done; 29 e.target.classList.add("updated-message"); 27 30 } else { 28 31 e.target.innerHTML = heynotify.messages.error; … … 30 33 setTimeout(function () { 31 34 e.target.innerHTML = originalText; 35 e.target.classList.remove("updated-message"); 32 36 e.target.removeAttribute("disabled"); 33 37 }, 3000); -
hey-notify/trunk/hey-notify.php
r2476609 r2526791 4 4 * Plugin URI: https://heynotifywp.com/ 5 5 * Description: Get notified when things happen in WordPress. 6 * Version: 1. 3.06 * Version: 1.4.0 7 7 * Author: FireTree Design, LLC <info@firetreedesign.com> 8 8 * Author URI: https://firetreedesign.com/ 9 9 * Text Domain: hey-notify 10 * Domain Path: /languages 10 11 * License: GPL-2.0+ 11 12 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 19 20 } 20 21 21 define( 'HEY_NOTIFY_VERSION', '1. 3.0' );22 define( 'HEY_NOTIFY_VERSION', '1.4.0' ); 22 23 define( 'HEY_NOTIFY_PLUGIN_FILE', __FILE__ ); 23 24 define( 'HEY_NOTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); … … 35 36 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/scripts.php'; 36 37 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/rest-api.php'; 38 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/languages.php'; 37 39 38 40 // Events. … … 47 49 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-slack.php'; 48 50 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-discord.php'; 51 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-microsoft-teams.php'; 49 52 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-email.php'; -
hey-notify/trunk/includes/cpt.php
r2476609 r2526791 187 187 } 188 188 189 /** 190 * Render the add-ons page 191 * 192 * @return void 193 */ 189 194 function addons_page() { 190 195 ?> -
hey-notify/trunk/includes/events/cpt/class-cpt-event.php
r2466792 r2526791 106 106 case "{$this->type}_draft": 107 107 add_action( 'auto-draft_to_draft', array( $hook, 'draft' ), 10, 1 ); 108 add_action( 'future_to_draft', array( $hook, 'draft' ), 10, 1 ); 109 add_action( 'new_to_draft', array( $hook, 'draft' ), 10, 1 ); 110 add_action( 'pending_to_draft', array( $hook, 'draft' ), 10, 1 ); 111 add_action( 'private_to_draft', array( $hook, 'draft' ), 10, 1 ); 112 add_action( 'publish_to_draft', array( $hook, 'draft' ), 10, 1 ); 113 add_action( 'trash_to_draft', array( $hook, 'draft' ), 10, 1 ); 108 114 break; 109 115 case "{$this->type}_published": … … 111 117 add_action( 'draft_to_publish', array( $hook, 'published' ), 10, 1 ); 112 118 add_action( 'future_to_publish', array( $hook, 'published' ), 10, 1 ); 119 add_action( 'new_to_publish', array( $hook, 'published' ), 10, 1 ); 113 120 add_action( 'pending_to_publish', array( $hook, 'published' ), 10, 1 ); 121 add_action( 'private_to_publish', array( $hook, 'published' ), 10, 1 ); 122 add_action( 'trash_to_publish', array( $hook, 'published' ), 10, 1 ); 114 123 break; 115 124 case "{$this->type}_scheduled": 116 125 add_action( 'auto-draft_to_future', array( $hook, 'scheduled' ), 10, 1 ); 117 126 add_action( 'draft_to_future', array( $hook, 'scheduled' ), 10, 1 ); 127 add_action( 'new_to_future', array( $hook, 'scheduled' ), 10, 1 ); 128 add_action( 'pending_to_future', array( $hook, 'scheduled' ), 10, 1 ); 129 add_action( 'private_to_future', array( $hook, 'scheduled' ), 10, 1 ); 130 add_action( 'publish_to_future', array( $hook, 'scheduled' ), 10, 1 ); 131 add_action( 'trash_to_future', array( $hook, 'scheduled' ), 10, 1 ); 118 132 break; 119 133 case "{$this->type}_pending": 120 134 add_action( 'auto-draft_to_pending', array( $hook, 'pending' ), 10, 1 ); 121 135 add_action( 'draft_to_pending', array( $hook, 'pending' ), 10, 1 ); 136 add_action( 'future_to_pending', array( $hook, 'pending' ), 10, 1 ); 137 add_action( 'new_to_pending', array( $hook, 'pending' ), 10, 1 ); 138 add_action( 'private_to_pending', array( $hook, 'pending' ), 10, 1 ); 139 add_action( 'publish_to_pending', array( $hook, 'pending' ), 10, 1 ); 140 add_action( 'trash_to_pending', array( $hook, 'pending' ), 10, 1 ); 122 141 break; 123 142 case "{$this->type}_updated": -
hey-notify/trunk/includes/events/page/class-page-event.php
r2349284 r2526791 78 78 case 'page_draft': 79 79 add_action( 'auto-draft_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 80 add_action( 'future_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 81 add_action( 'new_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 82 add_action( 'pending_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 83 add_action( 'private_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 84 add_action( 'publish_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 85 add_action( 'trash_to_draft', array( $hook, 'page_draft' ), 10, 1 ); 80 86 break; 81 87 case 'page_published': … … 83 89 add_action( 'draft_to_publish', array( $hook, 'page_published' ), 10, 1 ); 84 90 add_action( 'future_to_publish', array( $hook, 'page_published' ), 10, 1 ); 91 add_action( 'new_to_publish', array( $hook, 'page_published' ), 10, 1 ); 85 92 add_action( 'pending_to_publish', array( $hook, 'page_published' ), 10, 1 ); 93 add_action( 'private_to_publish', array( $hook, 'page_published' ), 10, 1 ); 94 add_action( 'trash_to_publish', array( $hook, 'page_published' ), 10, 1 ); 86 95 break; 87 96 case 'page_scheduled': 88 97 add_action( 'auto-draft_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 89 98 add_action( 'draft_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 99 add_action( 'new_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 100 add_action( 'pending_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 101 add_action( 'private_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 102 add_action( 'publish_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 103 add_action( 'trash_to_future', array( $hook, 'page_scheduled' ), 10, 1 ); 90 104 break; 91 105 case 'page_pending': 92 106 add_action( 'auto-draft_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 93 107 add_action( 'draft_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 108 add_action( 'future_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 109 add_action( 'new_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 110 add_action( 'private_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 111 add_action( 'publish_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 112 add_action( 'trash_to_pending', array( $hook, 'page_pending' ), 10, 1 ); 94 113 break; 95 114 case 'page_updated': -
hey-notify/trunk/includes/events/post/class-post-event.php
r2349284 r2526791 79 79 case 'post_draft': 80 80 add_action( 'auto-draft_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 81 add_action( 'future_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 82 add_action( 'new_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 83 add_action( 'pending_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 84 add_action( 'private_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 85 add_action( 'publish_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 86 add_action( 'trash_to_draft', array( $hook, 'post_draft' ), 10, 1 ); 81 87 break; 82 88 case 'post_published': … … 84 90 add_action( 'draft_to_publish', array( $hook, 'post_published' ), 10, 1 ); 85 91 add_action( 'future_to_publish', array( $hook, 'post_published' ), 10, 1 ); 92 add_action( 'new_to_publish', array( $hook, 'post_published' ), 10, 1 ); 86 93 add_action( 'pending_to_publish', array( $hook, 'post_published' ), 10, 1 ); 94 add_action( 'private_to_publish', array( $hook, 'post_published' ), 10, 1 ); 95 add_action( 'trash_to_publish', array( $hook, 'post_published' ), 10, 1 ); 87 96 break; 88 97 case 'post_scheduled': 89 98 add_action( 'auto-draft_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 90 99 add_action( 'draft_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 100 add_action( 'new_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 101 add_action( 'pending_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 102 add_action( 'private_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 103 add_action( 'publish_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 104 add_action( 'trash_to_future', array( $hook, 'post_scheduled' ), 10, 1 ); 91 105 break; 92 106 case 'post_pending': 93 107 add_action( 'auto-draft_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 94 108 add_action( 'draft_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 109 add_action( 'future_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 110 add_action( 'new_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 111 add_action( 'private_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 112 add_action( 'publish_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 113 add_action( 'trash_to_pending', array( $hook, 'post_pending' ), 10, 1 ); 95 114 break; 96 115 case 'post_updated': -
hey-notify/trunk/includes/fields.php
r2466792 r2526791 76 76 ) 77 77 ->add_tab( 78 __( 'Uninstall', 'hey-notify' ), 79 apply_filters( 'hey_notify_settings_uninstall', array() ) 80 ) 81 ->add_tab( 82 __( 'Licenses', 'hey-notify' ), 83 apply_filters( 'hey_notify_settings_licenses', array() ) 78 __( 'Custom Post Types', 'hey-notify' ), 79 apply_filters( 'hey_notify_settings_cpt', array() ) 84 80 ); 85 81 -
hey-notify/trunk/includes/filters.php
r2476609 r2526791 83 83 84 84 /** 85 * Settings - Servicesfields85 * Settings - General fields 86 86 * 87 87 * @param array $fields Fields. … … 96 96 ->set_options( get_service_options() ) 97 97 ); 98 99 $fields = settings_cpt_fields( $fields ); 100 101 if ( has_filter( 'hey_notify_settings_uninstall' ) ) { 102 $fields = array_merge( $fields, apply_filters( 'hey_notify_settings_uninstall', array() ) ); 103 } 104 105 if ( has_filter( 'hey_notify_settings_licenses' ) ) { 106 $fields[] = ( 107 Field::make( 'separator', 'hey_notify_licenses_separator', __( 'License Keys', 'hey-notify' ) ) 108 ); 109 110 $fields = array_merge( $fields, apply_filters( 'hey_notify_settings_licenses', array() ) ); 111 } 112 return $fields; 113 } 114 115 /** 116 * Settings - Custom Post Type fields 117 * 118 * @param array $fields Fields. 119 * @return array 120 */ 121 function settings_cpt_fields( $fields = array() ) { 98 122 $fields[] = ( 99 123 Field::make( 'separator', 'hey_notify_cpt_separator', __( 'Custom Post Type Settings', 'hey-notify' ) ) … … 109 133 sprintf( 110 134 '<a class="button" id="hey-notify-cpt-refresh">%s</a><span id="hey-notify-cpt-refresh-status"></span>', 111 __( 'Refresh Custom Post Types', 'hey-notify' )135 __( 'Refresh custom post types', 'hey-notify' ) 112 136 ) 113 137 ) -
hey-notify/trunk/includes/scripts.php
r2476609 r2526791 52 52 array( 53 53 'messages' => array( 54 'done' => __( 'Done Refreshing Custom Post Types', 'hey-notify' ),55 'running' => __( 'Refreshing Custom Post Types...', 'hey-notify' ),54 'done' => __( 'Done refreshing custom post types', 'hey-notify' ), 55 'running' => __( 'Refreshing custom post types...', 'hey-notify' ), 56 56 'error' => __( 'Oops, there was an error', 'hey-notify' ), 57 57 ), -
hey-notify/trunk/languages/hey-notify.pot
r2476609 r2526791 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Hey Notify 1. 3.0\n"5 "Project-Id-Version: Hey Notify 1.4.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/hey-notify\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2021-0 2-17T00:21:28+00:00\n"12 "POT-Creation-Date: 2021-04-21T17:54:23+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.4.0\n" … … 103 103 msgstr "" 104 104 105 #: includes/cpt.php:20 1105 #: includes/cpt.php:206 106 106 msgid "Hey Notify Add-ons" 107 107 msgstr "" 108 108 109 #: includes/cpt.php:20 3109 #: includes/cpt.php:208 110 110 msgid "The following are available add-ons to extend Hey Notify functionality." 111 111 msgstr "" 112 112 113 #: includes/cpt.php:2 16113 #: includes/cpt.php:221 114 114 msgid "Installed" 115 115 msgstr "" 116 116 117 #: includes/cpt.php:2 18117 #: includes/cpt.php:223 118 118 msgid "Activate" 119 119 msgstr "" 120 120 121 #: includes/cpt.php:22 0121 #: includes/cpt.php:225 122 122 msgid "Get this add-on" 123 123 msgstr "" … … 607 607 608 608 #: includes/fields.php:78 609 msgid "Uninstall" 610 msgstr "" 611 612 #: includes/fields.php:82 613 msgid "Licenses" 609 msgid "Custom Post Types" 614 610 msgstr "" 615 611 … … 646 642 msgstr "" 647 643 648 #: includes/filters.php:99 644 #: includes/filters.php:107 645 msgid "License Keys" 646 msgstr "" 647 648 #: includes/filters.php:123 649 649 msgid "Custom Post Type Settings" 650 650 msgstr "" 651 651 652 #: includes/filters.php:1 02652 #: includes/filters.php:126 653 653 msgid "Only display public Custom Post Types" 654 654 msgstr "" 655 655 656 #: includes/filters.php:1 11657 msgid "Refresh Custom Post Types"656 #: includes/filters.php:135 657 msgid "Refresh custom post types" 658 658 msgstr "" 659 659 660 660 #: includes/scripts.php:54 661 msgid "Done Refreshing Custom Post Types"661 msgid "Done refreshing custom post types" 662 662 msgstr "" 663 663 664 664 #: includes/scripts.php:55 665 msgid "Refreshing Custom Post Types..."665 msgid "Refreshing custom post types..." 666 666 msgstr "" 667 667 … … 677 677 #: includes/services/class-discord.php:79 678 678 #: includes/services/class-discord.php:273 679 #: includes/services/class-microsoft-teams.php:81 680 #: includes/services/class-microsoft-teams.php:269 679 681 #: includes/services/class-slack.php:81 680 682 #: includes/services/class-slack.php:342 … … 689 691 #: includes/services/class-discord.php:81 690 692 #: includes/services/class-discord.php:275 693 #: includes/services/class-microsoft-teams.php:83 694 #: includes/services/class-microsoft-teams.php:271 691 695 #: includes/services/class-slack.php:83 692 696 #: includes/services/class-slack.php:344 … … 737 741 msgstr "" 738 742 743 #: includes/services/class-microsoft-teams.php:65 744 #: includes/services/class-microsoft-teams.php:266 745 msgid "Microsoft Teams" 746 msgstr "" 747 748 #: includes/services/class-microsoft-teams.php:83 749 #: includes/services/class-microsoft-teams.php:271 750 msgid "The webhook that you created for your Microsoft Teams channel." 751 msgstr "" 752 753 #: includes/services/class-microsoft-teams.php:95 754 #: includes/services/class-microsoft-teams.php:272 755 #: includes/services/class-slack.php:123 756 #: includes/services/class-slack.php:351 757 msgid "Color" 758 msgstr "" 759 760 #: includes/services/class-microsoft-teams.php:96 761 #: includes/services/class-microsoft-teams.php:273 762 #: includes/services/class-slack.php:124 763 #: includes/services/class-slack.php:352 764 msgid "Select a color to use for the message attachment." 765 msgstr "" 766 767 #: includes/services/class-microsoft-teams.php:142 768 #: includes/services/class-microsoft-teams.php:143 769 #: includes/services/class-microsoft-teams.php:150 770 msgid "Notification from Hey Notify" 771 msgstr "" 772 773 #: includes/services/class-microsoft-teams.php:191 774 msgid "View" 775 msgstr "" 776 777 #: includes/services/class-microsoft-teams.php:268 778 msgid "Default Settings for Microsoft Teams" 779 msgstr "" 780 739 781 #: includes/services/class-slack.php:65 740 782 #: includes/services/class-slack.php:339 … … 762 804 msgstr "" 763 805 764 #: includes/services/class-slack.php:123765 #: includes/services/class-slack.php:351766 msgid "Color"767 msgstr ""768 769 #: includes/services/class-slack.php:124770 #: includes/services/class-slack.php:352771 msgid "Select a color to use for the message attachment."772 msgstr ""773 774 806 #: includes/services/class-slack.php:237 775 807 msgid "Attached image" -
hey-notify/trunk/readme.md
r2476609 r2526791 11 11 - Slack 12 12 - Discord 13 - Microsoft Teams 13 14 - Email 14 15 -
hey-notify/trunk/readme.txt
r2476609 r2526791 3 3 Tags: notifications, slack, discord, email, ninja forms, gravity forms 4 4 Requires at least: 4.3 5 Tested up to: 5. 65 Tested up to: 5.7 6 6 Requires PHP: 5.3 7 Stable tag: 1. 3.07 Stable tag: 1.4.0 8 8 License: GPLv2 or later 9 9 License URI: http://ww.gnu.org/licenses/gpl-2.0.html … … 19 19 * Slack 20 20 * Discord 21 * Microsoft Teams 21 22 * Email 22 23 … … 74 75 == Changelog == 75 76 77 = 1.4.0 = 78 * Added support for Microsoft Teams. 79 * Improved the type of status changes than can be detected for Posts, Pages, and Custom Post Types. 80 * Reorganized the Settings page. 81 76 82 = 1.3.0 = 77 83 * Added default settings for Slack and Discord.
Note: See TracChangeset
for help on using the changeset viewer.