Newsletter - Version 4.8.2

Version Description

  • Changed few labels
  • CSS fix on admin panels
Download this release

Release Info

Developer satollo
Plugin Icon 128x128 Newsletter
Version 4.8.2
Comparing to
See all releases

Code changes from version 4.8.1 to 4.8.2

admin.css CHANGED
@@ -240,6 +240,20 @@
240
  #tnp-body .button-secondary:hover {
241
  color: #fff;
242
  background-color: #3498db;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
  }
244
 
245
  /* Form tables correction */
@@ -257,8 +271,7 @@
257
  #tnp-body td .button:visited,
258
  #tnp-body td .button:hover,
259
  #tnp-body td .button:active,
260
- #tnp-body td .button:focus,
261
- #tnp-body td .button-primary {
262
  color: #444;
263
  }
264
 
240
  #tnp-body .button-secondary:hover {
241
  color: #fff;
242
  background-color: #3498db;
243
+ text-shadow: none;
244
+ }
245
+
246
+ /* Standard button */
247
+ #tnp-body .tnp-button {
248
+ color: #fff;
249
+ background-color: #3498db;
250
+ text-shadow: none;
251
+ }
252
+
253
+ /* White button variant */
254
+ #tnp-body .button-primary.tnp-button-white, #tnp-body .tnp-button.tnp-button-white {
255
+ color: #444!important;
256
+ background-color: #fff!important;
257
  }
258
 
259
  /* Form tables correction */
271
  #tnp-body td .button:visited,
272
  #tnp-body td .button:hover,
273
  #tnp-body td .button:active,
274
+ #tnp-body td .button:focus {
 
275
  color: #444;
276
  }
277
 
emails/edit.php CHANGED
@@ -382,7 +382,7 @@ if ($email['editor'] == 0) {
382
 
383
 
384
  <?php if ($email['editor'] == 0) { ?>
385
- <input type="button" class="button" value="Add media" onclick="tnp_media()">
386
 
387
  <a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-tags" target="_blank"><?php _e('Available tags', 'newsletter') ?></a>
388
  <br><br>
@@ -393,7 +393,7 @@ if ($email['editor'] == 0) {
393
 
394
  <input class="button-primary" type="button" onclick="newsletter_textarea_preview('options-message'); return false;" value="Switch editor/preview">
395
 
396
- <input type="button" class="button" value="Add media" onclick="tnp_media()">
397
 
398
  <a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-tags" target="_blank"><?php _e('Available tags', 'newsletter') ?></a>
399
 
382
 
383
 
384
  <?php if ($email['editor'] == 0) { ?>
385
+ <input type="button" class="button-primary" value="Add media" onclick="tnp_media()">
386
 
387
  <a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-tags" target="_blank"><?php _e('Available tags', 'newsletter') ?></a>
388
  <br><br>
393
 
394
  <input class="button-primary" type="button" onclick="newsletter_textarea_preview('options-message'); return false;" value="Switch editor/preview">
395
 
396
+ <input type="button" class="button-primary" value="Add media" onclick="tnp_media()">
397
 
398
  <a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-tags" target="_blank"><?php _e('Available tags', 'newsletter') ?></a>
399
 
emails/index.php CHANGED
@@ -80,7 +80,7 @@ $emails = Newsletter::instance()->get_emails('message');
80
  <?php } ?>
81
 
82
  <p>
83
- <a href="<?php echo $module->get_admin_page_url('theme'); ?>" class="button"><?php _e('New newsletter', 'newsletter') ?></a>
84
  <?php $controls->button_confirm('delete_selected', __('Delete selected newsletters', 'newsletter'), __('Proceed?', 'newsletter'));
85
  ?>
86
  <?php $controls->button('send', __('Trigger the delivery engine', 'newsletter')); ?>
@@ -133,9 +133,9 @@ $emails = Newsletter::instance()->get_emails('message');
133
  <td><?php if ($email->status == 'sent' || $email->status == 'sending') echo $email->sent . ' ' . __('of', 'newsletter') . ' ' . $email->total; ?></td>
134
  <td><?php if ($email->status == 'sent' || $email->status == 'sending') echo $module->format_date($email->send_on); ?></td>
135
  <td><?php echo $email->track == 1 ? __('Yes', 'newsletter') : __('Yes', 'newsletter'); ?></td>
136
- <td><a class="button" href="<?php echo $module->get_admin_page_url(is_array($email_options) && array_key_exists('composer', $email_options) && $email_options['composer'] ? 'composer' : 'edit'); ?>&amp;id=<?php echo $email->id; ?>"><i class="fa fa-pencil"></i> <?php _e('Edit', 'newsletter') ?></a></td>
137
  <td>
138
- <a class="button" href="<?php echo NewsletterStatistics::instance()->get_statistics_url($email->id); ?>"><i class="fa fa-bar-chart"></i> <?php _e('Statistics', 'newsletter') ?></a>
139
  </td>
140
  <td><?php $controls->button_copy($email->id); ?></td>
141
  <td><?php $controls->button_delete($email->id); ?></td>
80
  <?php } ?>
81
 
82
  <p>
83
+ <a href="<?php echo $module->get_admin_page_url('theme'); ?>" class="button-primary"><?php _e('New newsletter', 'newsletter') ?></a>
84
  <?php $controls->button_confirm('delete_selected', __('Delete selected newsletters', 'newsletter'), __('Proceed?', 'newsletter'));
85
  ?>
86
  <?php $controls->button('send', __('Trigger the delivery engine', 'newsletter')); ?>
133
  <td><?php if ($email->status == 'sent' || $email->status == 'sending') echo $email->sent . ' ' . __('of', 'newsletter') . ' ' . $email->total; ?></td>
134
  <td><?php if ($email->status == 'sent' || $email->status == 'sending') echo $module->format_date($email->send_on); ?></td>
135
  <td><?php echo $email->track == 1 ? __('Yes', 'newsletter') : __('Yes', 'newsletter'); ?></td>
136
+ <td><a class="button-primary" href="<?php echo $module->get_admin_page_url(is_array($email_options) && array_key_exists('composer', $email_options) && $email_options['composer'] ? 'composer' : 'edit'); ?>&amp;id=<?php echo $email->id; ?>"><i class="fa fa-pencil"></i> <?php _e('Edit', 'newsletter') ?></a></td>
137
  <td>
138
+ <a class="button-primary" href="<?php echo NewsletterStatistics::instance()->get_statistics_url($email->id); ?>"><i class="fa fa-bar-chart"></i> <?php _e('Statistics', 'newsletter') ?></a>
139
  </td>
140
  <td><?php $controls->button_copy($email->id); ?></td>
141
  <td><?php $controls->button_delete($email->id); ?></td>
includes/controls.php CHANGED
@@ -401,7 +401,7 @@ class NewsletterControls {
401
  function button_back($url) {
402
  echo '<a href="';
403
  echo esc_attr($url);
404
- echo '" class="button"><i class="fa fa-chevron-left"></i>&nbsp;';
405
  _e('Back', 'newsletter');
406
  echo '</a>';
407
  }
@@ -481,7 +481,7 @@ class NewsletterControls {
481
  $value = $this->get_value($name);
482
  //do_action('newsletter_controls_textarea_preview', $name);
483
  if ($switch_button) {
484
- echo '<input class="button" type="button" onclick="newsletter_textarea_preview(\'options-' . esc_attr($name) . '\', \'\', \'\')" value="Switch editor/preview">';
485
  echo '<br><br>';
486
  }
487
  echo '<div style="box-sizing: border-box; position: relative; margin: 0; padding: 0; width:' . esc_attr($width) . '; height:' . esc_attr($height) . '">';
@@ -970,7 +970,7 @@ class NewsletterControls {
970
  $output = '<label class="select" for="tnp_' . esc_attr($name) . '">' . esc_html($label) . ':</label>';
971
  }
972
  $output .= '<input id="tnp_' . esc_attr($name) . '" type="text" size="36" name="' . esc_attr($option) . '[' . esc_attr($name) . ']" value="' . esc_attr($val) . '" />';
973
- $output .= '<input id="tnp_' . esc_attr($name) . '_button" class="button" type="button" value="Select Image" />';
974
  $output .= '<br class="clear"/>';
975
 
976
  echo $output;
401
  function button_back($url) {
402
  echo '<a href="';
403
  echo esc_attr($url);
404
+ echo '" class="button-primary"><i class="fa fa-chevron-left"></i>&nbsp;';
405
  _e('Back', 'newsletter');
406
  echo '</a>';
407
  }
481
  $value = $this->get_value($name);
482
  //do_action('newsletter_controls_textarea_preview', $name);
483
  if ($switch_button) {
484
+ echo '<input class="button-primary" type="button" onclick="newsletter_textarea_preview(\'options-' . esc_attr($name) . '\', \'\', \'\')" value="Switch editor/preview">';
485
  echo '<br><br>';
486
  }
487
  echo '<div style="box-sizing: border-box; position: relative; margin: 0; padding: 0; width:' . esc_attr($width) . '; height:' . esc_attr($height) . '">';
970
  $output = '<label class="select" for="tnp_' . esc_attr($name) . '">' . esc_html($label) . ':</label>';
971
  }
972
  $output .= '<input id="tnp_' . esc_attr($name) . '" type="text" size="36" name="' . esc_attr($option) . '[' . esc_attr($name) . ']" value="' . esc_attr($val) . '" />';
973
+ $output .= '<input id="tnp_' . esc_attr($name) . '_button" class="button-primary" type="button" value="Select Image" />';
974
  $output .= '<br class="clear"/>';
975
 
976
  echo $output;
main/index.php CHANGED
@@ -285,8 +285,8 @@ $labels = array_reverse($labels);
285
  ?>
286
  </td>
287
  <td style="white-space:nowrap">
288
- <a class="button" title="<?php _e('Edit', 'newsletter') ?>" href="<?php echo $emails_module->get_admin_page_url(is_array($email_options) && array_key_exists('composer', $email_options) && $email_options['composer'] ? 'composer' : 'edit'); ?>&amp;id=<?php echo $email->id; ?>"><i class="fa fa-pencil"></i></a>
289
- <a class="button" title="<?php _e('Statistics', 'newsletter') ?>" href="<?php echo NewsletterStatistics::instance()->get_statistics_url($email->id); ?>"><i class="fa fa-bar-chart"></i></a>
290
  </td>
291
  </tr>
292
  <?php } ?>
@@ -350,8 +350,8 @@ $labels = array_reverse($labels);
350
  }
351
  ?></td>
352
  <td style="white-space:nowrap">
353
- <a class="button" title="<?php _e('Edit', 'newsletter') ?>" href="<?php echo $users_module->get_admin_page_url('edit'); ?>&amp;id=<?php echo $s->id; ?>"><i class="fa fa-pencil"></i></a>
354
- <a title="<?php _e('Profile', 'newsletter') ?>" href="<?php echo home_url('/') ?>?na=p&nk=<?php echo $s->id . '-' . $s->token; ?>" class="button" target="_blank"><i class="fa fa-user"></i></a>
355
  </td>
356
  </tr>
357
  <?php } ?>
285
  ?>
286
  </td>
287
  <td style="white-space:nowrap">
288
+ <a class="button-primary tnp-button-white" title="<?php _e('Edit', 'newsletter') ?>" href="<?php echo $emails_module->get_admin_page_url(is_array($email_options) && array_key_exists('composer', $email_options) && $email_options['composer'] ? 'composer' : 'edit'); ?>&amp;id=<?php echo $email->id; ?>"><i class="fa fa-pencil"></i></a>
289
+ <a class="button-primary tnp-button-white" title="<?php _e('Statistics', 'newsletter') ?>" href="<?php echo NewsletterStatistics::instance()->get_statistics_url($email->id); ?>"><i class="fa fa-bar-chart"></i></a>
290
  </td>
291
  </tr>
292
  <?php } ?>
350
  }
351
  ?></td>
352
  <td style="white-space:nowrap">
353
+ <a class="button-primary tnp-button-white" title="<?php _e('Edit', 'newsletter') ?>" href="<?php echo $users_module->get_admin_page_url('edit'); ?>&amp;id=<?php echo $s->id; ?>"><i class="fa fa-pencil"></i></a>
354
+ <a title="<?php _e('Profile', 'newsletter') ?>" href="<?php echo home_url('/') ?>?na=p&nk=<?php echo $s->id . '-' . $s->token; ?>" class="button-primary tnp-button-white" target="_blank"><i class="fa fa-user"></i></a>
355
  </td>
356
  </tr>
357
  <?php } ?>
plugin.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Newsletter
5
  Plugin URI: http://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="http://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
7
- Version: 4.8.1
8
  Author: Stefano Lissa & The Newsletter Team
9
  Author URI: http://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', '4.8.1');
18
 
19
  global $wpdb, $newsletter;
20
 
4
  Plugin Name: Newsletter
5
  Plugin URI: http://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="http://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
7
+ Version: 4.8.2
8
  Author: Stefano Lissa & The Newsletter Team
9
  Author URI: http://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', '4.8.2');
18
 
19
  global $wpdb, $newsletter;
20
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated
3
  Requires at least: 3.4.0
4
  Tested up to: 4.7.2
5
- Stable tag: 4.8.1
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -77,6 +77,11 @@ Thank you, The Newsletter Team
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
80
  = 4.8.1 =
81
 
82
  * Lists selection on widget
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated
3
  Requires at least: 3.4.0
4
  Tested up to: 4.7.2
5
+ Stable tag: 4.8.2
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
77
 
78
  == Changelog ==
79
 
80
+ = 4.8.2 =
81
+
82
+ * Changed few labels
83
+ * CSS fix on admin panels
84
+
85
  = 4.8.1 =
86
 
87
  * Lists selection on widget
statistics/index.php CHANGED
@@ -284,7 +284,7 @@ function percentValue($value, $total) {
284
  <td><?php echo $module->get_email_type_label($email); ?></td>
285
  <td><?php echo $module->get_email_status_label($email); ?></td>
286
  <td>
287
- <a href="<?php echo NewsletterStatistics::instance()->get_statistics_url($email->id); ?>" class="button">Statistics</a>
288
  </td>
289
  </tr>
290
  <?php } ?>
@@ -300,7 +300,7 @@ function percentValue($value, $total) {
300
  <div class="col-md-6">
301
  <div class="tnp-statistics-info-box">
302
  <p class="tnp-legend">Check Statistics global<br>configurations.</p>
303
- <a class="button" href="admin.php?page=newsletter_statistics_settings"><?php _e('Settings') ?></a>
304
  </div>
305
  </div>
306
  <div class="col-md-6">
284
  <td><?php echo $module->get_email_type_label($email); ?></td>
285
  <td><?php echo $module->get_email_status_label($email); ?></td>
286
  <td>
287
+ <a href="<?php echo NewsletterStatistics::instance()->get_statistics_url($email->id); ?>" class="button-primary">Statistics</a>
288
  </td>
289
  </tr>
290
  <?php } ?>
300
  <div class="col-md-6">
301
  <div class="tnp-statistics-info-box">
302
  <p class="tnp-legend">Check Statistics global<br>configurations.</p>
303
+ <a class="button-primary" href="admin.php?page=newsletter_statistics_settings"><?php _e('Settings') ?></a>
304
  </div>
305
  </div>
306
  <div class="col-md-6">
statistics/newsletters.php CHANGED
@@ -77,7 +77,7 @@ function percentValue($value, $total) {
77
  <td><?php if ($email->status == 'sent' || $email->status == 'sending') echo $module->format_date($email->send_on); ?></td>
78
  <td><?php echo $email->track == 1 ? 'Yes' : 'No'; ?></td>
79
  <td>
80
- <a class="button" href="<?php echo NewsletterStatistics::instance()->get_statistics_url($email->id); ?>">statistics</a>
81
  </td>
82
  </tr>
83
  <?php } ?>
77
  <td><?php if ($email->status == 'sent' || $email->status == 'sending') echo $module->format_date($email->send_on); ?></td>
78
  <td><?php echo $email->track == 1 ? 'Yes' : 'No'; ?></td>
79
  <td>
80
+ <a class="button-primary" href="<?php echo NewsletterStatistics::instance()->get_statistics_url($email->id); ?>">statistics</a>
81
  </td>
82
  </tr>
83
  <?php } ?>
statistics/view-retarget.php CHANGED
@@ -18,7 +18,7 @@ $email = $module->get_email($email_id);
18
 
19
  <div id="tnp-body" style="min-width: 500px">
20
 
21
- <p><a href="admin.php?page=newsletter_statistics_view&id=<?php echo $email->id ?>" class="button">Back to the dashboard</a></p>
22
 
23
  <a href="http://www.thenewsletterplugin.com/premium?utm_source=plugin&utm_medium=link&utm_content=retarget&utm_campaign=newsletter-reports" target="_blank">
24
  <img style="width: 100%" src="<?php echo plugins_url('newsletter') ?>/statistics/images/retarget.png">
18
 
19
  <div id="tnp-body" style="min-width: 500px">
20
 
21
+ <p><a href="admin.php?page=newsletter_statistics_view&id=<?php echo $email->id ?>" class="button-primary">Back to the dashboard</a></p>
22
 
23
  <a href="http://www.thenewsletterplugin.com/premium?utm_source=plugin&utm_medium=link&utm_content=retarget&utm_campaign=newsletter-reports" target="_blank">
24
  <img style="width: 100%" src="<?php echo plugins_url('newsletter') ?>/statistics/images/retarget.png">
statistics/view-urls.php CHANGED
@@ -18,7 +18,7 @@ $email = $module->get_email($email_id);
18
 
19
  <div id="tnp-body" style="min-width: 500px">
20
 
21
- <p><a href="admin.php?page=newsletter_statistics_view&id=<?php echo $email->id ?>" class="button">Back to the dashboard</a></p>
22
 
23
  <p>Clicked links detail is available with <a href="http://www.thenewsletterplugin.com/plugins/newsletter/reports-module" target="_blank">Report Extension</a>.</p>
24
 
18
 
19
  <div id="tnp-body" style="min-width: 500px">
20
 
21
+ <p><a href="admin.php?page=newsletter_statistics_view&id=<?php echo $email->id ?>" class="button-primary">Back to the dashboard</a></p>
22
 
23
  <p>Clicked links detail is available with <a href="http://www.thenewsletterplugin.com/plugins/newsletter/reports-module" target="_blank">Report Extension</a>.</p>
24
 
statistics/view-users.php CHANGED
@@ -17,7 +17,7 @@ $email = $module->get_email($email_id);
17
 
18
  <div id="tnp-body" style="min-width: 500px">
19
 
20
- <p><a href="admin.php?page=newsletter_statistics_view&id=<?php echo $email->id ?>" class="button">Back to the dashboard</a></p>
21
 
22
  <a href="http://www.thenewsletterplugin.com/premium?utm_source=plugin&utm_medium=link&utm_content=audience&utm_campaign=newsletter-reports" target="_blank">
23
  <img src="<?php echo plugins_url('newsletter') ?>/statistics/images/users.png">
17
 
18
  <div id="tnp-body" style="min-width: 500px">
19
 
20
+ <p><a href="admin.php?page=newsletter_statistics_view&id=<?php echo $email->id ?>" class="button-primary">Back to the dashboard</a></p>
21
 
22
  <a href="http://www.thenewsletterplugin.com/premium?utm_source=plugin&utm_medium=link&utm_content=audience&utm_campaign=newsletter-reports" target="_blank">
23
  <img src="<?php echo plugins_url('newsletter') ?>/statistics/images/users.png">
subscription/options.php CHANGED
@@ -266,11 +266,11 @@ if (empty($controls->data['page'])) {
266
  </td>
267
  </tr>
268
  <tr valign="top">
269
- <th>Forced preferences</th>
270
  <td>
271
  <?php $controls->preferences(); ?>
272
  <p class="description">
273
- Add to new subscribers these preferences by default.
274
  </p>
275
  </td>
276
  </tr>
266
  </td>
267
  </tr>
268
  <tr valign="top">
269
+ <th><?php _e('Forced lists', 'newsletter')?></th>
270
  <td>
271
  <?php $controls->preferences(); ?>
272
  <p class="description">
273
+ Add to new subscribers these lists by default.
274
  </p>
275
  </td>
276
  </tr>
users/index.php CHANGED
@@ -242,7 +242,7 @@ $controls->data['search_page']++;
242
 
243
  <?php $controls->button_confirm('resend', __('Resend confirmation', 'newsletter'), __('Proceed?', 'newsletter'), $s->id); ?>
244
  <?php $controls->button_confirm('resend_welcome', __('Resend welcome', 'newsletter'), __('Proceed?', 'newsletter'), $s->id); ?>
245
- <a href="<?php echo home_url('/') ?>?na=p&nk=<?php echo $s->id . '-' . $s->token; ?>" class="button" target="_blank"><?php _e('Profile page', 'newsletter') ?></a>
246
  </td>
247
 
248
 
242
 
243
  <?php $controls->button_confirm('resend', __('Resend confirmation', 'newsletter'), __('Proceed?', 'newsletter'), $s->id); ?>
244
  <?php $controls->button_confirm('resend_welcome', __('Resend welcome', 'newsletter'), __('Proceed?', 'newsletter'), $s->id); ?>
245
+ <a href="<?php echo home_url('/') ?>?na=p&nk=<?php echo $s->id . '-' . $s->token; ?>" class="button-primary" target="_blank"><?php _e('Profile page', 'newsletter') ?></a>
246
  </td>
247
 
248