Plugin Directory

Changeset 2053508


Ignore:
Timestamp:
03/19/2019 03:23:57 PM (7 years ago)
Author:
kbjohnson90
Message:

Release 1.0.0.

Location:
sendwp
Files:
39 added
7 edited

Legend:

Unmodified
Added
Removed
  • sendwp/trunk/assets/css/admin/settings.css

    r2050002 r2053508  
    100100}
    101101input:checked + .slider {
    102   background-color: #46717C;
     102  background-color: #84cc1e;
    103103}
    104104input:focus + .slider {
    105   box-shadow: 0 0 1px #96D5F1;
     105  box-shadow: 0 0 1px #84cc1e;
    106106}
    107107input:checked + .slider:before {
  • sendwp/trunk/includes/admin/load.php

    r2049980 r2053508  
    2525    }
    2626
    27     add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon, $position );
     27    add_submenu_page( 'tools.php', $page_title, $menu_title, $capability, $menu_slug, $function, $icon, $position );
    2828} );
  • sendwp/trunk/includes/admin/views/menu.html.php

    r2049980 r2053508  
    3131<?php } ?>
    3232<hr />
     33
     34<p>
     35    <strong>Questions?</strong> Get help at <a href="https://sendwp.com/account/get-help">https://sendwp.com/account/get-help</a>
     36</p>
     37
    3338<!-- spoiler -->
    3439<div id="spoiler-block">
  • sendwp/trunk/includes/class.mailer.php

    r2049980 r2053508  
    6969                'from_name' => $this->FromName,
    7070                'subject' => $this->Subject,
    71                 'body' => $this->Body,
    72                 'altbody' => $this->AltBody,
    7371            ],
    7472        ];
     73
     74        if('text/html' == $this->ContentType) {
     75            $args[ 'body' ][ 'body' ] = $this->Body;
     76            $args[ 'body' ][ 'altbody' ] = $this->AltBody;
     77        } else {
     78            $args[ 'body' ][ 'altbody' ] = $this->Body;
     79        }
    7580
    7681        if( ! empty( $cc_emails ) ) {
  • sendwp/trunk/includes/functions.php

    r2049980 r2053508  
    2424function sendwp_get_client_redirect()
    2525{
    26     return get_admin_url();
     26    return get_admin_url(null, 'tools.php');
    2727}
    2828
    2929function sendwp_get_client_secret()
    3030{
    31     return get_option( 'sendwp_client_secret' );
     31    $secret = get_option( 'sendwp_client_secret' );
     32    if(!$secret) {
     33        $secret = sendwp_generate_secret();
     34        sendwp_set_client_secret($secret);
     35    }
     36    return $secret;
    3237}
    3338
  • sendwp/trunk/readme.txt

    r2049980 r2053508  
    66Tested up to: 5.0.3
    77Requires PHP: 5.2.4
    8 Stable Tag: 0.0.1
     8Stable Tag: 1.0.0
    99License: GPLv2 or later
    1010
     
    3535== Changelog ==
    3636
     37= 1.0.0 =
     38
     39* Public release.
     40
    3741= 0.0.1 =
    3842
  • sendwp/trunk/sendwp.php

    r2050002 r2053508  
    44 * Plugin Name: SendWP
    55 * Description: The easy solution to transactional email in WordPress.
    6  * Version: 0.0.3
     6 * Version: 1.0.0
     7 * Requires PHP: 5.6
    78 */
    89
    9 // @TODO Add PHP Version check.
     10if (version_compare(PHP_VERSION, '5.6', '<')) {
     11    require_once plugin_dir_path(__FILE__) . 'includes/compatibility.php';
     12    add_action('admin_notices', 'sendwp_below_php_version_notice');
     13    return;
     14}
    1015
    1116require_once plugin_dir_path(__FILE__) . 'assets/load.php';
     
    2126}
    2227
    23 register_activation_hook(__FILE__, function () {
    24     if (! sendwp_get_client_secret()) {
    25         sendwp_set_client_secret(sendwp_generate_secret());
    26     }
    27 });
     28require_once plugin_dir_path(__FILE__) . 'includes/activation.php';
Note: See TracChangeset for help on using the changeset viewer.