Changeset 3128398
- Timestamp:
- 07/30/2024 10:42:53 PM (20 months ago)
- Location:
- hey-notify
- Files:
-
- 2 deleted
- 28 edited
- 1 copied
-
assets/banner-1544x500.png (modified) (previous)
-
assets/banner-772x250.png (modified) (previous)
-
tags/2.1.0 (copied) (copied from hey-notify/trunk)
-
tags/2.1.0/data/live-preview.xml (modified) (2 diffs)
-
tags/2.1.0/hey-notify.php (modified) (3 diffs)
-
tags/2.1.0/includes/admin/class-pages.php (modified) (1 diff)
-
tags/2.1.0/includes/admin/metabox/fields/imageinput/imageinput.css (modified) (1 diff)
-
tags/2.1.0/includes/admin/settings/class-general.php (modified) (3 diffs)
-
tags/2.1.0/includes/cpt.php (modified) (1 diff)
-
tags/2.1.0/includes/events/cpt/loader.php (modified) (1 diff)
-
tags/2.1.0/includes/events/page/class-page-hook.php (modified) (1 diff)
-
tags/2.1.0/includes/events/system/class-system-hook.php (modified) (2 diffs)
-
tags/2.1.0/includes/events/user/class-user-hook.php (modified) (4 diffs)
-
tags/2.1.0/includes/helpers.php (modified) (1 diff)
-
tags/2.1.0/includes/services/class-microsoft-teams.php (deleted)
-
tags/2.1.0/readme.md (modified) (1 diff)
-
tags/2.1.0/readme.txt (modified) (3 diffs)
-
trunk/data/live-preview.xml (modified) (2 diffs)
-
trunk/hey-notify.php (modified) (3 diffs)
-
trunk/includes/admin/class-pages.php (modified) (1 diff)
-
trunk/includes/admin/metabox/fields/imageinput/imageinput.css (modified) (1 diff)
-
trunk/includes/admin/settings/class-general.php (modified) (3 diffs)
-
trunk/includes/cpt.php (modified) (1 diff)
-
trunk/includes/events/cpt/loader.php (modified) (1 diff)
-
trunk/includes/events/page/class-page-hook.php (modified) (1 diff)
-
trunk/includes/events/system/class-system-hook.php (modified) (2 diffs)
-
trunk/includes/events/user/class-user-hook.php (modified) (4 diffs)
-
trunk/includes/helpers.php (modified) (1 diff)
-
trunk/includes/services/class-microsoft-teams.php (deleted)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hey-notify/tags/2.1.0/data/live-preview.xml
r3115944 r3128398 89 89 </wp:postmeta> 90 90 <wp:postmeta> 91 <wp:meta_key><![CDATA[_hey_notify_microsoft_teams_webhook]]></wp:meta_key>92 <wp:meta_value><![CDATA[]]></wp:meta_value>93 </wp:postmeta>94 <wp:postmeta>95 <wp:meta_key><![CDATA[_hey_notify_microsoft_teams_color]]></wp:meta_key>96 <wp:meta_value><![CDATA[]]></wp:meta_value>97 </wp:postmeta>98 <wp:postmeta>99 91 <wp:meta_key><![CDATA[_hey_notify_email_addresses]]></wp:meta_key> 100 92 <wp:meta_value><![CDATA[[{"email":"user@host.com"}]]]></wp:meta_value> … … 153 145 </wp:postmeta> 154 146 <wp:postmeta> 155 <wp:meta_key><![CDATA[_hey_notify_microsoft_teams_webhook]]></wp:meta_key>156 <wp:meta_value><![CDATA[]]></wp:meta_value>157 </wp:postmeta>158 <wp:postmeta>159 <wp:meta_key><![CDATA[_hey_notify_microsoft_teams_color]]></wp:meta_key>160 <wp:meta_value><![CDATA[]]></wp:meta_value>161 </wp:postmeta>162 <wp:postmeta>163 147 <wp:meta_key><![CDATA[_hey_notify_events]]></wp:meta_key> 164 148 <wp:meta_value><![CDATA[[{"type":"comment","page":"page_draft","post":"post_draft","comment":"comment_post","user":"user_new","system":"system_core_update","cpt_hey_notify":"cpt_hey_notify_draft"}]]]></wp:meta_value> -
hey-notify/tags/2.1.0/hey-notify.php
r3115944 r3128398 4 4 * Plugin URI: https://heynotifywp.com/ 5 5 * Description: Get notified when things happen in WordPress. 6 * Version: 2. 0.36 * Version: 2.1.0 7 7 * Author: FireTree Design, LLC <info@firetreedesign.com> 8 8 * Author URI: https://firetreedesign.com/ … … 20 20 } 21 21 22 define( 'HEY_NOTIFY_VERSION', '2. 0.3' );22 define( 'HEY_NOTIFY_VERSION', '2.1.0' ); 23 23 define( 'HEY_NOTIFY_PLUGIN_FILE', __FILE__ ); 24 24 define( 'HEY_NOTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); … … 57 57 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-slack.php'; 58 58 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-discord.php'; 59 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-microsoft-teams.php';60 59 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-email.php'; -
hey-notify/tags/2.1.0/includes/admin/class-pages.php
r3114686 r3128398 68 68 </h1> 69 69 <div id="hey_notify_tab_container" class="metabox-holder"> 70 <div class="postbox"> 71 <div class="inside"> 72 <form method="post" action="options.php"> 73 <table class="form-table"> 74 <?php 75 foreach ( $all_tabs as $tab ) { 76 if ( isset( $tab['tab_id'] ) && isset( $tab['settings_id'] ) && $tab['tab_id'] === $active_tab ) { 77 settings_fields( $tab['settings_id'] ); 78 do_settings_sections( $tab['settings_id'] ); 79 if ( true === $tab['submit'] ) { 80 submit_button(); 81 } 82 settings_errors(); 83 } 70 <form method="post" action="options.php"> 71 <table class="form-table"> 72 <?php 73 foreach ( $all_tabs as $tab ) { 74 if ( isset( $tab['tab_id'] ) && isset( $tab['settings_id'] ) && $tab['tab_id'] === $active_tab ) { 75 settings_fields( $tab['settings_id'] ); 76 do_settings_sections( $tab['settings_id'] ); 77 if ( true === $tab['submit'] ) { 78 submit_button(); 84 79 } 85 ?> 86 </table> 87 </form> 88 </div> 89 </div> 80 settings_errors(); 81 } 82 } 83 ?> 84 </table> 85 </form> 90 86 </div><!-- #tab_container--> 91 87 </div> -
hey-notify/tags/2.1.0/includes/admin/metabox/fields/imageinput/imageinput.css
r3114686 r3128398 49 49 bottom: 0; 50 50 z-index: 1; 51 background-color: #fff; 51 52 } 52 53 .hey-notify-imageinput-field-preview img { -
hey-notify/tags/2.1.0/includes/admin/settings/class-general.php
r3114686 r3128398 46 46 'hey_notify_settings_general_section', 47 47 __( 'General Settings', 'hey-notify' ), 48 array( $this, 'general_section_callback' ),48 null, 49 49 'hey_notify_settings_general' 50 50 ); … … 75 75 'hey_notify_settings_general_cpt_section', 76 76 __( 'Custom Post Type Settings', 'hey-notify' ), 77 array( $this, 'cpt_section_callback' ),77 null, 78 78 'hey_notify_settings_general' 79 79 ); … … 115 115 116 116 /** 117 * General section callback118 *119 * @since 1.5.0120 *121 * @return void122 */123 public function general_section_callback() {124 // Do nothing.125 }126 127 /**128 * CPT section callback129 *130 * @since 1.5.0131 *132 * @return void133 */134 public function cpt_section_callback() {135 // Do nothing.136 }137 138 /**139 117 * Sanitize callback 140 118 * -
hey-notify/tags/2.1.0/includes/cpt.php
r3115944 r3128398 171 171 .hey-notify-tag { border-radius: 3px; display: inline-block; margin-bottom: 4px; padding: 2px 4px; font-size: 11px; } 172 172 .hey-notify-tag:not(:last-of-type) { margin-right: 4px; } 173 form table.form-table + h2 { 174 margin-top: 30px !important; 175 } 173 176 </style> 174 177 <?php -
hey-notify/tags/2.1.0/includes/events/cpt/loader.php
r3114686 r3128398 99 99 100 100 // Remove the "cpt_" prefix. 101 $post_type = \substr( $post_type, 4 ); 101 if ( str_starts_with( $post_type, 'cpt_' ) ) { 102 $post_type = \substr( $post_type, 4 ); 103 } 102 104 103 105 return $decoded_post_types->{$post_type}; -
hey-notify/tags/2.1.0/includes/events/page/class-page-hook.php
r2565473 r3128398 148 148 } 149 149 150 $subject = \wp_sprintf( 151 /* translators: %s: Name of the site */ 152 \__( 'Hey, a page is pending on %s!', 'hey-notify' ), 153 \get_bloginfo( 'name' ) 154 ); 150 $current_user = \wp_get_current_user(); 151 152 if ( 0 === $current_user ) { 153 $subject = \wp_sprintf( 154 /* translators: %s: Name of the site */ 155 \__( 'Hey, a page is pending on %s!', 'hey-notify' ), 156 \get_bloginfo( 'name' ) 157 ); 158 } else { 159 $subject = \wp_sprintf( 160 /* translators: 1: Name of the user 2: Name of the site */ 161 \__( 'Hey, a page is pending by %1$s on %2$s!', 'hey-notify' ), 162 \esc_html( $current_user->display_name ), 163 \get_bloginfo( 'name' ) 164 ); 165 } 155 166 156 167 $subject = apply_filters( 'hey_notify_page_pending_subject', $subject, $post ); -
hey-notify/tags/2.1.0/includes/events/system/class-system-hook.php
r2466792 r3128398 304 304 305 305 $this->send( $data ); 306 307 306 } 308 307 … … 335 334 336 335 \update_option( 'hey_notify_plugin_versions', $new_plugin_versions ); 337 338 336 } 339 337 -
hey-notify/tags/2.1.0/includes/events/user/class-user-hook.php
r2466792 r3128398 41 41 42 42 $this->prepare_data( $subject, $user ); 43 44 43 } 45 44 … … 66 65 67 66 $this->prepare_data( $subject, $user ); 68 69 67 } 70 68 … … 157 155 */ 158 156 private function get_ip_address() { 159 160 157 if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { 161 158 return sanitize_text_field( wp_unslash( $_SERVER['HTTP_CLIENT_IP'] ) ); … … 167 164 return __( 'Unknown', 'hey-notify' ); 168 165 } 169 170 166 } 171 167 } -
hey-notify/tags/2.1.0/includes/helpers.php
r3115944 r3128398 143 143 $page_title = __( 'Edit Notification', 'hey-notify' ); 144 144 } 145 146 $page_title = apply_filters( 'hey_notify_admin_page_title', $page_title ); 145 147 ?> 146 148 <style> -
hey-notify/tags/2.1.0/readme.md
r3115944 r3128398 13 13 - Slack 14 14 - Discord 15 - Microsoft Teams16 15 - Email 17 16 -
hey-notify/tags/2.1.0/readme.txt
r3115944 r3128398 5 5 Tested up to: 6.6 6 6 Requires PHP: 7.2 7 Stable tag: 2. 0.37 Stable tag: 2.1.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 Teams22 21 * Email 23 22 … … 77 76 == Changelog == 78 77 78 = 2.1.0 = 79 * Microsoft Teams support has been removed due to changes with Office 365 connectors. 80 * Changes to improve Hey Notify Pro capabilities. 81 79 82 = 2.0.3 = 80 83 * Added support for Live Preview in the Plugin Directory. -
hey-notify/trunk/data/live-preview.xml
r3115944 r3128398 89 89 </wp:postmeta> 90 90 <wp:postmeta> 91 <wp:meta_key><![CDATA[_hey_notify_microsoft_teams_webhook]]></wp:meta_key>92 <wp:meta_value><![CDATA[]]></wp:meta_value>93 </wp:postmeta>94 <wp:postmeta>95 <wp:meta_key><![CDATA[_hey_notify_microsoft_teams_color]]></wp:meta_key>96 <wp:meta_value><![CDATA[]]></wp:meta_value>97 </wp:postmeta>98 <wp:postmeta>99 91 <wp:meta_key><![CDATA[_hey_notify_email_addresses]]></wp:meta_key> 100 92 <wp:meta_value><![CDATA[[{"email":"user@host.com"}]]]></wp:meta_value> … … 153 145 </wp:postmeta> 154 146 <wp:postmeta> 155 <wp:meta_key><![CDATA[_hey_notify_microsoft_teams_webhook]]></wp:meta_key>156 <wp:meta_value><![CDATA[]]></wp:meta_value>157 </wp:postmeta>158 <wp:postmeta>159 <wp:meta_key><![CDATA[_hey_notify_microsoft_teams_color]]></wp:meta_key>160 <wp:meta_value><![CDATA[]]></wp:meta_value>161 </wp:postmeta>162 <wp:postmeta>163 147 <wp:meta_key><![CDATA[_hey_notify_events]]></wp:meta_key> 164 148 <wp:meta_value><![CDATA[[{"type":"comment","page":"page_draft","post":"post_draft","comment":"comment_post","user":"user_new","system":"system_core_update","cpt_hey_notify":"cpt_hey_notify_draft"}]]]></wp:meta_value> -
hey-notify/trunk/hey-notify.php
r3115944 r3128398 4 4 * Plugin URI: https://heynotifywp.com/ 5 5 * Description: Get notified when things happen in WordPress. 6 * Version: 2. 0.36 * Version: 2.1.0 7 7 * Author: FireTree Design, LLC <info@firetreedesign.com> 8 8 * Author URI: https://firetreedesign.com/ … … 20 20 } 21 21 22 define( 'HEY_NOTIFY_VERSION', '2. 0.3' );22 define( 'HEY_NOTIFY_VERSION', '2.1.0' ); 23 23 define( 'HEY_NOTIFY_PLUGIN_FILE', __FILE__ ); 24 24 define( 'HEY_NOTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); … … 57 57 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-slack.php'; 58 58 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-discord.php'; 59 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-microsoft-teams.php';60 59 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-email.php'; -
hey-notify/trunk/includes/admin/class-pages.php
r3114686 r3128398 68 68 </h1> 69 69 <div id="hey_notify_tab_container" class="metabox-holder"> 70 <div class="postbox"> 71 <div class="inside"> 72 <form method="post" action="options.php"> 73 <table class="form-table"> 74 <?php 75 foreach ( $all_tabs as $tab ) { 76 if ( isset( $tab['tab_id'] ) && isset( $tab['settings_id'] ) && $tab['tab_id'] === $active_tab ) { 77 settings_fields( $tab['settings_id'] ); 78 do_settings_sections( $tab['settings_id'] ); 79 if ( true === $tab['submit'] ) { 80 submit_button(); 81 } 82 settings_errors(); 83 } 70 <form method="post" action="options.php"> 71 <table class="form-table"> 72 <?php 73 foreach ( $all_tabs as $tab ) { 74 if ( isset( $tab['tab_id'] ) && isset( $tab['settings_id'] ) && $tab['tab_id'] === $active_tab ) { 75 settings_fields( $tab['settings_id'] ); 76 do_settings_sections( $tab['settings_id'] ); 77 if ( true === $tab['submit'] ) { 78 submit_button(); 84 79 } 85 ?> 86 </table> 87 </form> 88 </div> 89 </div> 80 settings_errors(); 81 } 82 } 83 ?> 84 </table> 85 </form> 90 86 </div><!-- #tab_container--> 91 87 </div> -
hey-notify/trunk/includes/admin/metabox/fields/imageinput/imageinput.css
r3114686 r3128398 49 49 bottom: 0; 50 50 z-index: 1; 51 background-color: #fff; 51 52 } 52 53 .hey-notify-imageinput-field-preview img { -
hey-notify/trunk/includes/admin/settings/class-general.php
r3114686 r3128398 46 46 'hey_notify_settings_general_section', 47 47 __( 'General Settings', 'hey-notify' ), 48 array( $this, 'general_section_callback' ),48 null, 49 49 'hey_notify_settings_general' 50 50 ); … … 75 75 'hey_notify_settings_general_cpt_section', 76 76 __( 'Custom Post Type Settings', 'hey-notify' ), 77 array( $this, 'cpt_section_callback' ),77 null, 78 78 'hey_notify_settings_general' 79 79 ); … … 115 115 116 116 /** 117 * General section callback118 *119 * @since 1.5.0120 *121 * @return void122 */123 public function general_section_callback() {124 // Do nothing.125 }126 127 /**128 * CPT section callback129 *130 * @since 1.5.0131 *132 * @return void133 */134 public function cpt_section_callback() {135 // Do nothing.136 }137 138 /**139 117 * Sanitize callback 140 118 * -
hey-notify/trunk/includes/cpt.php
r3115944 r3128398 171 171 .hey-notify-tag { border-radius: 3px; display: inline-block; margin-bottom: 4px; padding: 2px 4px; font-size: 11px; } 172 172 .hey-notify-tag:not(:last-of-type) { margin-right: 4px; } 173 form table.form-table + h2 { 174 margin-top: 30px !important; 175 } 173 176 </style> 174 177 <?php -
hey-notify/trunk/includes/events/cpt/loader.php
r3114686 r3128398 99 99 100 100 // Remove the "cpt_" prefix. 101 $post_type = \substr( $post_type, 4 ); 101 if ( str_starts_with( $post_type, 'cpt_' ) ) { 102 $post_type = \substr( $post_type, 4 ); 103 } 102 104 103 105 return $decoded_post_types->{$post_type}; -
hey-notify/trunk/includes/events/page/class-page-hook.php
r2565473 r3128398 148 148 } 149 149 150 $subject = \wp_sprintf( 151 /* translators: %s: Name of the site */ 152 \__( 'Hey, a page is pending on %s!', 'hey-notify' ), 153 \get_bloginfo( 'name' ) 154 ); 150 $current_user = \wp_get_current_user(); 151 152 if ( 0 === $current_user ) { 153 $subject = \wp_sprintf( 154 /* translators: %s: Name of the site */ 155 \__( 'Hey, a page is pending on %s!', 'hey-notify' ), 156 \get_bloginfo( 'name' ) 157 ); 158 } else { 159 $subject = \wp_sprintf( 160 /* translators: 1: Name of the user 2: Name of the site */ 161 \__( 'Hey, a page is pending by %1$s on %2$s!', 'hey-notify' ), 162 \esc_html( $current_user->display_name ), 163 \get_bloginfo( 'name' ) 164 ); 165 } 155 166 156 167 $subject = apply_filters( 'hey_notify_page_pending_subject', $subject, $post ); -
hey-notify/trunk/includes/events/system/class-system-hook.php
r2466792 r3128398 304 304 305 305 $this->send( $data ); 306 307 306 } 308 307 … … 335 334 336 335 \update_option( 'hey_notify_plugin_versions', $new_plugin_versions ); 337 338 336 } 339 337 -
hey-notify/trunk/includes/events/user/class-user-hook.php
r2466792 r3128398 41 41 42 42 $this->prepare_data( $subject, $user ); 43 44 43 } 45 44 … … 66 65 67 66 $this->prepare_data( $subject, $user ); 68 69 67 } 70 68 … … 157 155 */ 158 156 private function get_ip_address() { 159 160 157 if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { 161 158 return sanitize_text_field( wp_unslash( $_SERVER['HTTP_CLIENT_IP'] ) ); … … 167 164 return __( 'Unknown', 'hey-notify' ); 168 165 } 169 170 166 } 171 167 } -
hey-notify/trunk/includes/helpers.php
r3115944 r3128398 143 143 $page_title = __( 'Edit Notification', 'hey-notify' ); 144 144 } 145 146 $page_title = apply_filters( 'hey_notify_admin_page_title', $page_title ); 145 147 ?> 146 148 <style> -
hey-notify/trunk/readme.md
r3115944 r3128398 13 13 - Slack 14 14 - Discord 15 - Microsoft Teams16 15 - Email 17 16 -
hey-notify/trunk/readme.txt
r3115944 r3128398 5 5 Tested up to: 6.6 6 6 Requires PHP: 7.2 7 Stable tag: 2. 0.37 Stable tag: 2.1.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 Teams22 21 * Email 23 22 … … 77 76 == Changelog == 78 77 78 = 2.1.0 = 79 * Microsoft Teams support has been removed due to changes with Office 365 connectors. 80 * Changes to improve Hey Notify Pro capabilities. 81 79 82 = 2.0.3 = 80 83 * Added support for Live Preview in the Plugin Directory.
Note: See TracChangeset
for help on using the changeset viewer.