diff --git a/.circleci/fake-sendmail.php b/.circleci/fake-sendmail.php index d948ef5621..cbd42e19f8 100755 --- a/.circleci/fake-sendmail.php +++ b/.circleci/fake-sendmail.php @@ -1,7 +1,7 @@ #!/usr/local/bin/php null]) { - if(!is_dir('assets/dist/js')) { + if (!is_dir('assets/dist/js')) { mkdir('assets/dist/js', 0777, true); } $env = ($opts['env']) ? @@ -91,7 +91,7 @@ class RoboFile extends \Robo\Tasks { } function compileCss($opts = ['env' => null]) { - if(!is_dir('assets/dist/css')) { + if (!is_dir('assets/dist/css')) { mkdir('assets/dist/css', 0777, true); } // Clean up folder from previous files @@ -119,7 +119,7 @@ class RoboFile extends \Robo\Tasks { $manifest = []; foreach (glob('assets/dist/css/*.css') as $style) { // Hash and rename styles if production environment - if($opts['env'] === 'production') { + if ($opts['env'] === 'production') { $hashed_style = sprintf( '%s.%s.css', pathinfo($style)['filename'], @@ -167,15 +167,15 @@ class RoboFile extends \Robo\Tasks { $command = 'vendor/bin/codecept run unit'; - if($opts['file']) { + if ($opts['file']) { $command .= ' -f ' . $opts['file']; } - if($opts['xml']) { + if ($opts['xml']) { $command .= ' --xml'; } - if($opts['debug']) { + if ($opts['debug']) { $command .= ' --debug'; } @@ -187,19 +187,19 @@ class RoboFile extends \Robo\Tasks { $command = 'vendor/bin/codecept run integration'; - if($opts['multisite']) { + if ($opts['multisite']) { $command = 'MULTISITE=true ' . $command; } - if($opts['file']) { + if ($opts['file']) { $command .= ' -f ' . $opts['file']; } - if($opts['xml']) { + if ($opts['xml']) { $command .= ' --xml'; } - if($opts['debug']) { + if ($opts['debug']) { $command .= ' --debug'; } @@ -219,7 +219,7 @@ class RoboFile extends \Robo\Tasks { ($opts['xml']) ? '--coverage-xml' : '--coverage-html' )); - if($opts['xml']) { + if ($opts['xml']) { $command .= ' --xml'; } return $this->_exec($command); @@ -234,7 +234,7 @@ class RoboFile extends \Robo\Tasks { 'tests/javascript/testBundles/**/*.js' )); - if(!empty($xml_output_file)) { + if (!empty($xml_output_file)) { $command .= sprintf( ' --reporter xunit --reporter-options output="%s"', $xml_output_file @@ -394,7 +394,7 @@ class RoboFile extends \Robo\Tasks { $collection = $this->collectionBuilder(); // Clean up the SVN dir for faster shallow checkout - if(file_exists($svn_dir)) { + if (file_exists($svn_dir)) { $collection->taskExecStack() ->exec('rm -rf ' . $svn_dir); } @@ -434,13 +434,13 @@ class RoboFile extends \Robo\Tasks { $plugin_dist_name = 'mailpoet'; $plugin_dist_file = $plugin_dist_name . '.zip'; - if(!$plugin_version) { + if (!$plugin_version) { throw new \Exception('Could not parse plugin version, check the plugin header'); } $this->say('Publishing version: ' . $plugin_version); // Sanity checks - if(!is_readable($plugin_dist_file)) { + if (!is_readable($plugin_dist_file)) { $this->say("Failed to access " . $plugin_dist_file); return; } elseif (!file_exists($svn_dir . "/.svn/")) { @@ -454,7 +454,7 @@ class RoboFile extends \Robo\Tasks { $collection = $this->collectionBuilder(); // Clean up tmp dirs if the previous run was halted - if(file_exists("$svn_dir/trunk_new") || file_exists("$svn_dir/trunk_old")) { + if (file_exists("$svn_dir/trunk_new") || file_exists("$svn_dir/trunk_old")) { $collection->taskFileSystemStack() ->stopOnFail() ->remove(array("$svn_dir/trunk_new", "$svn_dir/trunk_old")); @@ -466,7 +466,7 @@ class RoboFile extends \Robo\Tasks { ->preserveTopDirectory(false); // Rename current trunk - if(file_exists("$svn_dir/trunk")) { + if (file_exists("$svn_dir/trunk")) { $collection->taskFileSystemStack() ->rename("$svn_dir/trunk", "$svn_dir/trunk_old"); } @@ -482,7 +482,7 @@ class RoboFile extends \Robo\Tasks { ->mirror('./plugin_repository/assets', "$svn_dir/assets_new"); // Rename current assets folder - if(file_exists("$svn_dir/assets")) { + if (file_exists("$svn_dir/assets")) { $collection->taskFileSystemStack() ->rename("$svn_dir/assets", "$svn_dir/assets_old"); } @@ -509,12 +509,12 @@ class RoboFile extends \Robo\Tasks { $result = $collection->run(); - if($result->wasSuccessful()) { + if ($result->wasSuccessful()) { // Run or suggest release command depending on a flag $repo_url = "https://plugins.svn.wordpress.org/$plugin_dist_name"; $release_cmd = "svn ci -m \"Release $plugin_version\""; $tag_cmd = "svn copy $repo_url/trunk $repo_url/tags/$plugin_version -m \"Tag $plugin_version\""; - if(!empty($opts['force'])) { + if (!empty($opts['force'])) { $svn_login = getenv('WP_SVN_USERNAME'); $svn_password = getenv('WP_SVN_PASSWORD'); if ($svn_login && $svn_password) { @@ -553,7 +553,7 @@ class RoboFile extends \Robo\Tasks { function changelogUpdate($opts = ['version-name' => null]) { $this->say("Updating changelog"); $outputs = $this->getChangelogController()->update($opts['version-name']); - if($opts['quiet']) { + if ($opts['quiet']) { return; } $this->say("Changelog \n{$outputs[0]} \n{$outputs[1]}\n\n"); @@ -598,7 +598,7 @@ class RoboFile extends \Robo\Tasks { public function writeReleaseVersion($version) { $version = trim($version); - if(!preg_match('/\d+\.\d+\.\d+/', $version)) { + if (!preg_match('/\d+\.\d+\.\d+/', $version)) { $this->yell('Incorrect version format', 40, 'red'); exit(1); } diff --git a/lib/API/API.php b/lib/API/API.php index 03214e6916..ee79f6234a 100644 --- a/lib/API/API.php +++ b/lib/API/API.php @@ -5,7 +5,7 @@ namespace MailPoet\API; use MailPoet\DI\ContainerWrapper; use MailPoetVendor\Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class API { static function MP($version) { diff --git a/lib/API/JSON/API.php b/lib/API/JSON/API.php index 04920fcd86..7911de76f1 100644 --- a/lib/API/JSON/API.php +++ b/lib/API/JSON/API.php @@ -8,7 +8,7 @@ use MailPoet\Util\Helpers; use MailPoet\Util\Security; use MailPoet\WP\Functions as WPFunctions; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class API { private $_request_api_version; @@ -26,7 +26,7 @@ class API { /** @var AccessControl */ private $access_control; - + /** @var WPFunctions */ private $wp; @@ -84,7 +84,7 @@ class API { $this->_request_method === 'subscribe' ); - if(!$ignoreToken && $this->checkToken() === false) { + if (!$ignoreToken && $this->checkToken() === false) { $error_message = __("Sorry, but we couldn't connect to the MailPoet server. Please refresh the web page and try again.", 'mailpoet'); $error_response = $this->createErrorResponse(Error::UNAUTHORIZED, $error_message, Response::STATUS_UNAUTHORIZED); return $error_response->send(); @@ -111,7 +111,7 @@ class API { ? trim($data['token']) : null; - if(!$this->_request_endpoint || !$this->_request_method || !$this->_request_api_version) { + if (!$this->_request_endpoint || !$this->_request_method || !$this->_request_api_version) { $error_message = __('Invalid API request.', 'mailpoet'); $error_response = $this->createErrorResponse(Error::BAD_REQUEST, $error_message, Response::STATUS_BAD_REQUEST); return $error_response; @@ -122,7 +122,7 @@ class API { $namespace, ucfirst($this->_request_endpoint) ); - if($this->container->has($endpoint_class)) { + if ($this->container->has($endpoint_class)) { $this->_request_endpoint_class = $endpoint_class; break; } @@ -132,7 +132,7 @@ class API { : array(); // remove reserved keywords from data - if(is_array($this->_request_data) && !empty($this->_request_data)) { + if (is_array($this->_request_data) && !empty($this->_request_data)) { // filter out reserved keywords from data $reserved_keywords = array( 'token', @@ -152,20 +152,20 @@ class API { function processRoute() { try { - if(empty($this->_request_endpoint_class) || + if (empty($this->_request_endpoint_class) || !$this->container->has($this->_request_endpoint_class) ) { throw new \Exception(__('Invalid API endpoint.', 'mailpoet')); } $endpoint = $this->container->get($this->_request_endpoint_class); - if(!method_exists($endpoint, $this->_request_method)) { + if (!method_exists($endpoint, $this->_request_method)) { throw new \Exception(__('Invalid API endpoint method.', 'mailpoet')); } // check the accessibility of the requested endpoint's action // by default, an endpoint's action is considered "private" - if(!$this->validatePermissions($this->_request_method, $endpoint->permissions)) { + if (!$this->validatePermissions($this->_request_method, $endpoint->permissions)) { $error_message = __('You do not have the required permissions.', 'mailpoet'); $error_response = $this->createErrorResponse(Error::FORBIDDEN, $error_message, Response::STATUS_FORBIDDEN); return $error_response; @@ -203,7 +203,7 @@ class API { } function addEndpointNamespace($namespace, $version) { - if(!empty($this->_endpoint_namespaces[$version][$namespace])) return; + if (!empty($this->_endpoint_namespaces[$version][$namespace])) return; $this->_endpoint_namespaces[$version][] = $namespace; } diff --git a/lib/API/JSON/Endpoint.php b/lib/API/JSON/Endpoint.php index 17427147f1..4c9aef5ede 100644 --- a/lib/API/JSON/Endpoint.php +++ b/lib/API/JSON/Endpoint.php @@ -4,7 +4,7 @@ namespace MailPoet\API\JSON; use MailPoet\Config\AccessControl; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; abstract class Endpoint { public $permissions = array( @@ -21,7 +21,7 @@ abstract class Endpoint { function errorResponse( $errors = array(), $meta = array(), $status = Response::STATUS_NOT_FOUND ) { - if(empty($errors)) { + if (empty($errors)) { $errors = array( Error::UNKNOWN => __('An unknown error occurred.', 'mailpoet') ); @@ -30,7 +30,7 @@ abstract class Endpoint { } function badRequest($errors = array(), $meta = array()) { - if(empty($errors)) { + if (empty($errors)) { $errors = array( Error::BAD_REQUEST => __('Invalid request parameters', 'mailpoet') ); diff --git a/lib/API/JSON/Error.php b/lib/API/JSON/Error.php index 7ca26ec114..dc284b80be 100644 --- a/lib/API/JSON/Error.php +++ b/lib/API/JSON/Error.php @@ -1,7 +1,7 @@ getData(); $response = array(); - if(!empty($this->meta)) { + if (!empty($this->meta)) { $response['meta'] = $this->meta; } - if($data !== null) { + if ($data !== null) { $response = array_merge($response, $data); } - if(!empty($response)) { + if (!empty($response)) { @header('Content-Type: application/json; charset='.get_option('blog_charset')); echo wp_json_encode($response); } @@ -41,4 +41,4 @@ abstract class Response { } abstract function getData(); -} \ No newline at end of file +} diff --git a/lib/API/JSON/SuccessResponse.php b/lib/API/JSON/SuccessResponse.php index 89f19fe5a9..736103806f 100644 --- a/lib/API/JSON/SuccessResponse.php +++ b/lib/API/JSON/SuccessResponse.php @@ -1,7 +1,7 @@ data === null) return null; + if ($this->data === null) return null; return array( 'data' => $this->data ); } -} \ No newline at end of file +} diff --git a/lib/API/JSON/v1/AutomatedLatestContent.php b/lib/API/JSON/v1/AutomatedLatestContent.php index 0a0e184cb4..20bab3ee79 100644 --- a/lib/API/JSON/v1/AutomatedLatestContent.php +++ b/lib/API/JSON/v1/AutomatedLatestContent.php @@ -7,7 +7,7 @@ use MailPoet\Config\AccessControl; use MailPoet\WP\Functions as WPFunctions; use MailPoet\WP\Posts as WPPosts; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class AutomatedLatestContent extends APIEndpoint { /** @var \MailPoet\Newsletter\AutomatedLatestContent */ diff --git a/lib/API/JSON/v1/CustomFields.php b/lib/API/JSON/v1/CustomFields.php index 823f0552a5..9237d1c991 100644 --- a/lib/API/JSON/v1/CustomFields.php +++ b/lib/API/JSON/v1/CustomFields.php @@ -7,7 +7,7 @@ use MailPoet\API\JSON\Error as APIError; use MailPoet\Config\AccessControl; use MailPoet\Models\CustomField; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class CustomFields extends APIEndpoint { public $permissions = array( @@ -26,7 +26,7 @@ class CustomFields extends APIEndpoint { function delete($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : null); $custom_field = CustomField::findOne($id); - if($custom_field === false) { + if ($custom_field === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This custom field does not exist.', 'mailpoet') )); @@ -41,7 +41,7 @@ class CustomFields extends APIEndpoint { $custom_field = CustomField::createOrUpdate($data); $errors = $custom_field->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->badRequest($errors); } else { return $this->successResponse( @@ -53,7 +53,7 @@ class CustomFields extends APIEndpoint { function get($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : null); $custom_field = CustomField::findOne($id); - if($custom_field === false) { + if ($custom_field === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This custom field does not exist.', 'mailpoet') )); @@ -61,4 +61,4 @@ class CustomFields extends APIEndpoint { return $this->successResponse($custom_field->asArray()); } } -} \ No newline at end of file +} diff --git a/lib/API/JSON/v1/Forms.php b/lib/API/JSON/v1/Forms.php index ef3272c2d0..a19f148cb2 100644 --- a/lib/API/JSON/v1/Forms.php +++ b/lib/API/JSON/v1/Forms.php @@ -11,7 +11,7 @@ use MailPoet\Listing; use MailPoet\Models\Form; use MailPoet\Models\StatisticsForms; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Forms extends APIEndpoint { @@ -36,7 +36,7 @@ class Forms extends APIEndpoint { function get($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $form = Form::findOne($id); - if($form === false) { + if ($form === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet') )); @@ -110,7 +110,7 @@ class Forms extends APIEndpoint { $form = Form::createOrUpdate($data); $errors = $form->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->badRequest($errors); } else { return $this->successResponse( @@ -138,7 +138,7 @@ class Forms extends APIEndpoint { function exportsEditor($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $form = Form::findOne($id); - if($form === false) { + if ($form === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet') )); @@ -160,9 +160,9 @@ class Forms extends APIEndpoint { // check if the form is used as a widget $is_widget = false; $widgets = get_option('widget_mailpoet_form'); - if(!empty($widgets)) { + if (!empty($widgets)) { foreach ($widgets as $widget) { - if(isset($widget['form']) && (int)$widget['form'] === $form_id) { + if (isset($widget['form']) && (int)$widget['form'] === $form_id) { $is_widget = true; break; } @@ -174,9 +174,9 @@ class Forms extends APIEndpoint { $has_segment_selection = false; $list_selection = []; foreach ($body as $i => $block) { - if($block['type'] === 'segment') { + if ($block['type'] === 'segment') { $has_segment_selection = true; - if(!empty($block['params']['values'])) { + if (!empty($block['params']['values'])) { $list_selection = array_filter( array_map(function($segment) { return (isset($segment['id']) @@ -191,7 +191,7 @@ class Forms extends APIEndpoint { } // check list selection - if($has_segment_selection === true) { + if ($has_segment_selection === true) { $settings['segments_selected_by'] = 'user'; $settings['segments'] = $list_selection; } else { @@ -208,7 +208,7 @@ class Forms extends APIEndpoint { $errors = $form->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->badRequest($errors); } else { return $this->successResponse( @@ -221,7 +221,7 @@ class Forms extends APIEndpoint { function restore($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $form = Form::findOne($id); - if($form === false) { + if ($form === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet') )); @@ -237,7 +237,7 @@ class Forms extends APIEndpoint { function trash($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $form = Form::findOne($id); - if($form === false) { + if ($form === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet') )); @@ -253,7 +253,7 @@ class Forms extends APIEndpoint { function delete($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $form = Form::findOne($id); - if($form === false) { + if ($form === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet') )); @@ -267,7 +267,7 @@ class Forms extends APIEndpoint { $id = (isset($data['id']) ? (int)$data['id'] : false); $form = Form::findOne($id); - if($form === false) { + if ($form === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This form does not exist.', 'mailpoet') )); @@ -278,7 +278,7 @@ class Forms extends APIEndpoint { $duplicate = $form->duplicate($data); $errors = $duplicate->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->errorResponse($errors); } else { return $this->successResponse( diff --git a/lib/API/JSON/v1/ImportExport.php b/lib/API/JSON/v1/ImportExport.php index 30d0925b60..40ee0aeb38 100644 --- a/lib/API/JSON/v1/ImportExport.php +++ b/lib/API/JSON/v1/ImportExport.php @@ -7,7 +7,7 @@ use MailPoet\Config\AccessControl; use MailPoet\Models\Segment; use MailPoet\Subscribers\ImportExport\Import\MailChimp; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class ImportExport extends APIEndpoint { public $permissions = array( @@ -42,7 +42,7 @@ class ImportExport extends APIEndpoint { $segment = Segment::createOrUpdate($data); $errors = $segment->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->errorResponse($errors); } else { return $this->successResponse( diff --git a/lib/API/JSON/v1/MP2Migrator.php b/lib/API/JSON/v1/MP2Migrator.php index 5a82277302..0425c0d0ad 100644 --- a/lib/API/JSON/v1/MP2Migrator.php +++ b/lib/API/JSON/v1/MP2Migrator.php @@ -5,7 +5,7 @@ namespace MailPoet\API\JSON\v1; use MailPoet\API\JSON\Endpoint as APIEndpoint; use MailPoet\Config\AccessControl; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class MP2Migrator extends APIEndpoint { public $permissions = array( diff --git a/lib/API/JSON/v1/Mailer.php b/lib/API/JSON/v1/Mailer.php index 7f230a58ac..6c592f320e 100644 --- a/lib/API/JSON/v1/Mailer.php +++ b/lib/API/JSON/v1/Mailer.php @@ -7,7 +7,7 @@ use MailPoet\API\JSON\Error as APIError; use MailPoet\Config\AccessControl; use MailPoet\Mailer\MailerLog; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Mailer extends APIEndpoint { public $permissions = array( @@ -28,7 +28,7 @@ class Mailer extends APIEndpoint { )); } - if($result['response'] === false) { + if ($result['response'] === false) { $error = sprintf( __('The email could not be sent: %s', 'mailpoet'), $result['error']->getMessage() diff --git a/lib/API/JSON/v1/NewsletterTemplates.php b/lib/API/JSON/v1/NewsletterTemplates.php index 69e193e49a..df7c8c474b 100644 --- a/lib/API/JSON/v1/NewsletterTemplates.php +++ b/lib/API/JSON/v1/NewsletterTemplates.php @@ -7,7 +7,7 @@ use MailPoet\API\JSON\Error as APIError; use MailPoet\Config\AccessControl; use MailPoet\Models\NewsletterTemplate; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class NewsletterTemplates extends APIEndpoint { public $permissions = array( @@ -17,7 +17,7 @@ class NewsletterTemplates extends APIEndpoint { function get($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $template = NewsletterTemplate::findOne($id); - if($template === false) { + if ($template === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This template does not exist.', 'mailpoet') )); @@ -43,9 +43,9 @@ class NewsletterTemplates extends APIEndpoint { } function save($data = array()) { - if(!empty($data['newsletter_id'])) { + if (!empty($data['newsletter_id'])) { $template = NewsletterTemplate::whereEqual('newsletter_id', $data['newsletter_id'])->findOne(); - if(!empty($template)) { + if (!empty($template)) { $data['id'] = $template->id; } } @@ -55,7 +55,7 @@ class NewsletterTemplates extends APIEndpoint { NewsletterTemplate::cleanRecentlySent($data); - if(!empty($errors)) { + if (!empty($errors)) { return $this->errorResponse($errors); } else { return $this->successResponse( @@ -67,7 +67,7 @@ class NewsletterTemplates extends APIEndpoint { function delete($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $template = NewsletterTemplate::findOne($id); - if($template === false) { + if ($template === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This template does not exist.', 'mailpoet') )); diff --git a/lib/API/JSON/v1/Newsletters.php b/lib/API/JSON/v1/Newsletters.php index b1d97a528b..37272ffcfa 100644 --- a/lib/API/JSON/v1/Newsletters.php +++ b/lib/API/JSON/v1/Newsletters.php @@ -23,7 +23,7 @@ use MailPoet\Newsletter\Url as NewsletterUrl; use MailPoet\Settings\SettingsController; use MailPoet\WP\Functions as WPFunctions; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Newsletters extends APIEndpoint { @@ -58,7 +58,7 @@ class Newsletters extends APIEndpoint { function get($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $newsletter = Newsletter::findOne($id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); @@ -77,20 +77,20 @@ class Newsletters extends APIEndpoint { $data = $this->wp->applyFilters('mailpoet_api_newsletters_save_before', $data); $segments = array(); - if(isset($data['segments'])) { + if (isset($data['segments'])) { $segments = $data['segments']; unset($data['segments']); } $options = array(); - if(isset($data['options'])) { + if (isset($data['options'])) { $options = $data['options']; unset($data['options']); } - if(!empty($data['template_id'])) { + if (!empty($data['template_id'])) { $template = NewsletterTemplate::whereEqual('id', $data['template_id'])->findOne(); - if(!empty($template)) { + if (!empty($template)) { $template = $template->asArray(); $data['body'] = $template['body']; } @@ -100,16 +100,16 @@ class Newsletters extends APIEndpoint { $newsletter = Newsletter::createOrUpdate($data); $errors = $newsletter->getErrors(); - if(!empty($errors)) return $this->badRequest($errors); + if (!empty($errors)) return $this->badRequest($errors); // Re-fetch newsletter to sync changes made by DB // updated_at column use CURRENT_TIMESTAMP for update and this change is not updated automatically by ORM $newsletter = Newsletter::findOne($newsletter->id); - if(!empty($segments)) { + if (!empty($segments)) { NewsletterSegment::where('newsletter_id', $newsletter->id) ->deleteMany(); foreach ($segments as $segment) { - if(!is_array($segment)) continue; + if (!is_array($segment)) continue; $relation = NewsletterSegment::create(); $relation->segment_id = (int)$segment['id']; $relation->newsletter_id = $newsletter->id; @@ -117,18 +117,18 @@ class Newsletters extends APIEndpoint { } } - if(isset($data['sender_address']) && isset($data['sender_name'])) { + if (isset($data['sender_address']) && isset($data['sender_name'])) { Setting::saveDefaultSenderIfNeeded($data['sender_address'], $data['sender_name']); } - if(!empty($options)) { + if (!empty($options)) { $option_fields = NewsletterOptionField::where( 'newsletter_type', $newsletter->type )->findMany(); // update newsletter options foreach ($option_fields as $option_field) { - if(isset($options[$option_field->name])) { + if (isset($options[$option_field->name])) { $newsletter_option = NewsletterOption::createOrUpdate( array( 'newsletter_id' => $newsletter->id, @@ -141,7 +141,7 @@ class Newsletters extends APIEndpoint { // reload newsletter with updated options $newsletter = Newsletter::filter('filterWithOptions', $newsletter->type)->findOne($newsletter->id); // if this is a post notification, process newsletter options and update its schedule - if($newsletter->type === Newsletter::TYPE_NOTIFICATION) { + if ($newsletter->type === Newsletter::TYPE_NOTIFICATION) { // generate the new schedule from options and get the new "next run" date $newsletter->schedule = Scheduler::processPostNotificationSchedule($newsletter); $next_run_date = Scheduler::getNextRunDate($newsletter->schedule); @@ -155,9 +155,9 @@ class Newsletters extends APIEndpoint { } $queue = $newsletter->getQueue(); - if($queue && !in_array($newsletter->type, array(Newsletter::TYPE_NOTIFICATION, Newsletter::TYPE_NOTIFICATION_HISTORY))) { + if ($queue && !in_array($newsletter->type, array(Newsletter::TYPE_NOTIFICATION, Newsletter::TYPE_NOTIFICATION_HISTORY))) { // if newsletter was previously scheduled and is now unscheduled, set its status to DRAFT and delete associated queue record - if($newsletter->status === Newsletter::STATUS_SCHEDULED && isset($options['isScheduled']) && empty($options['isScheduled'])) { + if ($newsletter->status === Newsletter::STATUS_SCHEDULED && isset($options['isScheduled']) && empty($options['isScheduled'])) { $queue->delete(); $newsletter->status = Newsletter::STATUS_DRAFT; $newsletter->save(); @@ -183,7 +183,7 @@ class Newsletters extends APIEndpoint { function setStatus($data = array()) { $status = (isset($data['status']) ? $data['status'] : null); - if(!$status) { + if (!$status) { return $this->badRequest(array( APIError::BAD_REQUEST => __('You need to specify a status.', 'mailpoet') )); @@ -192,7 +192,7 @@ class Newsletters extends APIEndpoint { $id = (isset($data['id'])) ? (int)$data['id'] : false; $newsletter = Newsletter::findOneWithOptions($id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); @@ -201,15 +201,15 @@ class Newsletters extends APIEndpoint { $newsletter->setStatus($status); $errors = $newsletter->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->errorResponse($errors); } // if there are past due notifications, reschedule them for the next send date - if($newsletter->type === Newsletter::TYPE_NOTIFICATION && $status === Newsletter::STATUS_ACTIVE) { + if ($newsletter->type === Newsletter::TYPE_NOTIFICATION && $status === Newsletter::STATUS_ACTIVE) { $next_run_date = Scheduler::getNextRunDate($newsletter->schedule); $queue = $newsletter->queue()->findOne(); - if($queue) { + if ($queue) { $queue->task() ->whereLte('scheduled_at', Carbon::createFromTimestamp($this->wp->currentTime('timestamp'))) ->where('status', SendingQueue::STATUS_SCHEDULED) @@ -229,7 +229,7 @@ class Newsletters extends APIEndpoint { function restore($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $newsletter = Newsletter::findOne($id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); @@ -245,7 +245,7 @@ class Newsletters extends APIEndpoint { function trash($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $newsletter = Newsletter::findOne($id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); @@ -261,7 +261,7 @@ class Newsletters extends APIEndpoint { function delete($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $newsletter = Newsletter::findOne($id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); @@ -275,7 +275,7 @@ class Newsletters extends APIEndpoint { $id = (isset($data['id']) ? (int)$data['id'] : false); $newsletter = Newsletter::findOne($id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); @@ -286,7 +286,7 @@ class Newsletters extends APIEndpoint { $duplicate = $newsletter->duplicate($data); $errors = $duplicate->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->errorResponse($errors); } else { $this->wp->doAction('mailpoet_api_newsletters_duplicate_after', $newsletter, $duplicate); @@ -299,7 +299,7 @@ class Newsletters extends APIEndpoint { } function showPreview($data = array()) { - if(empty($data['body'])) { + if (empty($data['body'])) { return $this->badRequest(array( APIError::BAD_REQUEST => __('Newsletter data is missing.', 'mailpoet') )); @@ -308,7 +308,7 @@ class Newsletters extends APIEndpoint { $id = (isset($data['id'])) ? (int)$data['id'] : false; $newsletter = Newsletter::findOne($id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); @@ -332,7 +332,7 @@ class Newsletters extends APIEndpoint { } function sendPreview($data = array()) { - if(empty($data['subscriber'])) { + if (empty($data['subscriber'])) { return $this->badRequest(array( APIError::BAD_REQUEST => __('Please specify receiver information.', 'mailpoet') )); @@ -341,7 +341,7 @@ class Newsletters extends APIEndpoint { $id = (isset($data['id'])) ? (int)$data['id'] : false; $newsletter = Newsletter::findOne($id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); @@ -383,7 +383,7 @@ class Newsletters extends APIEndpoint { $extra_params = array('unsubscribe_url' => home_url()); $result = $mailer->send($rendered_newsletter, $data['subscriber'], $extra_params); - if($result['response'] === false) { + if ($result['response'] === false) { $error = sprintf( __('The email could not be sent: %s', 'mailpoet'), $result['error']->getMessage() @@ -409,7 +409,7 @@ class Newsletters extends APIEndpoint { foreach ($listing_data['items'] as $newsletter) { $queue = false; - if($newsletter->type === Newsletter::TYPE_STANDARD) { + if ($newsletter->type === Newsletter::TYPE_STANDARD) { $newsletter ->withSegments(true) ->withSendingQueue() @@ -432,7 +432,7 @@ class Newsletters extends APIEndpoint { ->withStatistics(); } - if($newsletter->status === Newsletter::STATUS_SENT || + if ($newsletter->status === Newsletter::STATUS_SENT || $newsletter->status === Newsletter::STATUS_SENDING ) { $queue = $newsletter->getQueue(); @@ -473,7 +473,7 @@ class Newsletters extends APIEndpoint { function create($data = array()) { $options = array(); - if(isset($data['options'])) { + if (isset($data['options'])) { $options = $data['options']; unset($data['options']); } @@ -481,13 +481,13 @@ class Newsletters extends APIEndpoint { $newsletter = Newsletter::createOrUpdate($data); $errors = $newsletter->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->badRequest($errors); } else { // try to load template data $template_id = (isset($data['template']) ? (int)$data['template'] : false); $template = NewsletterTemplate::findOne($template_id); - if($template === false) { + if ($template === false) { $newsletter->body = array(); } else { $newsletter->body = $template->body; @@ -496,16 +496,16 @@ class Newsletters extends APIEndpoint { $newsletter->save(); $errors = $newsletter->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->badRequest($errors); } else { - if(!empty($options)) { + if (!empty($options)) { $option_fields = NewsletterOptionField::where( 'newsletter_type', $newsletter->type )->findArray(); foreach ($option_fields as $option_field) { - if(isset($options[$option_field['name']])) { + if (isset($options[$option_field['name']])) { $relation = NewsletterOption::create(); $relation->newsletter_id = $newsletter->id; $relation->option_field_id = $option_field['id']; @@ -515,7 +515,7 @@ class Newsletters extends APIEndpoint { } } - if( + if ( empty($data['id']) && isset($data['type']) diff --git a/lib/API/JSON/v1/Segments.php b/lib/API/JSON/v1/Segments.php index c56bdfb52d..a9a910f225 100644 --- a/lib/API/JSON/v1/Segments.php +++ b/lib/API/JSON/v1/Segments.php @@ -9,7 +9,7 @@ use MailPoet\Listing; use MailPoet\Models\Segment; use MailPoet\Segments\WP; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Segments extends APIEndpoint { public $permissions = array( @@ -33,7 +33,7 @@ class Segments extends APIEndpoint { function get($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $segment = Segment::findOne($id); - if($segment === false) { + if ($segment === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This list does not exist.', 'mailpoet') )); @@ -67,7 +67,7 @@ class Segments extends APIEndpoint { $segment = Segment::createOrUpdate($data); $errors = $segment->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->badRequest($errors); } else { return $this->successResponse( @@ -79,7 +79,7 @@ class Segments extends APIEndpoint { function restore($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $segment = Segment::findOne($id); - if($segment === false) { + if ($segment === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This list does not exist.', 'mailpoet') )); @@ -95,7 +95,7 @@ class Segments extends APIEndpoint { function trash($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $segment = Segment::findOne($id); - if($segment === false) { + if ($segment === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This list does not exist.', 'mailpoet') )); @@ -111,7 +111,7 @@ class Segments extends APIEndpoint { function delete($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $segment = Segment::findOne($id); - if($segment === false) { + if ($segment === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This list does not exist.', 'mailpoet') )); @@ -125,7 +125,7 @@ class Segments extends APIEndpoint { $id = (isset($data['id']) ? (int)$data['id'] : false); $segment = Segment::findOne($id); - if($segment === false) { + if ($segment === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This list does not exist.', 'mailpoet') )); @@ -136,7 +136,7 @@ class Segments extends APIEndpoint { $duplicate = $segment->duplicate($data); $errors = $duplicate->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->errorResponse($errors); } else { return $this->successResponse( diff --git a/lib/API/JSON/v1/SendingQueue.php b/lib/API/JSON/v1/SendingQueue.php index e0d04d953c..cae711f200 100644 --- a/lib/API/JSON/v1/SendingQueue.php +++ b/lib/API/JSON/v1/SendingQueue.php @@ -11,7 +11,7 @@ use MailPoet\Newsletter\Scheduler\Scheduler; use MailPoet\Segments\SubscribersFinder; use MailPoet\Tasks\Sending as SendingTask; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class SendingQueue extends APIEndpoint { public $permissions = array( @@ -27,7 +27,7 @@ class SendingQueue extends APIEndpoint { // check that the newsletter exists $newsletter = Newsletter::findOneWithOptions($newsletter_id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); @@ -48,7 +48,7 @@ class SendingQueue extends APIEndpoint { ->whereNull('tasks.status') ->findOne(); - if(!empty($queue)) { + if (!empty($queue)) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter is already being sent.', 'mailpoet') )); @@ -58,14 +58,14 @@ class SendingQueue extends APIEndpoint { ->where('queues.newsletter_id', $newsletter->id) ->where('tasks.status', SendingQueueModel::STATUS_SCHEDULED) ->findOne(); - if($scheduled_queue) { + if ($scheduled_queue) { $queue = SendingTask::createFromQueue($scheduled_queue); } else { $queue = SendingTask::create(); $queue->newsletter_id = $newsletter->id; } - if((bool)$newsletter->isScheduled) { + if ((bool)$newsletter->isScheduled) { // set newsletter status $newsletter->setStatus(Newsletter::STATUS_SCHEDULED); @@ -76,7 +76,7 @@ class SendingQueue extends APIEndpoint { $segments = $newsletter->segments()->findMany(); $finder = new SubscribersFinder(); $subscribers_count = $finder->addSubscribersToTaskFromSegments($queue->task(), $segments); - if(!$subscribers_count) { + if (!$subscribers_count) { return $this->errorResponse(array( APIError::UNKNOWN => __('There are no subscribers in that list!', 'mailpoet') )); @@ -91,7 +91,7 @@ class SendingQueue extends APIEndpoint { $queue->save(); $errors = $queue->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->errorResponse($errors); } else { return $this->successResponse( @@ -107,14 +107,14 @@ class SendingQueue extends APIEndpoint { ); $newsletter = Newsletter::findOne($newsletter_id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); } else { $queue = $newsletter->getQueue(); - if($queue === false) { + if ($queue === false) { return $this->errorResponse(array( APIError::UNKNOWN => __('This newsletter has not been sent yet.', 'mailpoet') )); @@ -133,14 +133,14 @@ class SendingQueue extends APIEndpoint { : false ); $newsletter = Newsletter::findOne($newsletter_id); - if($newsletter === false) { + if ($newsletter === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This newsletter does not exist.', 'mailpoet') )); } else { $queue = $newsletter->getQueue(); - if($queue === false) { + if ($queue === false) { return $this->errorResponse(array( APIError::UNKNOWN => __('This newsletter has not been sent yet.', 'mailpoet') )); diff --git a/lib/API/JSON/v1/Services.php b/lib/API/JSON/v1/Services.php index b6fed19d74..8c7fe8aec9 100644 --- a/lib/API/JSON/v1/Services.php +++ b/lib/API/JSON/v1/Services.php @@ -11,7 +11,7 @@ use MailPoet\Models\Setting; use MailPoet\Services\Bridge; use MailPoet\WP\DateTime; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Services extends APIEndpoint { public $bridge; @@ -28,7 +28,7 @@ class Services extends APIEndpoint { function checkMSSKey($data = array()) { $key = isset($data['key']) ? trim($data['key']) : null; - if(!$key) { + if (!$key) { return $this->badRequest(array( APIError::BAD_REQUEST => __('Please specify a key.', 'mailpoet') )); @@ -46,7 +46,7 @@ class Services extends APIEndpoint { $state = !empty($result['state']) ? $result['state'] : null; $success_message = null; - if($state == Bridge::KEY_VALID) { + if ($state == Bridge::KEY_VALID) { $success_message = __('Your MailPoet Sending Service key has been successfully validated.', 'mailpoet'); } elseif ($state == Bridge::KEY_EXPIRING) { $success_message = sprintf( @@ -55,11 +55,11 @@ class Services extends APIEndpoint { ); } - if(!empty($result['data']['public_id'])) { + if (!empty($result['data']['public_id'])) { Analytics::setPublicId($result['data']['public_id']); } - if($success_message) { + if ($success_message) { return $this->successResponse(array('message' => $success_message)); } @@ -74,7 +74,7 @@ class Services extends APIEndpoint { $code = !empty($result['code']) ? $result['code'] : Bridge::CHECK_ERROR_UNKNOWN; $errorMessage = __('Error validating MailPoet Sending Service key, please try again later (%s).', 'mailpoet'); // If site runs on localhost - if( 1 === preg_match("/^(http|https)\:\/\/(localhost|127\.0\.0\.1)/", site_url()) ) { + if ( 1 === preg_match("/^(http|https)\:\/\/(localhost|127\.0\.0\.1)/", site_url()) ) { $errorMessage .= ' ' . __("Note that it doesn't work on localhost.", 'mailpoet'); } $error = sprintf( @@ -90,7 +90,7 @@ class Services extends APIEndpoint { function checkPremiumKey($data = array()) { $key = isset($data['key']) ? trim($data['key']) : null; - if(!$key) { + if (!$key) { return $this->badRequest(array( APIError::BAD_REQUEST => __('Please specify a key.', 'mailpoet') )); @@ -108,7 +108,7 @@ class Services extends APIEndpoint { $state = !empty($result['state']) ? $result['state'] : null; $success_message = null; - if($state == Bridge::KEY_VALID) { + if ($state == Bridge::KEY_VALID) { $success_message = __('Your Premium key has been successfully validated.', 'mailpoet'); } elseif ($state == Bridge::KEY_EXPIRING) { $success_message = sprintf( @@ -117,11 +117,11 @@ class Services extends APIEndpoint { ); } - if(!empty($result['data']['public_id'])) { + if (!empty($result['data']['public_id'])) { Analytics::setPublicId($result['data']['public_id']); } - if($success_message) { + if ($success_message) { return $this->successResponse( array('message' => $success_message), Installer::getPremiumStatus() diff --git a/lib/API/JSON/v1/Settings.php b/lib/API/JSON/v1/Settings.php index c7e01809d0..f7c43e26d7 100644 --- a/lib/API/JSON/v1/Settings.php +++ b/lib/API/JSON/v1/Settings.php @@ -9,7 +9,7 @@ use MailPoet\Models\Setting; use MailPoet\Services\Bridge; use MailPoet\Settings\SettingsController; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Settings extends APIEndpoint { @@ -29,7 +29,7 @@ class Settings extends APIEndpoint { } function set($settings = array()) { - if(empty($settings)) { + if (empty($settings)) { return $this->badRequest( array( APIError::BAD_REQUEST => diff --git a/lib/API/JSON/v1/Setup.php b/lib/API/JSON/v1/Setup.php index c139ed3c53..17b0c01982 100644 --- a/lib/API/JSON/v1/Setup.php +++ b/lib/API/JSON/v1/Setup.php @@ -8,7 +8,7 @@ use MailPoet\Config\AccessControl; use MailPoet\Config\Activator; use MailPoet\Settings\SettingsController; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Setup extends APIEndpoint { private $wp; diff --git a/lib/API/JSON/v1/Subscribers.php b/lib/API/JSON/v1/Subscribers.php index 0baec30681..31e840b9ce 100644 --- a/lib/API/JSON/v1/Subscribers.php +++ b/lib/API/JSON/v1/Subscribers.php @@ -19,7 +19,7 @@ use MailPoet\Subscribers\Source; use MailPoet\Subscription\Throttling as SubscriptionThrottling; use MailPoet\WP\Functions as WPFunctions; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Subscribers extends APIEndpoint { const SUBSCRIPTION_LIMIT_COOLDOWN = 60; @@ -66,7 +66,7 @@ class Subscribers extends APIEndpoint { function get($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $subscriber = Subscriber::findOne($id); - if($subscriber === false) { + if ($subscriber === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This subscriber does not exist.', 'mailpoet') )); @@ -82,7 +82,7 @@ class Subscribers extends APIEndpoint { function listing($data = array()) { - if(!isset($data['filter']['segment'])) { + if (!isset($data['filter']['segment'])) { $listing_data = $this->listing_handler->get('\MailPoet\Models\Subscriber', $data); } else { $listing_data = $this->subscribers_listings->getListingsInSegment($data); @@ -113,24 +113,24 @@ class Subscribers extends APIEndpoint { $recaptcha = $this->settings->get('re_captcha'); - if(!$form) { + if (!$form) { return $this->badRequest(array( APIError::BAD_REQUEST => __('Please specify a valid form ID.', 'mailpoet') )); } - if(!empty($data['email'])) { + if (!empty($data['email'])) { return $this->badRequest(array( APIError::BAD_REQUEST => __('Please leave the first field empty.', 'mailpoet') )); } - if(!empty($recaptcha['enabled']) && empty($data['recaptcha'])) { + if (!empty($recaptcha['enabled']) && empty($data['recaptcha'])) { return $this->badRequest(array( APIError::BAD_REQUEST => __('Please check the CAPTCHA.', 'mailpoet') )); } - if(!empty($recaptcha['enabled'])) { + if (!empty($recaptcha['enabled'])) { $res = empty($data['recaptcha']) ? $data['recaptcha-no-js'] : $data['recaptcha']; $res = wp_remote_post('https://www.google.com/recaptcha/api/siteverify', array( 'body' => array( @@ -138,13 +138,13 @@ class Subscribers extends APIEndpoint { 'response' => $res ) )); - if(is_wp_error($res)) { + if (is_wp_error($res)) { return $this->badRequest(array( APIError::BAD_REQUEST => __('Error while validating the CAPTCHA.', 'mailpoet') )); } $res = json_decode(wp_remote_retrieve_body($res)); - if(empty($res->success)) { + if (empty($res->success)) { return $this->badRequest(array( APIError::BAD_REQUEST => __('Error while validating the CAPTCHA.', 'mailpoet') )); @@ -166,7 +166,7 @@ class Subscribers extends APIEndpoint { $segment_ids = $form->filterSegments($segment_ids); unset($data['segments']); - if(empty($segment_ids)) { + if (empty($segment_ids)) { return $this->badRequest(array( APIError::BAD_REQUEST => __('Please select a list.', 'mailpoet') )); @@ -179,26 +179,26 @@ class Subscribers extends APIEndpoint { // make sure we don't allow too many subscriptions with the same ip address $timeout = SubscriptionThrottling::throttle(); - if($timeout > 0) { + if ($timeout > 0) { throw new \Exception(sprintf(__('You need to wait %d seconds before subscribing again.', 'mailpoet'), $timeout)); } $subscriber = Subscriber::subscribe($data, $segment_ids); $errors = $subscriber->getErrors(); - if($errors !== false) { + if ($errors !== false) { return $this->badRequest($errors); } else { $meta = array(); - if($form !== false) { + if ($form !== false) { // record form statistics StatisticsForms::record($form->id, $subscriber->id); $form = $form->asArray(); - if(!empty($form['settings']['on_success'])) { - if($form['settings']['on_success'] === 'page') { + if (!empty($form['settings']['on_success'])) { + if ($form['settings']['on_success'] === 'page') { // redirect to a page on a success, pass the page url in the meta $meta['redirect_url'] = get_permalink($form['settings']['success_page']); } else if ($form['settings']['on_success'] === 'url') { @@ -220,22 +220,22 @@ class Subscribers extends APIEndpoint { } function save($data = array()) { - if(empty($data['segments'])) { + if (empty($data['segments'])) { $data['segments'] = array(); } $subscriber = Subscriber::createOrUpdate($data); $errors = $subscriber->getErrors(); - if(!empty($errors)) { + if (!empty($errors)) { return $this->badRequest($errors); } - if($subscriber->isNew()) { + if ($subscriber->isNew()) { $subscriber = Source::setSource($subscriber, Source::ADMINISTRATOR); $subscriber->save(); } - if(!empty($data['segments'])) { + if (!empty($data['segments'])) { Scheduler::scheduleSubscriberWelcomeNotification($subscriber->id, $data['segments']); } @@ -247,7 +247,7 @@ class Subscribers extends APIEndpoint { function restore($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $subscriber = Subscriber::findOne($id); - if($subscriber === false) { + if ($subscriber === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This subscriber does not exist.', 'mailpoet') )); @@ -263,7 +263,7 @@ class Subscribers extends APIEndpoint { function trash($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $subscriber = Subscriber::findOne($id); - if($subscriber === false) { + if ($subscriber === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This subscriber does not exist.', 'mailpoet') )); @@ -279,7 +279,7 @@ class Subscribers extends APIEndpoint { function delete($data = array()) { $id = (isset($data['id']) ? (int)$data['id'] : false); $subscriber = Subscriber::findOne($id); - if($subscriber === false) { + if ($subscriber === false) { return $this->errorResponse(array( APIError::NOT_FOUND => __('This subscriber does not exist.', 'mailpoet') )); @@ -291,7 +291,7 @@ class Subscribers extends APIEndpoint { function bulkAction($data = array()) { try { - if(!isset($data['listing']['filter']['segment'])) { + if (!isset($data['listing']['filter']['segment'])) { return $this->successResponse( null, $this->bulk_action_controller->apply('\MailPoet\Models\Subscriber', $data) diff --git a/lib/API/MP/v1/API.php b/lib/API/MP/v1/API.php index 138bf91f90..1754bb40ee 100644 --- a/lib/API/MP/v1/API.php +++ b/lib/API/MP/v1/API.php @@ -12,7 +12,7 @@ use MailPoet\Subscribers\NewSubscriberNotificationMailer; use MailPoet\Subscribers\Source; use MailPoet\Tasks\Sending; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class API { @@ -69,19 +69,19 @@ class API { function subscribeToLists($subscriber_id, array $segments_ids, $options = array()) { $schedule_welcome_email = (isset($options['schedule_welcome_email']) && $options['schedule_welcome_email'] === false) ? false : true; - if(empty($segments_ids)) { + if (empty($segments_ids)) { throw new \Exception(__('At least one segment ID is required.', 'mailpoet')); } // throw exception when subscriber does not exist $subscriber = Subscriber::findOne($subscriber_id); - if(!$subscriber) { + if (!$subscriber) { throw new \Exception(__('This subscriber does not exist.', 'mailpoet')); } // throw exception when none of the segments exist $found_segments = Segment::whereIn('id', $segments_ids)->findMany(); - if(!$found_segments) { + if (!$found_segments) { $exception = _n('This list does not exist.', 'These lists do not exist.', count($segments_ids), 'mailpoet'); throw new \Exception($exception); } @@ -89,17 +89,17 @@ class API { // throw exception when trying to subscribe to WP Users or WooCommerce Customers segments $found_segments_ids = array(); foreach ($found_segments as $found_segment) { - if($found_segment->type === Segment::TYPE_WP_USERS) { + if ($found_segment->type === Segment::TYPE_WP_USERS) { throw new \Exception(__(sprintf("Can't subscribe to a WordPress Users list with ID %d.", $found_segment->id), 'mailpoet')); } - if($found_segment->type === Segment::TYPE_WC_USERS) { + if ($found_segment->type === Segment::TYPE_WC_USERS) { throw new \Exception(__(sprintf("Can't subscribe to a WooCommerce Customers list with ID %d.", $found_segment->id), 'mailpoet')); } $found_segments_ids[] = $found_segment->id; } // throw an exception when one or more segments do not exist - if(count($found_segments_ids) !== count($segments_ids)) { + if (count($found_segments_ids) !== count($segments_ids)) { $missing_ids = array_values(array_diff($segments_ids, $found_segments_ids)); $exception = sprintf( _n('List with ID %s does not exist.', 'Lists with IDs %s do not exist.', count($missing_ids), 'mailpoet'), @@ -111,7 +111,7 @@ class API { SubscriberSegment::subscribeToSegments($subscriber, $found_segments_ids); // schedule welcome email - if($schedule_welcome_email && $subscriber->status === Subscriber::STATUS_SUBSCRIBED) { + if ($schedule_welcome_email && $subscriber->status === Subscriber::STATUS_SUBSCRIBED) { $this->_scheduleWelcomeNotification($subscriber, $found_segments_ids); } @@ -123,19 +123,19 @@ class API { } function unsubscribeFromLists($subscriber_id, array $segments_ids) { - if(empty($segments_ids)) { + if (empty($segments_ids)) { throw new \Exception(__('At least one segment ID is required.', 'mailpoet')); } // throw exception when subscriber does not exist $subscriber = Subscriber::findOne($subscriber_id); - if(!$subscriber) { + if (!$subscriber) { throw new \Exception(__('This subscriber does not exist.', 'mailpoet')); } // throw exception when none of the segments exist $found_segments = Segment::whereIn('id', $segments_ids)->findMany(); - if(!$found_segments) { + if (!$found_segments) { $exception = _n('This list does not exist.', 'These lists do not exist.', count($segments_ids), 'mailpoet'); throw new \Exception($exception); } @@ -143,17 +143,17 @@ class API { // throw exception when trying to subscribe to WP Users or WooCommerce Customers segments $found_segments_ids = array(); foreach ($found_segments as $segment) { - if($segment->type === Segment::TYPE_WP_USERS) { + if ($segment->type === Segment::TYPE_WP_USERS) { throw new \Exception(__(sprintf("Can't unsubscribe from a WordPress Users list with ID %d.", $segment->id), 'mailpoet')); } - if($segment->type === Segment::TYPE_WC_USERS) { + if ($segment->type === Segment::TYPE_WC_USERS) { throw new \Exception(__(sprintf("Can't unsubscribe from a WooCommerce Customers list with ID %d.", $segment->id), 'mailpoet')); } $found_segments_ids[] = $segment->id; } // throw an exception when one or more segments do not exist - if(count($found_segments_ids) !== count($segments_ids)) { + if (count($found_segments_ids) !== count($segments_ids)) { $missing_ids = array_values(array_diff($segments_ids, $found_segments_ids)); $exception = sprintf( _n('List with ID %s does not exist.', 'Lists with IDs %s do not exist.', count($missing_ids), 'mailpoet'), @@ -177,14 +177,14 @@ class API { $skip_subscriber_notification = (isset($options['skip_subscriber_notification']) && $options['skip_subscriber_notification'] === true) ? true : false; // throw exception when subscriber email is missing - if(empty($subscriber['email'])) { + if (empty($subscriber['email'])) { throw new \Exception( __('Subscriber email address is required.', 'mailpoet') ); } // throw exception when subscriber already exists - if(Subscriber::findOne($subscriber['email'])) { + if (Subscriber::findOne($subscriber['email'])) { throw new \Exception( __('This subscriber already exists.', 'mailpoet') ); @@ -202,12 +202,12 @@ class API { $new_subscriber->hydrate($default_fields); $new_subscriber = Source::setSource($new_subscriber, Source::API); $new_subscriber->save(); - if($new_subscriber->getErrors() !== false) { + if ($new_subscriber->getErrors() !== false) { throw new \Exception( __(sprintf('Failed to add subscriber: %s', strtolower(implode(', ', $new_subscriber->getErrors()))), 'mailpoet') ); } - if(!empty($custom_fields)) { + if (!empty($custom_fields)) { $new_subscriber->saveCustomFields($custom_fields); } @@ -215,13 +215,13 @@ class API { $new_subscriber = Subscriber::findOne($new_subscriber->id); // subscribe to segments and optionally: 1) send confirmation email, 2) schedule welcome email(s) - if(!empty($segments)) { + if (!empty($segments)) { $this->subscribeToLists($new_subscriber->id, $segments); // send confirmation email - if($send_confirmation_email && $new_subscriber->status === Subscriber::STATUS_UNCONFIRMED) { + if ($send_confirmation_email && $new_subscriber->status === Subscriber::STATUS_UNCONFIRMED) { $result = $this->_sendConfirmationEmail($new_subscriber); - if(!$result && $new_subscriber->getErrors()) { + if (!$result && $new_subscriber->getErrors()) { throw new \Exception( __(sprintf('Subscriber added, but confirmation email failed to send: %s', strtolower(implode(', ', $new_subscriber->getErrors()))), 'mailpoet') ); @@ -229,11 +229,11 @@ class API { } // schedule welcome email(s) - if($schedule_welcome_email && $new_subscriber->status === Subscriber::STATUS_SUBSCRIBED) { + if ($schedule_welcome_email && $new_subscriber->status === Subscriber::STATUS_SUBSCRIBED) { $this->_scheduleWelcomeNotification($new_subscriber, $segments); } - if(!$skip_subscriber_notification) { + if (!$skip_subscriber_notification) { $this->sendSubscriberNotification($new_subscriber, $segments); } } @@ -242,14 +242,14 @@ class API { function addList(array $list) { // throw exception when list name is missing - if(empty($list['name'])) { + if (empty($list['name'])) { throw new \Exception( __('List name is required.', 'mailpoet') ); } // throw exception when list already exists - if(Segment::where('name', $list['name'])->findOne()) { + if (Segment::where('name', $list['name'])->findOne()) { throw new \Exception( __('This list already exists.', 'mailpoet') ); @@ -259,7 +259,7 @@ class API { $new_list = Segment::create(); $new_list->hydrate($list); $new_list->save(); - if($new_list->getErrors() !== false) { + if ($new_list->getErrors() !== false) { throw new \Exception( __(sprintf('Failed to add list: %s', strtolower(implode(', ', $new_list->getErrors()))), 'mailpoet') ); @@ -274,7 +274,7 @@ class API { function getSubscriber($subscriber_email) { $subscriber = Subscriber::findOne($subscriber_email); // throw exception when subscriber does not exist - if(!$subscriber) { + if (!$subscriber) { throw new \Exception(__('This subscriber does not exist.', 'mailpoet')); } return $subscriber->withCustomFields()->withSubscriptions()->asArray(); @@ -286,9 +286,9 @@ class API { protected function _scheduleWelcomeNotification(Subscriber $subscriber, array $segments) { $result = Scheduler::scheduleSubscriberWelcomeNotification($subscriber->id, $segments); - if(is_array($result)) { + if (is_array($result)) { foreach ($result as $queue) { - if($queue instanceof Sending && $queue->getErrors()) { + if ($queue instanceof Sending && $queue->getErrors()) { throw new \Exception( __(sprintf('Subscriber added, but welcome email failed to send: %s', strtolower(implode(', ', $queue->getErrors()))), 'mailpoet') ); diff --git a/lib/Analytics/Analytics.php b/lib/Analytics/Analytics.php index a6fd3b0db4..758b22d6ae 100644 --- a/lib/Analytics/Analytics.php +++ b/lib/Analytics/Analytics.php @@ -6,7 +6,7 @@ use Carbon\Carbon; use MailPoet\WP\Functions as WPFunctions; use MailPoet\Settings\SettingsController; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Analytics { @@ -31,7 +31,7 @@ class Analytics { /** @return array */ function generateAnalytics() { - if($this->shouldSend()) { + if ($this->shouldSend()) { $data = $this->wp->applyFilters(self::ANALYTICS_FILTER, $this->reporter->getData()); $this->recordDataSent(); return $data; @@ -47,7 +47,7 @@ class Analytics { static function setPublicId($new_public_id) { $settings = new SettingsController(); $current_public_id = $settings->get('public_id'); - if($current_public_id !== $new_public_id) { + if ($current_public_id !== $new_public_id) { $settings->set('public_id', $new_public_id); $settings->set('new_public_id', 'true'); // Force user data to be resent @@ -59,7 +59,7 @@ class Analytics { function getPublicId() { $public_id = $this->settings->get('public_id', ''); // if we didn't get the user public_id from the shop yet : we create one based on mixpanel distinct_id - if(empty($public_id) && !empty($_COOKIE['mixpanel_distinct_id'])) { + if (empty($public_id) && !empty($_COOKIE['mixpanel_distinct_id'])) { // the public id has to be diffent that mixpanel_distinct_id in order to be used on different browser $mixpanel_distinct_id = md5($_COOKIE['mixpanel_distinct_id']); $this->settings->set('public_id', $mixpanel_distinct_id); @@ -75,7 +75,7 @@ class Analytics { */ function isPublicIdNew() { $new_public_id = $this->settings->get('new_public_id'); - if($new_public_id === 'true') { + if ($new_public_id === 'true') { $this->settings->set('new_public_id', 'false'); return true; } @@ -83,11 +83,11 @@ class Analytics { } private function shouldSend() { - if(!$this->isEnabled()) { + if (!$this->isEnabled()) { return false; } $lastSent = $this->settings->get(Analytics::SETTINGS_LAST_SENT_KEY); - if(!$lastSent) { + if (!$lastSent) { return true; } $lastSentCarbon = Carbon::createFromTimestamp(strtotime($lastSent))->addDays(Analytics::SEND_AFTER_DAYS); diff --git a/lib/Analytics/Reporter.php b/lib/Analytics/Reporter.php index a15c650891..1b0f0fdef1 100644 --- a/lib/Analytics/Reporter.php +++ b/lib/Analytics/Reporter.php @@ -33,7 +33,7 @@ class Reporter { $segments = Segment::getAnalytics(); $has_wc = $this->woocommerce_helper->isWooCommerceActive(); $wc_customers_count = 0; - if($has_wc) { + if ($has_wc) { $wc_customers_count = (int)Newsletter::rawQuery( "SELECT COUNT(DISTINCT m.meta_value) as count FROM ".$wpdb->prefix."posts p ". "JOIN ".$wpdb->prefix."postmeta m ON m.post_id = p.id ". diff --git a/lib/Config/AccessControl.php b/lib/Config/AccessControl.php index d42897dfd4..b264e5e151 100644 --- a/lib/Config/AccessControl.php +++ b/lib/Config/AccessControl.php @@ -4,7 +4,7 @@ namespace MailPoet\Config; use MailPoet\WP\Functions as WPFunctions; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class AccessControl { const PERMISSION_ACCESS_PLUGIN_ADMIN = 'mailpoet_access_plugin_admin'; @@ -79,7 +79,7 @@ class AccessControl { } function validatePermission($permission) { - if($permission === self::NO_ACCESS_RESTRICTION) return true; + if ($permission === self::NO_ACCESS_RESTRICTION) return true; return current_user_can($permission); } } diff --git a/lib/Config/Activator.php b/lib/Config/Activator.php index 7fce3d9a33..f39ed456d3 100644 --- a/lib/Config/Activator.php +++ b/lib/Config/Activator.php @@ -4,7 +4,7 @@ namespace MailPoet\Config; use MailPoet\Settings\SettingsController; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Activator { diff --git a/lib/Config/Capabilities.php b/lib/Config/Capabilities.php index bdf8c90f8f..989d241610 100644 --- a/lib/Config/Capabilities.php +++ b/lib/Config/Capabilities.php @@ -11,10 +11,10 @@ class Capabilities { private $wp; function __construct($renderer = null, WPFunctions $wp = null) { - if($renderer !== null) { + if ($renderer !== null) { $this->renderer = $renderer; } - if($wp == null) { + if ($wp == null) { $wp = new WPFunctions; } $this->wp = $wp; @@ -29,10 +29,10 @@ class Capabilities { $role_objects = array(); foreach ($permissions as $name => $roles) { foreach ($roles as $role) { - if(!isset($role_objects[$role])) { + if (!isset($role_objects[$role])) { $role_objects[$role] = get_role($role); } - if(!is_object($role_objects[$role])) continue; + if (!is_object($role_objects[$role])) continue; $role_objects[$role]->add_cap($name); } } @@ -43,10 +43,10 @@ class Capabilities { $role_objects = array(); foreach ($permissions as $name => $roles) { foreach ($roles as $role) { - if(!isset($role_objects[$role])) { + if (!isset($role_objects[$role])) { $role_objects[$role] = get_role($role); } - if(!is_object($role_objects[$role])) continue; + if (!is_object($role_objects[$role])) continue; $role_objects[$role]->remove_cap($name); } } diff --git a/lib/Config/Changelog.php b/lib/Config/Changelog.php index f1842ffb4d..c71eab01cd 100644 --- a/lib/Config/Changelog.php +++ b/lib/Config/Changelog.php @@ -12,7 +12,7 @@ class Changelog { /** @var SettingsController */ private $settings; - + function __construct(SettingsController $settings, WPFunctions $wp) { $this->settings = $settings; $this->wp = $wp; @@ -22,12 +22,12 @@ class Changelog { $doing_ajax = (bool)(defined('DOING_AJAX') && DOING_AJAX); // don't run any check when it's an ajax request - if($doing_ajax) { + if ($doing_ajax) { return; } // don't run any check when we're not on our pages - if( + if ( !(isset($_GET['page'])) or (isset($_GET['page']) && strpos($_GET['page'], 'mailpoet') !== 0) @@ -46,13 +46,13 @@ class Changelog { $redirect_url = null; $mp2_migrator = new MP2Migrator(); - if(!in_array($_GET['page'], array('mailpoet-migration', 'mailpoet-settings')) && $mp2_migrator->isMigrationStartedAndNotCompleted()) { + if (!in_array($_GET['page'], array('mailpoet-migration', 'mailpoet-settings')) && $mp2_migrator->isMigrationStartedAndNotCompleted()) { // Force the redirection if the migration has started but is not completed $redirect_url = admin_url('admin.php?page=mailpoet-migration'); } else { - if($version === null) { + if ($version === null) { // new install - if($mp2_migrator->isMigrationNeeded()) { + if ($mp2_migrator->isMigrationNeeded()) { // Migration from MP2 $redirect_url = admin_url('admin.php?page=mailpoet-migration'); } else { @@ -60,7 +60,7 @@ class Changelog { $redirect_url = $skip_wizard ? null : admin_url('admin.php?page=mailpoet-welcome-wizard'); // ensure there was no MP2 migration (migration resets $version so it must be checked) - if($this->settings->get('mailpoet_migration_started') === null) { + if ($this->settings->get('mailpoet_migration_started') === null) { $this->settings->set('show_intro', true); } } @@ -69,7 +69,7 @@ class Changelog { } } - if($redirect_url !== null) { + if ($redirect_url !== null) { // save version number $this->settings->set('version', Env::$version); diff --git a/lib/Config/Database.php b/lib/Config/Database.php index d5c70d1d34..75c316fd80 100644 --- a/lib/Config/Database.php +++ b/lib/Config/Database.php @@ -4,7 +4,7 @@ namespace MailPoet\Config; use ORM as ORM; use PDO as PDO; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; require_once(ABSPATH . 'wp-admin/includes/plugin.php'); @@ -34,9 +34,9 @@ class Database { 'sql_mode=(SELECT REPLACE(@@sql_mode,"ONLY_FULL_GROUP_BY",""))', ); - if(!empty(Env::$db_charset)) { + if (!empty(Env::$db_charset)) { $character_set = 'NAMES ' . Env::$db_charset; - if(!empty(Env::$db_collation)) { + if (!empty(Env::$db_collation)) { $character_set .= ' COLLATE ' . Env::$db_collation; } $driver_options[] = $character_set; @@ -50,7 +50,7 @@ class Database { $current_options = ORM::for_table("") ->raw_query('SELECT @@session.wait_timeout as wait_timeout') ->findOne(); - if($current_options && (int)$current_options->wait_timeout < $this->driver_option_wait_timeout) { + if ($current_options && (int)$current_options->wait_timeout < $this->driver_option_wait_timeout) { ORM::raw_execute('SET SESSION wait_timeout = ' . $this->driver_option_wait_timeout); } } catch (\PDOException $e) { @@ -60,7 +60,7 @@ class Database { } function defineTables() { - if(!defined('MP_SETTINGS_TABLE')) { + if (!defined('MP_SETTINGS_TABLE')) { $settings = Env::$db_prefix . 'settings'; $segments = Env::$db_prefix . 'segments'; $forms = Env::$db_prefix . 'forms'; diff --git a/lib/Config/DeactivationSurvey.php b/lib/Config/DeactivationSurvey.php index 0a9c659f4a..d4eb8b667d 100644 --- a/lib/Config/DeactivationSurvey.php +++ b/lib/Config/DeactivationSurvey.php @@ -20,18 +20,18 @@ class DeactivationSurvey { } private function shouldShow() { - if(!function_exists('get_current_screen')) { + if (!function_exists('get_current_screen')) { return false; } $screen = get_current_screen(); - if(!is_object($screen)) { + if (!is_object($screen)) { return false; } return (in_array(get_current_screen()->id, array('plugins', 'plugins-network'), true)); } public function js() { - if(!$this->shouldShow()) { + if (!$this->shouldShow()) { return; } $this->render('deactivationSurvey/js.html'); @@ -39,14 +39,14 @@ class DeactivationSurvey { } public function css() { - if(!$this->shouldShow()) { + if (!$this->shouldShow()) { return; } $this->render('deactivationSurvey/css.html'); } public function modal() { - if(!$this->shouldShow()) { + if (!$this->shouldShow()) { return; } $this->render('deactivationSurvey/index.html'); diff --git a/lib/Config/DeferredAdminNotices.php b/lib/Config/DeferredAdminNotices.php index fbd5a88258..de05f26adf 100644 --- a/lib/Config/DeferredAdminNotices.php +++ b/lib/Config/DeferredAdminNotices.php @@ -28,7 +28,7 @@ class DeferredAdminNotices { add_action('network_admin_notices', array($notice, 'displayWPNotice')); } - if(!empty($notices)) { + if (!empty($notices)) { delete_option(DeferredAdminNotices::OPTIONS_KEY_NAME); } } diff --git a/lib/Config/Env.php b/lib/Config/Env.php index d2532017a1..63a8c5e16e 100644 --- a/lib/Config/Env.php +++ b/lib/Config/Env.php @@ -2,7 +2,7 @@ namespace MailPoet\Config; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Env { const NEWSLETTER_CONTENT_WIDTH = 1320; @@ -58,10 +58,10 @@ class Env { self::$db_host = DB_HOST; self::$db_port = 3306; self::$db_socket = false; - if(preg_match('/(?=:\d+$)/', DB_HOST)) { + if (preg_match('/(?=:\d+$)/', DB_HOST)) { list(self::$db_host, self::$db_port) = explode(':', DB_HOST); } else { - if(preg_match('/:/', DB_HOST)) { + if (preg_match('/:/', DB_HOST)) { self::$db_socket = true; } } @@ -86,7 +86,7 @@ class Env { 'dbname=', DB_NAME ); - if(!empty($charset)) { + if (!empty($charset)) { $source_name[] = ';charset=' . $charset; } return implode('', $source_name); diff --git a/lib/Config/Hooks.php b/lib/Config/Hooks.php index d4944fc032..236190ab19 100644 --- a/lib/Config/Hooks.php +++ b/lib/Config/Hooks.php @@ -46,12 +46,12 @@ class Hooks { $subscribe = $this->settings->get('subscribe', []); // Subscribe in comments - if( + if ( isset($subscribe['on_comment']['enabled']) && (bool)$subscribe['on_comment']['enabled'] ) { - if($this->wp->isUserLoggedIn()) { + if ($this->wp->isUserLoggedIn()) { $this->wp->addAction( 'comment_form_field_comment', '\MailPoet\Subscription\Comment::extendLoggedInForm' @@ -79,12 +79,12 @@ class Hooks { } // Subscribe in registration form - if( + if ( isset($subscribe['on_register']['enabled']) && (bool)$subscribe['on_register']['enabled'] ) { - if(is_multisite()) { + if (is_multisite()) { $this->wp->addAction( 'signup_extra_fields', '\MailPoet\Subscription\Registration::extendForm' @@ -217,7 +217,7 @@ class Hooks { } function setScreenOption($status, $option, $value) { - if(preg_match('/^mailpoet_(.*)_per_page$/', $option)) { + if (preg_match('/^mailpoet_(.*)_per_page$/', $option)) { return $value; } else { return $status; diff --git a/lib/Config/Initializer.php b/lib/Config/Initializer.php index bfeb0fe156..7e0386a270 100644 --- a/lib/Config/Initializer.php +++ b/lib/Config/Initializer.php @@ -14,7 +14,7 @@ use MailPoet\Util\Notices\PermanentNotices; use MailPoet\WP\Notice as WPNotice; use MailPoetVendor\Psr\Container\ContainerInterface; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; require_once(ABSPATH . 'wp-admin/includes/plugin.php'); @@ -36,7 +36,7 @@ class Initializer { function init() { $requirements_check_results = $this->checkRequirements(); - if(!$requirements_check_results[RequirementsChecker::TEST_PDO_EXTENSION] || + if (!$requirements_check_results[RequirementsChecker::TEST_PDO_EXTENSION] || !$requirements_check_results[RequirementsChecker::TEST_VENDOR_SOURCE] ) { return; @@ -173,7 +173,7 @@ class Initializer { } // if current db version and plugin version differ - if(version_compare($current_db_version, Env::$version) !== 0) { + if (version_compare($current_db_version, Env::$version) !== 0) { $this->runActivator(); } } @@ -192,7 +192,7 @@ class Initializer { function setupUpdater() { $slug = Installer::PREMIUM_PLUGIN_SLUG; $plugin_file = Installer::getPluginFile($slug); - if(empty($plugin_file) || !defined('MAILPOET_PREMIUM_VERSION')) { + if (empty($plugin_file) || !defined('MAILPOET_PREMIUM_VERSION')) { return false; } $updater = new Updater( @@ -234,7 +234,7 @@ class Initializer { function setupCronTrigger() { // setup cron trigger only outside of cli environment - if(php_sapi_name() !== 'cli') { + if (php_sapi_name() !== 'cli') { $cron_trigger = $this->container->get(CronTrigger::class); $cron_trigger->init(); } @@ -246,7 +246,7 @@ class Initializer { } function postInitialize() { - if(!defined(self::INITIALIZED)) return; + if (!defined(self::INITIALIZED)) return; try { $this->setupHooks(); $this->setupJSONAPI(); @@ -267,7 +267,7 @@ class Initializer { } function setupUserLocale() { - if(get_user_locale() === get_locale()) return; + if (get_user_locale() === get_locale()) return; unload_textdomain(Env::$plugin_name); $localizer = new Localizer(); $localizer->init(); @@ -304,7 +304,7 @@ class Initializer { function handleFailedInitialization($exception) { // check if we are able to add pages at this point - if(function_exists('wp_get_current_user')) { + if (function_exists('wp_get_current_user')) { Menu::addErrorPage($this->access_control); } return WPNotice::displayError($exception); diff --git a/lib/Config/Installer.php b/lib/Config/Installer.php index e45406d1ef..088544da9a 100644 --- a/lib/Config/Installer.php +++ b/lib/Config/Installer.php @@ -7,7 +7,7 @@ use MailPoet\Services\Release\API; use MailPoet\Settings\SettingsController; use MailPoet\Util\License\License; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Installer { const PREMIUM_PLUGIN_SLUG = 'mailpoet-premium'; @@ -27,7 +27,7 @@ class Installer { } function getPluginInformation($data, $action = '', $args = null) { - if($action === 'plugin_information' + if ($action === 'plugin_information' && isset($args->slug) && $args->slug === $this->slug ) { @@ -72,7 +72,7 @@ class Installer { static function getPluginActivationUrl($slug) { $plugin_file = self::getPluginFile($slug); - if(empty($plugin_file)) { + if (empty($plugin_file)) { return false; } $activate_url = add_query_arg( @@ -88,7 +88,7 @@ class Installer { private static function getInstalledPlugin($slug) { $installed_plugin = array(); - if(is_dir(WP_PLUGIN_DIR . '/' . $slug)) { + if (is_dir(WP_PLUGIN_DIR . '/' . $slug)) { $installed_plugin = get_plugins('/' . $slug); } return $installed_plugin; @@ -97,7 +97,7 @@ class Installer { static function getPluginFile($slug) { $plugin_file = false; $installed_plugin = self::getInstalledPlugin($slug); - if(!empty($installed_plugin)) { + if (!empty($installed_plugin)) { $plugin_file = $slug . '/' . key($installed_plugin); } return $plugin_file; @@ -113,7 +113,7 @@ class Installer { private function formatInformation($info) { // cast sections object to array for WP to understand - if(isset($info->sections)) { + if (isset($info->sections)) { $info->sections = (array)$info->sections; } return $info; diff --git a/lib/Config/Localizer.php b/lib/Config/Localizer.php index 2e6dcc011e..8ef9a2452e 100644 --- a/lib/Config/Localizer.php +++ b/lib/Config/Localizer.php @@ -2,7 +2,7 @@ namespace MailPoet\Config; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Localizer { function init() { diff --git a/lib/Config/MP2Migrator.php b/lib/Config/MP2Migrator.php index 04c869441a..fad421971f 100644 --- a/lib/Config/MP2Migrator.php +++ b/lib/Config/MP2Migrator.php @@ -13,7 +13,7 @@ use MailPoet\Settings\SettingsController; use MailPoet\Util\Notices\AfterMigrationNotice; use MailPoet\Util\ProgressBar; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class MP2Migrator { const IMPORT_TIMEOUT_IN_SECONDS = 7200; // Timeout = 2 hours @@ -93,7 +93,7 @@ class MP2Migrator { * @return boolean */ public function isMigrationNeeded() { - if($this->settings->get('mailpoet_migration_complete')) { + if ($this->settings->get('mailpoet_migration_complete')) { return false; } else { return $this->tableExists($this->mp2_campaign_table); // Check if the MailPoet 2 tables exist @@ -133,7 +133,7 @@ class MP2Migrator { * */ public function init() { - if(!$this->settings->get('mailpoet_migration_started', false)) { + if (!$this->settings->get('mailpoet_migration_started', false)) { $this->emptyLog(); $this->progressbar->setTotalCount(0); } @@ -163,7 +163,7 @@ class MP2Migrator { * @return string Result */ public function import() { - if(strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { + if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { @set_time_limit(3600); } ob_start(); @@ -171,7 +171,7 @@ class MP2Migrator { $this->log(sprintf('=== ' . mb_strtoupper(__('Start import', 'mailpoet'), 'UTF-8') . ' %s ===', $datetime->formatTime(time(), \MailPoet\WP\DateTime::DEFAULT_DATE_TIME_FORMAT))); $this->settings->set('import_stopped', false); // Reset the stop import action - if(!$this->settings->get('mailpoet_migration_started', false)) { + if (!$this->settings->get('mailpoet_migration_started', false)) { $this->eraseMP3Data(); $this->settings->set('mailpoet_migration_started', true); $this->displayDataToMigrate(); @@ -185,7 +185,7 @@ class MP2Migrator { $this->importForms(); $this->importSettings(); - if(!$this->importStopped()) { + if (!$this->importStopped()) { $this->settings->set('mailpoet_migration_complete', true); $this->log(mb_strtoupper(__('Import complete', 'mailpoet'), 'UTF-8')); $after_migration_notice = new AfterMigrationNotice(); @@ -233,7 +233,7 @@ class MP2Migrator { private function loadDoubleOptinSettings() { $encoded_option = get_option('wysija'); $values = unserialize(base64_decode($encoded_option)); - if(isset($values['confirm_dbleoptin']) && $values['confirm_dbleoptin'] === '0') { + if (isset($values['confirm_dbleoptin']) && $values['confirm_dbleoptin'] === '0') { $this->double_optin_enabled = false; } } @@ -315,22 +315,22 @@ class MP2Migrator { */ private function importSegments() { $imported_segments_count = 0; - if($this->importStopped()) { + if ($this->importStopped()) { $this->segments_mapping = $this->getImportedMapping('segments'); return; } $this->log(__("Importing segments...", 'mailpoet')); do { - if($this->importStopped()) { + if ($this->importStopped()) { break; } $lists = $this->getLists(self::CHUNK_SIZE); $lists_count = count($lists); - if(is_array($lists)) { + if (is_array($lists)) { foreach ($lists as $list) { $segment = $this->importSegment($list); - if(!empty($segment)) { + if (!empty($segment)) { $imported_segments_count++; } } @@ -376,7 +376,7 @@ class MP2Migrator { */ private function importSegment($list_data) { $datetime = new \MailPoet\WP\DateTime(); - if($list_data['is_enabled']) { + if ($list_data['is_enabled']) { $segment = Segment::createOrUpdate(array( 'name' => $list_data['name'], 'type' => 'default', @@ -386,7 +386,7 @@ class MP2Migrator { } else { $segment = Segment::getWPSegment(); } - if(!empty($segment)) { + if (!empty($segment)) { // Map the segment with its old ID $mapping = new MappingToExternalEntities(); $mapping->create(array( @@ -406,7 +406,7 @@ class MP2Migrator { */ private function importCustomFields() { $imported_custom_fields_count = 0; - if($this->importStopped()) { + if ($this->importStopped()) { return; } $this->log(__("Importing custom fields...", 'mailpoet')); @@ -414,7 +414,7 @@ class MP2Migrator { foreach ($custom_fields as $custom_field) { $result = $this->importCustomField($custom_field); - if(!empty($result)) { + if (!empty($result)) { $imported_custom_fields_count++; } } @@ -489,20 +489,20 @@ class MP2Migrator { * @return string serialized MP3 custom field params */ private function mapCustomFieldParams($name, $params) { - if(!isset($params['label'])) { + if (!isset($params['label'])) { $params['label'] = $name; } - if(isset($params['required'])) { + if (isset($params['required'])) { $params['required'] = (bool)$params['required']; } - if(isset($params['validate'])) { + if (isset($params['validate'])) { $params['validate'] = $this->mapCustomFieldValidateValue($params['validate']); } - if(isset($params['date_order'])) { // Convert the date_order field + if (isset($params['date_order'])) { // Convert the date_order field switch ($params['date_type']) { case 'year_month': - if(preg_match('/y$/i', $params['date_order'])) { + if (preg_match('/y$/i', $params['date_order'])) { $params['date_format'] = 'MM/YYYY'; } else { $params['date_format'] = 'YYYY/MM'; @@ -554,22 +554,22 @@ class MP2Migrator { */ private function importSubscribers() { $imported_subscribers_count = 0; - if($this->importStopped()) { + if ($this->importStopped()) { return; } $this->log(__("Importing subscribers...", 'mailpoet')); $this->wp_users_segment = Segment::getWPSegment(); do { - if($this->importStopped()) { + if ($this->importStopped()) { break; } $users = $this->getUsers(self::CHUNK_SIZE); $users_count = count($users); - if(is_array($users)) { + if (is_array($users)) { foreach ($users as $user) { $subscriber = $this->importSubscriber($user); - if(!empty($subscriber)) { + if (!empty($subscriber)) { $imported_subscribers_count++; $this->importSubscriberSegments($subscriber, $user['user_id']); $this->importSubscriberCustomFields($subscriber, $user); @@ -626,7 +626,7 @@ class MP2Migrator { 'confirmed_at' => !empty($user_data['confirmed_at']) ? $datetime->formatTime($user_data['confirmed_at'], \MailPoet\WP\DateTime::DEFAULT_DATE_TIME_FORMAT) : null, )); $this->settings->set('last_imported_user_id', $user_data['user_id']); - if(!empty($subscriber)) { + if (!empty($subscriber)) { // Map the subscriber with its old ID $mapping = new MappingToExternalEntities(); $mapping->create(array( @@ -658,7 +658,7 @@ class MP2Migrator { case 0: default: //if MP2 double-optin is disabled, we change "unconfirmed" status in MP2 to "confirmed" status in MP3. - if(!$this->double_optin_enabled) { + if (!$this->double_optin_enabled) { $status = 'subscribed'; } else { $status = 'unconfirmed'; @@ -712,7 +712,7 @@ class MP2Migrator { private function importSubscriberSegment($subscriber_id, $user_list) { $subscriber_segment = null; $datetime = new \MailPoet\WP\DateTime(); - if(isset($this->segments_mapping[$user_list['list_id']])) { + if (isset($this->segments_mapping[$user_list['list_id']])) { $segment_id = $this->segments_mapping[$user_list['list_id']]; $status = (($segment_id == $this->wp_users_segment->id) || empty($user_list['unsub_date'])) ? 'subscribed' : 'unsubscribed'; // the users belonging to the wp_users segment are always subscribed $data = array( @@ -769,7 +769,7 @@ class MP2Migrator { * @return SubscriberCustomField */ private function importSubscriberCustomField($subscriber_id, $custom_field, $custom_field_value) { - if($custom_field['type'] == 'date') { + if ($custom_field['type'] == 'date') { $datetime = new \MailPoet\WP\DateTime(); $value = $datetime->formatTime($custom_field_value, \MailPoet\WP\DateTime::DEFAULT_DATE_TIME_FORMAT); // Convert the date field } else { @@ -806,21 +806,21 @@ class MP2Migrator { */ private function importForms() { $imported_forms_count = 0; - if($this->importStopped()) { + if ($this->importStopped()) { return; } $this->log(__("Importing forms...", 'mailpoet')); do { - if($this->importStopped()) { + if ($this->importStopped()) { break; } $forms = $this->getForms(self::CHUNK_SIZE); $forms_count = count($forms); - if(is_array($forms)) { + if (is_array($forms)) { foreach ($forms as $form) { $new_form = $this->importForm($form); - if(!empty($new_form)) { + if (!empty($new_form)) { $imported_forms_count++; } } @@ -878,7 +878,7 @@ class MP2Migrator { $mp3_form_body = array(); foreach ($body as $field) { $type = $this->mapCustomFieldType($field['type']); - if($type == 'segment') { + if ($type == 'segment') { $field_id = 'segments'; } else { switch ($field['field']) { @@ -894,10 +894,10 @@ class MP2Migrator { } $field_id = preg_replace('/^cf_(\d+)$/', '$1', $field_id); $params = $this->mapCustomFieldParams($field['name'], $field['params']); - if(isset($params['text'])) { + if (isset($params['text'])) { $params['text'] = $this->replaceMP2Shortcodes(html_entity_decode($params['text'])); } - if(isset($params['values'])) { + if (isset($params['values'])) { $params['values'] = $this->replaceListIds($params['values']); } $mp3_form_body[] = array( @@ -928,7 +928,7 @@ class MP2Migrator { private function getMappedSegmentIds($mp2_list_ids) { $mp3_segment_ids = array(); foreach ($mp2_list_ids as $list_id) { - if(isset($this->segments_mapping[$list_id])) { + if (isset($this->segments_mapping[$list_id])) { $mp3_segment_ids[] = $this->segments_mapping[$list_id]; } } @@ -954,7 +954,7 @@ class MP2Migrator { * @return string Replacement */ private function replaceMP2ShortcodesCallback($matches) { - if(!empty($matches)) { + if (!empty($matches)) { $mp2_lists = explode(',', $matches[1]); $segments = $this->getMappedSegmentIds($mp2_lists); $segments_ids = implode(',', $segments); @@ -973,18 +973,18 @@ class MP2Migrator { foreach ($values as $value) { $mp3_value = array(); foreach ($value as $item => $item_value) { - if(($item == 'list_id') && isset($this->segments_mapping[$item_value])) { + if (($item == 'list_id') && isset($this->segments_mapping[$item_value])) { $segment_id = $this->segments_mapping[$item_value]; $mp3_value['id'] = $segment_id; $segment = Segment::findOne($segment_id); - if($segment) { + if ($segment) { $mp3_value['name'] = $segment->get('name'); } } else { $mp3_value[$item] = $item_value; } } - if(!empty($mp3_value)) { + if (!empty($mp3_value)) { $mp3_values[] = $mp3_value; } } @@ -1042,10 +1042,10 @@ class MP2Migrator { // Confirmation email $signup_confirmation = $this->settings->get('signup_confirmation'); $signup_confirmation['enabled'] = isset($options['confirm_dbleoptin']) && ($options['confirm_dbleoptin'] == 0) ? 0 : 1; - if(isset($options['confirm_email_id'])) { + if (isset($options['confirm_email_id'])) { $confirm_email_id = $options['confirm_email_id']; $confirm_email = $this->getEmail($confirm_email_id); - if(!empty($confirm_email)) { + if (!empty($confirm_email)) { $signup_confirmation['from']['name'] = isset($confirm_email['from_name']) ? $confirm_email['from_name'] : ''; $signup_confirmation['from']['address'] = isset($confirm_email['from_email']) ? $confirm_email['from_email'] : ''; $signup_confirmation['reply_to']['name'] = isset($confirm_email['replyto_name']) ? $confirm_email['replyto_name'] : ''; @@ -1080,12 +1080,12 @@ class MP2Migrator { $this->settings->set('mta', $mta); // SMTP Provider - if($mta['method'] == 'SendGrid') { + if ($mta['method'] == 'SendGrid') { $this->settings->set('smtp_provider', 'SendGrid'); } // Installation date - if(isset($options['installed_time'])) { + if (isset($options['installed_time'])) { $datetime = new \MailPoet\WP\DateTime(); $installed_at = $datetime->formatTime($options['installed_time'], \MailPoet\WP\DateTime::DEFAULT_DATE_TIME_FORMAT); $this->settings->set('installed_at', $installed_at); @@ -1154,7 +1154,7 @@ class MP2Migrator { * @return int Emails number */ private function mapFrequencyEmails($emails_number, $interval_str) { - if(empty($emails_number)) { + if (empty($emails_number)) { $emails_number = 70; } else { switch ($interval_str) { diff --git a/lib/Config/Menu.php b/lib/Config/Menu.php index 6e6644d962..3e26b7dc13 100644 --- a/lib/Config/Menu.php +++ b/lib/Config/Menu.php @@ -31,7 +31,7 @@ use MailPoet\WP\Notice as WPNotice; use MailPoet\WP\Readme; use MailPoet\WP\Functions as WPFunctions; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Menu { const MAIN_PAGE_SLUG = 'mailpoet-newsletters'; @@ -84,12 +84,12 @@ class Menu { } function setup() { - if(!$this->access_control->validatePermission(AccessControl::PERMISSION_ACCESS_PLUGIN_ADMIN)) return; - if(self::isOnMailPoetAdminPage()) { + if (!$this->access_control->validatePermission(AccessControl::PERMISSION_ACCESS_PLUGIN_ADMIN)) return; + if (self::isOnMailPoetAdminPage()) { do_action('mailpoet_conflict_resolver_styles'); do_action('mailpoet_conflict_resolver_scripts'); - if($_REQUEST['page'] === 'mailpoet-newsletter-editor') { + if ($_REQUEST['page'] === 'mailpoet-newsletter-editor') { // Disable WP emojis to not interfere with the newsletter editor emoji handling $this->disableWPEmojis(); add_action('admin_head', function() { @@ -373,7 +373,7 @@ class Menu { } function welcomeWizard() { - if((bool)(defined('DOING_AJAX') && DOING_AJAX)) return; + if ((bool)(defined('DOING_AJAX') && DOING_AJAX)) return; $data = [ 'is_mp2_migration_complete' => (bool)$this->settings->get('mailpoet_migration_complete'), 'is_woocommerce_active' => $this->woocommerce_helper->isWooCommerceActive(), @@ -392,7 +392,7 @@ class Menu { ? urldecode($_GET['mailpoet_redirect']) : wp_get_referer(); - if( + if ( $redirect_url === $current_url or strpos($redirect_url, 'mailpoet') === false @@ -409,7 +409,7 @@ class Menu { $data['is_new_user'] = true; $data['is_old_user'] = false; - if(!empty($data['settings']['installed_at'])) { + if (!empty($data['settings']['installed_at'])) { $installed_at = Carbon::createFromTimestamp(strtotime($data['settings']['installed_at'])); $current_time = Carbon::createFromTimestamp($this->wp->currentTime('timestamp')); $data['is_new_user'] = $current_time->diffInDays($installed_at) <= 30; @@ -418,9 +418,9 @@ class Menu { } $readme_file = Env::$path . '/readme.txt'; - if(is_readable($readme_file)) { + if (is_readable($readme_file)) { $changelog = Readme::parseChangelog(file_get_contents($readme_file), 1); - if($changelog) { + if ($changelog) { $data['changelog'] = $changelog; } } @@ -508,7 +508,7 @@ class Menu { // flags (available features on WP install) $flags = array(); - if(is_multisite()) { + if (is_multisite()) { // get multisite registration option $registration = apply_filters( 'wpmu_registration_enabled', @@ -544,7 +544,7 @@ class Menu { $data['custom_fields'] = array_map(function($field) { $field['params'] = unserialize($field['params']); - if(!empty($field['params']['values'])) { + if (!empty($field['params']['values'])) { $values = array(); foreach ($field['params']['values'] as $value) { @@ -571,7 +571,7 @@ class Menu { } function forms() { - if($this->subscribers_over_limit) return $this->displaySubscriberLimitExceededTemplate(); + if ($this->subscribers_over_limit) return $this->displaySubscriberLimitExceededTemplate(); $data = array(); @@ -584,8 +584,8 @@ class Menu { } function newsletters() { - if($this->subscribers_over_limit) return $this->displaySubscriberLimitExceededTemplate(); - if(isset($this->mp_api_key_valid) && $this->mp_api_key_valid === false) { + if ($this->subscribers_over_limit) return $this->displaySubscriberLimitExceededTemplate(); + if (isset($this->mp_api_key_valid) && $this->mp_api_key_valid === false) { return $this->displayMailPoetAPIKeyInvalidTemplate(); } @@ -732,7 +732,7 @@ class Menu { function formEditor() { $id = (isset($_GET['id']) ? (int)$_GET['id'] : 0); $form = Form::findOne($id); - if($form !== false) { + if ($form !== false) { $form = $form->asArray(); } @@ -773,15 +773,15 @@ class Menu { } static function isOnMailPoetAdminPage(array $exclude = null, $screen_id = null) { - if(is_null($screen_id)) { - if(empty($_REQUEST['page'])) { + if (is_null($screen_id)) { + if (empty($_REQUEST['page'])) { return false; } $screen_id = $_REQUEST['page']; } - if(!empty($exclude)) { + if (!empty($exclude)) { foreach ($exclude as $slug) { - if(stripos($screen_id, $slug) !== false) { + if (stripos($screen_id, $slug) !== false) { return false; } } @@ -794,11 +794,11 @@ class Menu { * to display admin notices only */ static function addErrorPage(AccessControl $access_control) { - if(!self::isOnMailPoetAdminPage()) { + if (!self::isOnMailPoetAdminPage()) { return false; } // Check if page already exists - if(get_plugin_page_hook($_REQUEST['page'], '') + if (get_plugin_page_hook($_REQUEST['page'], '') || get_plugin_page_hook($_REQUEST['page'], self::MAIN_PAGE_SLUG) ) { return false; @@ -821,7 +821,7 @@ class Menu { } function checkMailPoetAPIKey(ServicesChecker $checker = null) { - if(self::isOnMailPoetAdminPage()) { + if (self::isOnMailPoetAdminPage()) { $show_notices = isset($_REQUEST['page']) && stripos($_REQUEST['page'], self::MAIN_PAGE_SLUG) === false; $checker = $checker ?: new ServicesChecker(); @@ -837,7 +837,7 @@ class Menu { } function getLimitPerPage($model = null) { - if($model === null) { + if ($model === null) { return Listing\Handler::DEFAULT_LIMIT_PER_PAGE; } @@ -860,7 +860,7 @@ class Menu { function isNewUser() { $installed_at = $this->settings->get('installed_at'); - if(is_null($installed_at)) { + if (is_null($installed_at)) { return true; } $installed_at = Carbon::createFromTimestamp(strtotime($installed_at)); diff --git a/lib/Config/Migrator.php b/lib/Config/Migrator.php index 53da64502b..c32a3da52a 100644 --- a/lib/Config/Migrator.php +++ b/lib/Config/Migrator.php @@ -5,7 +5,7 @@ use MailPoet\Models\Subscriber; use MailPoet\Models\Newsletter; use MailPoet\Util\Helpers; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); diff --git a/lib/Config/PluginActivatedHook.php b/lib/Config/PluginActivatedHook.php index 4a50354fa2..9daa1b228c 100644 --- a/lib/Config/PluginActivatedHook.php +++ b/lib/Config/PluginActivatedHook.php @@ -10,8 +10,8 @@ class PluginActivatedHook { } public function action($plugin, $network_wide) { - if($plugin === plugin_basename(Env::$file) && $network_wide) { + if ($plugin === plugin_basename(Env::$file) && $network_wide) { $this->deferred_admin_notices->addNetworkAdminNotice(__("We noticed that you're using an unsupported environment. While MailPoet might work within a MultiSite environment, we don’t support it.", 'mailpoet')); } } -} \ No newline at end of file +} diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index 58235cff90..0c36a8e085 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -16,7 +16,7 @@ use MailPoet\Subscribers\NewSubscriberNotificationMailer; use MailPoet\Subscribers\Source; use MailPoet\Util\Helpers; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); @@ -93,7 +93,7 @@ class Populator { 'Fitness', 'KidsClothing', 'Avocado', - + 'FashionBlogA', 'FashionShop', 'LifestyleBlogA', @@ -129,21 +129,21 @@ class Populator { )); $page = null; - if(!empty($pages)) { + if (!empty($pages)) { $page = array_shift($pages); - if(strpos($page->post_content, '[mailpoet_page]') === false) { + if (strpos($page->post_content, '[mailpoet_page]') === false) { $page = null; } } - if($page === null) { + if ($page === null) { $mailpoet_page_id = Pages::createMailPoetPage(); } else { $mailpoet_page_id = (int)$page->ID; } $subscription = $this->settings->get('subscription.pages', array()); - if(empty($subscription)) { + if (empty($subscription)) { $this->settings->set('subscription.pages', array( 'unsubscribe' => $mailpoet_page_id, 'manage' => $mailpoet_page_id, @@ -156,7 +156,7 @@ class Populator { $current_user = wp_get_current_user(); // set cron trigger option to default method - if(!$this->settings->fetch(CronTrigger::SETTING_NAME)) { + if (!$this->settings->fetch(CronTrigger::SETTING_NAME)) { $this->settings->set(CronTrigger::SETTING_NAME, array( 'method' => CronTrigger::DEFAULT_METHOD )); @@ -169,12 +169,12 @@ class Populator { ); // set default from name & address - if(!$this->settings->fetch('sender')) { + if (!$this->settings->fetch('sender')) { $this->settings->set('sender', $sender); } // enable signup confirmation by default - if(!$this->settings->fetch('signup_confirmation')) { + if (!$this->settings->fetch('signup_confirmation')) { $this->settings->set('signup_confirmation', array( 'enabled' => true, 'from' => array( @@ -186,13 +186,13 @@ class Populator { } // set installation date - if(!$this->settings->fetch('installed_at')) { + if (!$this->settings->fetch('installed_at')) { $this->settings->set('installed_at', date("Y-m-d H:i:s")); } // set reCaptcha settings $re_captcha = $this->settings->fetch('re_captcha'); - if(empty($re_captcha)) { + if (empty($re_captcha)) { $this->settings->set('re_captcha', array( 'enabled' => false, 'site_token' => '', @@ -201,7 +201,7 @@ class Populator { } $subscriber_email_notification = $this->settings->fetch(NewSubscriberNotificationMailer::SETTINGS_KEY); - if(empty($subscriber_email_notification)) { + if (empty($subscriber_email_notification)) { $sender = $this->settings->fetch('sender', []); $this->settings->set('subscriber_email_notification', [ 'enabled' => true, @@ -210,7 +210,7 @@ class Populator { } $stats_notifications = $this->settings->fetch('stats_notifications'); - if(empty($stats_notifications)) { + if (empty($stats_notifications)) { $sender = $this->settings->fetch('sender', []); $this->settings->set('stats_notifications', [ 'enabled' => true, @@ -232,7 +232,7 @@ class Populator { WP::synchronizeUsers(); // Default segment - if(Segment::where('type', 'default')->count() === 0) { + if (Segment::where('type', 'default')->count() === 0) { $this->default_segment = Segment::create(); $this->default_segment->hydrate([ 'name' => __('My First List', 'mailpoet'), @@ -244,9 +244,9 @@ class Populator { } private function createDefaultForm() { - if(Form::count() === 0) { + if (Form::count() === 0) { $factory = new DefaultForm(); - if(!$this->default_segment) { + if (!$this->default_segment) { $this->default_segment = Segment::where('type', 'default')->orderByAsc('id')->limit(1)->findOne(); } Form::createOrUpdate([ @@ -357,10 +357,10 @@ class Populator { $identification_columns ); - if(!$this->rowExists($table, $existence_comparison_fields)) { + if (!$this->rowExists($table, $existence_comparison_fields)) { $this->insertRow($table, $row); } else { - if($remove_duplicates) { + if ($remove_duplicates) { $this->removeDuplicates($table, $row, $existence_comparison_fields); } $this->updateRow($table, $row, $existence_comparison_fields); @@ -446,7 +446,7 @@ class Populator { private function updateNewsletterCategories() { global $wpdb; // perform once for versions below or equal to 3.14.0 - if(version_compare($this->settings->get('db_version', '3.14.1'), '3.14.0', '>')) { + if (version_compare($this->settings->get('db_version', '3.14.1'), '3.14.0', '>')) { return false; } $query = "UPDATE `%s` SET categories = REPLACE(REPLACE(categories, ',\"blank\"', ''), ',\"sample\"', ',\"all\"')"; diff --git a/lib/Config/PopulatorData/Templates/AppWelcome.php b/lib/Config/PopulatorData/Templates/AppWelcome.php index 589339c10e..03efbad4e7 100644 --- a/lib/Config/PopulatorData/Templates/AppWelcome.php +++ b/lib/Config/PopulatorData/Templates/AppWelcome.php @@ -1,7 +1,7 @@ + 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#125674', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '60px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -107,20 +107,20 @@ class BookStoreWithCoupon { 'fullWidth' => false, 'width' => '200px', 'height' => '48px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 2 => + 2 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -131,68 +131,68 @@ class BookStoreWithCoupon { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/Book-Header.jpg', 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#125674', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '100px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Turn more pages this weekend...

Just to say thanks, here\'s a small gift from us to you.

', ), - 2 => + 2 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '71px', @@ -203,50 +203,50 @@ class BookStoreWithCoupon { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/Book-Body-2.png', 'display' => 'tile', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -255,38 +255,38 @@ class BookStoreWithCoupon { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '21px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Read more every week

@@ -294,31 +294,31 @@ class BookStoreWithCoupon { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -329,50 +329,50 @@ class BookStoreWithCoupon { ), ), ), - 3 => + 3 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/Book-Body-2.png', 'display' => 'tile', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '2px', @@ -386,76 +386,76 @@ class BookStoreWithCoupon { ), ), ), - 4 => + 4 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/Book-Body-2.png', 'display' => 'tile', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Lorem ipsum dolor sit amet, adipiscing elit. Fusce mollis orci justo,

commodo mattis nisi vitae. Sed aliquam, ex ac lacinia tempus,

enim urna luctus odio, at leo ante non.

', ), - 2 => + 2 => array ( 'type' => 'text', 'text' => '

20% off all books

', ), - 3 => + 3 => array ( 'type' => 'button', 'text' => 'Coupon_Code', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'borderColor' => '#125674', @@ -472,7 +472,7 @@ class BookStoreWithCoupon { ), ), ), - 4 => + 4 => array ( 'type' => 'image', 'link' => '', @@ -481,9 +481,9 @@ class BookStoreWithCoupon { 'fullWidth' => true, 'width' => '1200px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -493,50 +493,50 @@ class BookStoreWithCoupon { ), ), ), - 5 => + 5 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#cdc391', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -547,51 +547,51 @@ class BookStoreWithCoupon { ), ), ), - 6 => + 6 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#cdc391', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -605,32 +605,32 @@ class BookStoreWithCoupon { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -644,32 +644,32 @@ class BookStoreWithCoupon { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -685,50 +685,50 @@ class BookStoreWithCoupon { ), ), ), - 7 => + 7 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#125674', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '29px', @@ -739,45 +739,45 @@ class BookStoreWithCoupon { ), ), ), - 8 => + 8 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#125674', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -786,56 +786,56 @@ class BookStoreWithCoupon { 'fullWidth' => false, 'width' => '96px', 'height' => '48px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 1 => + 1 => array ( 'type' => 'footer', 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', ), ), ), - 2 => + 2 => array ( 'type' => 'header', 'text' => '

Open this email in your web browser.

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', @@ -848,49 +848,49 @@ class BookStoreWithCoupon { ), ), ), - 'globalStyles' => + 'globalStyles' => array ( - 'text' => + 'text' => array ( 'fontColor' => '#000000', 'fontFamily' => 'Noticia Text', 'fontSize' => '14px', ), - 'h1' => + 'h1' => array ( 'fontColor' => '#111111', 'fontFamily' => 'Playfair Display', 'fontSize' => '30px', ), - 'h2' => + 'h2' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Playfair Display', 'fontSize' => '22px', ), - 'h3' => + 'h3' => array ( 'fontColor' => '#333333', 'fontFamily' => 'Arial', 'fontSize' => '20px', ), - 'link' => + 'link' => array ( 'fontColor' => '#21759B', 'textDecoration' => 'underline', ), - 'wrapper' => + 'wrapper' => array ( 'backgroundColor' => '#ffffff', ), - 'body' => + 'body' => array ( 'backgroundColor' => '#125674', ), ), - 'blockDefaults' => + 'blockDefaults' => array ( - 'automatedLatestContent' => + 'automatedLatestContent' => array ( 'amount' => '5', 'withLayout' => false, @@ -908,14 +908,14 @@ class BookStoreWithCoupon { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContent.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -934,12 +934,12 @@ class BookStoreWithCoupon { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContent.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -952,7 +952,7 @@ class BookStoreWithCoupon { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'automatedLatestContentLayout' => + 'automatedLatestContentLayout' => array ( 'amount' => '5', 'withLayout' => true, @@ -970,14 +970,14 @@ class BookStoreWithCoupon { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -996,12 +996,12 @@ class BookStoreWithCoupon { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContentLayout.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1014,13 +1014,13 @@ class BookStoreWithCoupon { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'button' => + 'button' => array ( 'text' => 'Coupon_Code', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'borderColor' => '#125674', @@ -1038,11 +1038,11 @@ class BookStoreWithCoupon { ), 'type' => 'button', ), - 'divider' => + 'divider' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '2px', @@ -1053,23 +1053,23 @@ class BookStoreWithCoupon { ), 'type' => 'divider', ), - 'footer' => + 'footer' => array ( 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', @@ -1077,7 +1077,7 @@ class BookStoreWithCoupon { ), 'type' => 'footer', ), - 'posts' => + 'posts' => array ( 'amount' => '10', 'withLayout' => true, @@ -1096,14 +1096,14 @@ class BookStoreWithCoupon { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'posts.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1122,12 +1122,12 @@ class BookStoreWithCoupon { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'posts.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1140,12 +1140,12 @@ class BookStoreWithCoupon { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'social' => + 'social' => array ( 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -1158,11 +1158,11 @@ class BookStoreWithCoupon { ), 'type' => 'social', ), - 'spacer' => + 'spacer' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -1170,23 +1170,23 @@ class BookStoreWithCoupon { ), 'type' => 'spacer', ), - 'header' => + 'header' => array ( 'text' => 'Display problems? Open this email in your web browser.', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', diff --git a/lib/Config/PopulatorData/Templates/Charity.php b/lib/Config/PopulatorData/Templates/Charity.php index 66b5f7c2de..470a5013b9 100644 --- a/lib/Config/PopulatorData/Templates/Charity.php +++ b/lib/Config/PopulatorData/Templates/Charity.php @@ -1,7 +1,7 @@ + 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '27px', ), ), ), - 1 => + 1 => array ( 'type' => 'header', 'text' => '

Open this email in your web browser.

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '11px', 'textAlign' => 'left', ), - 'link' => + 'link' => array ( 'fontColor' => '#e2973f', 'textDecoration' => 'underline', @@ -126,57 +126,57 @@ class ClearNews { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -185,9 +185,9 @@ class ClearNews { 'fullWidth' => false, 'width' => '120px', 'height' => '167px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), @@ -195,38 +195,38 @@ class ClearNews { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '30px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

October 2018

', @@ -235,45 +235,45 @@ class ClearNews { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => '2_1', 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

Good Morning!

@@ -281,38 +281,38 @@ class ClearNews { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '24px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -321,9 +321,9 @@ class ClearNews { 'fullWidth' => false, 'width' => '360px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -333,50 +333,50 @@ class ClearNews { ), ), ), - 3 => + 3 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -390,57 +390,57 @@ class ClearNews { ), ), ), - 4 => + 4 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Today\'s Top Stories

', @@ -449,13 +449,13 @@ class ClearNews { ), ), ), - 5 => + 5 => array ( 'type' => 'automatedLatestContentLayout', 'withLayout' => true, 'amount' => '3', 'contentType' => 'post', - 'terms' => + 'terms' => array ( ), 'inclusionType' => 'include', @@ -471,14 +471,14 @@ class ClearNews { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'type' => 'button', 'text' => 'Read more', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e2973f', 'borderColor' => '#e2973f', @@ -498,12 +498,12 @@ class ClearNews { ), 'sortBy' => 'newest', 'showDivider' => false, - 'divider' => + 'divider' => array ( 'type' => 'divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -517,50 +517,50 @@ class ClearNews { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 6 => + 6 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -574,57 +574,57 @@ class ClearNews { ), ), ), - 7 => + 7 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

We cover all types of news

', @@ -633,52 +633,52 @@ class ClearNews { ), ), ), - 8 => + 8 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'button', 'text' => 'World', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e23f3f', 'borderColor' => '#e2973f', @@ -697,33 +697,33 @@ class ClearNews { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'button', 'text' => 'Business', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#50b6ce', 'borderColor' => '#e2973f', @@ -742,33 +742,33 @@ class ClearNews { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'button', 'text' => 'Politics', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#506dce', 'borderColor' => '#e2973f', @@ -789,52 +789,52 @@ class ClearNews { ), ), ), - 9 => + 9 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'button', 'text' => 'Sports', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e1bc2d', 'borderColor' => '#e2973f', @@ -853,33 +853,33 @@ class ClearNews { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'button', 'text' => 'Science', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#a650ce', 'borderColor' => '#e2973f', @@ -898,33 +898,33 @@ class ClearNews { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'button', 'text' => 'Health', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#64b03c', 'borderColor' => '#e2973f', @@ -945,52 +945,52 @@ class ClearNews { ), ), ), - 10 => + 10 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'button', 'text' => 'Family', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#278f6e', 'borderColor' => '#e2973f', @@ -1009,33 +1009,33 @@ class ClearNews { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'button', 'text' => 'Arts', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#7c5e5e', 'borderColor' => '#e2973f', @@ -1054,33 +1054,33 @@ class ClearNews { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'button', 'text' => 'Local', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#4d4d4d', 'borderColor' => '#e2973f', @@ -1101,50 +1101,50 @@ class ClearNews { ), ), ), - 11 => + 11 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '20px', @@ -1155,50 +1155,50 @@ class ClearNews { ), ), ), - 12 => + 12 => array ( 'type' => 'container', 'columnLayout' => '1_2', 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/News-Crossword.jpg', 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -1207,51 +1207,51 @@ class ClearNews { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '60px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

The Friday Crossword

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum vitae ornare elit. Duis laoreet justo sed fringilla maximus. Aenean pharetra nec risus a vestibulum.

', ), - 2 => + 2 => array ( 'type' => 'button', 'text' => 'Get started', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e2973f', 'borderColor' => '#e2973f', @@ -1268,12 +1268,12 @@ class ClearNews { ), ), ), - 3 => + 3 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '22px', @@ -1284,50 +1284,50 @@ class ClearNews { ), ), ), - 13 => + 13 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '34.5px', @@ -1341,45 +1341,45 @@ class ClearNews { ), ), ), - 14 => + 14 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -1388,9 +1388,9 @@ class ClearNews { 'fullWidth' => false, 'width' => '120px', 'height' => '167px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), @@ -1398,64 +1398,64 @@ class ClearNews { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

Unsubscribe

Manage your subscription

', ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Add your postal address!

', ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'social', 'iconSet' => 'circles', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1465,7 +1465,7 @@ class ClearNews { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1475,7 +1475,7 @@ class ClearNews { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'youtube', @@ -1487,11 +1487,11 @@ class ClearNews { ), ), ), - 1 => + 1 => array ( 'type' => 'social', 'iconSet' => 'default', - 'icons' => + 'icons' => array ( ), ), @@ -1501,49 +1501,49 @@ class ClearNews { ), ), ), - 'globalStyles' => + 'globalStyles' => array ( - 'text' => + 'text' => array ( 'fontColor' => '#000000', 'fontFamily' => 'Source Sans Pro', 'fontSize' => '15px', ), - 'h1' => + 'h1' => array ( 'fontColor' => '#111111', 'fontFamily' => 'Merriweather Sans', 'fontSize' => '40px', ), - 'h2' => + 'h2' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Merriweather Sans', 'fontSize' => '24px', ), - 'h3' => + 'h3' => array ( 'fontColor' => '#333333', 'fontFamily' => 'Merriweather Sans', 'fontSize' => '16px', ), - 'link' => + 'link' => array ( 'fontColor' => '#e2973f', 'textDecoration' => 'underline', ), - 'wrapper' => + 'wrapper' => array ( 'backgroundColor' => '#ffffff', ), - 'body' => + 'body' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blockDefaults' => + 'blockDefaults' => array ( - 'automatedLatestContent' => + 'automatedLatestContent' => array ( 'amount' => '5', 'withLayout' => false, @@ -1561,14 +1561,14 @@ class ClearNews { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContent.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1587,12 +1587,12 @@ class ClearNews { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContent.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1605,7 +1605,7 @@ class ClearNews { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'automatedLatestContentLayout' => + 'automatedLatestContentLayout' => array ( 'amount' => '3', 'withLayout' => true, @@ -1623,14 +1623,14 @@ class ClearNews { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e2973f', 'borderColor' => '#e2973f', @@ -1650,12 +1650,12 @@ class ClearNews { ), 'sortBy' => 'newest', 'showDivider' => false, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContentLayout.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1669,17 +1669,17 @@ class ClearNews { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', 'type' => 'automatedLatestContentLayout', - 'terms' => + 'terms' => array ( ), ), - 'button' => + 'button' => array ( 'text' => 'Read more', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#4d4d4d', 'borderColor' => '#e2973f', @@ -1697,11 +1697,11 @@ class ClearNews { ), 'type' => 'button', ), - 'divider' => + 'divider' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '34.5px', @@ -1712,23 +1712,23 @@ class ClearNews { ), 'type' => 'divider', ), - 'footer' => + 'footer' => array ( 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '13px', 'textAlign' => 'right', ), - 'link' => + 'link' => array ( 'fontColor' => '#e2973f', 'textDecoration' => 'underline', @@ -1736,7 +1736,7 @@ class ClearNews { ), 'type' => 'footer', ), - 'posts' => + 'posts' => array ( 'amount' => '10', 'withLayout' => true, @@ -1755,14 +1755,14 @@ class ClearNews { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => 'http://mailpoet.info/ladybirds-transparent-shell-reveals-how-it-folds-its-wings/', 'context' => 'posts.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e2973f', 'borderColor' => '#e2973f', @@ -1782,12 +1782,12 @@ class ClearNews { ), 'sortBy' => 'newest', 'showDivider' => false, - 'divider' => + 'divider' => array ( 'context' => 'posts.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1802,17 +1802,17 @@ class ClearNews { 'backgroundColorAlternate' => '#eeeeee', 'type' => 'posts', 'offset' => 0, - 'terms' => + 'terms' => array ( ), 'search' => '', ), - 'social' => + 'social' => array ( 'iconSet' => 'circles', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1822,7 +1822,7 @@ class ClearNews { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1832,7 +1832,7 @@ class ClearNews { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'youtube', @@ -1845,11 +1845,11 @@ class ClearNews { ), 'type' => 'social', ), - 'spacer' => + 'spacer' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '20px', @@ -1857,23 +1857,23 @@ class ClearNews { ), 'type' => 'spacer', ), - 'header' => + 'header' => array ( 'text' => 'Display problems? Open this email in your web browser.', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '11px', 'textAlign' => 'left', ), - 'link' => + 'link' => array ( 'fontColor' => '#e2973f', 'textDecoration' => 'underline', diff --git a/lib/Config/PopulatorData/Templates/Coffee.php b/lib/Config/PopulatorData/Templates/Coffee.php index 5b1681b7aa..52baafb3b8 100644 --- a/lib/Config/PopulatorData/Templates/Coffee.php +++ b/lib/Config/PopulatorData/Templates/Coffee.php @@ -1,7 +1,7 @@ + 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#f5f5f5', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', @@ -102,71 +102,71 @@ class FashionBlogA { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#f5f5f5', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

October 2018 Edition

', ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

View Online

', @@ -175,45 +175,45 @@ class FashionBlogA { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#f5f5f5', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -222,20 +222,20 @@ class FashionBlogA { 'fullWidth' => false, 'width' => '157px', 'height' => '48px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), ), ), - 1 => + 1 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -246,68 +246,68 @@ class FashionBlogA { ), ), ), - 3 => + 3 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/Fashion-Header.jpg', 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '90px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

October 2018

Autumn Season

', ), - 2 => + 2 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '60px', @@ -318,69 +318,69 @@ class FashionBlogA { ), ), ), - 4 => + 4 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce mollis orci justo, commodo mattis nisi ullamcorper vitae. Sed aliquam, ex ac lacinia tempus, enim urna luctus odio, at consequat leo ante non tellus.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce mollis orci justo, commodo mattis nisi ullamcorper vitae. 

', ), - 2 => + 2 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -391,45 +391,45 @@ class FashionBlogA { ), ), ), - 5 => + 5 => array ( 'type' => 'container', 'columnLayout' => '1_2', 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#f6e4e4', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -438,9 +438,9 @@ class FashionBlogA { 'fullWidth' => true, 'width' => '400px', 'height' => '600px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -448,52 +448,52 @@ class FashionBlogA { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '60px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

$59

New Outfit

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce mollis orci justo, commodo mattis nisi ullamcorper vitae. Lorem ipsum dolor sit amet.

', ), - 2 => + 2 => array ( 'type' => 'button', 'text' => 'Read more', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ae6ca1', 'borderColor' => '#0074a2', @@ -514,71 +514,71 @@ class FashionBlogA { ), ), ), - 6 => + 6 => array ( 'type' => 'container', 'columnLayout' => '2_1', 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ebe8e8', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '60px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

$159

New Outfit

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce mollis orci justo, commodo mattis nisi ullamcorper vitae. Lorem ipsum dolor sit amet.

', ), - 2 => + 2 => array ( 'type' => 'button', 'text' => 'Read more', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ae6ca1', 'borderColor' => '#0074a2', @@ -597,26 +597,26 @@ class FashionBlogA { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -625,9 +625,9 @@ class FashionBlogA { 'fullWidth' => true, 'width' => '400px', 'height' => '600px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -637,45 +637,45 @@ class FashionBlogA { ), ), ), - 7 => + 7 => array ( 'type' => 'container', 'columnLayout' => '1_2', 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#f6e4e4', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -684,9 +684,9 @@ class FashionBlogA { 'fullWidth' => true, 'width' => '400px', 'height' => '600px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -694,52 +694,52 @@ class FashionBlogA { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '60px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

$25

New Outfit

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce mollis orci justo, commodo mattis nisi ullamcorper vitae. Lorem ipsum dolor sit amet.

', ), - 2 => + 2 => array ( 'type' => 'button', 'text' => 'Read more', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ae6ca1', 'borderColor' => '#0074a2', @@ -760,57 +760,57 @@ class FashionBlogA { ), ), ), - 8 => + 8 => array ( 'type' => 'container', 'columnLayout' => '2_1', 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/Fashion-Instagram.jpg', 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '50px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -819,15 +819,15 @@ class FashionBlogA { 'fullWidth' => false, 'width' => '52px', 'height' => '504px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), ), ), - 2 => + 2 => array ( 'type' => 'text', 'text' => '

Our new Instagram Page

@@ -835,14 +835,14 @@ class FashionBlogA {

We\'ll be keeping everyone up to date with the latest

fashion and style advice every day.

', ), - 3 => + 3 => array ( 'type' => 'button', 'text' => 'Check it out', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#151515', 'borderColor' => '#0074a2', @@ -859,12 +859,12 @@ class FashionBlogA { ), ), ), - 4 => + 4 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '35px', @@ -873,31 +873,31 @@ class FashionBlogA { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -908,63 +908,63 @@ class FashionBlogA { ), ), ), - 9 => + 9 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#f5f5f5', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '40px', ), ), ), - 1 => + 1 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -974,7 +974,7 @@ class FashionBlogA { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -984,7 +984,7 @@ class FashionBlogA { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -1000,62 +1000,62 @@ class FashionBlogA { ), ), ), - 10 => + 10 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#f5f5f5', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'footer', 'text' => '

Unsubscribe | Manage your subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#ae70ad', 'textDecoration' => 'none', @@ -1068,49 +1068,49 @@ class FashionBlogA { ), ), ), - 'globalStyles' => + 'globalStyles' => array ( - 'text' => + 'text' => array ( 'fontColor' => '#626262', 'fontFamily' => 'Noticia Text', 'fontSize' => '14px', ), - 'h1' => + 'h1' => array ( 'fontColor' => '#111111', 'fontFamily' => 'Merriweather Sans', 'fontSize' => '30px', ), - 'h2' => + 'h2' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Merriweather Sans', 'fontSize' => '22px', ), - 'h3' => + 'h3' => array ( 'fontColor' => '#505050', 'fontFamily' => 'Merriweather Sans', 'fontSize' => '20px', ), - 'link' => + 'link' => array ( 'fontColor' => '#21759b', 'textDecoration' => 'underline', ), - 'wrapper' => + 'wrapper' => array ( 'backgroundColor' => '#ffffff', ), - 'body' => + 'body' => array ( 'backgroundColor' => '#f5f5f5', ), ), - 'blockDefaults' => + 'blockDefaults' => array ( - 'automatedLatestContent' => + 'automatedLatestContent' => array ( 'amount' => '5', 'withLayout' => false, @@ -1128,14 +1128,14 @@ class FashionBlogA { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContent.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1154,12 +1154,12 @@ class FashionBlogA { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContent.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1172,7 +1172,7 @@ class FashionBlogA { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'automatedLatestContentLayout' => + 'automatedLatestContentLayout' => array ( 'amount' => '5', 'withLayout' => true, @@ -1190,14 +1190,14 @@ class FashionBlogA { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1216,12 +1216,12 @@ class FashionBlogA { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContentLayout.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1234,13 +1234,13 @@ class FashionBlogA { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'button' => + 'button' => array ( 'text' => 'Read more', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ae6ca1', 'borderColor' => '#0074a2', @@ -1258,11 +1258,11 @@ class FashionBlogA { ), 'type' => 'button', ), - 'divider' => + 'divider' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1272,23 +1272,23 @@ class FashionBlogA { ), ), ), - 'footer' => + 'footer' => array ( 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#ae70ad', 'textDecoration' => 'none', @@ -1296,7 +1296,7 @@ class FashionBlogA { ), 'type' => 'footer', ), - 'posts' => + 'posts' => array ( 'amount' => '10', 'withLayout' => true, @@ -1315,14 +1315,14 @@ class FashionBlogA { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'posts.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1342,12 +1342,12 @@ class FashionBlogA { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'posts.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1362,17 +1362,17 @@ class FashionBlogA { 'backgroundColorAlternate' => '#eeeeee', 'type' => 'posts', 'offset' => 0, - 'terms' => + 'terms' => array ( ), 'search' => '', ), - 'social' => + 'social' => array ( 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1382,7 +1382,7 @@ class FashionBlogA { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1392,7 +1392,7 @@ class FashionBlogA { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -1405,11 +1405,11 @@ class FashionBlogA { ), 'type' => 'social', ), - 'spacer' => + 'spacer' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '40px', @@ -1417,23 +1417,23 @@ class FashionBlogA { ), 'type' => 'spacer', ), - 'header' => + 'header' => array ( 'text' => 'Display problems? Open this email in your web browser.', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', diff --git a/lib/Config/PopulatorData/Templates/FashionShop.php b/lib/Config/PopulatorData/Templates/FashionShop.php index eed3d9aa9c..340a13142f 100644 --- a/lib/Config/PopulatorData/Templates/FashionShop.php +++ b/lib/Config/PopulatorData/Templates/FashionShop.php @@ -1,7 +1,7 @@ + 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'header', 'text' => '

Open this email in your web browser.

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', ), ), ), - 2 => + 2 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -138,62 +138,62 @@ class FashionShop { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/FashionKids-Header.jpg', 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '60px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

AUTUMN RANGE 2018

', ), - 2 => + 2 => array ( 'type' => 'image', 'link' => '', @@ -202,25 +202,25 @@ class FashionShop { 'fullWidth' => false, 'width' => '200px', 'height' => '64px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 3 => + 3 => array ( 'type' => 'text', 'text' => '

IT\'S TIME TO EXPLORE

', ), - 4 => + 4 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '403px', @@ -231,45 +231,45 @@ class FashionShop { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#c6d4dd', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -278,53 +278,53 @@ class FashionShop { 'fullWidth' => true, 'width' => '400px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 1 => + 1 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '100px', ), ), ), - 2 => + 2 => array ( 'type' => 'text', 'text' => '

Keep them warm this autumn with our whole new range just for your little ones

', ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -333,9 +333,9 @@ class FashionShop { 'fullWidth' => true, 'width' => '400px', 'height' => '800px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -345,45 +345,45 @@ class FashionShop { ), ), ), - 3 => + 3 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#c6d4dd', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -392,9 +392,9 @@ class FashionShop { 'fullWidth' => true, 'width' => '400px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -402,38 +402,38 @@ class FashionShop { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '113px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

All of our clothes are easy to wash and are ready for your little explorers

', @@ -442,57 +442,57 @@ class FashionShop { ), ), ), - 4 => + 4 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '40px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -501,9 +501,9 @@ class FashionShop { 'fullWidth' => false, 'width' => '187px', 'height' => '30px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -511,44 +511,44 @@ class FashionShop { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '35px', ), ), ), - 1 => + 1 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-color', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -558,7 +558,7 @@ class FashionShop { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -568,7 +568,7 @@ class FashionShop { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -578,7 +578,7 @@ class FashionShop { 'width' => '32px', 'text' => 'Instagram', ), - 3 => + 3 => array ( 'type' => 'socialIcon', 'iconType' => 'youtube', @@ -594,62 +594,62 @@ class FashionShop { ), ), ), - 5 => + 5 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'footer', 'text' => '

Unsubscribe | Manage your subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#21759b', 'textDecoration' => 'none', @@ -662,49 +662,49 @@ class FashionShop { ), ), ), - 'globalStyles' => + 'globalStyles' => array ( - 'text' => + 'text' => array ( 'fontColor' => '#000000', 'fontFamily' => 'Arial', 'fontSize' => '15px', ), - 'h1' => + 'h1' => array ( 'fontColor' => '#111111', 'fontFamily' => 'Georgia', 'fontSize' => '30px', ), - 'h2' => + 'h2' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Georgia', 'fontSize' => '26px', ), - 'h3' => + 'h3' => array ( 'fontColor' => '#333333', 'fontFamily' => 'Georgia', 'fontSize' => '24px', ), - 'link' => + 'link' => array ( 'fontColor' => '#21759B', 'textDecoration' => 'underline', ), - 'wrapper' => + 'wrapper' => array ( 'backgroundColor' => '#ffffff', ), - 'body' => + 'body' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blockDefaults' => + 'blockDefaults' => array ( - 'automatedLatestContent' => + 'automatedLatestContent' => array ( 'amount' => '5', 'withLayout' => false, @@ -722,14 +722,14 @@ class FashionShop { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContent.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -748,12 +748,12 @@ class FashionShop { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContent.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -766,7 +766,7 @@ class FashionShop { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'automatedLatestContentLayout' => + 'automatedLatestContentLayout' => array ( 'amount' => '5', 'withLayout' => true, @@ -784,14 +784,14 @@ class FashionShop { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -810,12 +810,12 @@ class FashionShop { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContentLayout.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -828,13 +828,13 @@ class FashionShop { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'button' => + 'button' => array ( 'text' => 'Button', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -851,11 +851,11 @@ class FashionShop { ), ), ), - 'divider' => + 'divider' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -865,23 +865,23 @@ class FashionShop { ), ), ), - 'footer' => + 'footer' => array ( 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#21759b', 'textDecoration' => 'none', @@ -889,7 +889,7 @@ class FashionShop { ), 'type' => 'footer', ), - 'posts' => + 'posts' => array ( 'amount' => '10', 'withLayout' => true, @@ -908,14 +908,14 @@ class FashionShop { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'posts.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -934,12 +934,12 @@ class FashionShop { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'posts.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -952,12 +952,12 @@ class FashionShop { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'social' => + 'social' => array ( 'iconSet' => 'full-symbol-color', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -967,7 +967,7 @@ class FashionShop { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -977,7 +977,7 @@ class FashionShop { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -987,7 +987,7 @@ class FashionShop { 'width' => '32px', 'text' => 'Instagram', ), - 3 => + 3 => array ( 'type' => 'socialIcon', 'iconType' => 'youtube', @@ -1000,11 +1000,11 @@ class FashionShop { ), 'type' => 'social', ), - 'spacer' => + 'spacer' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '35px', @@ -1012,23 +1012,23 @@ class FashionShop { ), 'type' => 'spacer', ), - 'header' => + 'header' => array ( 'text' => 'Display problems? Open this email in your web browser.', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', diff --git a/lib/Config/PopulatorData/Templates/FashionStore.php b/lib/Config/PopulatorData/Templates/FashionStore.php index 1509d97989..4115e31d9f 100644 --- a/lib/Config/PopulatorData/Templates/FashionStore.php +++ b/lib/Config/PopulatorData/Templates/FashionStore.php @@ -1,7 +1,7 @@ + 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#eae5e5', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'header', 'text' => '

View this email in your browser.

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', @@ -114,57 +114,57 @@ class FlowersWithCoupon { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e0a9bc', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '40px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -173,9 +173,9 @@ class FlowersWithCoupon { 'fullWidth' => false, 'width' => '110px', 'height' => '180px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), @@ -183,44 +183,44 @@ class FlowersWithCoupon { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '44px', ), ), ), - 1 => + 1 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -230,7 +230,7 @@ class FlowersWithCoupon { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -240,7 +240,7 @@ class FlowersWithCoupon { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -256,45 +256,45 @@ class FlowersWithCoupon { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e0a9bc', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -303,15 +303,15 @@ class FlowersWithCoupon { 'fullWidth' => true, 'width' => '1280px', 'height' => '850px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Just for you.

', @@ -320,58 +320,58 @@ class FlowersWithCoupon { ), ), ), - 3 => + 3 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e0a9bc', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

Welcome to our flower store - as a token of our appreciation for you signing up,

here\'s a little gift from us for your next order.

', ), - 1 => + 1 => array ( 'type' => 'button', 'text' => 'CoUpOn_Code', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#292929', 'borderColor' => '#0074a2', @@ -388,17 +388,17 @@ class FlowersWithCoupon { ), ), ), - 2 => + 2 => array ( 'type' => 'text', 'text' => '

10% off your next order with us. Terms and Conditions apply.

', ), - 3 => + 3 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -409,50 +409,50 @@ class FlowersWithCoupon { ), ), ), - 4 => + 4 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '45px', @@ -463,55 +463,55 @@ class FlowersWithCoupon { ), ), ), - 5 => + 5 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

A little inspiration to get you started...

', ), - 1 => + 1 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -522,62 +522,62 @@ class FlowersWithCoupon { ), ), ), - 6 => + 6 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

New flowers delivered

', ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut rutrum et lacus a dignissim. Curabitur id nisi malesuada, pharetra massa ut, bibendum lacus.

', ), - 2 => + 2 => array ( 'type' => 'button', 'text' => 'Buy Now', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e0a9bc', 'borderColor' => '#0074a2', @@ -596,26 +596,26 @@ class FlowersWithCoupon { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -624,9 +624,9 @@ class FlowersWithCoupon { 'fullWidth' => false, 'width' => '730px', 'height' => '604px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), @@ -636,50 +636,50 @@ class FlowersWithCoupon { ), ), ), - 7 => + 7 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -690,45 +690,45 @@ class FlowersWithCoupon { ), ), ), - 8 => + 8 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -737,9 +737,9 @@ class FlowersWithCoupon { 'fullWidth' => false, 'width' => '730px', 'height' => '604px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), @@ -747,43 +747,43 @@ class FlowersWithCoupon { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

Save with a subscription

', ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut rutrum et lacus a dignissim. Curabitur id nisi malesuada, pharetra massa ut, bibendum lacus.

', ), - 2 => + 2 => array ( 'type' => 'button', 'text' => 'Buy Now', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e0a9bc', 'borderColor' => '#0074a2', @@ -804,50 +804,50 @@ class FlowersWithCoupon { ), ), ), - 9 => + 9 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -858,62 +858,62 @@ class FlowersWithCoupon { ), ), ), - 10 => + 10 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

Collect from our store

', ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut rutrum et lacus a dignissim. Curabitur id nisi malesuada, pharetra massa ut, bibendum lacus.

', ), - 2 => + 2 => array ( 'type' => 'button', 'text' => 'Buy Now', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e0a9bc', 'borderColor' => '#0074a2', @@ -932,26 +932,26 @@ class FlowersWithCoupon { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -960,9 +960,9 @@ class FlowersWithCoupon { 'fullWidth' => false, 'width' => '730px', 'height' => '604px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), @@ -972,50 +972,50 @@ class FlowersWithCoupon { ), ), ), - 11 => + 11 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '40px', @@ -1026,63 +1026,63 @@ class FlowersWithCoupon { ), ), ), - 12 => + 12 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#eae5e5', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '40px', ), ), ), - 1 => + 1 => array ( 'type' => 'social', 'iconSet' => 'grey', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1092,7 +1092,7 @@ class FlowersWithCoupon { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1102,7 +1102,7 @@ class FlowersWithCoupon { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -1114,24 +1114,24 @@ class FlowersWithCoupon { ), ), ), - 2 => + 2 => array ( 'type' => 'footer', 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', @@ -1144,49 +1144,49 @@ class FlowersWithCoupon { ), ), ), - 'globalStyles' => + 'globalStyles' => array ( - 'text' => + 'text' => array ( 'fontColor' => '#000000', 'fontFamily' => 'Arial', 'fontSize' => '14px', ), - 'h1' => + 'h1' => array ( 'fontColor' => '#111111', 'fontFamily' => 'Arial', 'fontSize' => '30px', ), - 'h2' => + 'h2' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '24px', ), - 'h3' => + 'h3' => array ( 'fontColor' => '#333333', 'fontFamily' => 'Arial', 'fontSize' => '22px', ), - 'link' => + 'link' => array ( 'fontColor' => '#e0a9bc', 'textDecoration' => 'underline', ), - 'wrapper' => + 'wrapper' => array ( 'backgroundColor' => '#ffffff', ), - 'body' => + 'body' => array ( 'backgroundColor' => '#eae5e5', ), ), - 'blockDefaults' => + 'blockDefaults' => array ( - 'automatedLatestContent' => + 'automatedLatestContent' => array ( 'amount' => '5', 'withLayout' => false, @@ -1204,14 +1204,14 @@ class FlowersWithCoupon { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContent.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1230,12 +1230,12 @@ class FlowersWithCoupon { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContent.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1248,7 +1248,7 @@ class FlowersWithCoupon { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'automatedLatestContentLayout' => + 'automatedLatestContentLayout' => array ( 'amount' => '5', 'withLayout' => true, @@ -1266,14 +1266,14 @@ class FlowersWithCoupon { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1292,12 +1292,12 @@ class FlowersWithCoupon { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContentLayout.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1310,13 +1310,13 @@ class FlowersWithCoupon { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'button' => + 'button' => array ( 'text' => 'Buy Now', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#e0a9bc', 'borderColor' => '#0074a2', @@ -1334,11 +1334,11 @@ class FlowersWithCoupon { ), 'type' => 'button', ), - 'divider' => + 'divider' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1348,23 +1348,23 @@ class FlowersWithCoupon { ), ), ), - 'footer' => + 'footer' => array ( 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', @@ -1372,7 +1372,7 @@ class FlowersWithCoupon { ), 'type' => 'footer', ), - 'posts' => + 'posts' => array ( 'amount' => '10', 'withLayout' => true, @@ -1391,14 +1391,14 @@ class FlowersWithCoupon { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'posts.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1417,12 +1417,12 @@ class FlowersWithCoupon { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'posts.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1435,12 +1435,12 @@ class FlowersWithCoupon { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'social' => + 'social' => array ( 'iconSet' => 'grey', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1450,7 +1450,7 @@ class FlowersWithCoupon { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1460,7 +1460,7 @@ class FlowersWithCoupon { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -1473,11 +1473,11 @@ class FlowersWithCoupon { ), 'type' => 'social', ), - 'spacer' => + 'spacer' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '392px', @@ -1485,23 +1485,23 @@ class FlowersWithCoupon { ), 'type' => 'spacer', ), - 'header' => + 'header' => array ( 'text' => 'Display problems? Open this email in your web browser.', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', diff --git a/lib/Config/PopulatorData/Templates/FoodBox.php b/lib/Config/PopulatorData/Templates/FoodBox.php index 6efa2619e3..914eeda2b6 100644 --- a/lib/Config/PopulatorData/Templates/FoodBox.php +++ b/lib/Config/PopulatorData/Templates/FoodBox.php @@ -1,7 +1,7 @@ + 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '50px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -107,9 +107,9 @@ class IndustryConference { 'fullWidth' => false, 'width' => '150px', 'height' => '150px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -119,45 +119,45 @@ class IndustryConference { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

Get ready for the biggest email conference of the year

', @@ -166,57 +166,57 @@ class IndustryConference { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => '2_1', 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/Conf-Header-2.jpg', 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '56px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -225,25 +225,25 @@ class IndustryConference { 'fullWidth' => false, 'width' => '339px', 'height' => '177px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), ), ), - 2 => + 2 => array ( 'type' => 'text', 'text' => '

Email Boston 2018

', ), - 3 => + 3 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -252,31 +252,31 @@ class IndustryConference { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '133px', @@ -287,13 +287,13 @@ class IndustryConference { ), ), ), - 3 => + 3 => array ( 'type' => 'automatedLatestContentLayout', 'withLayout' => true, 'amount' => '3', 'contentType' => 'post', - 'terms' => + 'terms' => array ( ), 'inclusionType' => 'include', @@ -309,14 +309,14 @@ class IndustryConference { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'type' => 'button', 'text' => 'Read the post', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#b8291e', 'borderColor' => '#0074a2', @@ -336,12 +336,12 @@ class IndustryConference { ), 'sortBy' => 'oldest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'type' => 'divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -355,45 +355,45 @@ class IndustryConference { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 4 => + 4 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -402,9 +402,9 @@ class IndustryConference { 'fullWidth' => true, 'width' => '1280px', 'height' => '50px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -414,50 +414,50 @@ class IndustryConference { ), ), ), - 5 => + 5 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', 'height' => '34px', @@ -468,71 +468,71 @@ class IndustryConference { ), ), ), - 6 => + 6 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/Industry-Coupon.png', 'display' => 'fit', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '75px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

---

Grab 20% off your tickets right now

We\'re offering an exclusive 20% off tickets with this coupon code!

', ), - 2 => + 2 => array ( 'type' => 'button', 'text' => 'CouPon_Code', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#b8291e', 'borderColor' => '#ffffff', @@ -549,24 +549,24 @@ class IndustryConference { ), ), ), - 3 => + 3 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '33px', ), ), ), - 4 => + 4 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '45px', @@ -577,50 +577,50 @@ class IndustryConference { ), ), ), - 7 => + 7 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', 'height' => '20px', @@ -631,45 +631,45 @@ class IndustryConference { ), ), ), - 8 => + 8 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -678,20 +678,20 @@ class IndustryConference { 'fullWidth' => true, 'width' => '1280px', 'height' => '12px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 1 => + 1 => array ( 'type' => 'divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'padding' => '14px', @@ -705,57 +705,57 @@ class IndustryConference { ), ), ), - 9 => + 9 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '30px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -764,9 +764,9 @@ class IndustryConference { 'fullWidth' => false, 'width' => '1000px', 'height' => '667px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -774,51 +774,51 @@ class IndustryConference { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '46px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Check out this year\'s event

We\'ve ramped up everything this year for our conference, including amazing new speakers and guests, and a few surprises for everyone.

', ), - 2 => + 2 => array ( 'type' => 'button', 'text' => 'Buy a ticket here', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#b8291e', 'borderColor' => '#0074a2', @@ -839,62 +839,62 @@ class IndustryConference { ), ), ), - 10 => + 10 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', 'padding' => '1.5px', @@ -904,7 +904,7 @@ class IndustryConference { ), ), ), - 2 => + 2 => array ( 'type' => 'image', 'link' => '', @@ -913,9 +913,9 @@ class IndustryConference { 'fullWidth' => true, 'width' => '1280px', 'height' => '50px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -925,75 +925,75 @@ class IndustryConference { ), ), ), - 11 => + 11 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', 'height' => '30px', ), ), ), - 1 => + 1 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', 'height' => '20px', ), ), ), - 2 => + 2 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-grey', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1003,7 +1003,7 @@ class IndustryConference { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1013,7 +1013,7 @@ class IndustryConference { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'email', @@ -1023,7 +1023,7 @@ class IndustryConference { 'width' => '32px', 'text' => 'Email', ), - 3 => + 3 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -1035,48 +1035,48 @@ class IndustryConference { ), ), ), - 3 => + 3 => array ( 'type' => 'header', 'text' => '

 Open this email in your web browser.

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#8d8d8d', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#ffffff', 'textDecoration' => 'underline', ), ), ), - 4 => + 4 => array ( 'type' => 'footer', 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', @@ -1089,49 +1089,49 @@ class IndustryConference { ), ), ), - 'globalStyles' => + 'globalStyles' => array ( - 'text' => + 'text' => array ( 'fontColor' => '#000000', 'fontFamily' => 'Merriweather Sans', 'fontSize' => '14px', ), - 'h1' => + 'h1' => array ( 'fontColor' => '#111111', 'fontFamily' => 'Arvo', 'fontSize' => '40px', ), - 'h2' => + 'h2' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arvo', 'fontSize' => '26px', ), - 'h3' => + 'h3' => array ( 'fontColor' => '#333333', 'fontFamily' => 'Arvo', 'fontSize' => '18px', ), - 'link' => + 'link' => array ( 'fontColor' => '#b8291e', 'textDecoration' => 'underline', ), - 'wrapper' => + 'wrapper' => array ( 'backgroundColor' => '#ffffff', ), - 'body' => + 'body' => array ( 'backgroundColor' => '#222222', ), ), - 'blockDefaults' => + 'blockDefaults' => array ( - 'automatedLatestContent' => + 'automatedLatestContent' => array ( 'amount' => '5', 'withLayout' => false, @@ -1149,14 +1149,14 @@ class IndustryConference { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContent.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1175,12 +1175,12 @@ class IndustryConference { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContent.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1193,7 +1193,7 @@ class IndustryConference { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'automatedLatestContentLayout' => + 'automatedLatestContentLayout' => array ( 'amount' => '3', 'withLayout' => true, @@ -1211,14 +1211,14 @@ class IndustryConference { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read the post', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#b8291e', 'borderColor' => '#0074a2', @@ -1238,12 +1238,12 @@ class IndustryConference { ), 'sortBy' => 'oldest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContentLayout.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1257,17 +1257,17 @@ class IndustryConference { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', 'type' => 'automatedLatestContentLayout', - 'terms' => + 'terms' => array ( ), ), - 'button' => + 'button' => array ( 'text' => 'Read the post', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#b8291e', 'borderColor' => '#ffffff', @@ -1285,11 +1285,11 @@ class IndustryConference { ), 'type' => 'button', ), - 'divider' => + 'divider' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#222222', 'padding' => '1.5px', @@ -1300,23 +1300,23 @@ class IndustryConference { ), 'type' => 'divider', ), - 'footer' => + 'footer' => array ( 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', @@ -1324,7 +1324,7 @@ class IndustryConference { ), 'type' => 'footer', ), - 'posts' => + 'posts' => array ( 'amount' => '10', 'withLayout' => true, @@ -1343,14 +1343,14 @@ class IndustryConference { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'posts.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1369,12 +1369,12 @@ class IndustryConference { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'posts.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1387,12 +1387,12 @@ class IndustryConference { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'social' => + 'social' => array ( 'iconSet' => 'full-symbol-grey', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1402,7 +1402,7 @@ class IndustryConference { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1412,7 +1412,7 @@ class IndustryConference { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'email', @@ -1422,7 +1422,7 @@ class IndustryConference { 'width' => '32px', 'text' => 'Email', ), - 3 => + 3 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -1435,11 +1435,11 @@ class IndustryConference { ), 'type' => 'social', ), - 'spacer' => + 'spacer' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '75px', @@ -1447,23 +1447,23 @@ class IndustryConference { ), 'type' => 'spacer', ), - 'header' => + 'header' => array ( 'text' => 'Display problems? Open this email in your web browser.', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#8d8d8d', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#ffffff', 'textDecoration' => 'underline', diff --git a/lib/Config/PopulatorData/Templates/KidsClothing.php b/lib/Config/PopulatorData/Templates/KidsClothing.php index b5cab64db0..8bc7568d62 100644 --- a/lib/Config/PopulatorData/Templates/KidsClothing.php +++ b/lib/Config/PopulatorData/Templates/KidsClothing.php @@ -1,7 +1,7 @@ + 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'header', 'text' => '

View online

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#adadad', 'textDecoration' => 'underline', ), ), ), - 1 => + 1 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', ), ), ), - 2 => + 2 => array ( 'type' => 'image', 'link' => '', @@ -131,44 +131,44 @@ class LifestyleBlogA { 'fullWidth' => false, 'width' => '130px', 'height' => '94px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 3 => + 3 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), - 4 => + 4 => array ( 'type' => 'text', 'text' => '

Fashion Week Special

', ), - 5 => + 5 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), - 6 => + 6 => array ( 'type' => 'image', 'link' => '', @@ -177,32 +177,32 @@ class LifestyleBlogA { 'fullWidth' => true, 'width' => '900px', 'height' => '426px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 7 => + 7 => array ( 'type' => 'text', 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet scelerisque odio. Pellentesque nisl massa, ullamcorper eu gravida varius, mollis eu orci.

', ), - 8 => + 8 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), - 9 => + 9 => array ( 'type' => 'image', 'link' => '', @@ -211,9 +211,9 @@ class LifestyleBlogA { 'fullWidth' => true, 'width' => '900px', 'height' => '65px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -223,45 +223,45 @@ class LifestyleBlogA { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#c83142', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -270,21 +270,21 @@ class LifestyleBlogA { 'fullWidth' => false, 'width' => '400px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Big announcement from top artists

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet scelerisque odio. Pellentesque nisl massa, ullamcorper eu gravida varius, mollis eu orci.

', ), - 2 => + 2 => array ( 'type' => 'image', 'link' => '', @@ -293,9 +293,9 @@ class LifestyleBlogA { 'fullWidth' => true, 'width' => '900px', 'height' => '65px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -305,50 +305,50 @@ class LifestyleBlogA { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#6d3aa7', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -359,45 +359,45 @@ class LifestyleBlogA { ), ), ), - 3 => + 3 => array ( 'type' => 'container', 'columnLayout' => '1_2', 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#6d3aa7', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -406,9 +406,9 @@ class LifestyleBlogA { 'fullWidth' => false, 'width' => '400px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -416,38 +416,38 @@ class LifestyleBlogA { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '34px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

New Workshops to begin

@@ -457,45 +457,45 @@ class LifestyleBlogA { ), ), ), - 4 => + 4 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -504,9 +504,9 @@ class LifestyleBlogA { 'fullWidth' => true, 'width' => '900px', 'height' => '65px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -516,50 +516,50 @@ class LifestyleBlogA { ), ), ), - 5 => + 5 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#0f2f41', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', @@ -570,45 +570,45 @@ class LifestyleBlogA { ), ), ), - 6 => + 6 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#0f2f41', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -617,41 +617,41 @@ class LifestyleBlogA { 'fullWidth' => false, 'width' => '400px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet scelerisque.

', ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -660,41 +660,41 @@ class LifestyleBlogA { 'fullWidth' => false, 'width' => '400px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet scelerisque.

', ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -703,15 +703,15 @@ class LifestyleBlogA { 'fullWidth' => false, 'width' => '400px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet scelerisque.

', @@ -720,45 +720,45 @@ class LifestyleBlogA { ), ), ), - 7 => + 7 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#0f2f41', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -767,9 +767,9 @@ class LifestyleBlogA { 'fullWidth' => true, 'width' => '900px', 'height' => '65px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -779,57 +779,57 @@ class LifestyleBlogA { ), ), ), - 8 => + 8 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '40px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -838,21 +838,21 @@ class LifestyleBlogA { 'fullWidth' => false, 'width' => '170px', 'height' => '40px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 2 => + 2 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -862,7 +862,7 @@ class LifestyleBlogA { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -872,7 +872,7 @@ class LifestyleBlogA { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -884,24 +884,24 @@ class LifestyleBlogA { ), ), ), - 3 => + 3 => array ( 'type' => 'footer', 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', @@ -914,49 +914,49 @@ class LifestyleBlogA { ), ), ), - 'globalStyles' => + 'globalStyles' => array ( - 'text' => + 'text' => array ( 'fontColor' => '#000000', 'fontFamily' => 'Trebuchet MS', 'fontSize' => '14px', ), - 'h1' => + 'h1' => array ( 'fontColor' => '#111111', 'fontFamily' => 'Courier New', 'fontSize' => '30px', ), - 'h2' => + 'h2' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Courier New', 'fontSize' => '24px', ), - 'h3' => + 'h3' => array ( 'fontColor' => '#333333', 'fontFamily' => 'Courier New', 'fontSize' => '20px', ), - 'link' => + 'link' => array ( 'fontColor' => '#21759B', 'textDecoration' => 'underline', ), - 'wrapper' => + 'wrapper' => array ( 'backgroundColor' => '#ffffff', ), - 'body' => + 'body' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blockDefaults' => + 'blockDefaults' => array ( - 'automatedLatestContent' => + 'automatedLatestContent' => array ( 'amount' => '5', 'withLayout' => false, @@ -974,14 +974,14 @@ class LifestyleBlogA { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContent.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1000,12 +1000,12 @@ class LifestyleBlogA { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContent.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1018,7 +1018,7 @@ class LifestyleBlogA { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'automatedLatestContentLayout' => + 'automatedLatestContentLayout' => array ( 'amount' => '5', 'withLayout' => true, @@ -1036,14 +1036,14 @@ class LifestyleBlogA { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1062,12 +1062,12 @@ class LifestyleBlogA { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContentLayout.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1080,13 +1080,13 @@ class LifestyleBlogA { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'button' => + 'button' => array ( 'text' => 'Button', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1103,11 +1103,11 @@ class LifestyleBlogA { ), ), ), - 'divider' => + 'divider' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1117,23 +1117,23 @@ class LifestyleBlogA { ), ), ), - 'footer' => + 'footer' => array ( 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', @@ -1141,7 +1141,7 @@ class LifestyleBlogA { ), 'type' => 'footer', ), - 'posts' => + 'posts' => array ( 'amount' => '10', 'withLayout' => true, @@ -1160,14 +1160,14 @@ class LifestyleBlogA { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'posts.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1186,12 +1186,12 @@ class LifestyleBlogA { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'posts.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1204,12 +1204,12 @@ class LifestyleBlogA { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'social' => + 'social' => array ( 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1219,7 +1219,7 @@ class LifestyleBlogA { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1229,7 +1229,7 @@ class LifestyleBlogA { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -1242,11 +1242,11 @@ class LifestyleBlogA { ), 'type' => 'social', ), - 'spacer' => + 'spacer' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '40px', @@ -1254,23 +1254,23 @@ class LifestyleBlogA { ), 'type' => 'spacer', ), - 'header' => + 'header' => array ( 'text' => 'Display problems? Open this email in your web browser.', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#adadad', 'textDecoration' => 'underline', diff --git a/lib/Config/PopulatorData/Templates/LifestyleBlogB.php b/lib/Config/PopulatorData/Templates/LifestyleBlogB.php index 6453384202..d85e164306 100644 --- a/lib/Config/PopulatorData/Templates/LifestyleBlogB.php +++ b/lib/Config/PopulatorData/Templates/LifestyleBlogB.php @@ -1,7 +1,7 @@ + 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -107,9 +107,9 @@ class LifestyleBlogB { 'fullWidth' => true, 'width' => '160px', 'height' => '57px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), @@ -117,55 +117,55 @@ class LifestyleBlogB { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'header', 'text' => '

View online >

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'right', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', @@ -176,50 +176,50 @@ class LifestyleBlogB { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', @@ -230,57 +230,57 @@ class LifestyleBlogB { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => $this->template_image_url . '/WomensLifestyle-Header.jpg', 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#b25187', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '440px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -289,9 +289,9 @@ class LifestyleBlogB { 'fullWidth' => true, 'width' => '900px', 'height' => '61px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -301,45 +301,45 @@ class LifestyleBlogB { ), ), ), - 3 => + 3 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

FEATURED ARTICLE THIS MONTH

@@ -349,45 +349,45 @@ class LifestyleBlogB { ), ), ), - 4 => + 4 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

1

@@ -395,26 +395,26 @@ class LifestyleBlogB { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

2

@@ -422,26 +422,26 @@ class LifestyleBlogB { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'text', 'text' => '

3

@@ -451,64 +451,64 @@ class LifestyleBlogB { ), ), ), - 5 => + 5 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '23px', ), ), ), - 1 => + 1 => array ( 'type' => 'button', 'text' => 'Read the article', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#b25088', 'borderColor' => '#0074a2', @@ -525,12 +525,12 @@ class LifestyleBlogB { ), ), ), - 2 => + 2 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '21px', @@ -541,45 +541,45 @@ class LifestyleBlogB { ), ), ), - 6 => + 6 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -588,9 +588,9 @@ class LifestyleBlogB { 'fullWidth' => true, 'width' => '400px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -598,38 +598,38 @@ class LifestyleBlogB { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '71px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

PODCASTS

@@ -640,50 +640,50 @@ class LifestyleBlogB { ), ), ), - 7 => + 7 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', @@ -694,57 +694,57 @@ class LifestyleBlogB { ), ), ), - 8 => + 8 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '71px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

PSYCHOLOGY

@@ -753,26 +753,26 @@ class LifestyleBlogB { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -781,9 +781,9 @@ class LifestyleBlogB { 'fullWidth' => true, 'width' => '400px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -793,50 +793,50 @@ class LifestyleBlogB { ), ), ), - 9 => + 9 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', @@ -847,45 +847,45 @@ class LifestyleBlogB { ), ), ), - 10 => + 10 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -894,9 +894,9 @@ class LifestyleBlogB { 'fullWidth' => true, 'width' => '400px', 'height' => '400px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -904,38 +904,38 @@ class LifestyleBlogB { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '71px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

TECHNOLOGY

@@ -946,50 +946,50 @@ class LifestyleBlogB { ), ), ), - 11 => + 11 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '50px', @@ -1000,45 +1000,45 @@ class LifestyleBlogB { ), ), ), - 12 => + 12 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -1047,21 +1047,21 @@ class LifestyleBlogB { 'fullWidth' => false, 'width' => '112px', 'height' => '57px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), ), ), - 1 => + 1 => array ( 'type' => 'social', 'iconSet' => 'circles', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1071,7 +1071,7 @@ class LifestyleBlogB { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1081,7 +1081,7 @@ class LifestyleBlogB { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'website', @@ -1091,7 +1091,7 @@ class LifestyleBlogB { 'width' => '32px', 'text' => 'Website', ), - 3 => + 3 => array ( 'type' => 'socialIcon', 'iconType' => 'pinterest', @@ -1103,24 +1103,24 @@ class LifestyleBlogB { ), ), ), - 2 => + 2 => array ( 'type' => 'footer', 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', @@ -1133,49 +1133,49 @@ class LifestyleBlogB { ), ), ), - 'globalStyles' => + 'globalStyles' => array ( - 'text' => + 'text' => array ( 'fontColor' => '#000000', 'fontFamily' => 'Arial', 'fontSize' => '15px', ), - 'h1' => + 'h1' => array ( 'fontColor' => '#111111', 'fontFamily' => 'Arial', 'fontSize' => '30px', ), - 'h2' => + 'h2' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '24px', ), - 'h3' => + 'h3' => array ( 'fontColor' => '#333333', 'fontFamily' => 'Arial', 'fontSize' => '22px', ), - 'link' => + 'link' => array ( 'fontColor' => '#21759B', 'textDecoration' => 'underline', ), - 'wrapper' => + 'wrapper' => array ( 'backgroundColor' => '#ffffff', ), - 'body' => + 'body' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blockDefaults' => + 'blockDefaults' => array ( - 'automatedLatestContent' => + 'automatedLatestContent' => array ( 'amount' => '5', 'withLayout' => false, @@ -1193,14 +1193,14 @@ class LifestyleBlogB { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContent.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1219,12 +1219,12 @@ class LifestyleBlogB { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContent.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1237,7 +1237,7 @@ class LifestyleBlogB { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'automatedLatestContentLayout' => + 'automatedLatestContentLayout' => array ( 'amount' => '5', 'withLayout' => true, @@ -1255,14 +1255,14 @@ class LifestyleBlogB { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1281,12 +1281,12 @@ class LifestyleBlogB { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContentLayout.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1299,13 +1299,13 @@ class LifestyleBlogB { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'button' => + 'button' => array ( 'text' => 'Read the article', 'url' => '', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#b25088', 'borderColor' => '#0074a2', @@ -1323,11 +1323,11 @@ class LifestyleBlogB { ), 'type' => 'button', ), - 'divider' => + 'divider' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1337,23 +1337,23 @@ class LifestyleBlogB { ), ), ), - 'footer' => + 'footer' => array ( 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', @@ -1361,7 +1361,7 @@ class LifestyleBlogB { ), 'type' => 'footer', ), - 'posts' => + 'posts' => array ( 'amount' => '10', 'withLayout' => true, @@ -1380,14 +1380,14 @@ class LifestyleBlogB { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'posts.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1406,12 +1406,12 @@ class LifestyleBlogB { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'posts.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1424,12 +1424,12 @@ class LifestyleBlogB { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'social' => + 'social' => array ( 'iconSet' => 'circles', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1439,7 +1439,7 @@ class LifestyleBlogB { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1449,7 +1449,7 @@ class LifestyleBlogB { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'website', @@ -1459,7 +1459,7 @@ class LifestyleBlogB { 'width' => '32px', 'text' => 'Website', ), - 3 => + 3 => array ( 'type' => 'socialIcon', 'iconType' => 'pinterest', @@ -1472,11 +1472,11 @@ class LifestyleBlogB { ), 'type' => 'social', ), - 'spacer' => + 'spacer' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', @@ -1484,23 +1484,23 @@ class LifestyleBlogB { ), 'type' => 'spacer', ), - 'header' => + 'header' => array ( 'text' => 'Display problems? Open this email in your web browser.', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'right', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', diff --git a/lib/Config/PopulatorData/Templates/Minimal.php b/lib/Config/PopulatorData/Templates/Minimal.php index 5a9ea3987e..5f37ca1632 100644 --- a/lib/Config/PopulatorData/Templates/Minimal.php +++ b/lib/Config/PopulatorData/Templates/Minimal.php @@ -1,7 +1,7 @@ + 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#f2f9f8', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '28px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

[date:mtext][date:dordinal],[date:y]

', ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'header', 'text' => '

Open this email in your web browser.

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'right', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', @@ -164,45 +164,45 @@ class NewspaperTraditional { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => '2_1', 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#f2f9f8', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'image', 'link' => '', @@ -211,9 +211,9 @@ class NewspaperTraditional { 'fullWidth' => false, 'width' => '200px', 'height' => '100px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'left', ), @@ -221,32 +221,32 @@ class NewspaperTraditional { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -256,7 +256,7 @@ class NewspaperTraditional { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -266,7 +266,7 @@ class NewspaperTraditional { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'website', @@ -276,7 +276,7 @@ class NewspaperTraditional { 'width' => '32px', 'text' => 'Website', ), - 3 => + 3 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -292,133 +292,133 @@ class NewspaperTraditional { ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#c6dbd8', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Local News

', ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Sports Updates & Scores

', ), ), ), - 2 => + 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Business News

', @@ -427,57 +427,57 @@ class NewspaperTraditional { ), ), ), - 3 => + 3 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#ffffff', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', ), ), ), - 1 => + 1 => array ( 'type' => 'text', 'text' => '

Check Out Our New Blog Posts!

@@ -488,12 +488,12 @@ class NewspaperTraditional {

To edit the settings and styles of your post, simply click on a post below.

', ), - 2 => + 2 => array ( 'type' => 'divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -507,13 +507,13 @@ class NewspaperTraditional { ), ), ), - 4 => + 4 => array ( 'type' => 'automatedLatestContentLayout', 'withLayout' => true, 'amount' => '3', 'contentType' => 'post', - 'terms' => + 'terms' => array ( ), 'inclusionType' => 'include', @@ -529,14 +529,14 @@ class NewspaperTraditional { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'type' => 'button', 'text' => 'Read the post', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -555,12 +555,12 @@ class NewspaperTraditional { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'type' => 'divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -573,50 +573,50 @@ class NewspaperTraditional { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 5 => + 5 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#c6dbd8', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#c6dbd8', 'height' => '30px', @@ -627,57 +627,57 @@ class NewspaperTraditional { ), ), ), - 6 => + 6 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#c6dbd8', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#c6dbd8', 'height' => '28px', ), ), ), - 1 => + 1 => array ( 'type' => 'image', 'link' => '', @@ -686,9 +686,9 @@ class NewspaperTraditional { 'fullWidth' => false, 'width' => '200px', 'height' => '100px', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'textAlign' => 'center', ), @@ -696,56 +696,56 @@ class NewspaperTraditional { ), ), ), - 1 => + 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'footer', 'text' => '

Unsubscribe | Manage your subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', ), ), ), - 1 => + 1 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -755,7 +755,7 @@ class NewspaperTraditional { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -765,7 +765,7 @@ class NewspaperTraditional { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -775,7 +775,7 @@ class NewspaperTraditional { 'width' => '32px', 'text' => 'Instagram', ), - 3 => + 3 => array ( 'type' => 'socialIcon', 'iconType' => 'email', @@ -791,50 +791,50 @@ class NewspaperTraditional { ), ), ), - 7 => + 7 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#c6dbd8', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', - 'image' => + 'image' => array ( 'src' => NULL, 'display' => 'scale', ), - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), ), - 'blocks' => + 'blocks' => array ( - 0 => + 0 => array ( 'type' => 'spacer', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#c6dbd8', 'height' => '21px', @@ -847,49 +847,49 @@ class NewspaperTraditional { ), ), ), - 'globalStyles' => + 'globalStyles' => array ( - 'text' => + 'text' => array ( 'fontColor' => '#000000', 'fontFamily' => 'Playfair Display', 'fontSize' => '14px', ), - 'h1' => + 'h1' => array ( 'fontColor' => '#111111', 'fontFamily' => 'Merriweather', 'fontSize' => '26px', ), - 'h2' => + 'h2' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Merriweather', 'fontSize' => '22px', ), - 'h3' => + 'h3' => array ( 'fontColor' => '#333333', 'fontFamily' => 'Merriweather', 'fontSize' => '18px', ), - 'link' => + 'link' => array ( 'fontColor' => '#3d8076', 'textDecoration' => 'underline', ), - 'wrapper' => + 'wrapper' => array ( 'backgroundColor' => '#ffffff', ), - 'body' => + 'body' => array ( 'backgroundColor' => '#f2f9f8', ), ), - 'blockDefaults' => + 'blockDefaults' => array ( - 'automatedLatestContent' => + 'automatedLatestContent' => array ( 'amount' => '5', 'withLayout' => false, @@ -907,14 +907,14 @@ class NewspaperTraditional { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContent.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -933,12 +933,12 @@ class NewspaperTraditional { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContent.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -951,7 +951,7 @@ class NewspaperTraditional { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'automatedLatestContentLayout' => + 'automatedLatestContentLayout' => array ( 'amount' => '3', 'withLayout' => true, @@ -969,14 +969,14 @@ class NewspaperTraditional { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read the post', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -996,12 +996,12 @@ class NewspaperTraditional { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'automatedLatestContentLayout.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1015,17 +1015,17 @@ class NewspaperTraditional { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', 'type' => 'automatedLatestContentLayout', - 'terms' => + 'terms' => array ( ), ), - 'button' => + 'button' => array ( 'text' => 'Read the post', 'url' => '[postLink]', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1043,11 +1043,11 @@ class NewspaperTraditional { ), 'type' => 'button', ), - 'divider' => + 'divider' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1058,23 +1058,23 @@ class NewspaperTraditional { ), 'type' => 'divider', ), - 'footer' => + 'footer' => array ( 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', @@ -1082,7 +1082,7 @@ class NewspaperTraditional { ), 'type' => 'footer', ), - 'posts' => + 'posts' => array ( 'amount' => '10', 'withLayout' => true, @@ -1101,14 +1101,14 @@ class NewspaperTraditional { 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'Read more', - 'readMoreButton' => + 'readMoreButton' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'posts.readMoreButton', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => '#2ea1cd', 'borderColor' => '#0074a2', @@ -1127,12 +1127,12 @@ class NewspaperTraditional { ), 'sortBy' => 'newest', 'showDivider' => true, - 'divider' => + 'divider' => array ( 'context' => 'posts.divider', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', @@ -1145,12 +1145,12 @@ class NewspaperTraditional { 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), - 'social' => + 'social' => array ( 'iconSet' => 'full-symbol-black', - 'icons' => + 'icons' => array ( - 0 => + 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', @@ -1160,7 +1160,7 @@ class NewspaperTraditional { 'width' => '32px', 'text' => 'Facebook', ), - 1 => + 1 => array ( 'type' => 'socialIcon', 'iconType' => 'twitter', @@ -1170,7 +1170,7 @@ class NewspaperTraditional { 'width' => '32px', 'text' => 'Twitter', ), - 2 => + 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', @@ -1180,7 +1180,7 @@ class NewspaperTraditional { 'width' => '32px', 'text' => 'Instagram', ), - 3 => + 3 => array ( 'type' => 'socialIcon', 'iconType' => 'email', @@ -1193,11 +1193,11 @@ class NewspaperTraditional { ), 'type' => 'social', ), - 'spacer' => + 'spacer' => array ( - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', @@ -1205,23 +1205,23 @@ class NewspaperTraditional { ), 'type' => 'spacer', ), - 'header' => + 'header' => array ( 'text' => 'Display problems? Open this email in your web browser.', - 'styles' => + 'styles' => array ( - 'block' => + 'block' => array ( 'backgroundColor' => 'transparent', ), - 'text' => + 'text' => array ( 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'right', ), - 'link' => + 'link' => array ( 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', diff --git a/lib/Config/PopulatorData/Templates/NotSoMedium.php b/lib/Config/PopulatorData/Templates/NotSoMedium.php index b327f6b3d9..69ace49bff 100644 --- a/lib/Config/PopulatorData/Templates/NotSoMedium.php +++ b/lib/Config/PopulatorData/Templates/NotSoMedium.php @@ -1,7 +1,7 @@ getPrivacyPolicyContent()); } } @@ -38,4 +38,4 @@ class PrivacyPolicy { '

'; } -} \ No newline at end of file +} diff --git a/lib/Config/Renderer.php b/lib/Config/Renderer.php index 355184518a..f1f03e1d67 100644 --- a/lib/Config/Renderer.php +++ b/lib/Config/Renderer.php @@ -7,7 +7,7 @@ use Twig_Environment as TwigEnv; use Twig_Lexer as TwigLexer; use Twig_Loader_Filesystem as TwigFileSystem; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class Renderer { protected $cache_path; @@ -99,7 +99,7 @@ class Renderer { } function setupDebug() { - if($this->debugging_enabled) { + if ($this->debugging_enabled) { $this->renderer->addExtension(new \Twig_Extension_Debug()); } } diff --git a/lib/Config/RequirementsChecker.php b/lib/Config/RequirementsChecker.php index 5ca3291efe..4bf7c7c96c 100644 --- a/lib/Config/RequirementsChecker.php +++ b/lib/Config/RequirementsChecker.php @@ -4,7 +4,7 @@ namespace MailPoet\Config; use MailPoet\Util\Helpers; use MailPoet\WP\Notice as WPNotice; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class RequirementsChecker { const TEST_FOLDER_PERMISSIONS = 'TempAndCacheFolderCreation'; @@ -60,7 +60,7 @@ class RequirementsChecker { 'temp_path' => Env::$temp_path, 'cache_path' => Env::$cache_path ); - if(!is_dir($paths['cache_path']) && !wp_mkdir_p($paths['cache_path'])) { + if (!is_dir($paths['cache_path']) && !wp_mkdir_p($paths['cache_path'])) { $error = Helpers::replaceLinkTags( __('MailPoet requires write permissions inside the /wp-content/uploads folder. Please read our [link]instructions[/link] on how to resolve this issue.', 'mailpoet'), '//beta.docs.mailpoet.com/article/152-minimum-requirements-for-mailpoet-3#folder_permissions', @@ -70,7 +70,7 @@ class RequirementsChecker { } foreach ($paths as $path) { $index_file = $path . '/index.php'; - if(!file_exists($index_file)) { + if (!file_exists($index_file)) { file_put_contents( $path . '/index.php', str_replace('\n', PHP_EOL, 'vendor_classes as $dependency) { $dependency_path = $this->getDependencyPath($dependency); - if(!$dependency_path) { + if (!$dependency_path) { $error = sprintf( __('A MailPoet dependency (%s) does not appear to be loaded correctly, thus MailPoet will not work correctly. Please reinstall the plugin.', 'mailpoet'), $dependency @@ -121,7 +121,7 @@ class RequirementsChecker { $pattern = '#' . preg_quote(Env::$path) . '[\\\/]#'; $is_loaded_by_plugin = preg_match($pattern, $dependency_path); - if(!$is_loaded_by_plugin) { + if (!$is_loaded_by_plugin) { $error = sprintf( __('MailPoet has detected a dependency conflict (%s) with another plugin (%s), which may cause unexpected behavior. Please disable the offending plugin to fix this issue.', 'mailpoet'), $dependency, @@ -131,11 +131,11 @@ class RequirementsChecker { $return_error = true; // if a Twig dependency is loaded by another plugin, check for valid version - if(strpos($dependency, '\Twig_') === 0) { + if (strpos($dependency, '\Twig_') === 0) { $return_error = ($this->isValidTwigVersion()) ? false : $return_error; } - if($return_error) return $this->processError($error); + if ($return_error) return $this->processError($error); } } @@ -162,7 +162,7 @@ class RequirementsChecker { } function processError($error) { - if($this->display_error_notice) { + if ($this->display_error_notice) { WPNotice::displayError($error); } return false; diff --git a/lib/Config/ServicesChecker.php b/lib/Config/ServicesChecker.php index de6ddc7726..2e4396528d 100644 --- a/lib/Config/ServicesChecker.php +++ b/lib/Config/ServicesChecker.php @@ -10,7 +10,7 @@ use MailPoet\Util\License\License; use MailPoet\WP\DateTime; use MailPoet\WP\Notice as WPNotice; -if(!defined('ABSPATH')) exit; +if (!defined('ABSPATH')) exit; class ServicesChecker { @@ -22,18 +22,18 @@ class ServicesChecker { } function isMailPoetAPIKeyValid($display_error_notice = true, $force_check = false) { - if(!$force_check && !Bridge::isMPSendingServiceEnabled()) { + if (!$force_check && !Bridge::isMPSendingServiceEnabled()) { return null; } $mss_key_specified = Bridge::isMSSKeySpecified(); $mss_key = $this->settings->get(Bridge::API_KEY_STATE_SETTING_NAME); - if(!$mss_key_specified + if (!$mss_key_specified || empty($mss_key['state']) || $mss_key['state'] == Bridge::KEY_INVALID ) { - if($display_error_notice) { + if ($display_error_notice) { $error = Helpers::replaceLinkTags( __('All sending is currently paused! Your key to send with MailPoet is invalid. [link]Visit MailPoet.com to purchase a key[/link]', 'mailpoet'), 'https://account.mailpoet.com?s=' . Subscriber::getTotalSubscribers(), @@ -45,7 +45,7 @@ class ServicesChecker { } elseif ($mss_key['state'] == Bridge::KEY_EXPIRING && !empty($mss_key['data']['expire_at']) ) { - if($display_error_notice) { + if ($display_error_notice) { $date_time = new DateTime(); $date = $date_time->formatDate(strtotime($mss_key['data']['expire_at'])); $error = Helpers::replaceLinkTags( @@ -69,16 +69,16 @@ class ServicesChecker { $premium_plugin_active = License::getLicense(); $premium_key = $this->settings->get(Bridge::PREMIUM_KEY_STATE_SETTING_NAME); - if(!$premium_plugin_active) { + if (!$premium_plugin_active) { $display_error_notice = false; } - if(!$premium_key_specified + if (!$premium_key_specified || empty($premium_key['state']) || $premium_key['state'] === Bridge::KEY_INVALID || $premium_key['state'] === Bridge::KEY_ALREADY_USED ) { - if($display_error_notice) { + if ($display_error_notice) { $error_string = __('[link1]Register[/link1] your copy of the MailPoet Premium plugin to receive access to automatic upgrades and support. Need a license key? [link2]Purchase one now.[/link2]', 'mailpoet'); $error = Helpers::replaceLinkTags( $error_string, @@ -98,7 +98,7 @@ class ServicesChecker { } elseif ($premium_key['state'] === Bridge::KEY_EXPIRING && !empty($premium_key['data']['expire_at']) ) { - if($display_error_notice) { + if ($display_error_notice) { $date_time = new DateTime(); $date = $date_time->formatDate(strtotime($premium_key['data']['expire_at'])); $error = Helpers::replaceLinkTags( diff --git a/lib/Config/Shortcodes.php b/lib/Config/Shortcodes.php index 89c032d6c8..cc1feea374 100644 --- a/lib/Config/Shortcodes.php +++ b/lib/Config/Shortcodes.php @@ -49,7 +49,7 @@ class Shortcodes { // IMPORTANT: fixes conflict with MagicMember remove_shortcode('user_list'); - if(isset($params['id']) && (int)$params['id'] > 0) { + if (isset($params['id']) && (int)$params['id'] > 0) { $form_widget = new \MailPoet\Form\Widget(); return $form_widget->widget(array( 'form' => (int)$params['id'], @@ -59,13 +59,13 @@ class Shortcodes { } function getSubscribersCount($params) { - if(!empty($params['segments'])) { + if (!empty($params['segments'])) { $segment_ids = array_map(function($segment_id) { return (int)trim($segment_id); }, explode(',', $params['segments'])); } - if(empty($segment_ids)) { + if (empty($segment_ids)) { return number_format_i18n(Subscriber::filter('subscribed')->count()); } else { return number_format_i18n( @@ -79,7 +79,7 @@ class Shortcodes { function getArchive($params) { $segment_ids = array(); - if(!empty($params['segments'])) { + if (!empty($params['segments'])) { $segment_ids = array_map(function($segment_id) { return (int)trim($segment_id); }, explode(',', $params['segments'])); @@ -91,14 +91,14 @@ class Shortcodes { $subscriber = Subscriber::getCurrentWPUser(); - if(empty($newsletters)) { + if (empty($newsletters)) { return $this->wp->applyFilters( 'mailpoet_archive_no_newsletters', __('Oops! There are no newsletters to display.', 'mailpoet') ); } else { $title = $this->wp->applyFilters('mailpoet_archive_title', ''); - if(!empty($title)) { + if (!empty($title)) { $html .= '

'.$title.'

'; } $html .= '