Update some templates

This commit is contained in:
Amine Ben hammou
2019-02-11 13:29:13 +01:00
committed by M. Shull
parent 9ce086f949
commit 3c96187f63
28 changed files with 43 additions and 33 deletions

View File

@@ -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',

View 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
View 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',

View 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',
),
),
),

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 KiB

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 KiB