Changeset 2053508
- Timestamp:
- 03/19/2019 03:23:57 PM (7 years ago)
- Location:
- sendwp
- Files:
-
- 39 added
- 7 edited
-
bin (added)
-
bin/release.sh (added)
-
tags/1.0.0 (added)
-
tags/1.0.0/assets (added)
-
tags/1.0.0/assets/class.assets.php (added)
-
tags/1.0.0/assets/css (added)
-
tags/1.0.0/assets/css/admin (added)
-
tags/1.0.0/assets/css/admin/notices.css (added)
-
tags/1.0.0/assets/css/admin/settings.css (added)
-
tags/1.0.0/assets/img (added)
-
tags/1.0.0/assets/img/logo-render.png (added)
-
tags/1.0.0/assets/js (added)
-
tags/1.0.0/assets/js/admin (added)
-
tags/1.0.0/assets/js/admin/settings.js (added)
-
tags/1.0.0/assets/load.php (added)
-
tags/1.0.0/includes (added)
-
tags/1.0.0/includes/.gitkeep (added)
-
tags/1.0.0/includes/activation.php (added)
-
tags/1.0.0/includes/admin (added)
-
tags/1.0.0/includes/admin/load.php (added)
-
tags/1.0.0/includes/admin/views (added)
-
tags/1.0.0/includes/admin/views/disabled-notice.html.php (added)
-
tags/1.0.0/includes/admin/views/menu.html.php (added)
-
tags/1.0.0/includes/api (added)
-
tags/1.0.0/includes/api/class.request.php (added)
-
tags/1.0.0/includes/api/load.php (added)
-
tags/1.0.0/includes/class.mailer.php (added)
-
tags/1.0.0/includes/compatibility.php (added)
-
tags/1.0.0/includes/functions.php (added)
-
tags/1.0.0/includes/hooks.php (added)
-
tags/1.0.0/includes/interface.mailer.php (added)
-
tags/1.0.0/includes/templates (added)
-
tags/1.0.0/includes/templates/php-version.html.php (added)
-
tags/1.0.0/readme.txt (added)
-
tags/1.0.0/sendwp.php (added)
-
trunk/assets/css/admin/settings.css (modified) (1 diff)
-
trunk/includes/activation.php (added)
-
trunk/includes/admin/load.php (modified) (1 diff)
-
trunk/includes/admin/views/menu.html.php (modified) (1 diff)
-
trunk/includes/class.mailer.php (modified) (1 diff)
-
trunk/includes/compatibility.php (added)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/includes/templates (added)
-
trunk/includes/templates/php-version.html.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sendwp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sendwp/trunk/assets/css/admin/settings.css
r2050002 r2053508 100 100 } 101 101 input:checked + .slider { 102 background-color: # 46717C;102 background-color: #84cc1e; 103 103 } 104 104 input:focus + .slider { 105 box-shadow: 0 0 1px # 96D5F1;105 box-shadow: 0 0 1px #84cc1e; 106 106 } 107 107 input:checked + .slider:before { -
sendwp/trunk/includes/admin/load.php
r2049980 r2053508 25 25 } 26 26 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 ); 28 28 } ); -
sendwp/trunk/includes/admin/views/menu.html.php
r2049980 r2053508 31 31 <?php } ?> 32 32 <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 33 38 <!-- spoiler --> 34 39 <div id="spoiler-block"> -
sendwp/trunk/includes/class.mailer.php
r2049980 r2053508 69 69 'from_name' => $this->FromName, 70 70 'subject' => $this->Subject, 71 'body' => $this->Body,72 'altbody' => $this->AltBody,73 71 ], 74 72 ]; 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 } 75 80 76 81 if( ! empty( $cc_emails ) ) { -
sendwp/trunk/includes/functions.php
r2049980 r2053508 24 24 function sendwp_get_client_redirect() 25 25 { 26 return get_admin_url( );26 return get_admin_url(null, 'tools.php'); 27 27 } 28 28 29 29 function sendwp_get_client_secret() 30 30 { 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; 32 37 } 33 38 -
sendwp/trunk/readme.txt
r2049980 r2053508 6 6 Tested up to: 5.0.3 7 7 Requires PHP: 5.2.4 8 Stable Tag: 0.0.18 Stable Tag: 1.0.0 9 9 License: GPLv2 or later 10 10 … … 35 35 == Changelog == 36 36 37 = 1.0.0 = 38 39 * Public release. 40 37 41 = 0.0.1 = 38 42 -
sendwp/trunk/sendwp.php
r2050002 r2053508 4 4 * Plugin Name: SendWP 5 5 * Description: The easy solution to transactional email in WordPress. 6 * Version: 0.0.3 6 * Version: 1.0.0 7 * Requires PHP: 5.6 7 8 */ 8 9 9 // @TODO Add PHP Version check. 10 if (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 } 10 15 11 16 require_once plugin_dir_path(__FILE__) . 'assets/load.php'; … … 21 26 } 22 27 23 register_activation_hook(__FILE__, function () { 24 if (! sendwp_get_client_secret()) { 25 sendwp_set_client_secret(sendwp_generate_secret()); 26 } 27 }); 28 require_once plugin_dir_path(__FILE__) . 'includes/activation.php';
Note: See TracChangeset
for help on using the changeset viewer.