Compare commits

..

9 Commits

Author SHA1 Message Date
f35b66b3cf Release 3.0.0-rc.1.0.2 2017-08-08 17:45:04 +03:00
7900e7eb8d Merge pull request #1035 from mailpoet/new-poll
New poll [MAILPOET-1018]
2017-08-08 09:17:41 -04:00
849a24ced7 Merge pull request #1019 from mailpoet/translate
translate the DB error message [MAILPOET-1019]
2017-08-08 13:08:54 +03:00
f7e73b06be added missing argument 2017-08-08 10:02:51 +00:00
52cbb9fcb2 Merge pull request #1032 from mailpoet/css-form
Update form css [MAILPOET-593]
2017-08-08 11:48:09 +02:00
966ec0cb7a New poll
[MAILPOET-1018]
2017-08-03 13:17:37 +02:00
2ff0d40d10 Updates reference to the hook that displays IIS error 2017-08-03 08:14:46 +02:00
f044db5745 Update form css
[MAILPOET-593]
2017-08-01 11:28:53 +02:00
9859df98b7 translate the DB error message 2017-07-31 08:53:30 +00:00
7 changed files with 41 additions and 17 deletions

View File

@ -5,6 +5,7 @@ use MailPoet\API;
use MailPoet\Cron\CronTrigger; use MailPoet\Cron\CronTrigger;
use MailPoet\Router; use MailPoet\Router;
use MailPoet\Util\ConflictResolver; use MailPoet\Util\ConflictResolver;
use MailPoet\Util\Helpers;
use MailPoet\WP\Notice as WPNotice; use MailPoet\WP\Notice as WPNotice;
if(!defined('ABSPATH')) exit; if(!defined('ABSPATH')) exit;
@ -13,7 +14,8 @@ require_once(ABSPATH . 'wp-admin/includes/plugin.php');
class Initializer { class Initializer {
const UNABLE_TO_CONNECT = '<strong>Mailpoet:</strong> Unable to connect to the database (the database is unable to open a file or folder), the connection is likely not configured correctly. Please read our <a href="http://beta.docs.mailpoet.com/article/200-solving-database-connection-issues">Knowledge Base article</a> for steps how to resolve it.'; const UNABLE_TO_CONNECT = 'Unable to connect to the database (the database is unable to open a file or folder), the connection is likely not configured correctly. Please read our [link] Knowledge Base article [/link] for steps how to resolve it.';
const SOLVE_DB_ISSUE_URL = 'http://beta.docs.mailpoet.com/article/200-solving-database-connection-issues';
protected $plugin_initialized = false; protected $plugin_initialized = false;
@ -36,7 +38,11 @@ class Initializer {
try { try {
$this->setupDB(); $this->setupDB();
} catch(\Exception $e) { } catch(\Exception $e) {
return WPNotice::displayWarning(self::UNABLE_TO_CONNECT); return WPNotice::displayError(Helpers::replaceLinkTags(
__(self::UNABLE_TO_CONNECT, 'mailpoet'),
self::SOLVE_DB_ISSUE_URL,
array('target' => '_blank')
));
} }
// activation function // activation function

View File

@ -79,7 +79,7 @@ class Date extends Base {
$html .= '</select>'; $html .= '</select>';
} else if($date_selector === 'MM') { } else if($date_selector === 'MM') {
$block['selected'] = $month; $block['selected'] = $month;
$html .= '<select class="mailpoet_date_month" '; $html .= '<select class="mailpoet_select mailpoet_date_month" ';
$html .= static::getInputValidation($block, array( $html .= static::getInputValidation($block, array(
'required-message' => __('Please select a month', 'mailpoet') 'required-message' => __('Please select a month', 'mailpoet')
)); ));

View File

@ -8,7 +8,7 @@ class Submit extends Base {
static function render($block) { static function render($block) {
$html = ''; $html = '';
$html .= '<p class="mailpoet_submit"><input type="submit" '; $html .= '<p class="mailpoet_paragraph"><input type="submit" class="mailpoet_submit" ';
$html .= 'value="'.static::getFieldLabel($block).'" '; $html .= 'value="'.static::getFieldLabel($block).'" ';

View File

@ -13,10 +13,11 @@ class Styles {
/* paragraphs (label + input) */ /* paragraphs (label + input) */
.mailpoet_paragraph { .mailpoet_paragraph {
line-height:20px;
} }
/* labels */ /* labels */
.mailpoet_segment_label,
.mailpoet_text_label, .mailpoet_text_label,
.mailpoet_textarea_label, .mailpoet_textarea_label,
.mailpoet_select_label, .mailpoet_select_label,
@ -25,18 +26,35 @@ class Styles {
.mailpoet_list_label, .mailpoet_list_label,
.mailpoet_date_label { .mailpoet_date_label {
display:block; display:block;
font-weight:bold;
} }
/* inputs */ /* inputs */
.mailpoet_text, .mailpoet_text,
.mailpoet_textarea, .mailpoet_textarea,
.mailpoet_select, .mailpoet_select,
.mailpoet_date_month,
.mailpoet_date_day,
.mailpoet_date_year,
.mailpoet_date { .mailpoet_date {
display:block; display:block;
} }
.mailpoet_checkbox { .mailpoet_text,
.mailpoet_textarea {
width:200px;
}
.mailpoet_checkbox {
}
.mailpoet_submit input {
}
.mailpoet_divider {
}
.mailpoet_message {
} }
.mailpoet_validate_success { .mailpoet_validate_success {

View File

@ -4,7 +4,7 @@ if(!defined('ABSPATH')) exit;
/* /*
* Plugin Name: MailPoet 3 (new) * Plugin Name: MailPoet 3 (new)
* Version: 3.0.0-rc.1.0.1 * Version: 3.0.0-rc.1.0.2
* Plugin URI: http://www.mailpoet.com * Plugin URI: http://www.mailpoet.com
* Description: Create and send newsletters, post notifications and welcome emails from your WordPress. * Description: Create and send newsletters, post notifications and welcome emails from your WordPress.
* Author: MailPoet * Author: MailPoet
@ -21,7 +21,7 @@ if(!defined('ABSPATH')) exit;
*/ */
$mailpoet_plugin = array( $mailpoet_plugin = array(
'version' => '3.0.0-rc.1.0.1', 'version' => '3.0.0-rc.1.0.2',
'filename' => __FILE__, 'filename' => __FILE__,
'path' => dirname(__FILE__), 'path' => dirname(__FILE__),
'autoloader' => dirname(__FILE__) . '/vendor/autoload.php', 'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',
@ -54,11 +54,8 @@ function mailpoet_php_version_notice() {
printf('<div class="error"><p>%1$s</p></div>', $notice); printf('<div class="error"><p>%1$s</p></div>', $notice);
} }
if( if(isset($_SERVER['SERVER_SOFTWARE']) && strpos(strtolower($_SERVER['SERVER_SOFTWARE']), 'microsoft-iis') !== false) {
isset($_SERVER["SERVER_SOFTWARE"]) add_action('admin_notices', 'mailpoet_microsoft_iis_notice');
&& strpos(strtolower($_SERVER["SERVER_SOFTWARE"]), "microsoft-iis") !== false
) {
add_action('admin_notices', 'mailpoet_php_version_notice');
// deactivate the plugin // deactivate the plugin
add_action('admin_init', 'mailpoet_deactivate_plugin'); add_action('admin_init', 'mailpoet_deactivate_plugin');
return; return;
@ -66,7 +63,7 @@ if(
// Display IIS server error notice // Display IIS server error notice
function mailpoet_microsoft_iis_notice() { function mailpoet_microsoft_iis_notice() {
$notice = __('MailPoet plugin cannot run under Microsoft\'s Internet Information Services (IIS) web server. We recommend that you use a web server powered by Apache or NGINX.', 'mailpoet'); $notice = __("MailPoet plugin cannot run under Microsoft's Internet Information Services (IIS) web server. We recommend that you use a web server powered by Apache or NGINX.", 'mailpoet');
printf('<div class="error"><p>%1$s</p></div>', $notice); printf('<div class="error"><p>%1$s</p></div>', $notice);
} }

View File

@ -3,7 +3,7 @@ Contributors: mailpoet, wysija
Tags: newsletter, email, welcome email, post notification, autoresponder, signup, subscription, SMTP Tags: newsletter, email, welcome email, post notification, autoresponder, signup, subscription, SMTP
Requires at least: 4.6 Requires at least: 4.6
Tested up to: 4.8 Tested up to: 4.8
Stable tag: 3.0.0-rc.1.0.1 Stable tag: 3.0.0-rc.1.0.2
Create and send beautiful emails and newsletters from WordPress. Create and send beautiful emails and newsletters from WordPress.
== Description == == Description ==
@ -93,6 +93,9 @@ Our [support site](https://beta.docs.mailpoet.com) has plenty of articles. You c
== Changelog == == Changelog ==
= 3.0.0-rc.1.0.2 - 2017-08-08 =
* Fixed: correct error notice is displayed when using IIS server. Thanks @flauer!
= 3.0.0-rc.1.0.1 - 2017-08-02 = = 3.0.0-rc.1.0.1 - 2017-08-02 =
* Fixed: we were so excited to come out of Beta, we forgot to include translation files. Woops :) * Fixed: we were so excited to come out of Beta, we forgot to include translation files. Woops :)

View File

@ -60,8 +60,8 @@
<div class="feature-section one-col mailpoet_centered"> <div class="feature-section one-col mailpoet_centered">
<h2><%= __('Care to Give Your Opinion?') %></h2> <h2><%= __('Care to Give Your Opinion?') %></h2>
<script type="text/javascript" charset="utf-8" src="//static.polldaddy.com/p/9601216.js"></script> <script type="text/javascript" charset="utf-8" src="https://secure.polldaddy.com/p/9792513.js"></script>
<noscript><a href="//polldaddy.com/poll/9601216/">You're using MailPoet version 3. But have you ever used version 2 before?</a></noscript> <noscript><a href="//polldaddy.com/poll/9792513/">How many people on this website use MailPoet to send emails?</a></noscript>
</div> </div>
<hr> <hr>