From e9a077a74215fb3e8e354403d2a9cbe93947001b Mon Sep 17 00:00:00 2001 From: yehudah Date: Wed, 4 Apr 2018 19:17:51 +0000 Subject: notification & new gmail client git-svn-id: https://plugins.svn.wordpress.org/post-smtp/trunk@1852760 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- .../PostmanConfigurationController.php | 71 +++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) (limited to 'Postman/Postman-Configuration/PostmanConfigurationController.php') diff --git a/Postman/Postman-Configuration/PostmanConfigurationController.php b/Postman/Postman-Configuration/PostmanConfigurationController.php index 97972c2..6abb5e2 100644 --- a/Postman/Postman-Configuration/PostmanConfigurationController.php +++ b/Postman/Postman-Configuration/PostmanConfigurationController.php @@ -200,6 +200,7 @@ class PostmanConfigurationController { print sprintf( '
  • %s
  • ', __( 'Message', Postman::TEXT_DOMAIN ) ); print sprintf( '
  • %s
  • ', __( 'Logging', Postman::TEXT_DOMAIN ) ); print sprintf( '
  • %s
  • ', __( 'Advanced', Postman::TEXT_DOMAIN ) ); + print sprintf( '
  • %s
  • ', __( 'Notifications', Postman::TEXT_DOMAIN ) ); print ''; print '
    '; // This prints out all hidden setting fields @@ -248,6 +249,24 @@ class PostmanConfigurationController { do_settings_sections( PostmanAdminController::NETWORK_OPTIONS ); do_settings_sections( PostmanAdminController::ADVANCED_OPTIONS ); print ''; + + print '
    '; + do_settings_sections( PostmanAdminController::NOTIFICATIONS_OPTIONS ); + + $currentKey = $this->options->getNotificationService(); + $pushover = $currentKey == 'pushover' ? 'block' : 'none'; + $slack = $currentKey == 'slack' ? 'block' : 'none'; + + echo '
    '; + do_settings_sections( PostmanAdminController::NOTIFICATIONS_PUSHOVER_CRED ); + echo '
    '; + + echo '
    '; + do_settings_sections( PostmanAdminController::NOTIFICATIONS_SLACK_CRED ); + echo '
    '; + + print '
    '; + submit_button(); print '
    '; print ''; @@ -362,7 +381,57 @@ class PostmanConfigurationController { } print ''; - // Wizard Step 5 + // Wizard Step 5 - Notificiations + printf( '
    %s
    ', __( 'Notifications', Postman::TEXT_DOMAIN ) ); + print '
    '; + printf( '%s', __( 'Select a notify service to notify you when an email is failed to delivered.', Postman::TEXT_DOMAIN ) ); + + ?> + + + + + '; + + // Wizard Step 6 printf( '
    %s
    ', _x( 'Finish', 'The final step of the Wizard', Postman::TEXT_DOMAIN ) ); print '
    '; printf( '%s', _x( 'You\'re Done!', 'Wizard Step Title', Postman::TEXT_DOMAIN ) ); -- cgit v1.2.3