Version Description
- Fix to the hero block button
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 7.0.5 |
Comparing to | |
See all releases |
Code changes from version 7.0.4 to 7.0.5
- emails/blocks/cta/block.php +1 -0
- emails/blocks/hero/block-full.php +1 -1
- emails/blocks/hero/block-left.php +1 -1
- emails/blocks/hero/block-right.php +1 -1
- emails/blocks/hero/block.php +13 -9
- emails/blocks/hero/options.php +5 -1
- emails/blocks/image/block.php +1 -1
- emails/images/automated.png +0 -0
- plugin.php +3 -3
- readme.txt +5 -1
emails/blocks/cta/block.php
CHANGED
@@ -15,6 +15,7 @@ $default_options = array(
|
|
15 |
'button_background' => '',
|
16 |
'block_background' => '',
|
17 |
'button_width' => '200',
|
|
|
18 |
'block_padding_top' => 20,
|
19 |
'block_padding_bottom' => 20,
|
20 |
'schema' => ''
|
15 |
'button_background' => '',
|
16 |
'block_background' => '',
|
17 |
'button_width' => '200',
|
18 |
+
'button_align' => 'center',
|
19 |
'block_padding_top' => 20,
|
20 |
'block_padding_bottom' => 20,
|
21 |
'schema' => ''
|
emails/blocks/hero/block-full.php
CHANGED
@@ -56,7 +56,7 @@
|
|
56 |
<tr>
|
57 |
<td align="center">
|
58 |
<br>
|
59 |
-
<?php echo TNP_Composer::button($
|
60 |
</td>
|
61 |
</tr>
|
62 |
</table>
|
56 |
<tr>
|
57 |
<td align="center">
|
58 |
<br>
|
59 |
+
<?php echo TNP_Composer::button($button_options) ?>
|
60 |
</td>
|
61 |
</tr>
|
62 |
</table>
|
emails/blocks/hero/block-left.php
CHANGED
@@ -57,7 +57,7 @@
|
|
57 |
|
58 |
<tr>
|
59 |
<td align="center" inline-class="button">
|
60 |
-
<?php echo TNP_Composer::button($
|
61 |
</td>
|
62 |
</tr>
|
63 |
|
57 |
|
58 |
<tr>
|
59 |
<td align="center" inline-class="button">
|
60 |
+
<?php echo TNP_Composer::button($button_options) ?>
|
61 |
</td>
|
62 |
</tr>
|
63 |
|
emails/blocks/hero/block-right.php
CHANGED
@@ -58,7 +58,7 @@
|
|
58 |
</tr>
|
59 |
<tr>
|
60 |
<td align="center" inline-class="button" dir="ltr">
|
61 |
-
<?php echo TNP_Composer::button($
|
62 |
</td>
|
63 |
</tr>
|
64 |
</table>
|
58 |
</tr>
|
59 |
<tr>
|
60 |
<td align="center" inline-class="button" dir="ltr">
|
61 |
+
<?php echo TNP_Composer::button($button_options) ?>
|
62 |
</td>
|
63 |
</tr>
|
64 |
</table>
|
emails/blocks/hero/block.php
CHANGED
@@ -21,13 +21,13 @@ $defaults = array(
|
|
21 |
'title_font_weight' => '',
|
22 |
'title_font_color' => '',
|
23 |
'layout' => 'full',
|
24 |
-
'button_url'
|
25 |
-
'
|
26 |
-
'
|
27 |
-
'button_font_color'
|
28 |
-
'
|
29 |
-
'button_font_size'
|
30 |
-
'
|
31 |
'block_padding_top' => 30,
|
32 |
'block_padding_bottom' => 30,
|
33 |
'block_padding_left' => 0,
|
@@ -75,8 +75,12 @@ $text_font_weight = empty( $options['font_weight'] ) ? $global_text_font_weight
|
|
75 |
|
76 |
$layout = $options['layout'];
|
77 |
|
78 |
-
$
|
79 |
-
$
|
|
|
|
|
|
|
|
|
80 |
|
81 |
if (!empty($options['image']['id'])) {
|
82 |
if ($layout == 'full') {
|
21 |
'title_font_weight' => '',
|
22 |
'title_font_color' => '',
|
23 |
'layout' => 'full',
|
24 |
+
'button_url' => '',
|
25 |
+
'button_label' => __( 'Click Here', 'newsletter' ),
|
26 |
+
'button_background' => '',
|
27 |
+
'button_font_color' => '',
|
28 |
+
'button_font_family' => '',
|
29 |
+
'button_font_size' => '',
|
30 |
+
'button_font_weight' => '',
|
31 |
'block_padding_top' => 30,
|
32 |
'block_padding_bottom' => 30,
|
33 |
'block_padding_left' => 0,
|
75 |
|
76 |
$layout = $options['layout'];
|
77 |
|
78 |
+
$button_options = $options;
|
79 |
+
$button_options['button_font_family'] = empty( $options['button_font_family'] ) ? $global_button_font_family : $options['button_font_family'];
|
80 |
+
$button_options['button_font_size'] = empty( $options['button_font_size'] ) ? $global_button_font_size : $options['button_font_size'];
|
81 |
+
$button_options['button_font_color'] = empty( $options['button_font_color'] ) ? $global_button_font_color : $options['button_font_color'];
|
82 |
+
$button_options['button_font_weight'] = empty( $options['button_font_weight'] ) ? $global_button_font_weight : $options['button_font_weight'];
|
83 |
+
$button_options['button_background'] = empty( $options['button_background'] ) ? $global_button_background_color : $options['button_background'];
|
84 |
|
85 |
if (!empty($options['image']['id'])) {
|
86 |
if ($layout == 'full') {
|
emails/blocks/hero/options.php
CHANGED
@@ -28,7 +28,11 @@ $fields->controls->data['schema'] = '';
|
|
28 |
<?php $fields->textarea('text', __('Text', 'newsletter')) ?>
|
29 |
<?php $fields->font( 'font', '', [ 'family_default' => true, 'size_default' => true, 'weight_default' => true ] ) ?>
|
30 |
|
31 |
-
<?php $fields->button('button', __('Button', 'newsletter'), [
|
|
|
|
|
|
|
|
|
32 |
|
33 |
<?php $fields->block_commons() ?>
|
34 |
|
28 |
<?php $fields->textarea('text', __('Text', 'newsletter')) ?>
|
29 |
<?php $fields->font( 'font', '', [ 'family_default' => true, 'size_default' => true, 'weight_default' => true ] ) ?>
|
30 |
|
31 |
+
<?php $fields->button('button', __('Button', 'newsletter'), [
|
32 |
+
'family_default' => true,
|
33 |
+
'size_default' => true,
|
34 |
+
'weight_default' => true
|
35 |
+
]) ?>
|
36 |
|
37 |
<?php $fields->block_commons() ?>
|
38 |
|
emails/blocks/image/block.php
CHANGED
@@ -57,7 +57,7 @@ if (!empty($options['image-alt'])) {
|
|
57 |
$image_class_name = 'image';
|
58 |
|
59 |
$img_align = '';
|
60 |
-
if (in_array($options['img_align'], array('left', 'right'))) {
|
61 |
$img_align = 'float: ' . $options['img_align'] .';';
|
62 |
}
|
63 |
|
57 |
$image_class_name = 'image';
|
58 |
|
59 |
$img_align = '';
|
60 |
+
if (isset($options['img_align']) && in_array($options['img_align'], array('left', 'right'))) {
|
61 |
$img_align = 'float: ' . $options['img_align'] .';';
|
62 |
}
|
63 |
|
emails/images/automated.png
CHANGED
Binary file
|
plugin.php
CHANGED
@@ -4,14 +4,14 @@
|
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: https://www.thenewsletterplugin.com/plugins/newsletter
|
6 |
Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
|
7 |
-
Version: 7.0.
|
8 |
Author: Stefano Lissa & The Newsletter Team
|
9 |
Author URI: https://www.thenewsletterplugin.com
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
11 |
Text Domain: newsletter
|
12 |
License: GPLv2 or later
|
13 |
|
14 |
-
Copyright 2009-
|
15 |
|
16 |
Newsletter is free software: you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|
@@ -35,7 +35,7 @@ if (version_compare(phpversion(), '5.6', '<')) {
|
|
35 |
return;
|
36 |
}
|
37 |
|
38 |
-
define('NEWSLETTER_VERSION', '7.0.
|
39 |
|
40 |
global $newsletter, $wpdb;
|
41 |
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: https://www.thenewsletterplugin.com/plugins/newsletter
|
6 |
Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
|
7 |
+
Version: 7.0.5
|
8 |
Author: Stefano Lissa & The Newsletter Team
|
9 |
Author URI: https://www.thenewsletterplugin.com
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
11 |
Text Domain: newsletter
|
12 |
License: GPLv2 or later
|
13 |
|
14 |
+
Copyright 2009-2021 The Newsletter Team (email: info@thenewsletterplugin.com, web: https://www.thenewsletterplugin.com)
|
15 |
|
16 |
Newsletter is free software: you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|
35 |
return;
|
36 |
}
|
37 |
|
38 |
+
define('NEWSLETTER_VERSION', '7.0.5');
|
39 |
|
40 |
global $newsletter, $wpdb;
|
41 |
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Tags: email, email marketing, newsletter, newsletter subscribers, welcome email, signup forms, contact, lead generation, popup, marketing automation
|
3 |
Requires at least: 3.4.0
|
4 |
Tested up to: 5.6.2
|
5 |
-
Stable tag: 7.0.
|
6 |
Requires PHP: 5.6
|
7 |
Contributors: satollo,webagile,michael-travan
|
8 |
License: GPLv2 or later
|
@@ -118,6 +118,10 @@ Thank you, The Newsletter Team
|
|
118 |
|
119 |
== Changelog ==
|
120 |
|
|
|
|
|
|
|
|
|
121 |
= 7.0.4 =
|
122 |
|
123 |
* Redesigned drag and drop composer
|
2 |
Tags: email, email marketing, newsletter, newsletter subscribers, welcome email, signup forms, contact, lead generation, popup, marketing automation
|
3 |
Requires at least: 3.4.0
|
4 |
Tested up to: 5.6.2
|
5 |
+
Stable tag: 7.0.5
|
6 |
Requires PHP: 5.6
|
7 |
Contributors: satollo,webagile,michael-travan
|
8 |
License: GPLv2 or later
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 7.0.5 =
|
122 |
+
|
123 |
+
* Fix to the hero block button
|
124 |
+
|
125 |
= 7.0.4 =
|
126 |
|
127 |
* Redesigned drag and drop composer
|