Update some templates
@@ -77,7 +77,7 @@ class Populator {
|
||||
'ScienceWeekly',
|
||||
|
||||
'BrandingAgencyNews',
|
||||
'CityNews',
|
||||
'CityLocalNews',
|
||||
'College',
|
||||
'ComputerRepair',
|
||||
'Engineering',
|
||||
@@ -86,7 +86,7 @@ class Populator {
|
||||
'PrimarySchool',
|
||||
'RenewableEnergy',
|
||||
'Software',
|
||||
'WordpressTheme',
|
||||
'WordPressTheme',
|
||||
|
||||
'WineCity',
|
||||
'DogFood',
|
||||
|
24
lib/Config/PopulatorData/Templates/CityNews.php → lib/Config/PopulatorData/Templates/CityLocalNews.php
Normal file → Executable file
@@ -2,19 +2,19 @@
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class CityNews {
|
||||
class CityLocalNews {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/city-news';
|
||||
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/city-local-news';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("City News", 'mailpoet'),
|
||||
'name' => __("City / Local News", 'mailpoet'),
|
||||
'categories' => json_encode(array('standard', 'all')),
|
||||
'readonly' => 1,
|
||||
'thumbnail' => $this->getThumbnail(),
|
||||
@@ -139,7 +139,7 @@ class CityNews {
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#ffffff',
|
||||
'backgroundColor' => '#000000',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
@@ -209,7 +209,7 @@ class CityNews {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'facebook',
|
||||
'link' => 'http://www.facebook.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Facebook',
|
||||
@@ -219,7 +219,7 @@ class CityNews {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'twitter',
|
||||
'link' => 'http://www.twitter.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Twitter',
|
||||
@@ -229,7 +229,7 @@ class CityNews {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'email',
|
||||
'link' => '',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Email.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Email.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Email',
|
||||
@@ -239,7 +239,7 @@ class CityNews {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'youtube',
|
||||
'link' => 'http://www.youtube.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Youtube',
|
||||
@@ -1068,7 +1068,7 @@ class CityNews {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'facebook',
|
||||
'link' => 'http://www.facebook.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Facebook',
|
||||
@@ -1078,7 +1078,7 @@ class CityNews {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'twitter',
|
||||
'link' => 'http://www.twitter.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Twitter',
|
||||
@@ -1088,7 +1088,7 @@ class CityNews {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'email',
|
||||
'link' => '',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Email.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Email.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Email',
|
||||
@@ -1098,7 +1098,7 @@ class CityNews {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'youtube',
|
||||
'link' => 'http://www.youtube.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Youtube',
|
19
lib/Config/PopulatorData/Templates/Engineering.php
Normal file → Executable file
@@ -384,7 +384,7 @@ class Engineering {
|
||||
'orientation' => 'horizontal',
|
||||
'image' =>
|
||||
array (
|
||||
'src' => $this->template_image_url . '/Engineering-Footer-1.jpg',
|
||||
'src' => NULL,
|
||||
'display' => 'scale',
|
||||
),
|
||||
'styles' =>
|
||||
@@ -434,13 +434,18 @@ class Engineering {
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Engineering-Footer-c.jpg',
|
||||
'alt' => 'Engineering-Footer-c',
|
||||
'fullWidth' => true,
|
||||
'width' => '928px',
|
||||
'height' => '661px',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '350px',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -700,7 +705,7 @@ class Engineering {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'facebook',
|
||||
'link' => 'http://www.facebook.com',
|
||||
'image' => $this->social_icon_url . '/03-circles/Facebook.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/03-circles/Facebook.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Facebook',
|
||||
@@ -710,7 +715,7 @@ class Engineering {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'twitter',
|
||||
'link' => 'http://www.twitter.com',
|
||||
'image' => $this->social_icon_url . '/03-circles/Twitter.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/03-circles/Twitter.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Twitter',
|
||||
@@ -720,7 +725,7 @@ class Engineering {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'instagram',
|
||||
'link' => 'http://instagram.com',
|
||||
'image' => $this->social_icon_url . '/03-circles/Instagram.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/03-circles/Instagram.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Instagram',
|
||||
|
29
lib/Config/PopulatorData/Templates/WordpressTheme.php → lib/Config/PopulatorData/Templates/WordPressTheme.php
Normal file → Executable file
@@ -2,19 +2,19 @@
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class WordpressTheme {
|
||||
class WordPressTheme {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/wordpress-theme';
|
||||
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/word-press-theme';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Wordpress Theme", 'mailpoet'),
|
||||
'name' => __("WordPress Theme", 'mailpoet'),
|
||||
'categories' => json_encode(array('standard', 'all')),
|
||||
'readonly' => 1,
|
||||
'thumbnail' => $this->getThumbnail(),
|
||||
@@ -278,7 +278,7 @@ class WordpressTheme {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'facebook',
|
||||
'link' => 'http://www.facebook.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Facebook',
|
||||
@@ -288,7 +288,7 @@ class WordpressTheme {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'twitter',
|
||||
'link' => 'http://www.twitter.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Twitter',
|
||||
@@ -298,7 +298,7 @@ class WordpressTheme {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'website',
|
||||
'link' => '',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Website',
|
||||
@@ -308,7 +308,7 @@ class WordpressTheme {
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'email',
|
||||
'link' => '',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Email.png?mailpoet_version=3.15.0',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Email.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Email',
|
||||
@@ -326,14 +326,14 @@ class WordpressTheme {
|
||||
'orientation' => 'horizontal',
|
||||
'image' =>
|
||||
array (
|
||||
'src' => $this->template_image_url . '/Wordpress-Header.jpg',
|
||||
'src' => $this->template_image_url . '/Wordpress-Header-b.jpg',
|
||||
'display' => 'scale',
|
||||
),
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'backgroundColor' => '#2d557f',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
@@ -376,13 +376,18 @@ class WordpressTheme {
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Wordpress-Header-img.png',
|
||||
'alt' => 'Wordpress-Header-img',
|
||||
'fullWidth' => false,
|
||||
'width' => '1134px',
|
||||
'height' => '898px',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '550px',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
BIN
plugin_repository/assets/newsletter-templates/city-local-news/thumbnail.jpg
Executable file
After Width: | Height: | Size: 274 KiB |
Before Width: | Height: | Size: 274 KiB |
After Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 236 KiB |
BIN
plugin_repository/assets/newsletter-templates/farmers-market/thumbnail.jpg
Executable file → Normal file
Before Width: | Height: | Size: 227 KiB After Width: | Height: | Size: 219 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 584 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
BIN
plugin_repository/assets/newsletter-templates/word-press-theme/thumbnail.jpg
Executable file
After Width: | Height: | Size: 229 KiB |
Before Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 248 KiB |