1
.gitignore
vendored
1
.gitignore
vendored
@ -17,3 +17,4 @@ tests/javascript/testBundles
|
|||||||
assets/css/*.css
|
assets/css/*.css
|
||||||
assets/js/*.js
|
assets/js/*.js
|
||||||
.vagrant
|
.vagrant
|
||||||
|
lang
|
6
build.sh
6
build.sh
@ -1,5 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Translations (npm install & composer install need to be run before)
|
||||||
|
./do makepot
|
||||||
|
|
||||||
plugin_name='mailpoet'
|
plugin_name='mailpoet'
|
||||||
|
|
||||||
# Remove previous build.
|
# Remove previous build.
|
||||||
@ -16,9 +19,6 @@ npm install
|
|||||||
# Production libraries.
|
# Production libraries.
|
||||||
./composer.phar install --no-dev
|
./composer.phar install --no-dev
|
||||||
|
|
||||||
# Translations
|
|
||||||
./do makepot
|
|
||||||
|
|
||||||
# Copy release folders.
|
# Copy release folders.
|
||||||
cp -Rf lang $plugin_name
|
cp -Rf lang $plugin_name
|
||||||
cp -RfL assets $plugin_name
|
cp -RfL assets $plugin_name
|
||||||
|
4160
lang/mailpoet.pot
4160
lang/mailpoet.pot
File diff suppressed because it is too large
Load Diff
@ -30,7 +30,7 @@ class API {
|
|||||||
if($this->checkToken() === false) {
|
if($this->checkToken() === false) {
|
||||||
$error_response = new ErrorResponse(
|
$error_response = new ErrorResponse(
|
||||||
array(
|
array(
|
||||||
Error::UNAUTHORIZED => __('You need to specify a valid API token.')
|
Error::UNAUTHORIZED => __('You need to specify a valid API token.', 'mailpoet')
|
||||||
),
|
),
|
||||||
array(),
|
array(),
|
||||||
Response::STATUS_UNAUTHORIZED
|
Response::STATUS_UNAUTHORIZED
|
||||||
@ -41,7 +41,7 @@ class API {
|
|||||||
if($this->checkPermissions() === false) {
|
if($this->checkPermissions() === false) {
|
||||||
$error_response = new ErrorResponse(
|
$error_response = new ErrorResponse(
|
||||||
array(
|
array(
|
||||||
Error::FORBIDDEN => __('You do not have the required permissions.')
|
Error::FORBIDDEN => __('You do not have the required permissions.', 'mailpoet')
|
||||||
),
|
),
|
||||||
array(),
|
array(),
|
||||||
Response::STATUS_FORBIDDEN
|
Response::STATUS_FORBIDDEN
|
||||||
@ -56,7 +56,7 @@ class API {
|
|||||||
if($this->checkToken() === false) {
|
if($this->checkToken() === false) {
|
||||||
$error_response = new ErrorResponse(
|
$error_response = new ErrorResponse(
|
||||||
array(
|
array(
|
||||||
Error::UNAUTHORIZED => __('You need to specify a valid API token.')
|
Error::UNAUTHORIZED => __('You need to specify a valid API token.', 'mailpoet')
|
||||||
),
|
),
|
||||||
array(),
|
array(),
|
||||||
Response::STATUS_UNAUTHORIZED
|
Response::STATUS_UNAUTHORIZED
|
||||||
|
@ -16,7 +16,7 @@ abstract class Endpoint {
|
|||||||
) {
|
) {
|
||||||
if(empty($errors)) {
|
if(empty($errors)) {
|
||||||
$errors = array(
|
$errors = array(
|
||||||
Error::UNKNOWN => __('An unknown error occurred.')
|
Error::UNKNOWN => __('An unknown error occurred.', 'mailpoet')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return new ErrorResponse($errors, $meta, $status);
|
return new ErrorResponse($errors, $meta, $status);
|
||||||
@ -25,7 +25,7 @@ abstract class Endpoint {
|
|||||||
function badRequest($errors = array(), $meta = array()) {
|
function badRequest($errors = array(), $meta = array()) {
|
||||||
if(empty($errors)) {
|
if(empty($errors)) {
|
||||||
$errors = array(
|
$errors = array(
|
||||||
Error::BAD_REQUEST => __('Invalid request parameters.')
|
Error::BAD_REQUEST => __('Invalid request parameters.', 'mailpoet')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return new ErrorResponse($errors, $meta, Response::STATUS_BAD_REQUEST);
|
return new ErrorResponse($errors, $meta, Response::STATUS_BAD_REQUEST);
|
||||||
|
@ -21,7 +21,7 @@ class CustomFields extends APIEndpoint {
|
|||||||
$custom_field = CustomField::findOne($id);
|
$custom_field = CustomField::findOne($id);
|
||||||
if($custom_field === false) {
|
if($custom_field === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This custom field does not exist.')
|
APIError::NOT_FOUND => __('This custom field does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$custom_field->delete();
|
$custom_field->delete();
|
||||||
@ -48,7 +48,7 @@ class CustomFields extends APIEndpoint {
|
|||||||
$custom_field = CustomField::findOne($id);
|
$custom_field = CustomField::findOne($id);
|
||||||
if($custom_field === false) {
|
if($custom_field === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This custom field does not exist.')
|
APIError::NOT_FOUND => __('This custom field does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
return $this->successResponse($custom_field->asArray());
|
return $this->successResponse($custom_field->asArray());
|
||||||
|
@ -17,7 +17,7 @@ class Forms extends APIEndpoint {
|
|||||||
$form = Form::findOne($id);
|
$form = Form::findOne($id);
|
||||||
if($form === false) {
|
if($form === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This form does not exist.')
|
APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
return $this->successResponse($form->asArray());
|
return $this->successResponse($form->asArray());
|
||||||
@ -57,31 +57,31 @@ class Forms extends APIEndpoint {
|
|||||||
function create() {
|
function create() {
|
||||||
// create new form
|
// create new form
|
||||||
$form_data = array(
|
$form_data = array(
|
||||||
'name' => __('New form'),
|
'name' => __('New form', 'mailpoet'),
|
||||||
'body' => array(
|
'body' => array(
|
||||||
array(
|
array(
|
||||||
'id' => 'email',
|
'id' => 'email',
|
||||||
'name' => __('Email'),
|
'name' => __('Email', 'mailpoet'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'static' => true,
|
'static' => true,
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'label' => __('Email'),
|
'label' => __('Email', 'mailpoet'),
|
||||||
'required' => true
|
'required' => true
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'id' => 'submit',
|
'id' => 'submit',
|
||||||
'name' => __('Submit'),
|
'name' => __('Submit', 'mailpoet'),
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
'static' => true,
|
'static' => true,
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'label' => __('Subscribe!')
|
'label' => __('Subscribe!', 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'settings' => array(
|
'settings' => array(
|
||||||
'on_success' => 'message',
|
'on_success' => 'message',
|
||||||
'success_message' => __('Check your inbox or spam folder to confirm your subscription.'),
|
'success_message' => __('Check your inbox or spam folder to confirm your subscription.', 'mailpoet'),
|
||||||
'segments' => null,
|
'segments' => null,
|
||||||
'segments_selected_by' => 'admin'
|
'segments_selected_by' => 'admin'
|
||||||
)
|
)
|
||||||
@ -124,7 +124,7 @@ class Forms extends APIEndpoint {
|
|||||||
$form = Form::findOne($id);
|
$form = Form::findOne($id);
|
||||||
if($form === false) {
|
if($form === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This form does not exist.')
|
APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$exports = Util\Export::getAll($form->asArray());
|
$exports = Util\Export::getAll($form->asArray());
|
||||||
@ -136,7 +136,7 @@ class Forms extends APIEndpoint {
|
|||||||
$id = (isset($data['id']) ? (int)$data['id'] : false);
|
$id = (isset($data['id']) ? (int)$data['id'] : false);
|
||||||
|
|
||||||
$form_id = (isset($data['id']) ? (int)$data['id'] : 0);
|
$form_id = (isset($data['id']) ? (int)$data['id'] : 0);
|
||||||
$name = (isset($data['name']) ? $data['name'] : __('New form'));
|
$name = (isset($data['name']) ? $data['name'] : __('New form', 'mailpoet'));
|
||||||
$body = (isset($data['body']) ? $data['body'] : array());
|
$body = (isset($data['body']) ? $data['body'] : array());
|
||||||
$settings = (isset($data['settings']) ? $data['settings'] : array());
|
$settings = (isset($data['settings']) ? $data['settings'] : array());
|
||||||
$styles = (isset($data['styles']) ? $data['styles'] : '');
|
$styles = (isset($data['styles']) ? $data['styles'] : '');
|
||||||
@ -206,7 +206,7 @@ class Forms extends APIEndpoint {
|
|||||||
$form = Form::findOne($id);
|
$form = Form::findOne($id);
|
||||||
if($form === false) {
|
if($form === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This form does not exist.')
|
APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$form->restore();
|
$form->restore();
|
||||||
@ -222,7 +222,7 @@ class Forms extends APIEndpoint {
|
|||||||
$form = Form::findOne($id);
|
$form = Form::findOne($id);
|
||||||
if($form === false) {
|
if($form === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This form does not exist.')
|
APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$form->trash();
|
$form->trash();
|
||||||
@ -238,7 +238,7 @@ class Forms extends APIEndpoint {
|
|||||||
$form = Form::findOne($id);
|
$form = Form::findOne($id);
|
||||||
if($form === false) {
|
if($form === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This form does not exist.')
|
APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$form->delete();
|
$form->delete();
|
||||||
@ -252,11 +252,11 @@ class Forms extends APIEndpoint {
|
|||||||
|
|
||||||
if($form === false) {
|
if($form === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This form does not exist.')
|
APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$data = array(
|
$data = array(
|
||||||
'name' => sprintf(__('Copy of %s'), $form->name)
|
'name' => sprintf(__('Copy of %s', 'mailpoet'), $form->name)
|
||||||
);
|
);
|
||||||
$duplicate = $form->duplicate($data);
|
$duplicate = $form->duplicate($data);
|
||||||
$errors = $duplicate->getErrors();
|
$errors = $duplicate->getErrors();
|
||||||
|
@ -22,7 +22,7 @@ class Mailer extends APIEndpoint {
|
|||||||
|
|
||||||
if($result === false) {
|
if($result === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::BAD_REQUEST => __("The email could not be sent. Please check your settings.")
|
APIError::BAD_REQUEST => __("The email could not be sent. Please check your settings.", 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
return $this->successResponse(null);
|
return $this->successResponse(null);
|
||||||
|
@ -13,7 +13,7 @@ class NewsletterTemplates extends APIEndpoint {
|
|||||||
$template = NewsletterTemplate::findOne($id);
|
$template = NewsletterTemplate::findOne($id);
|
||||||
if($template === false) {
|
if($template === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This template does not exist.')
|
APIError::NOT_FOUND => __('This template does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
return $this->successResponse(
|
return $this->successResponse(
|
||||||
@ -49,7 +49,7 @@ class NewsletterTemplates extends APIEndpoint {
|
|||||||
$template = NewsletterTemplate::findOne($id);
|
$template = NewsletterTemplate::findOne($id);
|
||||||
if($template === false) {
|
if($template === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This template does not exist.')
|
APIError::NOT_FOUND => __('This template does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$template->delete();
|
$template->delete();
|
||||||
|
@ -27,7 +27,7 @@ class Newsletters extends APIEndpoint {
|
|||||||
$newsletter = Newsletter::findOne($id);
|
$newsletter = Newsletter::findOne($id);
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
return $this->successResponse(
|
return $this->successResponse(
|
||||||
@ -101,7 +101,7 @@ class Newsletters extends APIEndpoint {
|
|||||||
|
|
||||||
if(!$status) {
|
if(!$status) {
|
||||||
return $this->badRequest(array(
|
return $this->badRequest(array(
|
||||||
APIError::BAD_REQUEST => __('You need to specify a status.')
|
APIError::BAD_REQUEST => __('You need to specify a status.', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ class Newsletters extends APIEndpoint {
|
|||||||
|
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ class Newsletters extends APIEndpoint {
|
|||||||
$newsletter = Newsletter::findOne($id);
|
$newsletter = Newsletter::findOne($id);
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$newsletter->restore();
|
$newsletter->restore();
|
||||||
@ -147,7 +147,7 @@ class Newsletters extends APIEndpoint {
|
|||||||
$newsletter = Newsletter::findOne($id);
|
$newsletter = Newsletter::findOne($id);
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$newsletter->trash();
|
$newsletter->trash();
|
||||||
@ -163,7 +163,7 @@ class Newsletters extends APIEndpoint {
|
|||||||
$newsletter = Newsletter::findOne($id);
|
$newsletter = Newsletter::findOne($id);
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$newsletter->delete();
|
$newsletter->delete();
|
||||||
@ -177,11 +177,11 @@ class Newsletters extends APIEndpoint {
|
|||||||
|
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$data = array(
|
$data = array(
|
||||||
'subject' => sprintf(__('Copy of %s'), $newsletter->subject)
|
'subject' => sprintf(__('Copy of %s', 'mailpoet'), $newsletter->subject)
|
||||||
);
|
);
|
||||||
$duplicate = $newsletter->duplicate($data);
|
$duplicate = $newsletter->duplicate($data);
|
||||||
$errors = $duplicate->getErrors();
|
$errors = $duplicate->getErrors();
|
||||||
@ -200,7 +200,7 @@ class Newsletters extends APIEndpoint {
|
|||||||
function showPreview($data = array()) {
|
function showPreview($data = array()) {
|
||||||
if(empty($data['body'])) {
|
if(empty($data['body'])) {
|
||||||
return $this->badRequest(array(
|
return $this->badRequest(array(
|
||||||
APIError::BAD_REQUEST => __('Newsletter data is missing.')
|
APIError::BAD_REQUEST => __('Newsletter data is missing.', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ class Newsletters extends APIEndpoint {
|
|||||||
|
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$newsletter->body = $data['body'];
|
$newsletter->body = $data['body'];
|
||||||
@ -229,7 +229,7 @@ class Newsletters extends APIEndpoint {
|
|||||||
function sendPreview($data = array()) {
|
function sendPreview($data = array()) {
|
||||||
if(empty($data['subscriber'])) {
|
if(empty($data['subscriber'])) {
|
||||||
return $this->badRequest(array(
|
return $this->badRequest(array(
|
||||||
APIError::BAD_REQUEST => __('Please specify receiver information.')
|
APIError::BAD_REQUEST => __('Please specify receiver information.', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,7 +238,7 @@ class Newsletters extends APIEndpoint {
|
|||||||
|
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$newsletter = $newsletter->asArray();
|
$newsletter = $newsletter->asArray();
|
||||||
|
@ -17,7 +17,7 @@ class Segments extends APIEndpoint {
|
|||||||
$segment = Segment::findOne($id);
|
$segment = Segment::findOne($id);
|
||||||
if($segment === false) {
|
if($segment === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This list does not exist.')
|
APIError::NOT_FOUND => __('This list does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
return $this->successResponse($segment->asArray());
|
return $this->successResponse($segment->asArray());
|
||||||
@ -68,7 +68,7 @@ class Segments extends APIEndpoint {
|
|||||||
$segment = Segment::findOne($id);
|
$segment = Segment::findOne($id);
|
||||||
if($segment === false) {
|
if($segment === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This list does not exist.')
|
APIError::NOT_FOUND => __('This list does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$segment->restore();
|
$segment->restore();
|
||||||
@ -84,7 +84,7 @@ class Segments extends APIEndpoint {
|
|||||||
$segment = Segment::findOne($id);
|
$segment = Segment::findOne($id);
|
||||||
if($segment === false) {
|
if($segment === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This list does not exist.')
|
APIError::NOT_FOUND => __('This list does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$segment->trash();
|
$segment->trash();
|
||||||
@ -100,7 +100,7 @@ class Segments extends APIEndpoint {
|
|||||||
$segment = Segment::findOne($id);
|
$segment = Segment::findOne($id);
|
||||||
if($segment === false) {
|
if($segment === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This list does not exist.')
|
APIError::NOT_FOUND => __('This list does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$segment->delete();
|
$segment->delete();
|
||||||
@ -114,11 +114,11 @@ class Segments extends APIEndpoint {
|
|||||||
|
|
||||||
if($segment === false) {
|
if($segment === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This list does not exist.')
|
APIError::NOT_FOUND => __('This list does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$data = array(
|
$data = array(
|
||||||
'name' => sprintf(__('Copy of %s'), $segment->name)
|
'name' => sprintf(__('Copy of %s', 'mailpoet'), $segment->name)
|
||||||
);
|
);
|
||||||
$duplicate = $segment->duplicate($data);
|
$duplicate = $segment->duplicate($data);
|
||||||
$errors = $duplicate->getErrors();
|
$errors = $duplicate->getErrors();
|
||||||
|
@ -29,7 +29,7 @@ class SendingQueue extends APIEndpoint {
|
|||||||
|
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ class SendingQueue extends APIEndpoint {
|
|||||||
|
|
||||||
if(!empty($queue)) {
|
if(!empty($queue)) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter is already being sent.')
|
APIError::NOT_FOUND => __('This newsletter is already being sent.', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ class SendingQueue extends APIEndpoint {
|
|||||||
$subscribers = array_unique($subscribers);
|
$subscribers = array_unique($subscribers);
|
||||||
if(!count($subscribers)) {
|
if(!count($subscribers)) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::UNKNOWN => __('There are no subscribers in that list!')
|
APIError::UNKNOWN => __('There are no subscribers in that list!', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
$queue->status = null;
|
$queue->status = null;
|
||||||
@ -119,14 +119,14 @@ class SendingQueue extends APIEndpoint {
|
|||||||
|
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$queue = $newsletter->getQueue();
|
$queue = $newsletter->getQueue();
|
||||||
|
|
||||||
if($queue === false) {
|
if($queue === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::UNKNOWN => __('This newsletter has not been sent yet.')
|
APIError::UNKNOWN => __('This newsletter has not been sent yet.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$queue->pause();
|
$queue->pause();
|
||||||
@ -145,14 +145,14 @@ class SendingQueue extends APIEndpoint {
|
|||||||
$newsletter = Newsletter::findOne($newsletter_id);
|
$newsletter = Newsletter::findOne($newsletter_id);
|
||||||
if($newsletter === false) {
|
if($newsletter === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This newsletter does not exist.')
|
APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$queue = $newsletter->getQueue();
|
$queue = $newsletter->getQueue();
|
||||||
|
|
||||||
if($queue === false) {
|
if($queue === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::UNKNOWN => __('This newsletter has not been sent yet.')
|
APIError::UNKNOWN => __('This newsletter has not been sent yet.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$queue->resume();
|
$queue->resume();
|
||||||
|
@ -15,7 +15,7 @@ class Settings extends APIEndpoint {
|
|||||||
if(empty($settings)) {
|
if(empty($settings)) {
|
||||||
return $this->badRequest(array(
|
return $this->badRequest(array(
|
||||||
APIError::BAD_REQUEST =>
|
APIError::BAD_REQUEST =>
|
||||||
__("You have not specified any settings to be saved.")
|
__("You have not specified any settings to be saved.", 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
foreach($settings as $name => $value) {
|
foreach($settings as $name => $value) {
|
||||||
|
@ -20,7 +20,7 @@ class Subscribers extends APIEndpoint {
|
|||||||
$subscriber = Subscriber::findOne($id);
|
$subscriber = Subscriber::findOne($id);
|
||||||
if($subscriber === false) {
|
if($subscriber === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This subscriber does not exist.')
|
APIError::NOT_FOUND => __('This subscriber does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
return $this->successResponse(
|
return $this->successResponse(
|
||||||
@ -67,7 +67,7 @@ class Subscribers extends APIEndpoint {
|
|||||||
|
|
||||||
if(empty($segment_ids)) {
|
if(empty($segment_ids)) {
|
||||||
return $this->badRequest(array(
|
return $this->badRequest(array(
|
||||||
APIError::BAD_REQUEST => __('Please select a list')
|
APIError::BAD_REQUEST => __('Please select a list', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ class Subscribers extends APIEndpoint {
|
|||||||
$subscriber = Subscriber::findOne($id);
|
$subscriber = Subscriber::findOne($id);
|
||||||
if($subscriber === false) {
|
if($subscriber === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This subscriber does not exist.')
|
APIError::NOT_FOUND => __('This subscriber does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$subscriber->restore();
|
$subscriber->restore();
|
||||||
@ -134,7 +134,7 @@ class Subscribers extends APIEndpoint {
|
|||||||
$subscriber = Subscriber::findOne($id);
|
$subscriber = Subscriber::findOne($id);
|
||||||
if($subscriber === false) {
|
if($subscriber === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This subscriber does not exist.')
|
APIError::NOT_FOUND => __('This subscriber does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$subscriber->trash();
|
$subscriber->trash();
|
||||||
@ -150,7 +150,7 @@ class Subscribers extends APIEndpoint {
|
|||||||
$subscriber = Subscriber::findOne($id);
|
$subscriber = Subscriber::findOne($id);
|
||||||
if($subscriber === false) {
|
if($subscriber === false) {
|
||||||
return $this->errorResponse(array(
|
return $this->errorResponse(array(
|
||||||
APIError::NOT_FOUND => __('This subscriber does not exist.')
|
APIError::NOT_FOUND => __('This subscriber does not exist.', 'mailpoet')
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
$subscriber->delete();
|
$subscriber->delete();
|
||||||
|
@ -148,7 +148,7 @@ class Hooks {
|
|||||||
|
|
||||||
function appendImageSize($sizes) {
|
function appendImageSize($sizes) {
|
||||||
return array_merge($sizes, array(
|
return array_merge($sizes, array(
|
||||||
'mailpoet_newsletter_max' => __('MailPoet Newsletter')
|
'mailpoet_newsletter_max' => __('MailPoet Newsletter', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,8 +25,6 @@ class Localizer {
|
|||||||
$language_path =
|
$language_path =
|
||||||
Env::$languages_path
|
Env::$languages_path
|
||||||
. '/'
|
. '/'
|
||||||
. Env::$plugin_name
|
|
||||||
. '-'
|
|
||||||
. $this->locale()
|
. $this->locale()
|
||||||
. '.mo';
|
. '.mo';
|
||||||
load_textdomain(Env::$plugin_name, $language_path);
|
load_textdomain(Env::$plugin_name, $language_path);
|
||||||
|
@ -59,8 +59,8 @@ class Menu {
|
|||||||
|
|
||||||
$newsletters_page = add_submenu_page(
|
$newsletters_page = add_submenu_page(
|
||||||
$main_page_slug,
|
$main_page_slug,
|
||||||
$this->setPageTitle(__('Newsletters')),
|
$this->setPageTitle(__('Newsletters', 'mailpoet')),
|
||||||
__('Newsletters'),
|
__('Newsletters', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
$main_page_slug,
|
$main_page_slug,
|
||||||
array($this, 'newsletters')
|
array($this, 'newsletters')
|
||||||
@ -79,8 +79,8 @@ class Menu {
|
|||||||
|
|
||||||
$forms_page = add_submenu_page(
|
$forms_page = add_submenu_page(
|
||||||
$main_page_slug,
|
$main_page_slug,
|
||||||
$this->setPageTitle(__('Forms')),
|
$this->setPageTitle(__('Forms', 'mailpoet')),
|
||||||
__('Forms'),
|
__('Forms', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'mailpoet-forms',
|
'mailpoet-forms',
|
||||||
array($this, 'forms')
|
array($this, 'forms')
|
||||||
@ -98,8 +98,8 @@ class Menu {
|
|||||||
|
|
||||||
$subscribers_page = add_submenu_page(
|
$subscribers_page = add_submenu_page(
|
||||||
$main_page_slug,
|
$main_page_slug,
|
||||||
$this->setPageTitle(__('Subscribers')),
|
$this->setPageTitle(__('Subscribers', 'mailpoet')),
|
||||||
__('Subscribers'),
|
__('Subscribers', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'mailpoet-subscribers',
|
'mailpoet-subscribers',
|
||||||
array($this, 'subscribers')
|
array($this, 'subscribers')
|
||||||
@ -117,8 +117,8 @@ class Menu {
|
|||||||
|
|
||||||
$segments_page = add_submenu_page(
|
$segments_page = add_submenu_page(
|
||||||
$main_page_slug,
|
$main_page_slug,
|
||||||
$this->setPageTitle(__('Lists')),
|
$this->setPageTitle(__('Lists', 'mailpoet')),
|
||||||
__('Lists'),
|
__('Lists', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'mailpoet-segments',
|
'mailpoet-segments',
|
||||||
array($this, 'segments')
|
array($this, 'segments')
|
||||||
@ -137,16 +137,16 @@ class Menu {
|
|||||||
|
|
||||||
add_submenu_page(
|
add_submenu_page(
|
||||||
$main_page_slug,
|
$main_page_slug,
|
||||||
$this->setPageTitle( __('Settings')),
|
$this->setPageTitle( __('Settings', 'mailpoet')),
|
||||||
__('Settings'),
|
__('Settings', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'mailpoet-settings',
|
'mailpoet-settings',
|
||||||
array($this, 'settings')
|
array($this, 'settings')
|
||||||
);
|
);
|
||||||
add_submenu_page(
|
add_submenu_page(
|
||||||
'admin.php?page=mailpoet-subscribers',
|
'admin.php?page=mailpoet-subscribers',
|
||||||
$this->setPageTitle( __('Import')),
|
$this->setPageTitle( __('Import', 'mailpoet')),
|
||||||
__('Import'),
|
__('Import', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'mailpoet-import',
|
'mailpoet-import',
|
||||||
array($this, 'import')
|
array($this, 'import')
|
||||||
@ -154,8 +154,8 @@ class Menu {
|
|||||||
|
|
||||||
add_submenu_page(
|
add_submenu_page(
|
||||||
true,
|
true,
|
||||||
$this->setPageTitle(__('Export')),
|
$this->setPageTitle(__('Export', 'mailpoet')),
|
||||||
__('Export'),
|
__('Export', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'mailpoet-export',
|
'mailpoet-export',
|
||||||
array($this, 'export')
|
array($this, 'export')
|
||||||
@ -163,8 +163,8 @@ class Menu {
|
|||||||
|
|
||||||
add_submenu_page(
|
add_submenu_page(
|
||||||
true,
|
true,
|
||||||
$this->setPageTitle(__('Welcome')),
|
$this->setPageTitle(__('Welcome', 'mailpoet')),
|
||||||
__('Welcome'),
|
__('Welcome', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'mailpoet-welcome',
|
'mailpoet-welcome',
|
||||||
array($this, 'welcome')
|
array($this, 'welcome')
|
||||||
@ -172,8 +172,8 @@ class Menu {
|
|||||||
|
|
||||||
add_submenu_page(
|
add_submenu_page(
|
||||||
true,
|
true,
|
||||||
$this->setPageTitle(__('Update')),
|
$this->setPageTitle(__('Update', 'mailpoet')),
|
||||||
__('Update'),
|
__('Update', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'mailpoet-update',
|
'mailpoet-update',
|
||||||
array($this, 'update')
|
array($this, 'update')
|
||||||
@ -181,8 +181,8 @@ class Menu {
|
|||||||
|
|
||||||
add_submenu_page(
|
add_submenu_page(
|
||||||
true,
|
true,
|
||||||
$this->setPageTitle(__('Form Editor')),
|
$this->setPageTitle(__('Form Editor', 'mailpoet')),
|
||||||
__('Form Editor'),
|
__('Form Editor', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'mailpoet-form-editor',
|
'mailpoet-form-editor',
|
||||||
array($this, 'formEditor')
|
array($this, 'formEditor')
|
||||||
@ -190,8 +190,8 @@ class Menu {
|
|||||||
|
|
||||||
add_submenu_page(
|
add_submenu_page(
|
||||||
true,
|
true,
|
||||||
$this->setPageTitle(__('Newsletter')),
|
$this->setPageTitle(__('Newsletter', 'mailpoet')),
|
||||||
__('Newsletter Editor'),
|
__('Newsletter Editor', 'mailpoet'),
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'mailpoet-newsletter-editor',
|
'mailpoet-newsletter-editor',
|
||||||
array($this, 'newletterEditor')
|
array($this, 'newletterEditor')
|
||||||
@ -355,7 +355,7 @@ class Menu {
|
|||||||
$data['segments'] = Segment::getSegmentsWithSubscriberCount($type = false);
|
$data['segments'] = Segment::getSegmentsWithSubscriberCount($type = false);
|
||||||
$data['settings'] = Setting::getAll();
|
$data['settings'] = Setting::getAll();
|
||||||
$data['roles'] = $wp_roles->get_names();
|
$data['roles'] = $wp_roles->get_names();
|
||||||
$data['roles']['mailpoet_all'] = __('In any WordPress role');
|
$data['roles']['mailpoet_all'] = __('In any WordPress role', 'mailpoet');
|
||||||
|
|
||||||
$date_time = new DateTime();
|
$date_time = new DateTime();
|
||||||
$data['current_date'] = $date_time->getCurrentDate(DateTime::DEFAULT_DATE_FORMAT);
|
$data['current_date'] = $date_time->getCurrentDate(DateTime::DEFAULT_DATE_FORMAT);
|
||||||
@ -430,7 +430,7 @@ class Menu {
|
|||||||
function setPageTitle($title) {
|
function setPageTitle($title) {
|
||||||
return sprintf(
|
return sprintf(
|
||||||
'%s - %s',
|
'%s - %s',
|
||||||
__('MailPoet'),
|
__('MailPoet', 'mailpoet'),
|
||||||
$title
|
$title
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -131,9 +131,9 @@ class Populator {
|
|||||||
if(Segment::where('type', 'default')->count() === 0) {
|
if(Segment::where('type', 'default')->count() === 0) {
|
||||||
$default_segment = Segment::create();
|
$default_segment = Segment::create();
|
||||||
$default_segment->hydrate(array(
|
$default_segment->hydrate(array(
|
||||||
'name' => __('My First List'),
|
'name' => __('My First List', 'mailpoet'),
|
||||||
'description' =>
|
'description' =>
|
||||||
__('This list is automatically created when you install MailPoet')
|
__('This list is automatically created when you install MailPoet', 'mailpoet')
|
||||||
));
|
));
|
||||||
$default_segment->save();
|
$default_segment->save();
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,8 @@ class FranksRoastHouseTemplate {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Frank's Roast House"),
|
'name' => __("Frank's Roast House", 'mailpoet'),
|
||||||
'description' => __("Think of this as your sandbox. Play around with this example newsletter to see what MailPoet can do for you."),
|
'description' => __("Think of this as your sandbox. Play around with this example newsletter to see what MailPoet can do for you.", 'mailpoet'),
|
||||||
'readonly' => 0,
|
'readonly' => 0,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -46,7 +46,7 @@ class FranksRoastHouseTemplate {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "header",
|
"type" => "header",
|
||||||
"text" => __("<a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser.</a>"),
|
"text" => __("<a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser.</a>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "#ccc6c6"
|
"backgroundColor" => "#ccc6c6"
|
||||||
@ -67,7 +67,7 @@ class FranksRoastHouseTemplate {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://www.example.com",
|
"link" => "http://www.example.com",
|
||||||
"src" => $this->template_image_url . "/header-v2.jpg",
|
"src" => $this->template_image_url . "/header-v2.jpg",
|
||||||
"alt" => __("Frank's Café"),
|
"alt" => __("Frank's Café", 'mailpoet'),
|
||||||
"fullWidth" => true,
|
"fullWidth" => true,
|
||||||
"width" => "600px",
|
"width" => "600px",
|
||||||
"height" => "220px",
|
"height" => "220px",
|
||||||
@ -88,13 +88,13 @@ class FranksRoastHouseTemplate {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>Hi there [subscriber:firstname | default:coffee drinker]</p>\n<p></p>\n<p>Sit back and enjoy your favorite roast as you read this week's newsletter. </p>")
|
"text" => __("<p>Hi there [subscriber:firstname | default:coffee drinker]</p>\n<p></p>\n<p>Sit back and enjoy your favorite roast as you read this week's newsletter. </p>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "http://example.org",
|
||||||
"src" => $this->template_image_url . "/coffee-grain.jpg",
|
"src" => $this->template_image_url . "/coffee-grain.jpg",
|
||||||
"alt" => __("coffee-grain-3-1329675-1599x941"),
|
"alt" => __('Coffee grain', 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "1599px",
|
"width" => "1599px",
|
||||||
"height" => "777px",
|
"height" => "777px",
|
||||||
@ -106,7 +106,7 @@ class FranksRoastHouseTemplate {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\">--- Guest Coffee Roaster: <em>Brew Bros. ---</em></h1>\n<p><em></em></p>\n<p>Visit our Center Avenue store to try the latest guest coffee from Brew Bros, a local coffee roaster. This young duo started only two years ago, but have quickly gained popularity through pop-up shops, local events, and collaborations with food trucks.</p>\n<p></p>\n<blockquote>\n<p><span style=\"color: #ff6600;\"><em>Tasting notes: A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!</em></span></p>\n</blockquote>")
|
"text" => __("<h1 style=\"text-align: center;\">--- Guest Coffee Roaster: <em>Brew Bros. ---</em></h1>\n<p><em></em></p>\n<p>Visit our Center Avenue store to try the latest guest coffee from Brew Bros, a local coffee roaster. This young duo started only two years ago, but have quickly gained popularity through pop-up shops, local events, and collaborations with food trucks.</p>\n<p></p>\n<blockquote>\n<p><span style=\"color: #ff6600;\"><em>Tasting notes: A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!</em></span></p>\n</blockquote>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -132,13 +132,13 @@ class FranksRoastHouseTemplate {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h2>Sandwich Competition</h2>")
|
"text" => __("<h2>Sandwich Competition</h2>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "http://example.org",
|
||||||
"src" => $this->template_image_url . "/sandwich.jpg",
|
"src" => $this->template_image_url . "/sandwich.jpg",
|
||||||
"alt" => "sandwich",
|
"alt" => __('Sandwich', 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "640px",
|
"width" => "640px",
|
||||||
"height" => "344px",
|
"height" => "344px",
|
||||||
@ -150,7 +150,7 @@ class FranksRoastHouseTemplate {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>Have an idea for the Next Great Sandwich? Tell us! We're offering free lunch for a month if you can invent an awesome new sandwich for our menu.</p>\n<p></p>\n<p></p>\n<p>Simply tweet your ideas to <a href=\"http://www.example.com\" title=\"This isn't a real twitter account\">@franksroasthouse</a> and use #sandwichcomp and we'll let you know if you're a winner.</p>")
|
"text" => __("<p>Have an idea for the Next Great Sandwich? Tell us! We're offering free lunch for a month if you can invent an awesome new sandwich for our menu.</p>\n<p></p>\n<p></p>\n<p>Simply tweet your ideas to <a href=\"http://www.example.com\" title=\"This isn't a real twitter account\">@franksroasthouse</a> and use #sandwichcomp and we'll let you know if you're a winner.</p>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "button",
|
"type" => "button",
|
||||||
@ -175,7 +175,7 @@ class FranksRoastHouseTemplate {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h3 style=\"text-align: center;\">Follow Us</h3>")
|
"text" => __("<h3 style=\"text-align: center;\">Follow Us</h3>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "social",
|
"type" => "social",
|
||||||
@ -232,13 +232,13 @@ class FranksRoastHouseTemplate {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h2>New Store Opening!</h2>")
|
"text" => __("<h2>New Store Opening!</h2>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "http://example.org",
|
"link" => "http://example.org",
|
||||||
"src" => $this->template_image_url . "/map-v2.jpg",
|
"src" => $this->template_image_url . "/map-v2.jpg",
|
||||||
"alt" => __("map-v2"),
|
"alt" => __('Map', 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "636px",
|
"width" => "636px",
|
||||||
"height" => "342px",
|
"height" => "342px",
|
||||||
@ -250,11 +250,11 @@ class FranksRoastHouseTemplate {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>Watch out Broad Street, we're coming to you very soon! </p>\n<p></p>\n<p>Keep an eye on your inbox, as we'll have some special offers for our email subscribers plus an exclusive launch party invite!<br /><br /></p>")
|
"text" => __("<p>Watch out Broad Street, we're coming to you very soon! </p>\n<p></p>\n<p>Keep an eye on your inbox, as we'll have some special offers for our email subscribers plus an exclusive launch party invite!<br /><br /></p>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h2>New and Improved Hours!</h2>\n<p></p>\n<p>Frank's is now open even later, so you can get your caffeine fix all day (and night) long! Here's our new opening hours:</p>\n<p></p>\n<ul>\n<li>Monday - Thursday: 6am - 12am</li>\n<li>Friday - Saturday: 6am - 1:30am</li>\n<li>Sunday: 7:30am - 11pm</li>\n</ul>")
|
"text" => __("<h2>New and Improved Hours!</h2>\n<p></p>\n<p>Frank's is now open even later, so you can get your caffeine fix all day (and night) long! Here's our new opening hours:</p>\n<p></p>\n<ul>\n<li>Monday - Thursday: 6am - 12am</li>\n<li>Friday - Saturday: 6am - 1:30am</li>\n<li>Sunday: 7:30am - 11pm</li>\n</ul>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -280,7 +280,7 @@ class FranksRoastHouseTemplate {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a><br />12345 MailPoet Drive, EmailVille, 76543</p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a><br />12345 MailPoet Drive, EmailVille, 76543</p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "#a9a7a7"
|
"backgroundColor" => "#a9a7a7"
|
||||||
|
@ -13,8 +13,8 @@ class NewsletterBlank121Column {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Newsletter: Blank 1:2:1 Column"),
|
'name' => __("Newsletter: Blank 1:2:1 Column", 'mailpoet'),
|
||||||
'description' => __("A blank Newsletter template with a 1:2:1 column layout."),
|
'description' => __("A blank Newsletter template with a 1:2:1 column layout.", 'mailpoet'),
|
||||||
'readonly' => 1,
|
'readonly' => 1,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -52,7 +52,7 @@ class NewsletterBlank121Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "header",
|
"type" => "header",
|
||||||
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>"),
|
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
@ -104,7 +104,7 @@ class NewsletterBlank121Column {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "598px",
|
"width" => "598px",
|
||||||
"height" => "71px",
|
"height" => "71px",
|
||||||
@ -116,7 +116,7 @@ class NewsletterBlank121Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started!</strong></h1>\n<p>It's time to design your newsletter! On the right sidebar, you'll find four menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>")
|
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started!</strong></h1>\n<p>It's time to design your newsletter! On the right sidebar, you'll find four menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "divider",
|
"type" => "divider",
|
||||||
@ -154,11 +154,11 @@ class NewsletterBlank121Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h2>This template has...</h2>")
|
"text" => __("<h2>This template has...</h2>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>In the right sidebar, you can add layout blocks to your email:</p>\n<ul>\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>")
|
"text" => __("<p>In the right sidebar, you can add layout blocks to your email:</p>\n<ul>\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -173,11 +173,11 @@ class NewsletterBlank121Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h2>... a 2-column layout.</h2>")
|
"text" => __("<h2>... a 2-column layout.</h2>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>You can change a layout's background color by clicking on the settings icon on the right edge of the Designer. Simply hover over this area to see the Settings (gear) icon.</p>")
|
"text" => __("<p>You can change a layout's background color by clicking on the settings icon on the right edge of the Designer. Simply hover over this area to see the Settings (gear) icon.</p>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -237,7 +237,7 @@ class NewsletterBlank121Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h3 style=\"text-align: center;\"><span style=\"font-weight: 600;\">Let's end with a single column. </span></h3>\n<p style=\"line-height: 25.6px;\">In the right sidebar, you can add these layout blocks to your email:</p>\n<p style=\"line-height: 25.6px;\"></p>\n<ul style=\"line-height: 25.6px;\">\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>")
|
"text" => __("<h3 style=\"text-align: center;\"><span style=\"font-weight: 600;\">Let's end with a single column. </span></h3>\n<p style=\"line-height: 25.6px;\">In the right sidebar, you can add these layout blocks to your email:</p>\n<p style=\"line-height: 25.6px;\"></p>\n<ul style=\"line-height: 25.6px;\">\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -311,7 +311,7 @@ class NewsletterBlank121Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
|
@ -13,8 +13,8 @@ class NewsletterBlank12Column {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Newsletter: Blank 1:2 Column"),
|
'name' => __("Newsletter: Blank 1:2 Column", 'mailpoet'),
|
||||||
'description' => __("A blank Newsletter template with a 1:2 column layout."),
|
'description' => __("A blank Newsletter template with a 1:2 column layout.", 'mailpoet'),
|
||||||
'readonly' => 1,
|
'readonly' => 1,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -52,7 +52,7 @@ class NewsletterBlank12Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "header",
|
"type" => "header",
|
||||||
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>"),
|
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
@ -104,7 +104,7 @@ class NewsletterBlank12Column {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake Logo"),
|
"alt" => __("Fake Logo", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "598px",
|
"width" => "598px",
|
||||||
"height" => "71px",
|
"height" => "71px",
|
||||||
@ -116,7 +116,7 @@ class NewsletterBlank12Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started!</strong></h1>\n<p></p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>")
|
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started!</strong></h1>\n<p></p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "divider",
|
"type" => "divider",
|
||||||
@ -154,11 +154,11 @@ class NewsletterBlank12Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h2>This template has...</h2>")
|
"text" => __("<h2>This template has...</h2>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>In the right sidebar, you can add these layout blocks to your email:</p>\n<ul>\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>")
|
"text" => __("<p>In the right sidebar, you can add these layout blocks to your email:</p>\n<ul>\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -173,11 +173,11 @@ class NewsletterBlank12Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h2>... a 2-column layout.</h2>")
|
"text" => __("<h2>... a 2-column layout.</h2>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p><span style=\"line-height: 25.6px;\">You can change a layout's background color by clicking on the settings icon on the right edge of the Designer. Simply hover over this area to see the Settings (gear) icon.</span></p>")
|
"text" => __("<p><span style=\"line-height: 25.6px;\">You can change a layout's background color by clicking on the settings icon on the right edge of the Designer. Simply hover over this area to see the Settings (gear) icon.</span></p>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -251,7 +251,7 @@ class NewsletterBlank12Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
|
@ -13,8 +13,8 @@ class NewsletterBlank13Column {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Newsletter: Blank 1:3 Column"),
|
'name' => __("Newsletter: Blank 1:3 Column", 'mailpoet'),
|
||||||
'description' => __("A blank Newsletter template with a 1:3 column layout."),
|
'description' => __("A blank Newsletter template with a 1:3 column layout.", 'mailpoet'),
|
||||||
'readonly' => 1,
|
'readonly' => 1,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -52,7 +52,7 @@ class NewsletterBlank13Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "header",
|
"type" => "header",
|
||||||
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>"),
|
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
@ -104,7 +104,7 @@ class NewsletterBlank13Column {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "598px",
|
"width" => "598px",
|
||||||
"height" => "71px",
|
"height" => "71px",
|
||||||
@ -116,7 +116,7 @@ class NewsletterBlank13Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started! </strong></h1>\n<p></p>\n<p>It's time to design your newsletter! On the right sidebar, you'll find four menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>")
|
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started! </strong></h1>\n<p></p>\n<p>It's time to design your newsletter! On the right sidebar, you'll find four menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "divider",
|
"type" => "divider",
|
||||||
@ -154,11 +154,11 @@ class NewsletterBlank13Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h3>This template... </h3>")
|
"text" => __("<h3>This template... </h3>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>In the right sidebar, you can add layout blocks to your newsletter.</p>")
|
"text" => __("<p>In the right sidebar, you can add layout blocks to your newsletter.</p>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -173,11 +173,11 @@ class NewsletterBlank13Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h3>... has a... </h3>")
|
"text" => __("<h3>... has a... </h3>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>You have the choice of:</p>\n<ul>\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>")
|
"text" => __("<p>You have the choice of:</p>\n<ul>\n<li>1 column</li>\n<li>2 columns</li>\n<li>3 columns</li>\n</ul>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -192,11 +192,11 @@ class NewsletterBlank13Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h3>3-column layout.</h3>")
|
"text" => __("<h3>3-column layout.</h3>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>You can add as many layout blocks as you want!</p>")
|
"text" => __("<p>You can add as many layout blocks as you want!</p>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
@ -274,7 +274,7 @@ class NewsletterBlank13Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
|
@ -13,8 +13,8 @@ class NewsletterBlank1Column {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Newsletter: Blank 1 Column"),
|
'name' => __("Newsletter: Blank 1 Column", 'mailpoet'),
|
||||||
'description' => __("A blank Newsletter template with a 1 column layout."),
|
'description' => __("A blank Newsletter template with a 1 column layout.", 'mailpoet'),
|
||||||
'readonly' => 1,
|
'readonly' => 1,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -52,7 +52,7 @@ class NewsletterBlank1Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "header",
|
"type" => "header",
|
||||||
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>"),
|
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
@ -104,7 +104,7 @@ class NewsletterBlank1Column {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "598px",
|
"width" => "598px",
|
||||||
"height" => "71px",
|
"height" => "71px",
|
||||||
@ -116,7 +116,7 @@ class NewsletterBlank1Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started! </strong></h1>\n<p></p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>")
|
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started! </strong></h1>\n<p></p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -190,7 +190,7 @@ class NewsletterBlank1Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
|
@ -13,8 +13,8 @@ class PostNotificationsBlank1Column {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Post Notifications: Blank 1 Column"),
|
'name' => __("Post Notifications: Blank 1 Column", 'mailpoet'),
|
||||||
'description' => __("A blank Post Notifications template with a 1 column layout."),
|
'description' => __("A blank Post Notifications template with a 1 column layout.", 'mailpoet'),
|
||||||
'readonly' => 1,
|
'readonly' => 1,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -52,7 +52,7 @@ class PostNotificationsBlank1Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "header",
|
"type" => "header",
|
||||||
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>"),
|
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
@ -116,7 +116,7 @@ class PostNotificationsBlank1Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\"><strong>Check Out Our New Blog Posts! </strong></h1>\n<p></p>\n<p>MailPoet can <span style=\"line-height: 1.6em; background-color: inherit;\"><em>automatically</em> </span><span style=\"line-height: 1.6em; background-color: inherit;\">send your new blog posts to your subscribers.</span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\"></span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\">Below, you'll find three recent posts, which are displayed automatically, thanks to the <em>Automatic Latest Content</em> widget, which can be found on the right sidebar, under <em>Content</em>.</span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\"></span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\">To edit the settings and styles of your post, simply click on a post below.</span></p>")
|
"text" => __("<h1 style=\"text-align: center;\"><strong>Check Out Our New Blog Posts! </strong></h1>\n<p></p>\n<p>MailPoet can <span style=\"line-height: 1.6em; background-color: inherit;\"><em>automatically</em> </span><span style=\"line-height: 1.6em; background-color: inherit;\">send your new blog posts to your subscribers.</span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\"></span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\">Below, you'll find three recent posts, which are displayed automatically, thanks to the <em>Automatic Latest Content</em> widget, which can be found on the right sidebar, under <em>Content</em>.</span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\"></span></p>\n<p><span style=\"line-height: 1.6em; background-color: inherit;\">To edit the settings and styles of your post, simply click on a post below.</span></p>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "divider",
|
"type" => "divider",
|
||||||
@ -174,14 +174,14 @@ class PostNotificationsBlank1Column {
|
|||||||
"imageFullWidth" => false,
|
"imageFullWidth" => false,
|
||||||
"featuredImagePosition" => "belowTitle",
|
"featuredImagePosition" => "belowTitle",
|
||||||
"showAuthor" => "no",
|
"showAuthor" => "no",
|
||||||
"authorPrecededBy" => __("Author:"),
|
"authorPrecededBy" => __("Author:", 'mailpoet'),
|
||||||
"showCategories" => "no",
|
"showCategories" => "no",
|
||||||
"categoriesPrecededBy" => __("Categories:"),
|
"categoriesPrecededBy" => __("Categories:", 'mailpoet'),
|
||||||
"readMoreType" => "button",
|
"readMoreType" => "button",
|
||||||
"readMoreText" => "Read more",
|
"readMoreText" => "Read more",
|
||||||
"readMoreButton" => array(
|
"readMoreButton" => array(
|
||||||
"type" => "button",
|
"type" => "button",
|
||||||
"text" => __("Read the post"),
|
"text" => __("Read the post", 'mailpoet'),
|
||||||
"url" => "[postLink]",
|
"url" => "[postLink]",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
@ -298,7 +298,7 @@ class PostNotificationsBlank1Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
|
@ -13,8 +13,8 @@ class Restaurant {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Restaurant"),
|
'name' => __("Restaurant", 'mailpoet'),
|
||||||
'description' => __("What's fresh on the menu?"),
|
'description' => __("What's fresh on the menu?", 'mailpoet'),
|
||||||
'readonly' => 0,
|
'readonly' => 0,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
|
@ -13,8 +13,8 @@ class SimpleText {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Simple Text"),
|
'name' => __("Simple Text", 'mailpoet'),
|
||||||
'description' => __("A simple plain text template - just like a regular email."),
|
'description' => __("A simple plain text template - just like a regular email.", 'mailpoet'),
|
||||||
'readonly' => 1,
|
'readonly' => 1,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -63,7 +63,7 @@ class SimpleText {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "598px",
|
"width" => "598px",
|
||||||
"height" => "71px",
|
"height" => "71px",
|
||||||
@ -75,7 +75,7 @@ class SimpleText {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p style=\"text-align: left;\">Hi [subscriber:firstname | default:subscriber],</p>\n<p style=\"text-align: left;\"></p>\n<p style=\"text-align: left;\">In MailPoet, you can write emails in plain text, just like in a regular email. This can make your email newsletters more personal and attention-grabbing.</p>\n<p style=\"text-align: left;\"></p>\n<p style=\"text-align: left;\">Is this too simple? You can still style your text with basic formatting, like <strong>bold</strong> or <em>italics.</em></p>\n<p style=\"text-align: left;\"></p>\n<p style=\"text-align: left;\">Finally, you can also add a call-to-action button between 2 blocks of text, like this:</p>")
|
"text" => __("<p style=\"text-align: left;\">Hi [subscriber:firstname | default:subscriber],</p>\n<p style=\"text-align: left;\"></p>\n<p style=\"text-align: left;\">In MailPoet, you can write emails in plain text, just like in a regular email. This can make your email newsletters more personal and attention-grabbing.</p>\n<p style=\"text-align: left;\"></p>\n<p style=\"text-align: left;\">Is this too simple? You can still style your text with basic formatting, like <strong>bold</strong> or <em>italics.</em></p>\n<p style=\"text-align: left;\"></p>\n<p style=\"text-align: left;\">Finally, you can also add a call-to-action button between 2 blocks of text, like this:</p>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -110,7 +110,7 @@ class SimpleText {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "button",
|
"type" => "button",
|
||||||
"text" => __("It's time to take action!"),
|
"text" => __("It's time to take action!", 'mailpoet'),
|
||||||
"url" => "",
|
"url" => "",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
@ -131,11 +131,11 @@ class SimpleText {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>Thanks for reading. See you soon!</p>\n<p></p>\n<p><strong><em>The MailPoet Team</em></strong></p>")
|
"text" => __("<p>Thanks for reading. See you soon!</p>\n<p></p>\n<p><strong><em>The MailPoet Team</em></strong></p>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
|
@ -13,8 +13,8 @@ class StoreDiscount {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Store Discount"),
|
'name' => __("Store Discount", 'mailpoet'),
|
||||||
'description' => __("Store discount email with coupon and shopping suggestions"),
|
'description' => __("Store discount email with coupon and shopping suggestions", 'mailpoet'),
|
||||||
'readonly' => 0,
|
'readonly' => 0,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -59,7 +59,7 @@ class StoreDiscount {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/bicycle-header3.png",
|
"src" => $this->template_image_url . "/bicycle-header3.png",
|
||||||
"alt" => __("bicycle-header3"),
|
"alt" => __("bicycle-header3", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "423px",
|
"width" => "423px",
|
||||||
"height" => "135px",
|
"height" => "135px",
|
||||||
@ -70,7 +70,7 @@ class StoreDiscount {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p></p>\n<p>Hi [subscriber:firstname | default:reader]</p>\n<p class=\"\"></p>\n<p>Fancy 15% off your next order? Use this coupon on all your favourite products from our store until Wednesday. Just enter the code on the payments page and your discount will applied.</p>")
|
"text" => __("<p></p>\n<p>Hi [subscriber:firstname | default:reader]</p>\n<p class=\"\"></p>\n<p>Fancy 15% off your next order? Use this coupon on all your favourite products from our store until Wednesday. Just enter the code on the payments page and your discount will applied.</p>", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "spacer",
|
"type" => "spacer",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
@ -110,10 +110,10 @@ class StoreDiscount {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\"><em><strong>Get 15% discount off your next order</strong></em></h1>")
|
"text" => __("<h1 style=\"text-align: center;\"><em><strong>Get 15% discount off your next order</strong></em></h1>", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h2 style=\"text-align: center;\"><strong>USE CODE: WELOVEMAILPOET</strong></h2>")
|
"text" => __("<h2 style=\"text-align: center;\"><strong>USE CODE: WELOVEMAILPOET</strong></h2>", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "divider",
|
"type" => "divider",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
@ -153,7 +153,7 @@ class StoreDiscount {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "button",
|
"type" => "button",
|
||||||
"text" => __("SHOP NOW"),
|
"text" => __("SHOP NOW", 'mailpoet'),
|
||||||
"url" => "",
|
"url" => "",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
@ -173,7 +173,7 @@ class StoreDiscount {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\"><strong><em>Use your discount on these great products...</em></strong></h1>")
|
"text" => __("<h1 style=\"text-align: center;\"><strong><em>Use your discount on these great products...</em></strong></h1>", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "spacer",
|
"type" => "spacer",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
@ -204,7 +204,7 @@ class StoreDiscount {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/red-icycle.jpg",
|
"src" => $this->template_image_url . "/red-icycle.jpg",
|
||||||
"alt" => __("red-icycle"),
|
"alt" => __("red-icycle", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "558px",
|
"width" => "558px",
|
||||||
"height" => "399px",
|
"height" => "399px",
|
||||||
@ -215,10 +215,10 @@ class StoreDiscount {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h3 style=\"text-align: center;\">Lovely Red Bicycle</h3>\n<p>What can we say? It's a totally awesome red bike, and it's the first of its kind in our collection. No sweat!</p>\n<h3 style=\"text-align: center;\"><strong><span style=\"color: #488e88;\">$289.99</span></strong></h3>")
|
"text" => __("<h3 style=\"text-align: center;\">Lovely Red Bicycle</h3>\n<p>What can we say? It's a totally awesome red bike, and it's the first of its kind in our collection. No sweat!</p>\n<h3 style=\"text-align: center;\"><strong><span style=\"color: #488e88;\">$289.99</span></strong></h3>", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "button",
|
"type" => "button",
|
||||||
"text" => __("Buy"),
|
"text" => __("Buy", 'mailpoet'),
|
||||||
"url" => "",
|
"url" => "",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
@ -249,7 +249,7 @@ class StoreDiscount {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/orange-bicycle.jpg",
|
"src" => $this->template_image_url . "/orange-bicycle.jpg",
|
||||||
"alt" => __("orange-bicycle"),
|
"alt" => __("orange-bicycle", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "639px",
|
"width" => "639px",
|
||||||
"height" => "457px",
|
"height" => "457px",
|
||||||
@ -260,10 +260,10 @@ class StoreDiscount {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h3 style=\"text-align: center;\">Little Orange Bicycle</h3>\n<p>Another product that's just as awesome but it's the second type, and more orange, with some blue. Cool beans!</p>\n<h3 style=\"line-height: 22.4px; text-align: center;\"><span style=\"color: #488e88;\"><strong>$209.99</strong></span></h3>")
|
"text" => __("<h3 style=\"text-align: center;\">Little Orange Bicycle</h3>\n<p>Another product that's just as awesome but it's the second type, and more orange, with some blue. Cool beans!</p>\n<h3 style=\"line-height: 22.4px; text-align: center;\"><span style=\"color: #488e88;\"><strong>$209.99</strong></span></h3>", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "button",
|
"type" => "button",
|
||||||
"text" => __("Buy"),
|
"text" => __("Buy", 'mailpoet'),
|
||||||
"url" => "",
|
"url" => "",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
@ -320,7 +320,7 @@ class StoreDiscount {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p><em>Terms and Conditions:</em></p>\n<ul>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Must be used by midnight EST December 15 2016.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Discount does not include shipping.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Cannot be used in conjunction with any other offer.</span></li>\n</ul>")
|
"text" => __("<p><em>Terms and Conditions:</em></p>\n<ul>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Must be used by midnight EST December 15 2016.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Discount does not include shipping.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Cannot be used in conjunction with any other offer.</span></li>\n</ul>", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "social",
|
"type" => "social",
|
||||||
"iconSet" => "grey",
|
"iconSet" => "grey",
|
||||||
@ -331,7 +331,7 @@ class StoreDiscount {
|
|||||||
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
|
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
|
||||||
"height" => "32px",
|
"height" => "32px",
|
||||||
"width" => "32px",
|
"width" => "32px",
|
||||||
"text" => __("Facebook")
|
"text" => __("Facebook", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "socialIcon",
|
"type" => "socialIcon",
|
||||||
"iconType" => "twitter",
|
"iconType" => "twitter",
|
||||||
@ -339,11 +339,11 @@ class StoreDiscount {
|
|||||||
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
|
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
|
||||||
"height" => "32px",
|
"height" => "32px",
|
||||||
"width" => "32px",
|
"width" => "32px",
|
||||||
"text" => __("Twitter")
|
"text" => __("Twitter", 'mailpoet')
|
||||||
))
|
))
|
||||||
), array(
|
), array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a></p>\n<p>1 Store Street, Shopville, CA 1345</p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a></p>\n<p>1 Store Street, Shopville, CA 1345</p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
|
@ -13,8 +13,8 @@ class TravelEmail {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Travel email"),
|
'name' => __("Travel email", 'mailpoet'),
|
||||||
'description' => __("A little postcard from your trip"),
|
'description' => __("A little postcard from your trip", 'mailpoet'),
|
||||||
'readonly' => 0,
|
'readonly' => 0,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -51,7 +51,7 @@ class TravelEmail {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/header.png",
|
"src" => $this->template_image_url . "/header.png",
|
||||||
"alt" => __("Travelling Tales with Jane & Steven"),
|
"alt" => __("Travelling Tales with Jane & Steven", 'mailpoet'),
|
||||||
"fullWidth" => true,
|
"fullWidth" => true,
|
||||||
"width" => "660px",
|
"width" => "660px",
|
||||||
"height" => "165px",
|
"height" => "165px",
|
||||||
@ -70,7 +70,7 @@ class TravelEmail {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\">Hi [subscriber:firstname | default:reader]!</h1>\n<p></p>\n<p>Greetings from New Zealand, we're here enjoying the sights and sounds (and bad smells!) of Rotarua. Yesterday we took advantage of the local amenities and visited the hot springs! </p>\n<p>Don't forget to stay up-to-date via twitter!</p>")
|
"text" => __("<h1 style=\"text-align: center;\">Hi [subscriber:firstname | default:reader]!</h1>\n<p></p>\n<p>Greetings from New Zealand, we're here enjoying the sights and sounds (and bad smells!) of Rotarua. Yesterday we took advantage of the local amenities and visited the hot springs! </p>\n<p>Don't forget to stay up-to-date via twitter!</p>", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "social",
|
"type" => "social",
|
||||||
"iconSet" => "circles",
|
"iconSet" => "circles",
|
||||||
@ -81,11 +81,11 @@ class TravelEmail {
|
|||||||
"image" => $this->social_icon_url . "/03-circles/Twitter.png",
|
"image" => $this->social_icon_url . "/03-circles/Twitter.png",
|
||||||
"height" => "32px",
|
"height" => "32px",
|
||||||
"width" => "32px",
|
"width" => "32px",
|
||||||
"text" => __("Twitter")
|
"text" => __("Twitter", 'mailpoet')
|
||||||
))
|
))
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\"><strong>Photos from Rotarua</strong></h1>")
|
"text" => __("<h1 style=\"text-align: center;\"><strong>Photos from Rotarua</strong></h1>", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "spacer",
|
"type" => "spacer",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
@ -116,7 +116,7 @@ class TravelEmail {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/gallery1.jpg",
|
"src" => $this->template_image_url . "/gallery1.jpg",
|
||||||
"alt" => __("hot thermals"),
|
"alt" => __("hot thermals", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "640px",
|
"width" => "640px",
|
||||||
"height" => "425px",
|
"height" => "425px",
|
||||||
@ -146,7 +146,7 @@ class TravelEmail {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/gallery2.jpg",
|
"src" => $this->template_image_url . "/gallery2.jpg",
|
||||||
"alt" => __("The view from our campsite"),
|
"alt" => __("The view from our campsite", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "640px",
|
"width" => "640px",
|
||||||
"height" => "425px",
|
"height" => "425px",
|
||||||
@ -185,7 +185,7 @@ class TravelEmail {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/gallery3.jpg",
|
"src" => $this->template_image_url . "/gallery3.jpg",
|
||||||
"alt" => __("Red sky at night"),
|
"alt" => __("Red sky at night", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "640px",
|
"width" => "640px",
|
||||||
"height" => "425px",
|
"height" => "425px",
|
||||||
@ -207,7 +207,7 @@ class TravelEmail {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/gallery4.jpg",
|
"src" => $this->template_image_url . "/gallery4.jpg",
|
||||||
"alt" => __("Don't go chasing waterfalls"),
|
"alt" => __("Don't go chasing waterfalls", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "640px",
|
"width" => "640px",
|
||||||
"height" => "425px",
|
"height" => "425px",
|
||||||
@ -244,7 +244,7 @@ class TravelEmail {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "button",
|
"type" => "button",
|
||||||
"text" => __("View NZ Photo Gallery"),
|
"text" => __("View NZ Photo Gallery", 'mailpoet'),
|
||||||
"url" => "",
|
"url" => "",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
@ -293,7 +293,7 @@ class TravelEmail {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h2><em>Here's our top recommendations in Rotarua</em></h2>")
|
"text" => __("<h2><em>Here's our top recommendations in Rotarua</em></h2>", 'mailpoet')
|
||||||
), array(
|
), array(
|
||||||
"type" => "spacer",
|
"type" => "spacer",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
@ -324,7 +324,7 @@ class TravelEmail {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/glow-worms.jpg",
|
"src" => $this->template_image_url . "/glow-worms.jpg",
|
||||||
"alt" => __("Glow worms, Waitomo Caves"),
|
"alt" => __("Glow worms, Waitomo Caves", 'mailpoet'),
|
||||||
"fullWidth" => true,
|
"fullWidth" => true,
|
||||||
"width" => "640px",
|
"width" => "640px",
|
||||||
"height" => "428px",
|
"height" => "428px",
|
||||||
@ -335,7 +335,7 @@ class TravelEmail {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p><em><a href=\"http://www.waitomo.com/Waitomo-Glowworm-Caves/Pages/default.aspx\"><strong>Waitomo Glow Worm Caves</strong></a></em></p>")
|
"text" => __("<p><em><a href=\"http://www.waitomo.com/Waitomo-Glowworm-Caves/Pages/default.aspx\"><strong>Waitomo Glow Worm Caves</strong></a></em></p>", 'mailpoet')
|
||||||
))
|
))
|
||||||
), array(
|
), array(
|
||||||
"type" => "container",
|
"type" => "container",
|
||||||
@ -349,7 +349,7 @@ class TravelEmail {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/luge.jpg",
|
"src" => $this->template_image_url . "/luge.jpg",
|
||||||
"alt" => __("luge"),
|
"alt" => __("luge", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "375px",
|
"width" => "375px",
|
||||||
"height" => "500px",
|
"height" => "500px",
|
||||||
@ -360,7 +360,7 @@ class TravelEmail {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p><em><strong><a href=\"http://www.skyline.co.nz/rotorua/ssr_luge/\">Luge!</a></strong></em></p>")
|
"text" => __("<p><em><strong><a href=\"http://www.skyline.co.nz/rotorua/ssr_luge/\">Luge!</a></strong></em></p>", 'mailpoet')
|
||||||
))
|
))
|
||||||
), array(
|
), array(
|
||||||
"type" => "container",
|
"type" => "container",
|
||||||
@ -374,7 +374,7 @@ class TravelEmail {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/holiday-park.jpg",
|
"src" => $this->template_image_url . "/holiday-park.jpg",
|
||||||
"alt" => __("holiday-park"),
|
"alt" => __("holiday-park", 'mailpoet'),
|
||||||
"fullWidth" => true,
|
"fullWidth" => true,
|
||||||
"width" => "640px",
|
"width" => "640px",
|
||||||
"height" => "425px",
|
"height" => "425px",
|
||||||
@ -385,7 +385,7 @@ class TravelEmail {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p><em><strong><a href=\"http://rotoruathermal.co.nz/\">Roturua Thermal Holiday Park</a></strong></em></p>")
|
"text" => __("<p><em><strong><a href=\"http://rotoruathermal.co.nz/\">Roturua Thermal Holiday Park</a></strong></em></p>", 'mailpoet')
|
||||||
))
|
))
|
||||||
))
|
))
|
||||||
), array(
|
), array(
|
||||||
@ -414,7 +414,7 @@ class TravelEmail {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>Tomorrow we're heading towards Taupo where we'll visit the 'Craters of the moon' and go prawn fishing! Hopefully the weather will stay good.</p>\n<p></p>\n<p>Keep on travellin'</p>\n<p>Jane & Steven</p>")
|
"text" => __("<p>Tomorrow we're heading towards Taupo where we'll visit the 'Craters of the moon' and go prawn fishing! Hopefully the weather will stay good.</p>\n<p></p>\n<p>Keep on travellin'</p>\n<p>Jane & Steven</p>", 'mailpoet')
|
||||||
))
|
))
|
||||||
))
|
))
|
||||||
), array(
|
), array(
|
||||||
@ -464,7 +464,7 @@ class TravelEmail {
|
|||||||
)
|
)
|
||||||
), array(
|
), array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a></p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a></p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
|
@ -13,8 +13,8 @@ class WelcomeBlank12Column {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Welcome Email: Blank 1:2 Column"),
|
'name' => __("Welcome Email: Blank 1:2 Column", 'mailpoet'),
|
||||||
'description' => __("A blank Welcome Email template with a 1:2 column layout."),
|
'description' => __("A blank Welcome Email template with a 1:2 column layout.", 'mailpoet'),
|
||||||
'readonly' => 1,
|
'readonly' => 1,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -52,7 +52,7 @@ class WelcomeBlank12Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "header",
|
"type" => "header",
|
||||||
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>"),
|
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
@ -104,7 +104,7 @@ class WelcomeBlank12Column {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "598px",
|
"width" => "598px",
|
||||||
"height" => "71px",
|
"height" => "71px",
|
||||||
@ -116,7 +116,7 @@ class WelcomeBlank12Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\"><strong>Hi, new subscriber!</strong></h1>\n<p></p>\n<p>[subscriber:firstname | default:Subscriber],</p>\n<p></p>\n<p>You recently joined our list and we'd like to give you a warm welcome!</p>")
|
"text" => __("<h1 style=\"text-align: center;\"><strong>Hi, new subscriber!</strong></h1>\n<p></p>\n<p>[subscriber:firstname | default:Subscriber],</p>\n<p></p>\n<p>You recently joined our list and we'd like to give you a warm welcome!</p>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "divider",
|
"type" => "divider",
|
||||||
@ -163,11 +163,11 @@ class WelcomeBlank12Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h3>Our Most Popular Posts</h3>")
|
"text" => __("<h3>Our Most Popular Posts</h3>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<ul>\n<li><a href=\"http://www.mailpoet.com/the-importance-of-focus-when-writing/\">The Importance of Focus When Writing</a></li>\n<li><a href=\"http://www.mailpoet.com/write-great-subject-line/\">How to Write a Great Subject Line</a></li>\n<li><a href=\"http://www.mailpoet.com/just-sit-write-advice-motivation-ernest-hemingway/\">Just Sit Down and Write – Advice on Motivation from Ernest Hemingway</a></li>\n</ul>")
|
"text" => __("<ul>\n<li><a href=\"http://www.mailpoet.com/the-importance-of-focus-when-writing/\">The Importance of Focus When Writing</a></li>\n<li><a href=\"http://www.mailpoet.com/write-great-subject-line/\">How to Write a Great Subject Line</a></li>\n<li><a href=\"http://www.mailpoet.com/just-sit-write-advice-motivation-ernest-hemingway/\">Just Sit Down and Write – Advice on Motivation from Ernest Hemingway</a></li>\n</ul>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -182,15 +182,15 @@ class WelcomeBlank12Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h3>What's Next?</h3>")
|
"text" => __("<h3>What's Next?</h3>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<p>Add a single button to your newsletter in order to have one clear call-to-action, which will increase your click rates.</p>")
|
"text" => __("<p>Add a single button to your newsletter in order to have one clear call-to-action, which will increase your click rates.</p>", 'mailpoet')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "button",
|
"type" => "button",
|
||||||
"text" => __("Read up!"),
|
"text" => __("Read up!", 'mailpoet'),
|
||||||
"url" => "",
|
"url" => "",
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
@ -281,7 +281,7 @@ class WelcomeBlank12Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
|
@ -13,8 +13,8 @@ class WelcomeBlank1Column {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
return array(
|
return array(
|
||||||
'name' => __("Welcome Email: Blank 1 Column"),
|
'name' => __("Welcome Email: Blank 1 Column", 'mailpoet'),
|
||||||
'description' => __("A blank Welcome Email template with a 1 column layout."),
|
'description' => __("A blank Welcome Email template with a 1 column layout.", 'mailpoet'),
|
||||||
'readonly' => 1,
|
'readonly' => 1,
|
||||||
'thumbnail' => $this->getThumbnail(),
|
'thumbnail' => $this->getThumbnail(),
|
||||||
'body' => json_encode($this->getBody()),
|
'body' => json_encode($this->getBody()),
|
||||||
@ -52,7 +52,7 @@ class WelcomeBlank1Column {
|
|||||||
"blocks" => array(
|
"blocks" => array(
|
||||||
array(
|
array(
|
||||||
"type" => "header",
|
"type" => "header",
|
||||||
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>"),
|
"text" => __("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser</a>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
@ -104,7 +104,7 @@ class WelcomeBlank1Column {
|
|||||||
"type" => "image",
|
"type" => "image",
|
||||||
"link" => "",
|
"link" => "",
|
||||||
"src" => $this->template_image_url . "/fake-logo.png",
|
"src" => $this->template_image_url . "/fake-logo.png",
|
||||||
"alt" => __("Fake logo"),
|
"alt" => __("Fake logo", 'mailpoet'),
|
||||||
"fullWidth" => false,
|
"fullWidth" => false,
|
||||||
"width" => "598px",
|
"width" => "598px",
|
||||||
"height" => "71px",
|
"height" => "71px",
|
||||||
@ -116,7 +116,7 @@ class WelcomeBlank1Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "text",
|
"type" => "text",
|
||||||
"text" => __("<h1 style=\"text-align: center;\"><strong>Hi, new subscriber!</strong></h1>\n<p></p>\n<p>[subscriber:firstname | default:Subscriber],</p>\n<p></p>\n<p>You recently joined our list and we'd like to give you a warm welcome!</p>\n<p></p>\n<p>Want to get to know us better? Check out some of our most popular articles: </p>\n<ol>\n<li><a href=\"http://www.mailpoet.com/the-importance-of-focus-when-writing/\">The Importance of Focus When Writing</a></li>\n<li><a href=\"http://www.mailpoet.com/write-great-subject-line/\">How to Write a Great Subject Line</a></li>\n<li><a href=\"http://www.mailpoet.com/just-sit-write-advice-motivation-ernest-hemingway/\">Just Sit Down and Write – Advice on Motivation from Ernest Hemingway</a></li>\n</ol>")
|
"text" => __("<h1 style=\"text-align: center;\"><strong>Hi, new subscriber!</strong></h1>\n<p></p>\n<p>[subscriber:firstname | default:Subscriber],</p>\n<p></p>\n<p>You recently joined our list and we'd like to give you a warm welcome!</p>\n<p></p>\n<p>Want to get to know us better? Check out some of our most popular articles: </p>\n<ol>\n<li><a href=\"http://www.mailpoet.com/the-importance-of-focus-when-writing/\">The Importance of Focus When Writing</a></li>\n<li><a href=\"http://www.mailpoet.com/write-great-subject-line/\">How to Write a Great Subject Line</a></li>\n<li><a href=\"http://www.mailpoet.com/just-sit-write-advice-motivation-ernest-hemingway/\">Just Sit Down and Write – Advice on Motivation from Ernest Hemingway</a></li>\n</ol>", 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -190,7 +190,7 @@ class WelcomeBlank1Column {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"type" => "footer",
|
"type" => "footer",
|
||||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>"),
|
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage your subscription</a><br />Add your postal address here!</p>", 'mailpoet'),
|
||||||
"styles" => array(
|
"styles" => array(
|
||||||
"block" => array(
|
"block" => array(
|
||||||
"backgroundColor" => "transparent"
|
"backgroundColor" => "transparent"
|
||||||
|
@ -81,7 +81,7 @@ class Shortcodes {
|
|||||||
if(empty($newsletters)) {
|
if(empty($newsletters)) {
|
||||||
return apply_filters(
|
return apply_filters(
|
||||||
'mailpoet_archive_no_newsletters',
|
'mailpoet_archive_no_newsletters',
|
||||||
__('Oops! There are no newsletters to display.')
|
__('Oops! There are no newsletters to display.', 'mailpoet')
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$title = apply_filters('mailpoet_archive_title', '');
|
$title = apply_filters('mailpoet_archive_title', '');
|
||||||
@ -116,7 +116,7 @@ class Shortcodes {
|
|||||||
$preview_url = NewsletterUrl::getViewInBrowserUrl($newsletter);
|
$preview_url = NewsletterUrl::getViewInBrowserUrl($newsletter);
|
||||||
|
|
||||||
return '<a href="'.esc_attr($preview_url).'" target="_blank" title="'
|
return '<a href="'.esc_attr($preview_url).'" target="_blank" title="'
|
||||||
.esc_attr(__('Preview in a new tab')).'">'
|
.esc_attr(__('Preview in a new tab', 'mailpoet')).'">'
|
||||||
.esc_attr($newsletter->subject).
|
.esc_attr($newsletter->subject).
|
||||||
'</a>';
|
'</a>';
|
||||||
}
|
}
|
||||||
|
@ -80,13 +80,13 @@ class CronHelper {
|
|||||||
$fp = @fsockopen($parsed_url['host'], $port, $errno, $errstr, 1);
|
$fp = @fsockopen($parsed_url['host'], $port, $errno, $errstr, 1);
|
||||||
if($fp) return sprintf('%s://%s', $parsed_url['scheme'], $parsed_url['host']);
|
if($fp) return sprintf('%s://%s', $parsed_url['scheme'], $parsed_url['host']);
|
||||||
// 4. throw an error if all connection attempts failed
|
// 4. throw an error if all connection attempts failed
|
||||||
throw new \Exception(__('Site URL is unreachable.'));
|
throw new \Exception(__('Site URL is unreachable.', 'mailpoet'));
|
||||||
}
|
}
|
||||||
|
|
||||||
static function enforceExecutionLimit($timer) {
|
static function enforceExecutionLimit($timer) {
|
||||||
$elapsed_time = microtime(true) - $timer;
|
$elapsed_time = microtime(true) - $timer;
|
||||||
if($elapsed_time >= self::DAEMON_EXECUTION_LIMIT) {
|
if($elapsed_time >= self::DAEMON_EXECUTION_LIMIT) {
|
||||||
throw new \Exception(__('Maximum execution time has been reached.'));
|
throw new \Exception(__('Maximum execution time has been reached.', 'mailpoet'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -24,10 +24,10 @@ class Daemon {
|
|||||||
function run() {
|
function run() {
|
||||||
ignore_user_abort(true);
|
ignore_user_abort(true);
|
||||||
if(!$this->request_data) {
|
if(!$this->request_data) {
|
||||||
$error = __('Invalid or missing request data.');
|
$error = __('Invalid or missing request data.', 'mailpoet');
|
||||||
} else {
|
} else {
|
||||||
if(!$this->daemon) {
|
if(!$this->daemon) {
|
||||||
$error = __('Daemon does not exist.');
|
$error = __('Daemon does not exist.', 'mailpoet');
|
||||||
} else {
|
} else {
|
||||||
if(!isset($this->request_data['token']) ||
|
if(!isset($this->request_data['token']) ||
|
||||||
$this->request_data['token'] !== $this->daemon['token']
|
$this->request_data['token'] !== $this->daemon['token']
|
||||||
|
@ -7,7 +7,7 @@ abstract class Base {
|
|||||||
|
|
||||||
if($block['id'] === 'email') {
|
if($block['id'] === 'email') {
|
||||||
$rules['required'] = true;
|
$rules['required'] = true;
|
||||||
$rules['error-message'] = __('Please specify a valid email address');
|
$rules['error-message'] = __('Please specify a valid email address', 'mailpoet');
|
||||||
}
|
}
|
||||||
|
|
||||||
if($block['id'] === 'segments') {
|
if($block['id'] === 'segments') {
|
||||||
@ -15,7 +15,7 @@ abstract class Base {
|
|||||||
$rules['mincheck'] = 1;
|
$rules['mincheck'] = 1;
|
||||||
$rules['group'] = $block['id'];
|
$rules['group'] = $block['id'];
|
||||||
$rules['errors-container'] = '.mailpoet_error_'.$block['id'];
|
$rules['errors-container'] = '.mailpoet_error_'.$block['id'];
|
||||||
$rules['required-message'] = __('Please select a list');
|
$rules['required-message'] = __('Please select a list', 'mailpoet');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($block['params']['required'])) {
|
if(!empty($block['params']['required'])) {
|
||||||
@ -25,7 +25,7 @@ abstract class Base {
|
|||||||
if(!empty($block['params']['validate'])) {
|
if(!empty($block['params']['validate'])) {
|
||||||
if($block['params']['validate'] === 'phone') {
|
if($block['params']['validate'] === 'phone') {
|
||||||
$rules['pattern'] = "^[\d\+\-\.\(\)\/\s]*$";
|
$rules['pattern'] = "^[\d\+\-\.\(\)\/\s]*$";
|
||||||
$rules['error-message'] = __('Please specify a valid phone number');
|
$rules['error-message'] = __('Please specify a valid phone number', 'mailpoet');
|
||||||
} else {
|
} else {
|
||||||
$rules['type'] = $block['params']['validate'];
|
$rules['type'] = $block['params']['validate'];
|
||||||
}
|
}
|
||||||
@ -34,7 +34,7 @@ abstract class Base {
|
|||||||
if(in_array($block['type'], array('radio', 'checkbox'))) {
|
if(in_array($block['type'], array('radio', 'checkbox'))) {
|
||||||
$rules['group'] = 'custom_field_'.$block['id'];
|
$rules['group'] = 'custom_field_'.$block['id'];
|
||||||
$rules['errors-container'] = '.mailpoet_error_'.$block['id'];
|
$rules['errors-container'] = '.mailpoet_error_'.$block['id'];
|
||||||
$rules['required-message'] = __('Please select at least one option');
|
$rules['required-message'] = __('Please select at least one option', 'mailpoet');
|
||||||
}
|
}
|
||||||
|
|
||||||
if($block['type'] === 'date') {
|
if($block['type'] === 'date') {
|
||||||
|
@ -70,27 +70,27 @@ class Date extends Base {
|
|||||||
$block['selected'] = $day;
|
$block['selected'] = $day;
|
||||||
$html .= '<select class="mailpoet_date_day" ';
|
$html .= '<select class="mailpoet_date_day" ';
|
||||||
$html .= static::getInputValidation($block, array(
|
$html .= static::getInputValidation($block, array(
|
||||||
'required-message' => __('Please select a day')
|
'required-message' => __('Please select a day', 'mailpoet')
|
||||||
));
|
));
|
||||||
$html .= 'name="'.$field_name.'[day]" placeholder="'.__('Day').'">';
|
$html .= 'name="'.$field_name.'[day]" placeholder="'.__('Day', 'mailpoet').'">';
|
||||||
$html .= static::getDays($block);
|
$html .= static::getDays($block);
|
||||||
$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_date_month" ';
|
||||||
$html .= static::getInputValidation($block, array(
|
$html .= static::getInputValidation($block, array(
|
||||||
'required-message' => __('Please select a month')
|
'required-message' => __('Please select a month', 'mailpoet')
|
||||||
));
|
));
|
||||||
$html .= 'name="'.$field_name.'[month]" placeholder="'.__('Month').'">';
|
$html .= 'name="'.$field_name.'[month]" placeholder="'.__('Month', 'mailpoet').'">';
|
||||||
$html .= static::getMonths($block);
|
$html .= static::getMonths($block);
|
||||||
$html .= '</select>';
|
$html .= '</select>';
|
||||||
} else if($date_selector === 'YYYY') {
|
} else if($date_selector === 'YYYY') {
|
||||||
$block['selected'] = $year;
|
$block['selected'] = $year;
|
||||||
$html .= '<select class="mailpoet_date_year" ';
|
$html .= '<select class="mailpoet_date_year" ';
|
||||||
$html .= static::getInputValidation($block, array(
|
$html .= static::getInputValidation($block, array(
|
||||||
'required-message' => __('Please select a year')
|
'required-message' => __('Please select a year', 'mailpoet')
|
||||||
));
|
));
|
||||||
$html .= 'name="'.$field_name.'[year]" placeholder="'.__('Year').'">';
|
$html .= 'name="'.$field_name.'[year]" placeholder="'.__('Year', 'mailpoet').'">';
|
||||||
$html .= static::getYears($block);
|
$html .= static::getYears($block);
|
||||||
$html .= '</select>';
|
$html .= '</select>';
|
||||||
}
|
}
|
||||||
@ -103,10 +103,10 @@ class Date extends Base {
|
|||||||
|
|
||||||
static function getDateTypes() {
|
static function getDateTypes() {
|
||||||
return array(
|
return array(
|
||||||
'year_month_day' => __('Year, month, day'),
|
'year_month_day' => __('Year, month, day', 'mailpoet'),
|
||||||
'year_month' => __('Year, month'),
|
'year_month' => __('Year, month', 'mailpoet'),
|
||||||
'month' => __('Month (January, February,...)'),
|
'month' => __('Month (January, February,...)', 'mailpoet'),
|
||||||
'year' => __('Year')
|
'year' => __('Year', 'mailpoet')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,9 +119,9 @@ class Date extends Base {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
static function getMonthNames() {
|
static function getMonthNames() {
|
||||||
return array(__('January'), __('February'), __('March'), __('April'),
|
return array(__('January', 'mailpoet'), __('February', 'mailpoet'), __('March', 'mailpoet'), __('April', 'mailpoet'),
|
||||||
__('May'), __('June'), __('July'), __('August'), __('September'),
|
__('May', 'mailpoet'), __('June', 'mailpoet'), __('July', 'mailpoet'), __('August', 'mailpoet'), __('September', 'mailpoet'),
|
||||||
__('October'), __('November'), __('December')
|
__('October', 'mailpoet'), __('November', 'mailpoet'), __('December', 'mailpoet')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ class Date extends Base {
|
|||||||
$html = '';
|
$html = '';
|
||||||
|
|
||||||
// empty value label
|
// empty value label
|
||||||
$html .= '<option value="">'.__('Month').'</option>';
|
$html .= '<option value="">'.__('Month', 'mailpoet').'</option>';
|
||||||
|
|
||||||
for($i = 1; $i < 13; $i++) {
|
for($i = 1; $i < 13; $i++) {
|
||||||
$is_selected = ($i === $block['selected']) ? 'selected="selected"' : '';
|
$is_selected = ($i === $block['selected']) ? 'selected="selected"' : '';
|
||||||
@ -168,7 +168,7 @@ class Date extends Base {
|
|||||||
$html = '';
|
$html = '';
|
||||||
|
|
||||||
// empty value label
|
// empty value label
|
||||||
$html .= '<option value="">'.__('Year').'</option>';
|
$html .= '<option value="">'.__('Year', 'mailpoet').'</option>';
|
||||||
|
|
||||||
// return years as an array
|
// return years as an array
|
||||||
for($i = (int)$block['to']; $i > (int)($block['from'] - 1); $i--) {
|
for($i = (int)$block['to']; $i > (int)($block['from'] - 1); $i--) {
|
||||||
@ -194,7 +194,7 @@ class Date extends Base {
|
|||||||
$html = '';
|
$html = '';
|
||||||
|
|
||||||
// empty value label
|
// empty value label
|
||||||
$html .= '<option value="">'.__('Day').'</option>';
|
$html .= '<option value="">'.__('Day', 'mailpoet').'</option>';
|
||||||
|
|
||||||
// return days as an array
|
// return days as an array
|
||||||
for($i = 1; $i < 32; $i++) {
|
for($i = 1; $i < 32; $i++) {
|
||||||
|
@ -15,9 +15,9 @@ class Widget extends \WP_Widget {
|
|||||||
function __construct () {
|
function __construct () {
|
||||||
return parent::__construct(
|
return parent::__construct(
|
||||||
'mailpoet_form',
|
'mailpoet_form',
|
||||||
__('MailPoet Form'),
|
__('MailPoet Form', 'mailpoet'),
|
||||||
array(
|
array(
|
||||||
'description' => __('Add a newsletter subscription form')
|
'description' => __('Add a newsletter subscription form', 'mailpoet')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -40,7 +40,7 @@ class Widget extends \WP_Widget {
|
|||||||
$instance = wp_parse_args(
|
$instance = wp_parse_args(
|
||||||
(array)$instance,
|
(array)$instance,
|
||||||
array(
|
array(
|
||||||
'title' => __("Subscribe to Our Newsletter")
|
'title' => __("Subscribe to Our Newsletter", 'mailpoet')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ class Widget extends \WP_Widget {
|
|||||||
// get forms list
|
// get forms list
|
||||||
$forms = Form::getPublished()->orderByAsc('name')->findArray();
|
$forms = Form::getPublished()->orderByAsc('name')->findArray();
|
||||||
?><p>
|
?><p>
|
||||||
<label for="<?php $this->get_field_id( 'title' ) ?>"><?php _e( 'Title:' ); ?></label>
|
<label for="<?php $this->get_field_id( 'title' ) ?>"><?php _e('Title:', 'mailpoet'); ?></label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
class="widefat"
|
class="widefat"
|
||||||
@ -75,7 +75,7 @@ class Widget extends \WP_Widget {
|
|||||||
</select>
|
</select>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="javascript:;" onClick="createSubscriptionForm()" class="mailpoet_form_new"><?php _e("Create a new form"); ?></a>
|
<a href="javascript:;" onClick="createSubscriptionForm()" class="mailpoet_form_new"><?php _e('Create a new form', 'mailpoet'); ?></a>
|
||||||
</p>
|
</p>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function createSubscriptionForm() {
|
function createSubscriptionForm() {
|
||||||
|
@ -93,7 +93,7 @@ class Mailer {
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new \Exception(__('Mailing method does not exist'));
|
throw new \Exception(__('Mailing method does not exist', 'mailpoet'));
|
||||||
}
|
}
|
||||||
return $mailer_instance;
|
return $mailer_instance;
|
||||||
}
|
}
|
||||||
@ -101,7 +101,7 @@ class Mailer {
|
|||||||
static function getMailerConfig($mailer = false) {
|
static function getMailerConfig($mailer = false) {
|
||||||
if(!$mailer) {
|
if(!$mailer) {
|
||||||
$mailer = Setting::getValue(self::MAILER_CONFIG_SETTING_NAME);
|
$mailer = Setting::getValue(self::MAILER_CONFIG_SETTING_NAME);
|
||||||
if(!$mailer || !isset($mailer['method'])) throw new \Exception(__('Mailer is not configured'));
|
if(!$mailer || !isset($mailer['method'])) throw new \Exception(__('Mailer is not configured', 'mailpoet'));
|
||||||
}
|
}
|
||||||
if(empty($mailer['frequency'])) {
|
if(empty($mailer['frequency'])) {
|
||||||
$default_settings = Setting::getDefaults();
|
$default_settings = Setting::getDefaults();
|
||||||
@ -118,7 +118,7 @@ class Mailer {
|
|||||||
function getSenderNameAndAddress($sender = false) {
|
function getSenderNameAndAddress($sender = false) {
|
||||||
if(empty($sender)) {
|
if(empty($sender)) {
|
||||||
$sender = Setting::getValue('sender', array());
|
$sender = Setting::getValue('sender', array());
|
||||||
if(empty($sender['address'])) throw new \Exception(__('Sender name and email are not configured'));
|
if(empty($sender['address'])) throw new \Exception(__('Sender name and email are not configured', 'mailpoet'));
|
||||||
}
|
}
|
||||||
return array(
|
return array(
|
||||||
'from_name' => $sender['name'],
|
'from_name' => $sender['name'],
|
||||||
|
@ -54,7 +54,7 @@ class MailerLog {
|
|||||||
|
|
||||||
static function enforceSendingLimit() {
|
static function enforceSendingLimit() {
|
||||||
if(self::isSendingLimitReached()) {
|
if(self::isSendingLimitReached()) {
|
||||||
throw new \Exception(__('Sending frequency limit has been reached.'));
|
throw new \Exception(__('Sending frequency limit has been reached.', 'mailpoet'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -11,10 +11,10 @@ class CustomField extends Model {
|
|||||||
function __construct() {
|
function __construct() {
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->addValidations('name', array(
|
$this->addValidations('name', array(
|
||||||
'required' => __('Please specify a name')
|
'required' => __('Please specify a name', 'mailpoet')
|
||||||
));
|
));
|
||||||
$this->addValidations('type', array(
|
$this->addValidations('type', array(
|
||||||
'required' => __('Please specify a type')
|
'required' => __('Please specify a type', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ class Form extends Model {
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->addValidations('name', array(
|
$this->addValidations('name', array(
|
||||||
'required' => __('Please specify a name')
|
'required' => __('Please specify a name', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,12 +47,12 @@ class Form extends Model {
|
|||||||
return array(
|
return array(
|
||||||
array(
|
array(
|
||||||
'name' => 'all',
|
'name' => 'all',
|
||||||
'label' => __('All'),
|
'label' => __('All', 'mailpoet'),
|
||||||
'count' => Form::getPublished()->count()
|
'count' => Form::getPublished()->count()
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => 'trash',
|
'name' => 'trash',
|
||||||
'label' => __('Trash'),
|
'label' => __('Trash', 'mailpoet'),
|
||||||
'count' => Form::getTrashed()->count()
|
'count' => Form::getTrashed()->count()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -50,7 +50,7 @@ class Model extends \Sudzy\ValidModel {
|
|||||||
$column = $matches[1];
|
$column = $matches[1];
|
||||||
$this->setError(
|
$this->setError(
|
||||||
sprintf(
|
sprintf(
|
||||||
__('Another record already exists. Please specify a different "%1$s".'),
|
__('Another record already exists. Please specify a different "%1$s".', 'mailpoet'),
|
||||||
$column
|
$column
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -23,7 +23,7 @@ class Newsletter extends Model {
|
|||||||
function __construct() {
|
function __construct() {
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->addValidations('type', array(
|
$this->addValidations('type', array(
|
||||||
'required' => __('Please specify a type')
|
'required' => __('Please specify a type', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,7 +309,7 @@ class Newsletter extends Model {
|
|||||||
$segments = Segment::orderByAsc('name')->findMany();
|
$segments = Segment::orderByAsc('name')->findMany();
|
||||||
$segment_list = array();
|
$segment_list = array();
|
||||||
$segment_list[] = array(
|
$segment_list[] = array(
|
||||||
'label' => __('All Lists'),
|
'label' => __('All Lists', 'mailpoet'),
|
||||||
'value' => ''
|
'value' => ''
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -408,7 +408,7 @@ class Newsletter extends Model {
|
|||||||
$groups = array(
|
$groups = array(
|
||||||
array(
|
array(
|
||||||
'name' => 'all',
|
'name' => 'all',
|
||||||
'label' => __('All'),
|
'label' => __('All', 'mailpoet'),
|
||||||
'count' => Newsletter::getPublished()
|
'count' => Newsletter::getPublished()
|
||||||
->filter('filterType', $type)
|
->filter('filterType', $type)
|
||||||
->count()
|
->count()
|
||||||
@ -420,7 +420,7 @@ class Newsletter extends Model {
|
|||||||
$groups = array_merge($groups, array(
|
$groups = array_merge($groups, array(
|
||||||
array(
|
array(
|
||||||
'name' => self::STATUS_DRAFT,
|
'name' => self::STATUS_DRAFT,
|
||||||
'label' => __('Draft'),
|
'label' => __('Draft', 'mailpoet'),
|
||||||
'count' => Newsletter::getPublished()
|
'count' => Newsletter::getPublished()
|
||||||
->filter('filterType', $type)
|
->filter('filterType', $type)
|
||||||
->filter('filterStatus', self::STATUS_DRAFT)
|
->filter('filterStatus', self::STATUS_DRAFT)
|
||||||
@ -428,7 +428,7 @@ class Newsletter extends Model {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => self::STATUS_SCHEDULED,
|
'name' => self::STATUS_SCHEDULED,
|
||||||
'label' => __('Scheduled'),
|
'label' => __('Scheduled', 'mailpoet'),
|
||||||
'count' => Newsletter::getPublished()
|
'count' => Newsletter::getPublished()
|
||||||
->filter('filterType', $type)
|
->filter('filterType', $type)
|
||||||
->filter('filterStatus', self::STATUS_SCHEDULED)
|
->filter('filterStatus', self::STATUS_SCHEDULED)
|
||||||
@ -436,7 +436,7 @@ class Newsletter extends Model {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => self::STATUS_SENDING,
|
'name' => self::STATUS_SENDING,
|
||||||
'label' => __('Sending'),
|
'label' => __('Sending', 'mailpoet'),
|
||||||
'count' => Newsletter::getPublished()
|
'count' => Newsletter::getPublished()
|
||||||
->filter('filterType', $type)
|
->filter('filterType', $type)
|
||||||
->filter('filterStatus', self::STATUS_SENDING)
|
->filter('filterStatus', self::STATUS_SENDING)
|
||||||
@ -444,7 +444,7 @@ class Newsletter extends Model {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => self::STATUS_SENT,
|
'name' => self::STATUS_SENT,
|
||||||
'label' => __('Sent'),
|
'label' => __('Sent', 'mailpoet'),
|
||||||
'count' => Newsletter::getPublished()
|
'count' => Newsletter::getPublished()
|
||||||
->filter('filterType', $type)
|
->filter('filterType', $type)
|
||||||
->filter('filterStatus', self::STATUS_SENT)
|
->filter('filterStatus', self::STATUS_SENT)
|
||||||
@ -458,7 +458,7 @@ class Newsletter extends Model {
|
|||||||
$groups = array_merge($groups, array(
|
$groups = array_merge($groups, array(
|
||||||
array(
|
array(
|
||||||
'name' => self::STATUS_ACTIVE,
|
'name' => self::STATUS_ACTIVE,
|
||||||
'label' => __('Active'),
|
'label' => __('Active', 'mailpoet'),
|
||||||
'count' => Newsletter::getPublished()
|
'count' => Newsletter::getPublished()
|
||||||
->filter('filterType', $type)
|
->filter('filterType', $type)
|
||||||
->filter('filterStatus', self::STATUS_ACTIVE)
|
->filter('filterStatus', self::STATUS_ACTIVE)
|
||||||
@ -466,7 +466,7 @@ class Newsletter extends Model {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => self::STATUS_DRAFT,
|
'name' => self::STATUS_DRAFT,
|
||||||
'label' => __('Not active'),
|
'label' => __('Not active', 'mailpoet'),
|
||||||
'count' => Newsletter::getPublished()
|
'count' => Newsletter::getPublished()
|
||||||
->filter('filterType', $type)
|
->filter('filterType', $type)
|
||||||
->filter('filterStatus', self::STATUS_DRAFT)
|
->filter('filterStatus', self::STATUS_DRAFT)
|
||||||
@ -478,7 +478,7 @@ class Newsletter extends Model {
|
|||||||
|
|
||||||
$groups[] = array(
|
$groups[] = array(
|
||||||
'name' => 'trash',
|
'name' => 'trash',
|
||||||
'label' => __('Trash'),
|
'label' => __('Trash', 'mailpoet'),
|
||||||
'count' => Newsletter::getTrashed()
|
'count' => Newsletter::getTrashed()
|
||||||
->filter('filterType', $type)
|
->filter('filterType', $type)
|
||||||
->count()
|
->count()
|
||||||
|
@ -9,10 +9,10 @@ class NewsletterOptionField extends Model {
|
|||||||
function __construct() {
|
function __construct() {
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->addValidations('name', array(
|
$this->addValidations('name', array(
|
||||||
'required' => __('Please specify a name')
|
'required' => __('Please specify a name', 'mailpoet')
|
||||||
));
|
));
|
||||||
$this->addValidations('newsletter_type', array(
|
$this->addValidations('newsletter_type', array(
|
||||||
'required' => __('Please specify a newsletter type')
|
'required' => __('Please specify a newsletter type', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ class NewsletterTemplate extends Model {
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->addValidations('name', array(
|
$this->addValidations('name', array(
|
||||||
'required' => __('Please specify a name')
|
'required' => __('Please specify a name', 'mailpoet')
|
||||||
));
|
));
|
||||||
$this->addValidations('body', array(
|
$this->addValidations('body', array(
|
||||||
'required' => __('The template body cannot be empty')
|
'required' => __('The template body cannot be empty', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ class Segment extends Model {
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->addValidations('name', array(
|
$this->addValidations('name', array(
|
||||||
'required' => __('Please specify a name')
|
'required' => __('Please specify a name', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,9 +100,9 @@ class Segment extends Model {
|
|||||||
// create the wp users segment
|
// create the wp users segment
|
||||||
$wp_segment = Segment::create();
|
$wp_segment = Segment::create();
|
||||||
$wp_segment->hydrate(array(
|
$wp_segment->hydrate(array(
|
||||||
'name' => __('WordPress Users'),
|
'name' => __('WordPress Users', 'mailpoet'),
|
||||||
'description' =>
|
'description' =>
|
||||||
__('This lists containts all of your WordPress users'),
|
__('This lists containts all of your WordPress users', 'mailpoet'),
|
||||||
'type' => 'wp_users'
|
'type' => 'wp_users'
|
||||||
));
|
));
|
||||||
$wp_segment->save();
|
$wp_segment->save();
|
||||||
@ -119,12 +119,12 @@ class Segment extends Model {
|
|||||||
return array(
|
return array(
|
||||||
array(
|
array(
|
||||||
'name' => 'all',
|
'name' => 'all',
|
||||||
'label' => __('All'),
|
'label' => __('All', 'mailpoet'),
|
||||||
'count' => Segment::getPublished()->count()
|
'count' => Segment::getPublished()->count()
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => 'trash',
|
'name' => 'trash',
|
||||||
'label' => __('Trash'),
|
'label' => __('Trash', 'mailpoet'),
|
||||||
'count' => Segment::getTrashed()->count()
|
'count' => Segment::getTrashed()->count()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -210,7 +210,7 @@ class Segment extends Model {
|
|||||||
'AND relation.status = "' . Subscriber::STATUS_SUBSCRIBED . '" ' .
|
'AND relation.status = "' . Subscriber::STATUS_SUBSCRIBED . '" ' .
|
||||||
'GROUP BY segments.id) ' .
|
'GROUP BY segments.id) ' .
|
||||||
'UNION ALL ' .
|
'UNION ALL ' .
|
||||||
'(SELECT 0 as id, "' . __('Not in a List') . '" as name, COUNT(*) as subscribers ' .
|
'(SELECT 0 as id, "' . __('Not in a List', 'mailpoet') . '" as name, COUNT(*) as subscribers ' .
|
||||||
'FROM ' . MP_SUBSCRIBERS_TABLE . ' subscribers ' .
|
'FROM ' . MP_SUBSCRIBERS_TABLE . ' subscribers ' .
|
||||||
'LEFT JOIN ' . MP_SUBSCRIBER_SEGMENT_TABLE . ' relation on relation.subscriber_id = subscribers.id ' .
|
'LEFT JOIN ' . MP_SUBSCRIBER_SEGMENT_TABLE . ' relation on relation.subscriber_id = subscribers.id ' .
|
||||||
(($withConfirmedSubscribers) ?
|
(($withConfirmedSubscribers) ?
|
||||||
|
@ -19,7 +19,7 @@ class Setting extends Model {
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->addValidations('name', array(
|
$this->addValidations('name', array(
|
||||||
'required' => __('Please specify a name')
|
'required' => __('Please specify a name', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,8 +45,8 @@ class Setting extends Model {
|
|||||||
),
|
),
|
||||||
'signup_confirmation' => array(
|
'signup_confirmation' => array(
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
'subject' => sprintf(__('Confirm your subscription to %1$s'), get_option('blogname')),
|
'subject' => sprintf(__('Confirm your subscription to %1$s', 'mailpoet'), get_option('blogname')),
|
||||||
'body' => __("Hello!\n\nHurray! You've subscribed to our site.\n\nPlease confirm your subscription to the list(s): [lists_to_confirm] by clicking the link below: \n\n[activation_link]Click here to confirm your subscription.[/activation_link]\n\nThank you,\n\nThe Team")
|
'body' => __("Hello!\n\nHurray! You've subscribed to our site.\n\nPlease confirm your subscription to the list(s): [lists_to_confirm] by clicking the link below: \n\n[activation_link]Click here to confirm your subscription.[/activation_link]\n\nThank you,\n\nThe Team", 'mailpoet')
|
||||||
),
|
),
|
||||||
'tracking' => array(
|
'tracking' => array(
|
||||||
'enabled' => true
|
'enabled' => true
|
||||||
|
@ -18,8 +18,8 @@ class Subscriber extends Model {
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->addValidations('email', array(
|
$this->addValidations('email', array(
|
||||||
'required' => __('Please enter your email address'),
|
'required' => __('Please enter your email address', 'mailpoet'),
|
||||||
'isEmail' => __('Your email address is invalid!')
|
'isEmail' => __('Your email address is invalid!', 'mailpoet')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,13 +218,13 @@ class Subscriber extends Model {
|
|||||||
$segments = Segment::orderByAsc('name')->findMany();
|
$segments = Segment::orderByAsc('name')->findMany();
|
||||||
$segment_list = array();
|
$segment_list = array();
|
||||||
$segment_list[] = array(
|
$segment_list[] = array(
|
||||||
'label' => __('All Lists'),
|
'label' => __('All Lists', 'mailpoet'),
|
||||||
'value' => ''
|
'value' => ''
|
||||||
);
|
);
|
||||||
|
|
||||||
$subscribers_without_segment = self::filter('withoutSegments')->count();
|
$subscribers_without_segment = self::filter('withoutSegments')->count();
|
||||||
$subscribers_without_segment_label = sprintf(
|
$subscribers_without_segment_label = sprintf(
|
||||||
__('Subscribers without a list (%s)'),
|
__('Subscribers without a list (%s)', 'mailpoet'),
|
||||||
number_format($subscribers_without_segment)
|
number_format($subscribers_without_segment)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -280,27 +280,27 @@ class Subscriber extends Model {
|
|||||||
return array(
|
return array(
|
||||||
array(
|
array(
|
||||||
'name' => 'all',
|
'name' => 'all',
|
||||||
'label' => __('All'),
|
'label' => __('All', 'mailpoet'),
|
||||||
'count' => self::getPublished()->count()
|
'count' => self::getPublished()->count()
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => self::STATUS_SUBSCRIBED,
|
'name' => self::STATUS_SUBSCRIBED,
|
||||||
'label' => __('Subscribed'),
|
'label' => __('Subscribed', 'mailpoet'),
|
||||||
'count' => self::filter(self::STATUS_SUBSCRIBED)->count()
|
'count' => self::filter(self::STATUS_SUBSCRIBED)->count()
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => self::STATUS_UNCONFIRMED,
|
'name' => self::STATUS_UNCONFIRMED,
|
||||||
'label' => __('Unconfirmed'),
|
'label' => __('Unconfirmed', 'mailpoet'),
|
||||||
'count' => self::filter(self::STATUS_UNCONFIRMED)->count()
|
'count' => self::filter(self::STATUS_UNCONFIRMED)->count()
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => self::STATUS_UNSUBSCRIBED,
|
'name' => self::STATUS_UNSUBSCRIBED,
|
||||||
'label' => __('Unsubscribed'),
|
'label' => __('Unsubscribed', 'mailpoet'),
|
||||||
'count' => self::filter(self::STATUS_UNSUBSCRIBED)->count()
|
'count' => self::filter(self::STATUS_UNSUBSCRIBED)->count()
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => 'trash',
|
'name' => 'trash',
|
||||||
'label' => __('Trash'),
|
'label' => __('Trash', 'mailpoet'),
|
||||||
'count' => self::getTrashed()->count()
|
'count' => self::getTrashed()->count()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -77,7 +77,7 @@ class PostContentManager {
|
|||||||
// remove embedded video and replace with links
|
// remove embedded video and replace with links
|
||||||
$content = preg_replace(
|
$content = preg_replace(
|
||||||
'#<iframe.*?src=\"(.+?)\".*><\/iframe>#',
|
'#<iframe.*?src=\"(.+?)\".*><\/iframe>#',
|
||||||
'<a href="$1">'.__('Click here to view media.').'</a>',
|
'<a href="$1">'.__('Click here to view media.', 'mailpoet').'</a>',
|
||||||
$content
|
$content
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class Link {
|
|||||||
return sprintf(
|
return sprintf(
|
||||||
'<a target="_blank" href="%s">%s</a>',
|
'<a target="_blank" href="%s">%s</a>',
|
||||||
$url,
|
$url,
|
||||||
__('Unsubscribe')
|
__('Unsubscribe', 'mailpoet')
|
||||||
);
|
);
|
||||||
|
|
||||||
case 'subscription_unsubscribe_url':
|
case 'subscription_unsubscribe_url':
|
||||||
@ -43,7 +43,7 @@ class Link {
|
|||||||
return sprintf(
|
return sprintf(
|
||||||
'<a target="_blank" href="%s">%s</a>',
|
'<a target="_blank" href="%s">%s</a>',
|
||||||
$url,
|
$url,
|
||||||
__('Manage subscription')
|
__('Manage subscription', 'mailpoet')
|
||||||
);
|
);
|
||||||
|
|
||||||
case 'subscription_manage_url':
|
case 'subscription_manage_url':
|
||||||
@ -60,7 +60,7 @@ class Link {
|
|||||||
return sprintf(
|
return sprintf(
|
||||||
'<a target="_blank" href="%s">%s</a>',
|
'<a target="_blank" href="%s">%s</a>',
|
||||||
$url,
|
$url,
|
||||||
__('View in your browser')
|
__('View in your browser', 'mailpoet')
|
||||||
);
|
);
|
||||||
|
|
||||||
case 'newsletter_view_in_browser_url':
|
case 'newsletter_view_in_browser_url':
|
||||||
|
@ -7,93 +7,93 @@ class ShortcodesHelper {
|
|||||||
|
|
||||||
static function getShortcodes() {
|
static function getShortcodes() {
|
||||||
$shortcodes = array(
|
$shortcodes = array(
|
||||||
__('Subscriber') => array(
|
__('Subscriber', 'mailpoet') => array(
|
||||||
array(
|
array(
|
||||||
'text' => __('First Name'),
|
'text' => __('First Name', 'mailpoet'),
|
||||||
'shortcode' => 'subscriber:firstname | default:reader',
|
'shortcode' => 'subscriber:firstname | default:reader',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Last Name'),
|
'text' => __('Last Name', 'mailpoet'),
|
||||||
'shortcode' => 'subscriber:lastname | default:reader',
|
'shortcode' => 'subscriber:lastname | default:reader',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Email Address'),
|
'text' => __('Email Address', 'mailpoet'),
|
||||||
'shortcode' => 'subscriber:email',
|
'shortcode' => 'subscriber:email',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('WordPress User Display Name'),
|
'text' => __('WordPress User Display Name', 'mailpoet'),
|
||||||
'shortcode' => 'subscriber:displayname | default:member',
|
'shortcode' => 'subscriber:displayname | default:member',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Total Number of Subscribers'),
|
'text' => __('Total Number of Subscribers', 'mailpoet'),
|
||||||
'shortcode' => 'subscriber:count',
|
'shortcode' => 'subscriber:count',
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
__('Newsletter') => array(
|
__('Newsletter', 'mailpoet') => array(
|
||||||
array(
|
array(
|
||||||
'text' => __('Newsletter Subject'),
|
'text' => __('Newsletter Subject', 'mailpoet'),
|
||||||
'shortcode' => 'newsletter:subject',
|
'shortcode' => 'newsletter:subject',
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
__('Post Notifications') => array(
|
__('Post Notifications', 'mailpoet') => array(
|
||||||
array(
|
array(
|
||||||
'text' => __('Total Number of Posts or Pages'),
|
'text' => __('Total Number of Posts or Pages', 'mailpoet'),
|
||||||
'shortcode' => 'newsletter:total',
|
'shortcode' => 'newsletter:total',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Most Recent Post Title'),
|
'text' => __('Most Recent Post Title', 'mailpoet'),
|
||||||
'shortcode' => 'newsletter:post_title',
|
'shortcode' => 'newsletter:post_title',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Issue Number'),
|
'text' => __('Issue Number', 'mailpoet'),
|
||||||
'shortcode' => 'newsletter:number',
|
'shortcode' => 'newsletter:number',
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
__('Date') => array(
|
__('Date', 'mailpoet') => array(
|
||||||
array(
|
array(
|
||||||
'text' => __('Current day of the month number'),
|
'text' => __('Current day of the month number', 'mailpoet'),
|
||||||
'shortcode' => 'date:d',
|
'shortcode' => 'date:d',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Current day of the month in ordinal form, i.e. 2nd, 3rd, 4th, etc.'),
|
'text' => __('Current day of the month in ordinal form, i.e. 2nd, 3rd, 4th, etc.', 'mailpoet'),
|
||||||
'shortcode' => 'date:dordinal',
|
'shortcode' => 'date:dordinal',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Full name of current day'),
|
'text' => __('Full name of current day', 'mailpoet'),
|
||||||
'shortcode' => 'date:dtext',
|
'shortcode' => 'date:dtext',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Current month number'),
|
'text' => __('Current month number', 'mailpoet'),
|
||||||
'shortcode' => 'date:m',
|
'shortcode' => 'date:m',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Full name of current month'),
|
'text' => __('Full name of current month', 'mailpoet'),
|
||||||
'shortcode' => 'date:mtext',
|
'shortcode' => 'date:mtext',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Year'),
|
'text' => __('Year', 'mailpoet'),
|
||||||
'shortcode' => 'date:y',
|
'shortcode' => 'date:y',
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
__('Links') => array(
|
__('Links', 'mailpoet') => array(
|
||||||
array(
|
array(
|
||||||
'text' => __('Unsubscribe link'),
|
'text' => __('Unsubscribe link', 'mailpoet'),
|
||||||
'shortcode' => 'link:subscription_unsubscribe',
|
'shortcode' => 'link:subscription_unsubscribe',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('Edit subscription page link'),
|
'text' => __('Edit subscription page link', 'mailpoet'),
|
||||||
'shortcode' => 'link:subscription_manage',
|
'shortcode' => 'link:subscription_manage',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'text' => __('View in browser link'),
|
'text' => __('View in browser link', 'mailpoet'),
|
||||||
'shortcode' => 'link:newsletter_view_in_browser',
|
'shortcode' => 'link:newsletter_view_in_browser',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$custom_fields = self::getCustomFields();
|
$custom_fields = self::getCustomFields();
|
||||||
if($custom_fields) {
|
if($custom_fields) {
|
||||||
$shortcodes[__('Subscriber')] = array_merge(
|
$shortcodes[__('Subscriber', 'mailpoet')] = array_merge(
|
||||||
$shortcodes[__('Subscriber')],
|
$shortcodes[__('Subscriber', 'mailpoet')],
|
||||||
$custom_fields
|
$custom_fields
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -31,11 +31,11 @@ class Router {
|
|||||||
$endpoint_class = __NAMESPACE__ . "\\Endpoints\\" . ucfirst($this->endpoint);
|
$endpoint_class = __NAMESPACE__ . "\\Endpoints\\" . ucfirst($this->endpoint);
|
||||||
if(!$this->api_request) return;
|
if(!$this->api_request) return;
|
||||||
if(!$this->endpoint || !class_exists($endpoint_class)) {
|
if(!$this->endpoint || !class_exists($endpoint_class)) {
|
||||||
return $this->terminateRequest(self::RESPONSE_ERROR, __('Invalid router endpoint.'));
|
return $this->terminateRequest(self::RESPONSE_ERROR, __('Invalid router endpoint.', 'mailpoet'));
|
||||||
}
|
}
|
||||||
$endpoint = new $endpoint_class($this->data);
|
$endpoint = new $endpoint_class($this->data);
|
||||||
if(!method_exists($endpoint, $this->action) || !in_array($this->action, $endpoint->allowed_actions)) {
|
if(!method_exists($endpoint, $this->action) || !in_array($this->action, $endpoint->allowed_actions)) {
|
||||||
return $this->terminateRequest(self::RESPONSE_ERROR, __('Invalid router endpoint action.'));
|
return $this->terminateRequest(self::RESPONSE_ERROR, __('Invalid router endpoint action.', 'mailpoet'));
|
||||||
}
|
}
|
||||||
return call_user_func(
|
return call_user_func(
|
||||||
array(
|
array(
|
||||||
|
@ -9,8 +9,8 @@ class Pages {
|
|||||||
function init() {
|
function init() {
|
||||||
register_post_type('mailpoet_page', array(
|
register_post_type('mailpoet_page', array(
|
||||||
'labels' => array(
|
'labels' => array(
|
||||||
'name' => __('MailPoet Page'),
|
'name' => __('MailPoet Page', 'mailpoet'),
|
||||||
'singular_name' => __('MailPoet Page')
|
'singular_name' => __('MailPoet Page', 'mailpoet')
|
||||||
),
|
),
|
||||||
'public' => true,
|
'public' => true,
|
||||||
'has_archive' => false,
|
'has_archive' => false,
|
||||||
@ -34,7 +34,7 @@ class Pages {
|
|||||||
'post_type' => 'mailpoet_page',
|
'post_type' => 'mailpoet_page',
|
||||||
'post_author' => 1,
|
'post_author' => 1,
|
||||||
'post_content' => '[mailpoet_page]',
|
'post_content' => '[mailpoet_page]',
|
||||||
'post_title' => __('MailPoet Page'),
|
'post_title' => __('MailPoet Page', 'mailpoet'),
|
||||||
'post_name' => 'subscriptions'
|
'post_name' => 'subscriptions'
|
||||||
));
|
));
|
||||||
flush_rewrite_rules();
|
flush_rewrite_rules();
|
||||||
|
@ -46,10 +46,10 @@ class Export {
|
|||||||
function process() {
|
function process() {
|
||||||
try {
|
try {
|
||||||
if(is_writable($this->export_path) === false) {
|
if(is_writable($this->export_path) === false) {
|
||||||
throw new \Exception(__("Couldn't save export file on the server"));
|
throw new \Exception(__("Couldn't save export file on the server", 'mailpoet'));
|
||||||
}
|
}
|
||||||
if(!extension_loaded('zip')) {
|
if(!extension_loaded('zip')) {
|
||||||
throw new \Exception(__('Export requires a ZIP extension to be installed on the host'));
|
throw new \Exception(__('Export requires a ZIP extension to be installed on the host', 'mailpoet'));
|
||||||
}
|
}
|
||||||
$processed_subscribers = call_user_func(
|
$processed_subscribers = call_user_func(
|
||||||
array(
|
array(
|
||||||
@ -78,7 +78,7 @@ class Export {
|
|||||||
// Excel to automatically recognize the encoding
|
// Excel to automatically recognize the encoding
|
||||||
fwrite($CSV_file, chr(0xEF) . chr(0xBB) . chr(0xBF));
|
fwrite($CSV_file, chr(0xEF) . chr(0xBB) . chr(0xBF));
|
||||||
if($this->group_by_segment_option) {
|
if($this->group_by_segment_option) {
|
||||||
$formatted_subscriber_fields[] = __('List');
|
$formatted_subscriber_fields[] = __('List', 'mailpoet');
|
||||||
}
|
}
|
||||||
fwrite(
|
fwrite(
|
||||||
$CSV_file,
|
$CSV_file,
|
||||||
@ -166,7 +166,7 @@ class Export {
|
|||||||
return $XLSX_writer->writeSheetRow(
|
return $XLSX_writer->writeSheetRow(
|
||||||
($this->group_by_segment_option) ?
|
($this->group_by_segment_option) ?
|
||||||
ucwords($segment) :
|
ucwords($segment) :
|
||||||
__('All Lists'),
|
__('All Lists', 'mailpoet'),
|
||||||
$data
|
$data
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -199,7 +199,7 @@ class Export {
|
|||||||
->selectExpr(
|
->selectExpr(
|
||||||
'MAX(CASE WHEN ' . Segment::$_table . '.name IS NOT NULL ' .
|
'MAX(CASE WHEN ' . Segment::$_table . '.name IS NOT NULL ' .
|
||||||
'THEN ' . Segment::$_table . '.name ' .
|
'THEN ' . Segment::$_table . '.name ' .
|
||||||
'ELSE "' . __('Not In Segment') . '" END) as segment_name'
|
'ELSE "' . __('Not In Segment', 'mailpoet') . '" END) as segment_name'
|
||||||
)
|
)
|
||||||
->whereRaw(
|
->whereRaw(
|
||||||
SubscriberSegment::$_table . '.segment_id IN (' .
|
SubscriberSegment::$_table . '.segment_id IN (' .
|
||||||
|
@ -122,22 +122,22 @@ class MailChimp {
|
|||||||
function throwException($error) {
|
function throwException($error) {
|
||||||
switch($error) {
|
switch($error) {
|
||||||
case 'API':
|
case 'API':
|
||||||
$errorMessage = __('Invalid API Key.');
|
$errorMessage = __('Invalid API Key.', 'mailpoet');
|
||||||
break;
|
break;
|
||||||
case 'connection':
|
case 'connection':
|
||||||
$errorMessage = __('Could not connect to your MailChimp account.');
|
$errorMessage = __('Could not connect to your MailChimp account.', 'mailpoet');
|
||||||
break;
|
break;
|
||||||
case 'headers':
|
case 'headers':
|
||||||
$errorMessage = __('The selected lists do not have matching columns (headers).');
|
$errorMessage = __('The selected lists do not have matching columns (headers).', 'mailpoet');
|
||||||
break;
|
break;
|
||||||
case 'size':
|
case 'size':
|
||||||
$errorMessage = __('The information received from MailChimp is too large for processing. Please limit the number of lists!');
|
$errorMessage = __('The information received from MailChimp is too large for processing. Please limit the number of lists!', 'mailpoet');
|
||||||
break;
|
break;
|
||||||
case 'subscribers':
|
case 'subscribers':
|
||||||
$errorMessage = __('Did not find any active subscribers.');
|
$errorMessage = __('Did not find any active subscribers.', 'mailpoet');
|
||||||
break;
|
break;
|
||||||
case 'lists':
|
case 'lists':
|
||||||
$errorMessage = __('Did not find any valid lists.');
|
$errorMessage = __('Did not find any valid lists.', 'mailpoet');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
throw new \Exception($errorMessage);
|
throw new \Exception($errorMessage);
|
||||||
|
@ -17,7 +17,7 @@ class ImportExportFactory {
|
|||||||
Segment::getSegmentsForImport() :
|
Segment::getSegmentsForImport() :
|
||||||
Segment::getSegmentsForExport($with_confirmed_subscribers);
|
Segment::getSegmentsForExport($with_confirmed_subscribers);
|
||||||
return array_map(function($segment) {
|
return array_map(function($segment) {
|
||||||
if(!$segment['name']) $segment['name'] = __('Not In List');
|
if(!$segment['name']) $segment['name'] = __('Not In List', 'mailpoet');
|
||||||
if(!$segment['id']) $segment['id'] = 0;
|
if(!$segment['id']) $segment['id'] = 0;
|
||||||
return array(
|
return array(
|
||||||
'id' => $segment['id'],
|
'id' => $segment['id'],
|
||||||
@ -29,10 +29,10 @@ class ImportExportFactory {
|
|||||||
|
|
||||||
function getSubscriberFields() {
|
function getSubscriberFields() {
|
||||||
return array(
|
return array(
|
||||||
'email' => __('Email'),
|
'email' => __('Email', 'mailpoet'),
|
||||||
'first_name' => __('First name'),
|
'first_name' => __('First name', 'mailpoet'),
|
||||||
'last_name' => __('Last name'),
|
'last_name' => __('Last name', 'mailpoet'),
|
||||||
'status' => __('Status')
|
'status' => __('Status', 'mailpoet')
|
||||||
// TODO: add additional fields from MP2
|
// TODO: add additional fields from MP2
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -71,36 +71,36 @@ class ImportExportFactory {
|
|||||||
array(
|
array(
|
||||||
array(
|
array(
|
||||||
'id' => 'ignore',
|
'id' => 'ignore',
|
||||||
'name' => __('Ignore field...'),
|
'name' => __('Ignore field...', 'mailpoet'),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'id' => 'create',
|
'id' => 'create',
|
||||||
'name' => __('Create new field...')
|
'name' => __('Create new field...', 'mailpoet')
|
||||||
),
|
),
|
||||||
) :
|
) :
|
||||||
array(
|
array(
|
||||||
array(
|
array(
|
||||||
'id' => 'select',
|
'id' => 'select',
|
||||||
'name' => __('Select all...'),
|
'name' => __('Select all...', 'mailpoet'),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'id' => 'deselect',
|
'id' => 'deselect',
|
||||||
'name' => __('Deselect all...')
|
'name' => __('Deselect all...', 'mailpoet')
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
$select2Fields = array(
|
$select2Fields = array(
|
||||||
array(
|
array(
|
||||||
'name' => __('Actions'),
|
'name' => __('Actions', 'mailpoet'),
|
||||||
'children' => $actions
|
'children' => $actions
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'name' => __('System fields'),
|
'name' => __('System fields', 'mailpoet'),
|
||||||
'children' => $this->formatSubscriberFields($subscriber_fields)
|
'children' => $this->formatSubscriberFields($subscriber_fields)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if($subscriber_custom_fields) {
|
if($subscriber_custom_fields) {
|
||||||
array_push($select2Fields, array(
|
array_push($select2Fields, array(
|
||||||
'name' => __('User fields'),
|
'name' => __('User fields', 'mailpoet'),
|
||||||
'children' => $this->formatSubscriberCustomFields(
|
'children' => $this->formatSubscriberCustomFields(
|
||||||
$subscriber_custom_fields
|
$subscriber_custom_fields
|
||||||
)
|
)
|
||||||
|
@ -20,7 +20,7 @@ class Comment {
|
|||||||
static function getSubscriptionField() {
|
static function getSubscriptionField() {
|
||||||
$label = Setting::getValue(
|
$label = Setting::getValue(
|
||||||
'subscribe.on_comment.label',
|
'subscribe.on_comment.label',
|
||||||
__('Yes, please add me to your mailing list')
|
__('Yes, please add me to your mailing list', 'mailpoet')
|
||||||
);
|
);
|
||||||
|
|
||||||
return '<p class="comment-form-mailpoet">
|
return '<p class="comment-form-mailpoet">
|
||||||
|
@ -76,11 +76,11 @@ class Pages {
|
|||||||
global $post;
|
global $post;
|
||||||
|
|
||||||
if($this->isPreview() === false && $this->subscriber === false) {
|
if($this->isPreview() === false && $this->subscriber === false) {
|
||||||
return __("Hmmm... we don't have a record of you");
|
return __("Hmmm... we don't have a record of you", 'mailpoet');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(
|
if(
|
||||||
($post->post_title !== __('MailPoet Page'))
|
($post->post_title !== __('MailPoet Page', 'mailpoet'))
|
||||||
||
|
||
|
||||||
($page_title !== single_post_title('', false))
|
($page_title !== single_post_title('', false))
|
||||||
) {
|
) {
|
||||||
@ -106,7 +106,7 @@ class Pages {
|
|||||||
|
|
||||||
// if we're not in preview mode and the subscriber does not exist
|
// if we're not in preview mode and the subscriber does not exist
|
||||||
if($this->isPreview() === false && $this->subscriber === false) {
|
if($this->isPreview() === false && $this->subscriber === false) {
|
||||||
return __("Your email address doesn't appear in our lists anymore. Sign up again or contact us if this appears to be a mistake.");
|
return __("Your email address doesn't appear in our lists anymore. Sign up again or contact us if this appears to be a mistake.", 'mailpoet');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strpos($page_content, '[mailpoet_page]') !== false) {
|
if(strpos($page_content, '[mailpoet_page]') !== false) {
|
||||||
@ -150,7 +150,7 @@ class Pages {
|
|||||||
private function getConfirmTitle() {
|
private function getConfirmTitle() {
|
||||||
if($this->isPreview()) {
|
if($this->isPreview()) {
|
||||||
$title = sprintf(
|
$title = sprintf(
|
||||||
__("You have subscribed to: %s"),
|
__("You have subscribed to: %s", 'mailpoet'),
|
||||||
'demo 1, demo 2'
|
'demo 1, demo 2'
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@ -159,10 +159,10 @@ class Pages {
|
|||||||
}, $this->subscriber->segments()->findMany());
|
}, $this->subscriber->segments()->findMany());
|
||||||
|
|
||||||
if(empty($segment_names)) {
|
if(empty($segment_names)) {
|
||||||
$title = __("You are now subscribed!");
|
$title = __("You are now subscribed!", 'mailpoet');
|
||||||
} else {
|
} else {
|
||||||
$title = sprintf(
|
$title = sprintf(
|
||||||
__("You have subscribed to: %s"),
|
__("You have subscribed to: %s", 'mailpoet'),
|
||||||
join(', ', $segment_names)
|
join(', ', $segment_names)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -172,20 +172,20 @@ class Pages {
|
|||||||
|
|
||||||
private function getManageTitle() {
|
private function getManageTitle() {
|
||||||
if($this->isPreview() || $this->subscriber !== false) {
|
if($this->isPreview() || $this->subscriber !== false) {
|
||||||
return __("Manage your subscription");
|
return __("Manage your subscription", 'mailpoet');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getUnsubscribeTitle() {
|
private function getUnsubscribeTitle() {
|
||||||
if($this->isPreview() || $this->subscriber !== false) {
|
if($this->isPreview() || $this->subscriber !== false) {
|
||||||
return __("You are now unsubscribed");
|
return __("You are now unsubscribed", 'mailpoet');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function getConfirmContent() {
|
private function getConfirmContent() {
|
||||||
if($this->isPreview() || $this->subscriber !== false) {
|
if($this->isPreview() || $this->subscriber !== false) {
|
||||||
return __("Yup, we've added you to our email list. You'll hear from us shortly.");
|
return __("Yup, we've added you to our email list. You'll hear from us shortly.", 'mailpoet');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -252,7 +252,7 @@ class Pages {
|
|||||||
'id' => 'first_name',
|
'id' => 'first_name',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'label' => __('First name'),
|
'label' => __('First name', 'mailpoet'),
|
||||||
'value' => $subscriber->first_name,
|
'value' => $subscriber->first_name,
|
||||||
'disabled' => ($subscriber->isWPUser())
|
'disabled' => ($subscriber->isWPUser())
|
||||||
)
|
)
|
||||||
@ -261,7 +261,7 @@ class Pages {
|
|||||||
'id' => 'last_name',
|
'id' => 'last_name',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'label' => __('Last name'),
|
'label' => __('Last name', 'mailpoet'),
|
||||||
'value' => $subscriber->last_name,
|
'value' => $subscriber->last_name,
|
||||||
'disabled' => ($subscriber->isWPUser())
|
'disabled' => ($subscriber->isWPUser())
|
||||||
)
|
)
|
||||||
@ -271,11 +271,11 @@ class Pages {
|
|||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'label' => __('Status'),
|
'label' => __('Status', 'mailpoet'),
|
||||||
'values' => array(
|
'values' => array(
|
||||||
array(
|
array(
|
||||||
'value' => array(
|
'value' => array(
|
||||||
Subscriber::STATUS_SUBSCRIBED => __('Subscribed')
|
Subscriber::STATUS_SUBSCRIBED => __('Subscribed', 'mailpoet')
|
||||||
),
|
),
|
||||||
'is_checked' => (
|
'is_checked' => (
|
||||||
$subscriber->status === Subscriber::STATUS_SUBSCRIBED
|
$subscriber->status === Subscriber::STATUS_SUBSCRIBED
|
||||||
@ -283,7 +283,7 @@ class Pages {
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'value' => array(
|
'value' => array(
|
||||||
Subscriber::STATUS_UNSUBSCRIBED => __('Unsubscribed')
|
Subscriber::STATUS_UNSUBSCRIBED => __('Unsubscribed', 'mailpoet')
|
||||||
),
|
),
|
||||||
'is_checked' => (
|
'is_checked' => (
|
||||||
$subscriber->status === Subscriber::STATUS_UNSUBSCRIBED
|
$subscriber->status === Subscriber::STATUS_UNSUBSCRIBED
|
||||||
@ -302,7 +302,7 @@ class Pages {
|
|||||||
'id' => 'segments',
|
'id' => 'segments',
|
||||||
'type' => 'segment',
|
'type' => 'segment',
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'label' => __('Your lists'),
|
'label' => __('Your lists', 'mailpoet'),
|
||||||
'values' => $segments
|
'values' => $segments
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -310,7 +310,7 @@ class Pages {
|
|||||||
'id' => 'submit',
|
'id' => 'submit',
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'label' => __('Save')
|
'label' => __('Save', 'mailpoet')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -337,17 +337,17 @@ class Pages {
|
|||||||
$form_html .= str_replace(
|
$form_html .= str_replace(
|
||||||
array('[link]', '[/link]'),
|
array('[link]', '[/link]'),
|
||||||
array('<a href="'.get_edit_profile_url().'" target="_blank">', '</a>'),
|
array('<a href="'.get_edit_profile_url().'" target="_blank">', '</a>'),
|
||||||
__('[link]Edit your profile[/link] to update your email.')
|
__('[link]Edit your profile[/link] to update your email.', 'mailpoet')
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$form_html .= str_replace(
|
$form_html .= str_replace(
|
||||||
array('[link]', '[/link]'),
|
array('[link]', '[/link]'),
|
||||||
array('<a href="'.wp_login_url().'" target="_blank">', '</a>'),
|
array('<a href="'.wp_login_url().'" target="_blank">', '</a>'),
|
||||||
__('[link]Log in to your account[/link] to update your email.')
|
__('[link]Log in to your account[/link] to update your email.', 'mailpoet')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$form_html .= __('Need to change your email address? Unsubscribe here, then simply sign up again.');
|
$form_html .= __('Need to change your email address? Unsubscribe here, then simply sign up again.', 'mailpoet');
|
||||||
}
|
}
|
||||||
$form_html .= '</span>';
|
$form_html .= '</span>';
|
||||||
$form_html .= '</p>';
|
$form_html .= '</p>';
|
||||||
@ -361,7 +361,7 @@ class Pages {
|
|||||||
private function getUnsubscribeContent() {
|
private function getUnsubscribeContent() {
|
||||||
$content = '';
|
$content = '';
|
||||||
if($this->isPreview() || $this->subscriber !== false) {
|
if($this->isPreview() || $this->subscriber !== false) {
|
||||||
$content .= '<p>'.__('Accidentally unsubscribed?').' <strong>';
|
$content .= '<p>'.__('Accidentally unsubscribed?', 'mailpoet').' <strong>';
|
||||||
$content .= '[mailpoet_manage]';
|
$content .= '[mailpoet_manage]';
|
||||||
$content .= '</strong></p>';
|
$content .= '</strong></p>';
|
||||||
}
|
}
|
||||||
@ -373,7 +373,7 @@ class Pages {
|
|||||||
$text = (
|
$text = (
|
||||||
isset($params['text'])
|
isset($params['text'])
|
||||||
? $params['text']
|
? $params['text']
|
||||||
: __('Manage your subscription')
|
: __('Manage your subscription', 'mailpoet')
|
||||||
);
|
);
|
||||||
|
|
||||||
return '<a href="'.Subscription\Url::getManageUrl(
|
return '<a href="'.Subscription\Url::getManageUrl(
|
||||||
|
@ -8,7 +8,7 @@ class Registration {
|
|||||||
static function extendForm() {
|
static function extendForm() {
|
||||||
$label = Setting::getValue(
|
$label = Setting::getValue(
|
||||||
'subscribe.on_register.label',
|
'subscribe.on_register.label',
|
||||||
__('Yes, please add me to your mailing list.')
|
__('Yes, please add me to your mailing list.', 'mailpoet')
|
||||||
);
|
);
|
||||||
|
|
||||||
print '<p class="registration-form-mailpoet">
|
print '<p class="registration-form-mailpoet">
|
||||||
|
@ -76,10 +76,10 @@ class Functions extends \Twig_Extension {
|
|||||||
|
|
||||||
$label = null;
|
$label = null;
|
||||||
$labels = array(
|
$labels = array(
|
||||||
'minute' => __('every minute'),
|
'minute' => __('every minute', 'mailpoet'),
|
||||||
'minutes' => __('every %1$d minutes'),
|
'minutes' => __('every %1$d minutes', 'mailpoet'),
|
||||||
'hour' => __('every hour'),
|
'hour' => __('every hour', 'mailpoet'),
|
||||||
'hours' => __('every %1$d hours')
|
'hours' => __('every %1$d hours', 'mailpoet')
|
||||||
);
|
);
|
||||||
|
|
||||||
if($value >= 60) {
|
if($value >= 60) {
|
||||||
|
@ -19,7 +19,7 @@ class Notice {
|
|||||||
static function displayError($message) {
|
static function displayError($message) {
|
||||||
$message = sprintf(
|
$message = sprintf(
|
||||||
"<b>%s </b> %s",
|
"<b>%s </b> %s",
|
||||||
__('MailPoet Error:'),
|
__('MailPoet Error:', 'mailpoet'),
|
||||||
$message
|
$message
|
||||||
);
|
);
|
||||||
self::createNotice(self::TYPE_ERROR, $message);
|
self::createNotice(self::TYPE_ERROR, $message);
|
||||||
|
@ -187,7 +187,7 @@ class ImportExportFactoryTest extends MailPoetTest {
|
|||||||
$select2FieldsWithoutCustomFields,
|
$select2FieldsWithoutCustomFields,
|
||||||
array(
|
array(
|
||||||
array(
|
array(
|
||||||
'name' => __('User fields'),
|
'name' => 'User fields',
|
||||||
'children' => $ImportExportFactory->formatSubscriberCustomFields(
|
'children' => $ImportExportFactory->formatSubscriberCustomFields(
|
||||||
$ImportExportFactory->getSubscriberCustomFields()
|
$ImportExportFactory->getSubscriberCustomFields()
|
||||||
)
|
)
|
||||||
@ -213,11 +213,11 @@ class ImportExportFactoryTest extends MailPoetTest {
|
|||||||
'children' => array(
|
'children' => array(
|
||||||
array(
|
array(
|
||||||
'id' => 'select',
|
'id' => 'select',
|
||||||
'name' => __('Select all...'),
|
'name' => 'Select all...',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'id' => 'deselect',
|
'id' => 'deselect',
|
||||||
'name' => __('Deselect all...')
|
'name' => 'Deselect all...'
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -232,7 +232,7 @@ class ImportExportFactoryTest extends MailPoetTest {
|
|||||||
$select2FieldsWithoutCustomFields,
|
$select2FieldsWithoutCustomFields,
|
||||||
array(
|
array(
|
||||||
array(
|
array(
|
||||||
'name' => __('User fields'),
|
'name' => 'User fields',
|
||||||
'children' => $ImportExportFactory->formatSubscriberCustomFields(
|
'children' => $ImportExportFactory->formatSubscriberCustomFields(
|
||||||
$ImportExportFactory->getSubscriberCustomFields()
|
$ImportExportFactory->getSubscriberCustomFields()
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user