Version Description
- Improvements on posts block
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 5.7.1 |
Comparing to | |
See all releases |
Code changes from version 5.7.0 to 5.7.1
- emails/blocks/posts/block.php +68 -22
- emails/blocks/posts/images/blank-240x160.png +0 -0
- emails/blocks/posts/options.php +22 -0
- emails/emails.php +1 -1
- plugin.php +2 -2
- readme.txt +5 -1
emails/blocks/posts/block.php
CHANGED
@@ -15,6 +15,8 @@ $defaults = array(
|
|
15 |
'color' => '#999999',
|
16 |
'font_family' => 'Helvetica, Arial, sans-serif',
|
17 |
'font_size' => '13',
|
|
|
|
|
18 |
'max' => 4,
|
19 |
'read_more' => __('Read more...', 'newsletter'),
|
20 |
'categories' => '',
|
@@ -22,11 +24,20 @@ $defaults = array(
|
|
22 |
'block_background' => '#ffffff',
|
23 |
'layout' => 'one',
|
24 |
'language' => '',
|
25 |
-
'button_color' => '#256F9C'
|
|
|
26 |
);
|
27 |
|
28 |
$options = array_merge($defaults, $options);
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
$filters = array();
|
31 |
$filters['posts_per_page'] = (int) $options['max'];
|
32 |
|
@@ -43,6 +54,8 @@ $posts = Newsletter::instance()->get_posts($filters, $options['language']);
|
|
43 |
$button_color = $options['button_color'];
|
44 |
|
45 |
$alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.png';
|
|
|
|
|
46 |
?>
|
47 |
|
48 |
<?php if ($options['layout'] == 'one') { ?>
|
@@ -50,23 +63,48 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
50 |
.posts-title {
|
51 |
padding: 0 0 10px 0;
|
52 |
font-size: 25px;
|
53 |
-
font-family: <?php echo $
|
54 |
font-weight: normal;
|
55 |
color: #333333;
|
|
|
56 |
}
|
57 |
.posts-post-date {
|
58 |
padding: 0 0 5px 25px;
|
59 |
-
font-size: 13px;
|
60 |
font-family: <?php echo $font_family ?>;
|
61 |
font-weight: normal;
|
62 |
color: #aaaaaa;
|
63 |
}
|
64 |
.posts-post-title {
|
65 |
padding: 0 0 5px 25px;
|
66 |
-
font-size:
|
67 |
-
font-family: <?php echo $
|
68 |
font-weight: normal;
|
69 |
color: #333333;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
</style>
|
72 |
<!-- COMPACT ARTICLE SECTION -->
|
@@ -84,15 +122,17 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
84 |
<td align="center" inline-class="posts-title" class="padding-copy tnpc-row-edit" data-type="title" colspan="2"><?php echo $options['title'] ?></td>
|
85 |
</tr>
|
86 |
|
87 |
-
<?php foreach ($posts
|
88 |
|
89 |
<tr>
|
90 |
-
|
|
|
91 |
<a href="<?php echo tnp_post_permalink($post) ?>" target="_blank">
|
92 |
-
<img src="<?php echo tnp_post_thumbnail_src($post, array(105, 105, true), $alternative) ?>" width="105" height="105" border="0" style="display: block; font-family: Arial; color: #666666; font-size: 14px; width: 105px!important;
|
93 |
</a>
|
94 |
</td>
|
95 |
-
|
|
|
96 |
<!-- ARTICLE -->
|
97 |
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
98 |
<?php if (!empty($options['show_date'])) { ?>
|
@@ -108,12 +148,12 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
108 |
</td>
|
109 |
</tr>
|
110 |
<tr>
|
111 |
-
<td align="left"
|
112 |
<?php echo tnp_post_excerpt($post) ?>
|
113 |
</td>
|
114 |
</tr>
|
115 |
<tr>
|
116 |
-
<td style="padding:0 0
|
117 |
<table border="0" cellspacing="0" cellpadding="0" class="mobile-button-container">
|
118 |
<tr>
|
119 |
<td align="center">
|
@@ -124,7 +164,7 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
124 |
<table border="0" cellspacing="0" cellpadding="0" class="responsive-table">
|
125 |
<tr>
|
126 |
<td align="center">
|
127 |
-
<a href="<?php echo tnp_post_permalink($post) ?>" target="_blank"
|
128 |
</td>
|
129 |
</tr>
|
130 |
</table>
|
@@ -152,7 +192,7 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
152 |
.posts-title {
|
153 |
font-size: 25px;
|
154 |
line-height: 30px;
|
155 |
-
font-family: <?php echo $
|
156 |
color: #333333;
|
157 |
}
|
158 |
.post-subtitle {
|
@@ -164,17 +204,17 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
164 |
}
|
165 |
.posts-post-title {
|
166 |
padding: 15px 0 0 0;
|
167 |
-
font-family: <?php echo $
|
168 |
color: #333333;
|
169 |
-
font-size:
|
170 |
-
line-height:
|
171 |
}
|
172 |
.posts-post-excerpt {
|
173 |
padding: 5px 0 0 0;
|
174 |
font-family: <?php echo $font_family ?>;
|
175 |
color: #666666;
|
176 |
-
font-size:
|
177 |
-
line-height:
|
178 |
}
|
179 |
</style>
|
180 |
<!-- TWO COLUMN SECTION -->
|
@@ -187,9 +227,11 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
187 |
<tr>
|
188 |
<td align="center" inline-class="posts-title" class="padding-copy tnpc-row-edit" data-type="title"><?php echo $options['title'] ?></td>
|
189 |
</tr>
|
|
|
190 |
<tr>
|
191 |
<td align="center" inline-class="posts-subtitle" class="padding-copy tnpc-row-edit" data-type="text">The twelve jurors were all writing very busily on slates.</td>
|
192 |
</tr>
|
|
|
193 |
</table>
|
194 |
</td>
|
195 |
</tr>
|
@@ -206,13 +248,15 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
206 |
<tr>
|
207 |
<td style="padding: 20px 0 40px 0;">
|
208 |
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
|
209 |
<tr>
|
210 |
<td align="center" valign="middle" class="tnpc-row-edit" data-type="image">
|
211 |
<a href="<?php echo tnp_post_permalink($row[0]) ?>" target="_blank">
|
212 |
-
<img src="<?php echo tnp_post_thumbnail_src($row[0], array(240, 160, true)) ?>" width="240" height="160" border="0" class="img-max">
|
213 |
</a>
|
214 |
</td>
|
215 |
</tr>
|
|
|
216 |
<tr>
|
217 |
<td align="center" inline-class="posts-post-title" class="tnpc-row-edit" data-type="title"><?php echo tnp_post_title($row[0]) ?></td>
|
218 |
</tr>
|
@@ -221,7 +265,7 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
221 |
</tr>
|
222 |
<tr>
|
223 |
<td align="center" style="padding: 5px 0 0 0; font-family: Arial, sans-serif; color: #666666; font-size: 14px; line-height: 20px;">
|
224 |
-
<a href="<?php echo tnp_post_permalink($row[0]) ?>" target="_blank" style="font-size: 15px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: <?php echo $button_color?>; border-top: 10px solid <?php echo $button_color?>; border-bottom: 10px solid <?php echo $button_color?>; border-left: 20px solid <?php echo $button_color?>; border-right: 20px solid <?php echo $button_color?>; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button tnpc-row-edit" data-type="link"><?php echo $options['read_more'] ?></a>
|
225 |
</td>
|
226 |
</tr>
|
227 |
</table>
|
@@ -235,13 +279,15 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
235 |
<tr>
|
236 |
<td style="padding: 20px 0 40px 0;">
|
237 |
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
|
238 |
<tr>
|
239 |
<td align="center" valign="middle" class="tnpc-row-edit" data-type="image">
|
240 |
<a href="<?php echo tnp_post_permalink($row[1]) ?>" target="_blank">
|
241 |
-
<img src="<?php echo tnp_post_thumbnail_src($row[1], array(240, 160, true)) ?>" width="240" height="160" border="0" class="img-max">
|
242 |
</a>
|
243 |
</td>
|
244 |
</tr>
|
|
|
245 |
<tr>
|
246 |
<td align="center" inline-class="posts-post-title" class="tnpc-row-edit" data-type="title"><?php echo tnp_post_title($row[1]) ?></td>
|
247 |
</tr>
|
@@ -251,7 +297,7 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
|
|
251 |
<tr>
|
252 |
|
253 |
<td align="center" style="padding: 5px 0 0 0; font-family: Arial, sans-serif; color: #666666; font-size: 14px; line-height: 20px;">
|
254 |
-
<a href="<?php echo tnp_post_permalink($row[1]) ?>" target="_blank" style="font-size: 15px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: <?php echo $button_color?>; border-top: 10px solid <?php echo $button_color?>; border-bottom: 10px solid <?php echo $button_color?>; border-left: 20px solid <?php echo $button_color?>; border-right: 20px solid <?php echo $button_color?>; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button tnpc-row-edit" data-type="link"><?php echo $options['read_more'] ?></a>
|
255 |
</td>
|
256 |
</tr>
|
257 |
</table>
|
15 |
'color' => '#999999',
|
16 |
'font_family' => 'Helvetica, Arial, sans-serif',
|
17 |
'font_size' => '13',
|
18 |
+
'title_font_family' => 'Helvetica, Arial, sans-serif',
|
19 |
+
'title_font_size' => '25',
|
20 |
'max' => 4,
|
21 |
'read_more' => __('Read more...', 'newsletter'),
|
22 |
'categories' => '',
|
24 |
'block_background' => '#ffffff',
|
25 |
'layout' => 'one',
|
26 |
'language' => '',
|
27 |
+
'button_color' => '#256F9C',
|
28 |
+
'show_image'=> 1
|
29 |
);
|
30 |
|
31 |
$options = array_merge($defaults, $options);
|
32 |
|
33 |
+
$font_family = $options['font_family'];
|
34 |
+
$font_size = $options['font_size'];
|
35 |
+
|
36 |
+
$title_font_family = $options['title_font_family'];
|
37 |
+
$title_font_size = $options['title_font_size'];
|
38 |
+
|
39 |
+
$show_image = !empty($options['show_image']);
|
40 |
+
|
41 |
$filters = array();
|
42 |
$filters['posts_per_page'] = (int) $options['max'];
|
43 |
|
54 |
$button_color = $options['button_color'];
|
55 |
|
56 |
$alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.png';
|
57 |
+
$alternative_2 = plugins_url('newsletter') . '/emails/blocks/posts/images/blank-240x160.png';
|
58 |
+
|
59 |
?>
|
60 |
|
61 |
<?php if ($options['layout'] == 'one') { ?>
|
63 |
.posts-title {
|
64 |
padding: 0 0 10px 0;
|
65 |
font-size: 25px;
|
66 |
+
font-family: <?php echo $title_font_family ?>;
|
67 |
font-weight: normal;
|
68 |
color: #333333;
|
69 |
+
line-height: 1.5em;
|
70 |
}
|
71 |
.posts-post-date {
|
72 |
padding: 0 0 5px 25px;
|
73 |
+
font-size: 13px;
|
74 |
font-family: <?php echo $font_family ?>;
|
75 |
font-weight: normal;
|
76 |
color: #aaaaaa;
|
77 |
}
|
78 |
.posts-post-title {
|
79 |
padding: 0 0 5px 25px;
|
80 |
+
font-size: <?php echo $title_font_size ?>px;
|
81 |
+
font-family: <?php echo $title_font_family ?>;
|
82 |
font-weight: normal;
|
83 |
color: #333333;
|
84 |
+
line-height: 1.5em;
|
85 |
+
}
|
86 |
+
.posts-post-excerpt {
|
87 |
+
padding: 10px 0 15px 25px;
|
88 |
+
font-family: <?php echo $font_family ?>;
|
89 |
+
color: #666666;
|
90 |
+
font-size: <?php echo $font_size ?>px;
|
91 |
+
line-height: 1.5em;
|
92 |
+
}
|
93 |
+
.posts-post-button {
|
94 |
+
font-size: 15px;
|
95 |
+
font-family: <?php echo $font_family ?>;
|
96 |
+
font-weight: normal;
|
97 |
+
color: #ffffff;
|
98 |
+
text-decoration: none;
|
99 |
+
background-color: <?php echo $button_color ?>;
|
100 |
+
border-top: 10px solid <?php echo $button_color ?>;
|
101 |
+
border-bottom: 10px solid <?php echo $button_color ?>;
|
102 |
+
border-left: 20px solid <?php echo $button_color ?>;
|
103 |
+
border-right: 20px solid <?php echo $button_color ?>;
|
104 |
+
border-radius: 3px;
|
105 |
+
-webkit-border-radius: 3px;
|
106 |
+
-moz-border-radius: 3px;
|
107 |
+
display: inline-block;
|
108 |
}
|
109 |
</style>
|
110 |
<!-- COMPACT ARTICLE SECTION -->
|
122 |
<td align="center" inline-class="posts-title" class="padding-copy tnpc-row-edit" data-type="title" colspan="2"><?php echo $options['title'] ?></td>
|
123 |
</tr>
|
124 |
|
125 |
+
<?php foreach ($posts as $post) { ?>
|
126 |
|
127 |
<tr>
|
128 |
+
<?php if ($show_image) { ?>
|
129 |
+
<td valign="top" style="padding: 30px 0 0 0; width: 105px!important" class="mobile-hide">
|
130 |
<a href="<?php echo tnp_post_permalink($post) ?>" target="_blank">
|
131 |
+
<img src="<?php echo tnp_post_thumbnail_src($post, array(105, 105, true), $alternative) ?>" width="105" height="105" border="0" style="display: block; font-family: Arial; color: #666666; font-size: 14px; min-width: 105px!important; width: 105px!important;">
|
132 |
</a>
|
133 |
</td>
|
134 |
+
<?php } ?>
|
135 |
+
<td style="padding: 30px 0 0 0;" class="no-padding">
|
136 |
<!-- ARTICLE -->
|
137 |
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
138 |
<?php if (!empty($options['show_date'])) { ?>
|
148 |
</td>
|
149 |
</tr>
|
150 |
<tr>
|
151 |
+
<td align="left" inline-class="posts-post-excerpt" class="padding-copy tnpc-row-edit" data-type="text">
|
152 |
<?php echo tnp_post_excerpt($post) ?>
|
153 |
</td>
|
154 |
</tr>
|
155 |
<tr>
|
156 |
+
<td style="padding:0 0 35px 25px;" align="left" class="padding">
|
157 |
<table border="0" cellspacing="0" cellpadding="0" class="mobile-button-container">
|
158 |
<tr>
|
159 |
<td align="center">
|
164 |
<table border="0" cellspacing="0" cellpadding="0" class="responsive-table">
|
165 |
<tr>
|
166 |
<td align="center">
|
167 |
+
<a href="<?php echo tnp_post_permalink($post) ?>" target="_blank" inline-class="posts-post-button" class="mobile-button tnpc-row-edit" data-type="link"><?php echo $options['read_more'] ?></a>
|
168 |
</td>
|
169 |
</tr>
|
170 |
</table>
|
192 |
.posts-title {
|
193 |
font-size: 25px;
|
194 |
line-height: 30px;
|
195 |
+
font-family: <?php echo $title_font_family ?>;
|
196 |
color: #333333;
|
197 |
}
|
198 |
.post-subtitle {
|
204 |
}
|
205 |
.posts-post-title {
|
206 |
padding: 15px 0 0 0;
|
207 |
+
font-family: <?php echo $title_font_family ?>;
|
208 |
color: #333333;
|
209 |
+
font-size: <?php echo $title_font_size ?>px;
|
210 |
+
line-height: 1.3em;
|
211 |
}
|
212 |
.posts-post-excerpt {
|
213 |
padding: 5px 0 0 0;
|
214 |
font-family: <?php echo $font_family ?>;
|
215 |
color: #666666;
|
216 |
+
font-size: <?php echo $font_size ?>px;
|
217 |
+
line-height: 1.4em;
|
218 |
}
|
219 |
</style>
|
220 |
<!-- TWO COLUMN SECTION -->
|
227 |
<tr>
|
228 |
<td align="center" inline-class="posts-title" class="padding-copy tnpc-row-edit" data-type="title"><?php echo $options['title'] ?></td>
|
229 |
</tr>
|
230 |
+
<!--
|
231 |
<tr>
|
232 |
<td align="center" inline-class="posts-subtitle" class="padding-copy tnpc-row-edit" data-type="text">The twelve jurors were all writing very busily on slates.</td>
|
233 |
</tr>
|
234 |
+
-->
|
235 |
</table>
|
236 |
</td>
|
237 |
</tr>
|
248 |
<tr>
|
249 |
<td style="padding: 20px 0 40px 0;">
|
250 |
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
251 |
+
<?php if ($show_image) { ?>
|
252 |
<tr>
|
253 |
<td align="center" valign="middle" class="tnpc-row-edit" data-type="image">
|
254 |
<a href="<?php echo tnp_post_permalink($row[0]) ?>" target="_blank">
|
255 |
+
<img src="<?php echo tnp_post_thumbnail_src($row[0], array(240, 160, true), $alternative_2) ?>" width="240" height="160" border="0" class="img-max">
|
256 |
</a>
|
257 |
</td>
|
258 |
</tr>
|
259 |
+
<?php } ?>
|
260 |
<tr>
|
261 |
<td align="center" inline-class="posts-post-title" class="tnpc-row-edit" data-type="title"><?php echo tnp_post_title($row[0]) ?></td>
|
262 |
</tr>
|
265 |
</tr>
|
266 |
<tr>
|
267 |
<td align="center" style="padding: 5px 0 0 0; font-family: Arial, sans-serif; color: #666666; font-size: 14px; line-height: 20px;">
|
268 |
+
<a href="<?php echo tnp_post_permalink($row[0]) ?>" target="_blank" style="font-size: 15px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: <?php echo $button_color ?>; border-top: 10px solid <?php echo $button_color ?>; border-bottom: 10px solid <?php echo $button_color ?>; border-left: 20px solid <?php echo $button_color ?>; border-right: 20px solid <?php echo $button_color ?>; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button tnpc-row-edit" data-type="link"><?php echo $options['read_more'] ?></a>
|
269 |
</td>
|
270 |
</tr>
|
271 |
</table>
|
279 |
<tr>
|
280 |
<td style="padding: 20px 0 40px 0;">
|
281 |
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
282 |
+
<?php if ($show_image) { ?>
|
283 |
<tr>
|
284 |
<td align="center" valign="middle" class="tnpc-row-edit" data-type="image">
|
285 |
<a href="<?php echo tnp_post_permalink($row[1]) ?>" target="_blank">
|
286 |
+
<img src="<?php echo tnp_post_thumbnail_src($row[1], array(240, 160, true), $alternative_2) ?>" width="240" height="160" border="0" class="img-max">
|
287 |
</a>
|
288 |
</td>
|
289 |
</tr>
|
290 |
+
<?php } ?>
|
291 |
<tr>
|
292 |
<td align="center" inline-class="posts-post-title" class="tnpc-row-edit" data-type="title"><?php echo tnp_post_title($row[1]) ?></td>
|
293 |
</tr>
|
297 |
<tr>
|
298 |
|
299 |
<td align="center" style="padding: 5px 0 0 0; font-family: Arial, sans-serif; color: #666666; font-size: 14px; line-height: 20px;">
|
300 |
+
<a href="<?php echo tnp_post_permalink($row[1]) ?>" target="_blank" style="font-size: 15px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: <?php echo $button_color ?>; border-top: 10px solid <?php echo $button_color ?>; border-bottom: 10px solid <?php echo $button_color ?>; border-left: 20px solid <?php echo $button_color ?>; border-right: 20px solid <?php echo $button_color ?>; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button tnpc-row-edit" data-type="link"><?php echo $options['read_more'] ?></a>
|
301 |
</td>
|
302 |
</tr>
|
303 |
</table>
|
emails/blocks/posts/images/blank-240x160.png
ADDED
Binary file
|
emails/blocks/posts/options.php
CHANGED
@@ -52,12 +52,34 @@
|
|
52 |
<?php $controls->select('layout', array('one' => 'One column', 'two' => 'Two columns')) ?>
|
53 |
</td>
|
54 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
<tr>
|
56 |
<th><?php _e('Show date', 'newsletter') ?></th>
|
57 |
<td>
|
58 |
<?php $controls->yesno('show_date') ?>
|
59 |
</td>
|
60 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
<tr>
|
62 |
<th><?php _e('Block background', 'newsletter') ?></th>
|
63 |
<td>
|
52 |
<?php $controls->select('layout', array('one' => 'One column', 'two' => 'Two columns')) ?>
|
53 |
</td>
|
54 |
</tr>
|
55 |
+
<tr>
|
56 |
+
<th><?php _e('Show image', 'newsletter') ?></th>
|
57 |
+
<td>
|
58 |
+
<?php $controls->yesno('show_image') ?>
|
59 |
+
</td>
|
60 |
+
</tr>
|
61 |
<tr>
|
62 |
<th><?php _e('Show date', 'newsletter') ?></th>
|
63 |
<td>
|
64 |
<?php $controls->yesno('show_date') ?>
|
65 |
</td>
|
66 |
</tr>
|
67 |
+
|
68 |
+
</table>
|
69 |
+
|
70 |
+
<table class="form-table">
|
71 |
+
<tr>
|
72 |
+
<th><?php _e('Text font', 'newsletter') ?></th>
|
73 |
+
<td>
|
74 |
+
<?php $controls->css_font_family('font_family'); ?> <?php $controls->css_font_size('font_size'); ?>
|
75 |
+
</td>
|
76 |
+
</tr>
|
77 |
+
<tr>
|
78 |
+
<th><?php _e('Title font', 'newsletter') ?></th>
|
79 |
+
<td>
|
80 |
+
<?php $controls->css_font_family('title_font_family'); ?> <?php $controls->css_font_size('title_font_size'); ?>
|
81 |
+
</td>
|
82 |
+
</tr>
|
83 |
<tr>
|
84 |
<th><?php _e('Block background', 'newsletter') ?></th>
|
85 |
<td>
|
emails/emails.php
CHANGED
@@ -248,7 +248,7 @@ class NewsletterEmails extends NewsletterModule {
|
|
248 |
header('X-Robots-Tag: noindex,nofollow,noarchive');
|
249 |
header('Cache-Control: no-cache,no-store,private');
|
250 |
|
251 |
-
echo $newsletter->replace($email->message, $user, $email
|
252 |
|
253 |
die();
|
254 |
break;
|
248 |
header('X-Robots-Tag: noindex,nofollow,noarchive');
|
249 |
header('Cache-Control: no-cache,no-store,private');
|
250 |
|
251 |
+
echo $newsletter->replace($email->message, $user, $email);
|
252 |
|
253 |
die();
|
254 |
break;
|
plugin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
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: 5.7.
|
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.
|
@@ -14,7 +14,7 @@
|
|
14 |
*/
|
15 |
|
16 |
// Used as dummy parameter on css and js links
|
17 |
-
define('NEWSLETTER_VERSION', '5.7.
|
18 |
|
19 |
global $newsletter, $wpdb;
|
20 |
|
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: 5.7.1
|
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.
|
14 |
*/
|
15 |
|
16 |
// Used as dummy parameter on css and js links
|
17 |
+
define('NEWSLETTER_VERSION', '5.7.1');
|
18 |
|
19 |
global $newsletter, $wpdb;
|
20 |
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated,mailing list
|
3 |
Requires at least: 3.4.0
|
4 |
Tested up to: 4.9.8
|
5 |
-
Stable tag: 5.7.
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
@@ -108,6 +108,10 @@ Thank you, The Newsletter Team
|
|
108 |
|
109 |
== Changelog ==
|
110 |
|
|
|
|
|
|
|
|
|
111 |
= 5.7.0 =
|
112 |
|
113 |
* Cancellation error message fix
|
2 |
Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated,mailing list
|
3 |
Requires at least: 3.4.0
|
4 |
Tested up to: 4.9.8
|
5 |
+
Stable tag: 5.7.1
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
108 |
|
109 |
== Changelog ==
|
110 |
|
111 |
+
= 5.7.1 =
|
112 |
+
|
113 |
+
* Improvements on posts block
|
114 |
+
|
115 |
= 5.7.0 =
|
116 |
|
117 |
* Cancellation error message fix
|