Plugin Directory

Changeset 3128398


Ignore:
Timestamp:
07/30/2024 10:42:53 PM (20 months ago)
Author:
firetree
Message:

Update to version 2.1.0 from GitHub

Location:
hey-notify
Files:
2 deleted
28 edited
1 copied

Legend:

Unmodified
Added
Removed
  • hey-notify/tags/2.1.0/data/live-preview.xml

    r3115944 r3128398  
    8989        </wp:postmeta>
    9090                            <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>
    9991        <wp:meta_key><![CDATA[_hey_notify_email_addresses]]></wp:meta_key>
    10092        <wp:meta_value><![CDATA[[{"email":"user@host.com"}]]]></wp:meta_value>
     
    153145        </wp:postmeta>
    154146                            <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>
    163147        <wp:meta_key><![CDATA[_hey_notify_events]]></wp:meta_key>
    164148        <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  
    44 * Plugin URI: https://heynotifywp.com/
    55 * Description: Get notified when things happen in WordPress.
    6  * Version: 2.0.3
     6 * Version: 2.1.0
    77 * Author: FireTree Design, LLC <info@firetreedesign.com>
    88 * Author URI: https://firetreedesign.com/
     
    2020}
    2121
    22 define( 'HEY_NOTIFY_VERSION', '2.0.3' );
     22define( 'HEY_NOTIFY_VERSION', '2.1.0' );
    2323define( 'HEY_NOTIFY_PLUGIN_FILE', __FILE__ );
    2424define( 'HEY_NOTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
     
    5757require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-slack.php';
    5858require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-discord.php';
    59 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-microsoft-teams.php';
    6059require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-email.php';
  • hey-notify/tags/2.1.0/includes/admin/class-pages.php

    r3114686 r3128398  
    6868            </h1>
    6969            <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();
    8479                                }
    85                                 ?>
    86                             </table>
    87                         </form>
    88                     </div>
    89                 </div>
     80                                settings_errors();
     81                            }
     82                        }
     83                        ?>
     84                    </table>
     85                </form>
    9086            </div><!-- #tab_container-->
    9187        </div>
  • hey-notify/tags/2.1.0/includes/admin/metabox/fields/imageinput/imageinput.css

    r3114686 r3128398  
    4949    bottom: 0;
    5050    z-index: 1;
     51    background-color: #fff;
    5152}
    5253.hey-notify-imageinput-field-preview img {
  • hey-notify/tags/2.1.0/includes/admin/settings/class-general.php

    r3114686 r3128398  
    4646            'hey_notify_settings_general_section',
    4747            __( 'General Settings', 'hey-notify' ),
    48             array( $this, 'general_section_callback' ),
     48            null,
    4949            'hey_notify_settings_general'
    5050        );
     
    7575            'hey_notify_settings_general_cpt_section',
    7676            __( 'Custom Post Type Settings', 'hey-notify' ),
    77             array( $this, 'cpt_section_callback' ),
     77            null,
    7878            'hey_notify_settings_general'
    7979        );
     
    115115
    116116    /**
    117      * General section callback
    118      *
    119      * @since 1.5.0
    120      *
    121      * @return void
    122      */
    123     public function general_section_callback() {
    124         // Do nothing.
    125     }
    126 
    127     /**
    128      * CPT section callback
    129      *
    130      * @since 1.5.0
    131      *
    132      * @return void
    133      */
    134     public function cpt_section_callback() {
    135         // Do nothing.
    136     }
    137 
    138     /**
    139117     * Sanitize callback
    140118     *
  • hey-notify/tags/2.1.0/includes/cpt.php

    r3115944 r3128398  
    171171        .hey-notify-tag { border-radius: 3px; display: inline-block; margin-bottom: 4px; padding: 2px 4px; font-size: 11px; }
    172172        .hey-notify-tag:not(:last-of-type) { margin-right: 4px; }
     173        form table.form-table + h2 {
     174            margin-top: 30px !important;
     175        }
    173176    </style>
    174177    <?php
  • hey-notify/tags/2.1.0/includes/events/cpt/loader.php

    r3114686 r3128398  
    9999
    100100    // 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    }
    102104
    103105    return $decoded_post_types->{$post_type};
  • hey-notify/tags/2.1.0/includes/events/page/class-page-hook.php

    r2565473 r3128398  
    148148        }
    149149
    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        }
    155166
    156167        $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  
    304304
    305305        $this->send( $data );
    306 
    307306    }
    308307
     
    335334
    336335        \update_option( 'hey_notify_plugin_versions', $new_plugin_versions );
    337 
    338336    }
    339337
  • hey-notify/tags/2.1.0/includes/events/user/class-user-hook.php

    r2466792 r3128398  
    4141
    4242        $this->prepare_data( $subject, $user );
    43 
    4443    }
    4544
     
    6665
    6766        $this->prepare_data( $subject, $user );
    68 
    6967    }
    7068
     
    157155     */
    158156    private function get_ip_address() {
    159 
    160157        if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {
    161158            return sanitize_text_field( wp_unslash( $_SERVER['HTTP_CLIENT_IP'] ) );
     
    167164            return __( 'Unknown', 'hey-notify' );
    168165        }
    169 
    170166    }
    171167}
  • hey-notify/tags/2.1.0/includes/helpers.php

    r3115944 r3128398  
    143143        $page_title   = __( 'Edit Notification', 'hey-notify' );
    144144    }
     145
     146    $page_title = apply_filters( 'hey_notify_admin_page_title', $page_title );
    145147    ?>
    146148        <style>
  • hey-notify/tags/2.1.0/readme.md

    r3115944 r3128398  
    1313- Slack
    1414- Discord
    15 - Microsoft Teams
    1615- Email
    1716
  • hey-notify/tags/2.1.0/readme.txt

    r3115944 r3128398  
    55Tested up to: 6.6
    66Requires PHP: 7.2
    7 Stable tag: 2.0.3
     7Stable tag: 2.1.0
    88License: GPLv2 or later
    99License URI: http://ww.gnu.org/licenses/gpl-2.0.html
     
    1919* Slack
    2020* Discord
    21 * Microsoft Teams
    2221* Email
    2322
     
    7776== Changelog ==
    7877
     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
    7982= 2.0.3 =
    8083* Added support for Live Preview in the Plugin Directory.
  • hey-notify/trunk/data/live-preview.xml

    r3115944 r3128398  
    8989        </wp:postmeta>
    9090                            <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>
    9991        <wp:meta_key><![CDATA[_hey_notify_email_addresses]]></wp:meta_key>
    10092        <wp:meta_value><![CDATA[[{"email":"user@host.com"}]]]></wp:meta_value>
     
    153145        </wp:postmeta>
    154146                            <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>
    163147        <wp:meta_key><![CDATA[_hey_notify_events]]></wp:meta_key>
    164148        <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  
    44 * Plugin URI: https://heynotifywp.com/
    55 * Description: Get notified when things happen in WordPress.
    6  * Version: 2.0.3
     6 * Version: 2.1.0
    77 * Author: FireTree Design, LLC <info@firetreedesign.com>
    88 * Author URI: https://firetreedesign.com/
     
    2020}
    2121
    22 define( 'HEY_NOTIFY_VERSION', '2.0.3' );
     22define( 'HEY_NOTIFY_VERSION', '2.1.0' );
    2323define( 'HEY_NOTIFY_PLUGIN_FILE', __FILE__ );
    2424define( 'HEY_NOTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
     
    5757require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-slack.php';
    5858require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-discord.php';
    59 require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-microsoft-teams.php';
    6059require_once HEY_NOTIFY_PLUGIN_DIR . 'includes/services/class-email.php';
  • hey-notify/trunk/includes/admin/class-pages.php

    r3114686 r3128398  
    6868            </h1>
    6969            <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();
    8479                                }
    85                                 ?>
    86                             </table>
    87                         </form>
    88                     </div>
    89                 </div>
     80                                settings_errors();
     81                            }
     82                        }
     83                        ?>
     84                    </table>
     85                </form>
    9086            </div><!-- #tab_container-->
    9187        </div>
  • hey-notify/trunk/includes/admin/metabox/fields/imageinput/imageinput.css

    r3114686 r3128398  
    4949    bottom: 0;
    5050    z-index: 1;
     51    background-color: #fff;
    5152}
    5253.hey-notify-imageinput-field-preview img {
  • hey-notify/trunk/includes/admin/settings/class-general.php

    r3114686 r3128398  
    4646            'hey_notify_settings_general_section',
    4747            __( 'General Settings', 'hey-notify' ),
    48             array( $this, 'general_section_callback' ),
     48            null,
    4949            'hey_notify_settings_general'
    5050        );
     
    7575            'hey_notify_settings_general_cpt_section',
    7676            __( 'Custom Post Type Settings', 'hey-notify' ),
    77             array( $this, 'cpt_section_callback' ),
     77            null,
    7878            'hey_notify_settings_general'
    7979        );
     
    115115
    116116    /**
    117      * General section callback
    118      *
    119      * @since 1.5.0
    120      *
    121      * @return void
    122      */
    123     public function general_section_callback() {
    124         // Do nothing.
    125     }
    126 
    127     /**
    128      * CPT section callback
    129      *
    130      * @since 1.5.0
    131      *
    132      * @return void
    133      */
    134     public function cpt_section_callback() {
    135         // Do nothing.
    136     }
    137 
    138     /**
    139117     * Sanitize callback
    140118     *
  • hey-notify/trunk/includes/cpt.php

    r3115944 r3128398  
    171171        .hey-notify-tag { border-radius: 3px; display: inline-block; margin-bottom: 4px; padding: 2px 4px; font-size: 11px; }
    172172        .hey-notify-tag:not(:last-of-type) { margin-right: 4px; }
     173        form table.form-table + h2 {
     174            margin-top: 30px !important;
     175        }
    173176    </style>
    174177    <?php
  • hey-notify/trunk/includes/events/cpt/loader.php

    r3114686 r3128398  
    9999
    100100    // 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    }
    102104
    103105    return $decoded_post_types->{$post_type};
  • hey-notify/trunk/includes/events/page/class-page-hook.php

    r2565473 r3128398  
    148148        }
    149149
    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        }
    155166
    156167        $subject = apply_filters( 'hey_notify_page_pending_subject', $subject, $post );
  • hey-notify/trunk/includes/events/system/class-system-hook.php

    r2466792 r3128398  
    304304
    305305        $this->send( $data );
    306 
    307306    }
    308307
     
    335334
    336335        \update_option( 'hey_notify_plugin_versions', $new_plugin_versions );
    337 
    338336    }
    339337
  • hey-notify/trunk/includes/events/user/class-user-hook.php

    r2466792 r3128398  
    4141
    4242        $this->prepare_data( $subject, $user );
    43 
    4443    }
    4544
     
    6665
    6766        $this->prepare_data( $subject, $user );
    68 
    6967    }
    7068
     
    157155     */
    158156    private function get_ip_address() {
    159 
    160157        if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {
    161158            return sanitize_text_field( wp_unslash( $_SERVER['HTTP_CLIENT_IP'] ) );
     
    167164            return __( 'Unknown', 'hey-notify' );
    168165        }
    169 
    170166    }
    171167}
  • hey-notify/trunk/includes/helpers.php

    r3115944 r3128398  
    143143        $page_title   = __( 'Edit Notification', 'hey-notify' );
    144144    }
     145
     146    $page_title = apply_filters( 'hey_notify_admin_page_title', $page_title );
    145147    ?>
    146148        <style>
  • hey-notify/trunk/readme.md

    r3115944 r3128398  
    1313- Slack
    1414- Discord
    15 - Microsoft Teams
    1615- Email
    1716
  • hey-notify/trunk/readme.txt

    r3115944 r3128398  
    55Tested up to: 6.6
    66Requires PHP: 7.2
    7 Stable tag: 2.0.3
     7Stable tag: 2.1.0
    88License: GPLv2 or later
    99License URI: http://ww.gnu.org/licenses/gpl-2.0.html
     
    1919* Slack
    2020* Discord
    21 * Microsoft Teams
    2221* Email
    2322
     
    7776== Changelog ==
    7877
     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
    7982= 2.0.3 =
    8083* Added support for Live Preview in the Plugin Directory.
Note: See TracChangeset for help on using the changeset viewer.