Plugin Directory

Changeset 2898751


Ignore:
Timestamp:
04/13/2023 03:18:41 PM (3 years ago)
Author:
mrpritchett
Message:

Update to version 1.4.4 from GitHub

Location:
sendwp
Files:
3958 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sendwp/tags/1.4.4/includes/admin/load.php

    r2734984 r2898751  
    55    $capability = 'manage_options';
    66    $menu_slug = 'sendwp';
    7     $function = function () {
     7
     8    $function = function () {
    89        do_action('sendwp_heartbeat');
    910        $vars = [
     
    1819        wp_enqueue_style('sendwp-settings', plugins_url( 'assets/css/admin/settings.css', dirname(__DIR__)));
    1920    };
     21
     22    if( isset( $_GET['page'] ) && $_GET['page'] === 'sendwp' && ! empty( $_GET['grant-access'] ) ) {
     23        $function = function() {
     24            do_action( 'trustedlogin/sendwp/auth_screen' );
     25        };
     26    }
     27
    2028    $position = 100; // After bottom seperator.
    2129
  • sendwp/tags/1.4.4/includes/admin/views/menu.html.php

    r2757676 r2898751  
    66<div class="sendwp-page">
    77
    8 <img src="<?php echo \SendWP\Assets::image_url('logo-render.png'); ?>" alt="SendWP" class="logo" />
     8    <img src="<?php echo \SendWP\Assets::image_url('logo-render.png'); ?>" alt="SendWP" class="logo" />
    99
    10 <?php if(!$connected) { ?>
    11 <div id="sendwp-connect">
    12     <p><?php _e('Your site is currently not connected to sendwp.com.', 'sendwp'); ?></p>
    13     <form method="POST" action="<?php echo sendwp_get_server_url(); ?>_/signup">
    14         <input type="hidden" name="client_name" value="<?php echo sendwp_get_client_name(); ?>">
    15         <input type="hidden" name="client_url" value="<?php echo sendwp_get_client_url(); ?>">
    16         <input type="hidden" name="client_redirect" value="<?php echo sendwp_get_client_redirect(); ?>">
    17         <input type="hidden" name="client_secret" value="<?php echo sendwp_get_client_secret(); ?>">
    18         <input type="hidden" name="partner_id" value="<?php echo sendwp_get_client_partner_id(); ?>">
    19         <button type="submit" class="button button-primary">
    20             <?php _e('Connect to SendWP', 'sendwp'); ?>
    21         </button>
     10    <?php if(!$connected) { ?>
     11    <div id="sendwp-connect">
     12        <p><?php _e('Your site is currently not connected to sendwp.com.', 'sendwp'); ?></p>
     13        <form method="POST" action="<?php echo sendwp_get_server_url(); ?>_/signup">
     14            <input type="hidden" name="client_name" value="<?php echo sendwp_get_client_name(); ?>">
     15            <input type="hidden" name="client_url" value="<?php echo sendwp_get_client_url(); ?>">
     16            <input type="hidden" name="client_redirect" value="<?php echo sendwp_get_client_redirect(); ?>">
     17            <input type="hidden" name="client_secret" value="<?php echo sendwp_get_client_secret(); ?>">
     18            <input type="hidden" name="partner_id" value="<?php echo sendwp_get_client_partner_id(); ?>">
     19            <button type="submit" class="button button-primary">
     20                <?php _e('Connect to SendWP', 'sendwp'); ?>
     21            </button>
     22        </form>
     23    </div>
     24    <?php } else { ?>
     25    <div id="sendwp-enabled">
     26        <label class="switch" id="sendwp-enabled-button">
     27            <input type="checkbox" id="sendwp-enabled-checkbox" <?php print $forwarding ? 'checked' : ''; ?>/>
     28            <span class="slider round"></span>
     29        </label>
     30        <span id="sendwp-enabled-status"><?php print $forwarding ? $vars['enabled'] : $vars['disabled']; ?></span>
     31    </div>
     32    <?php } ?>
     33    <hr />
     34
     35    <p>
     36        <strong>Questions?</strong> Get help at <a href="https://sendwp.com/support">https://sendwp.com/support</a>
     37    </p>
     38
     39    <!-- spoiler -->
     40    <div id="spoiler-block">
     41        <span id="spoiler-title">Debug Info<span id="spoiler-arrow" class="down"></span></span>
     42        <div id="spoiler-content" class="closed">
     43            <ul>
     44                <li>Server URL: <?php echo sendwp_get_server_url(); ?></li>
     45                <li>Client Name: <?php echo sendwp_get_client_name(); ?></li>
     46                <li>Client URL: <?php echo sendwp_get_client_url(); ?></li>
     47                <li>Client Redirect: <?php echo sendwp_get_client_redirect(); ?></li>
     48                <li>Client Secret: <?php echo sendwp_get_client_secret(); ?></li>
     49                <li>Authorization Hash: <?php echo sendwp_generate_hash() ?> </li>
     50                <li>Connection Status: <?php print $connected ? 'Connected' : 'Not Connected'; ?></li>
     51                <li>Forwarding Status: <?php print $forwarding ? 'Enabled' : 'Disabled'; ?></li>
     52                <li>Last Check In: <?php echo sendwp_last_pulse(); ?></li>
     53                <li>Last Result: <?php echo sendwp_last_pulse_result(); ?></li>
     54            </ul>
     55        </div>
     56    </div>
     57
     58    <form action="<?php echo admin_url('admin-post.php'); ?>" method="post">
     59        <input type="hidden" name="action" value="sendwp_reset_plugin_data">
     60        <?php wp_nonce_field('reset_sendwp_data' . sendwp_get_client_secret()); ?>
     61
     62        <input class="button button-link" style="margin: 8px 0 0;" type="submit" value="Reset Security Hash">
    2263    </form>
    23 </div>
    24 <?php } else { ?>
    25 <div id="sendwp-enabled">
    26     <label class="switch" id="sendwp-enabled-button">
    27         <input type="checkbox" id="sendwp-enabled-checkbox" <?php print $forwarding ? 'checked' : ''; ?>/>
    28         <span class="slider round"></span>
    29     </label>
    30     <span id="sendwp-enabled-status"><?php print $forwarding ? $vars['enabled'] : $vars['disabled']; ?></span>
    31 </div>
    32 <?php } ?>
    33 <hr />
    3464
    35 <p>
    36     <strong>Questions?</strong> Get help at <a href="https://sendwp.com/support">https://sendwp.com/support</a>
    37 </p>
    38 
    39 <!-- spoiler -->
    40 <div id="spoiler-block">
    41     <span id="spoiler-title">Debug Info<span id="spoiler-arrow" class="down"></span></span>
    42     <div id="spoiler-content" class="closed">
    43         <ul>
    44             <li>Server URL: <?php echo sendwp_get_server_url(); ?></li>
    45             <li>Client Name: <?php echo sendwp_get_client_name(); ?></li>
    46             <li>Client URL: <?php echo sendwp_get_client_url(); ?></li>
    47             <li>Client Redirect: <?php echo sendwp_get_client_redirect(); ?></li>
    48             <li>Client Secret: <?php echo sendwp_get_client_secret(); ?></li>
    49             <li>Authorization Hash: <?php echo sendwp_generate_hash() ?> </li>
    50             <li>Connection Status: <?php print $connected ? 'Connected' : 'Not Connected'; ?></li>
    51             <li>Forwarding Status: <?php print $forwarding ? 'Enabled' : 'Disabled'; ?></li>
    52             <li>Last Check In: <?php echo sendwp_last_pulse(); ?></li>
    53             <li>Last Result: <?php echo sendwp_last_pulse_result(); ?></li>
    54         </ul>
    55     </div>
    56 </div>
    57 
    58 <form action="<?php echo admin_url('admin-post.php'); ?>" method="post">
    59     <input type="hidden" name="action" value="sendwp_reset_plugin_data">
    60     <?php wp_nonce_field('reset_sendwp_data' . sendwp_get_client_secret()); ?>
    61 
    62     <input class="button button-link" style="margin: 8px 0 0;" type="submit" value="Reset Security Hash">
    63 </form>
    64 
     65    <a class="button button-link" href="<?php echo esc_url( add_query_arg( [ 'grant-access' => 1 ] ) ); ?>">Grant Support Access</a>
    6566
    6667</div>
  • sendwp/tags/1.4.4/readme.txt

    r2765871 r2898751  
    44Tags: forms, email, transactional
    55Requires at least: 5.1
    6 Tested up to: 6.0
     6Tested up to: 6.2
    77Requires PHP: 5.6.0
    8 Stable Tag: 1.3.1
     8Stable Tag: 1.4.4
    99License: GPLv2 or later
    1010
     
    3131== Upgrade Notice ==
    3232
    33 = 1.3.1 =
     33= 1.4.4 =
    3434
    35 * Fixes an issue with security secrets causing disconnect for some customers.
     35* Fixes a few bugs.
    3636
    3737== Changelog ==
     38
     39= 1.4.4 =
     40
     41* Fixes a few bugs.
     42
     43= 1.4 =
     44
     45* Adds trusted login as a better way to give support access to investigate issues
    3846
    3947= 1.3.1 =
  • sendwp/tags/1.4.4/sendwp.php

    r2765871 r2898751  
    44 * Plugin Name: SendWP
    55 * Description: The easy solution to transactional email in WordPress.
    6  * Version: 1.3.1
     6 * Version: 1.4.4
    77 * Requires PHP: 5.6
    88 */
     
    2828require_once plugin_dir_path(__FILE__) . 'includes/activation.php';
    2929require_once plugin_dir_path(__FILE__) . 'includes/deactivation.php';
     30require_once plugin_dir_path(__FILE__) . 'includes/trustedlogin.php';
  • sendwp/trunk/includes/admin/load.php

    r2734984 r2898751  
    55    $capability = 'manage_options';
    66    $menu_slug = 'sendwp';
    7     $function = function () {
     7
     8    $function = function () {
    89        do_action('sendwp_heartbeat');
    910        $vars = [
     
    1819        wp_enqueue_style('sendwp-settings', plugins_url( 'assets/css/admin/settings.css', dirname(__DIR__)));
    1920    };
     21
     22    if( isset( $_GET['page'] ) && $_GET['page'] === 'sendwp' && ! empty( $_GET['grant-access'] ) ) {
     23        $function = function() {
     24            do_action( 'trustedlogin/sendwp/auth_screen' );
     25        };
     26    }
     27
    2028    $position = 100; // After bottom seperator.
    2129
  • sendwp/trunk/includes/admin/views/menu.html.php

    r2757676 r2898751  
    66<div class="sendwp-page">
    77
    8 <img src="<?php echo \SendWP\Assets::image_url('logo-render.png'); ?>" alt="SendWP" class="logo" />
     8    <img src="<?php echo \SendWP\Assets::image_url('logo-render.png'); ?>" alt="SendWP" class="logo" />
    99
    10 <?php if(!$connected) { ?>
    11 <div id="sendwp-connect">
    12     <p><?php _e('Your site is currently not connected to sendwp.com.', 'sendwp'); ?></p>
    13     <form method="POST" action="<?php echo sendwp_get_server_url(); ?>_/signup">
    14         <input type="hidden" name="client_name" value="<?php echo sendwp_get_client_name(); ?>">
    15         <input type="hidden" name="client_url" value="<?php echo sendwp_get_client_url(); ?>">
    16         <input type="hidden" name="client_redirect" value="<?php echo sendwp_get_client_redirect(); ?>">
    17         <input type="hidden" name="client_secret" value="<?php echo sendwp_get_client_secret(); ?>">
    18         <input type="hidden" name="partner_id" value="<?php echo sendwp_get_client_partner_id(); ?>">
    19         <button type="submit" class="button button-primary">
    20             <?php _e('Connect to SendWP', 'sendwp'); ?>
    21         </button>
     10    <?php if(!$connected) { ?>
     11    <div id="sendwp-connect">
     12        <p><?php _e('Your site is currently not connected to sendwp.com.', 'sendwp'); ?></p>
     13        <form method="POST" action="<?php echo sendwp_get_server_url(); ?>_/signup">
     14            <input type="hidden" name="client_name" value="<?php echo sendwp_get_client_name(); ?>">
     15            <input type="hidden" name="client_url" value="<?php echo sendwp_get_client_url(); ?>">
     16            <input type="hidden" name="client_redirect" value="<?php echo sendwp_get_client_redirect(); ?>">
     17            <input type="hidden" name="client_secret" value="<?php echo sendwp_get_client_secret(); ?>">
     18            <input type="hidden" name="partner_id" value="<?php echo sendwp_get_client_partner_id(); ?>">
     19            <button type="submit" class="button button-primary">
     20                <?php _e('Connect to SendWP', 'sendwp'); ?>
     21            </button>
     22        </form>
     23    </div>
     24    <?php } else { ?>
     25    <div id="sendwp-enabled">
     26        <label class="switch" id="sendwp-enabled-button">
     27            <input type="checkbox" id="sendwp-enabled-checkbox" <?php print $forwarding ? 'checked' : ''; ?>/>
     28            <span class="slider round"></span>
     29        </label>
     30        <span id="sendwp-enabled-status"><?php print $forwarding ? $vars['enabled'] : $vars['disabled']; ?></span>
     31    </div>
     32    <?php } ?>
     33    <hr />
     34
     35    <p>
     36        <strong>Questions?</strong> Get help at <a href="https://sendwp.com/support">https://sendwp.com/support</a>
     37    </p>
     38
     39    <!-- spoiler -->
     40    <div id="spoiler-block">
     41        <span id="spoiler-title">Debug Info<span id="spoiler-arrow" class="down"></span></span>
     42        <div id="spoiler-content" class="closed">
     43            <ul>
     44                <li>Server URL: <?php echo sendwp_get_server_url(); ?></li>
     45                <li>Client Name: <?php echo sendwp_get_client_name(); ?></li>
     46                <li>Client URL: <?php echo sendwp_get_client_url(); ?></li>
     47                <li>Client Redirect: <?php echo sendwp_get_client_redirect(); ?></li>
     48                <li>Client Secret: <?php echo sendwp_get_client_secret(); ?></li>
     49                <li>Authorization Hash: <?php echo sendwp_generate_hash() ?> </li>
     50                <li>Connection Status: <?php print $connected ? 'Connected' : 'Not Connected'; ?></li>
     51                <li>Forwarding Status: <?php print $forwarding ? 'Enabled' : 'Disabled'; ?></li>
     52                <li>Last Check In: <?php echo sendwp_last_pulse(); ?></li>
     53                <li>Last Result: <?php echo sendwp_last_pulse_result(); ?></li>
     54            </ul>
     55        </div>
     56    </div>
     57
     58    <form action="<?php echo admin_url('admin-post.php'); ?>" method="post">
     59        <input type="hidden" name="action" value="sendwp_reset_plugin_data">
     60        <?php wp_nonce_field('reset_sendwp_data' . sendwp_get_client_secret()); ?>
     61
     62        <input class="button button-link" style="margin: 8px 0 0;" type="submit" value="Reset Security Hash">
    2263    </form>
    23 </div>
    24 <?php } else { ?>
    25 <div id="sendwp-enabled">
    26     <label class="switch" id="sendwp-enabled-button">
    27         <input type="checkbox" id="sendwp-enabled-checkbox" <?php print $forwarding ? 'checked' : ''; ?>/>
    28         <span class="slider round"></span>
    29     </label>
    30     <span id="sendwp-enabled-status"><?php print $forwarding ? $vars['enabled'] : $vars['disabled']; ?></span>
    31 </div>
    32 <?php } ?>
    33 <hr />
    3464
    35 <p>
    36     <strong>Questions?</strong> Get help at <a href="https://sendwp.com/support">https://sendwp.com/support</a>
    37 </p>
    38 
    39 <!-- spoiler -->
    40 <div id="spoiler-block">
    41     <span id="spoiler-title">Debug Info<span id="spoiler-arrow" class="down"></span></span>
    42     <div id="spoiler-content" class="closed">
    43         <ul>
    44             <li>Server URL: <?php echo sendwp_get_server_url(); ?></li>
    45             <li>Client Name: <?php echo sendwp_get_client_name(); ?></li>
    46             <li>Client URL: <?php echo sendwp_get_client_url(); ?></li>
    47             <li>Client Redirect: <?php echo sendwp_get_client_redirect(); ?></li>
    48             <li>Client Secret: <?php echo sendwp_get_client_secret(); ?></li>
    49             <li>Authorization Hash: <?php echo sendwp_generate_hash() ?> </li>
    50             <li>Connection Status: <?php print $connected ? 'Connected' : 'Not Connected'; ?></li>
    51             <li>Forwarding Status: <?php print $forwarding ? 'Enabled' : 'Disabled'; ?></li>
    52             <li>Last Check In: <?php echo sendwp_last_pulse(); ?></li>
    53             <li>Last Result: <?php echo sendwp_last_pulse_result(); ?></li>
    54         </ul>
    55     </div>
    56 </div>
    57 
    58 <form action="<?php echo admin_url('admin-post.php'); ?>" method="post">
    59     <input type="hidden" name="action" value="sendwp_reset_plugin_data">
    60     <?php wp_nonce_field('reset_sendwp_data' . sendwp_get_client_secret()); ?>
    61 
    62     <input class="button button-link" style="margin: 8px 0 0;" type="submit" value="Reset Security Hash">
    63 </form>
    64 
     65    <a class="button button-link" href="<?php echo esc_url( add_query_arg( [ 'grant-access' => 1 ] ) ); ?>">Grant Support Access</a>
    6566
    6667</div>
  • sendwp/trunk/readme.txt

    r2765871 r2898751  
    44Tags: forms, email, transactional
    55Requires at least: 5.1
    6 Tested up to: 6.0
     6Tested up to: 6.2
    77Requires PHP: 5.6.0
    8 Stable Tag: 1.3.1
     8Stable Tag: 1.4.4
    99License: GPLv2 or later
    1010
     
    3131== Upgrade Notice ==
    3232
    33 = 1.3.1 =
     33= 1.4.4 =
    3434
    35 * Fixes an issue with security secrets causing disconnect for some customers.
     35* Fixes a few bugs.
    3636
    3737== Changelog ==
     38
     39= 1.4.4 =
     40
     41* Fixes a few bugs.
     42
     43= 1.4 =
     44
     45* Adds trusted login as a better way to give support access to investigate issues
    3846
    3947= 1.3.1 =
  • sendwp/trunk/sendwp.php

    r2765871 r2898751  
    44 * Plugin Name: SendWP
    55 * Description: The easy solution to transactional email in WordPress.
    6  * Version: 1.3.1
     6 * Version: 1.4.4
    77 * Requires PHP: 5.6
    88 */
     
    2828require_once plugin_dir_path(__FILE__) . 'includes/activation.php';
    2929require_once plugin_dir_path(__FILE__) . 'includes/deactivation.php';
     30require_once plugin_dir_path(__FILE__) . 'includes/trustedlogin.php';
Note: See TracChangeset for help on using the changeset viewer.