Subscribe2 - Version 7.2

Version Description

Download this release

Release Info

Developer MattyRob
Plugin Icon 128x128 Subscribe2
Version 7.2
Comparing to
See all releases

Code changes from version 7.1 to 7.2

ReadMe.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_butt
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.1
6
  Tested up to: 3.3.1
7
- Stable tag: 7.1
8
 
9
  Sends a list of subscribers an email notification when new posts are published to your blog
10
 
@@ -58,9 +58,9 @@ You need to pay for the [Subscribe2 HTML version](http://wpplugins.com/plugin/46
58
  = Where can I get help? =
59
  So, you've downloaded the plugin an it isn't doing what you expect. First you should read the included documentation. There is a ReadMe.txt file and a PDF startup guide installed with the plugin.
60
 
61
- Next you could search in the [Subscribe2 Forum](http://getsatisfaction.com/subscribe2/), the [WordPress forums](http://wordpress.org/support/) or the [Subscribe2 blog FAQs](http://subscribe2.wordpress.com/category/faq/).
62
 
63
- No joy there? Well, if you can't find an answer to your question you can get [paid support](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904) by donating at least 20 UK pounds to the plugin author.
64
 
65
  = Where can I get more information about the plugin features? =
66
 
@@ -299,6 +299,17 @@ Secondly, make sure that the token ([subscribe2] or <!--subscribe2-->) is correc
299
 
300
  == Changelog ==
301
 
 
 
 
 
 
 
 
 
 
 
 
302
  = Version 7.1 by Matthew Robinson =
303
 
304
  * Fix for Opt-out by Author for Registered Users that resulted in posts being sent even though a user had opted out
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.1
6
  Tested up to: 3.3.1
7
+ Stable tag: 7.2
8
 
9
  Sends a list of subscribers an email notification when new posts are published to your blog
10
 
58
  = Where can I get help? =
59
  So, you've downloaded the plugin an it isn't doing what you expect. First you should read the included documentation. There is a ReadMe.txt file and a PDF startup guide installed with the plugin.
60
 
61
+ Next you could search in the [WordPress forums](http://wordpress.org/support/), the old [Subscribe2 Forum](http://getsatisfaction.com/subscribe2/), or the [Subscribe2 blog FAQs](http://subscribe2.wordpress.com/category/faq/).
62
 
63
+ If you can't find an answer then post a new topic at the [WordPress forums](http://wordpress.org/support/) or make a [donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904) to get my attention!
64
 
65
  = Where can I get more information about the plugin features? =
66
 
299
 
300
  == Changelog ==
301
 
302
+ = Version 7.2 by Matthew Robinson =
303
+
304
+ * Fix for non-sending Preview emails when sender details match recipient details exactly
305
+ * Remove some HTML tags (DEL, S and STRIKE) from plain text content to avoid confusing reading - props cpo
306
+ * Improved removal of excess white space within the content of the plain text emails
307
+ * Introduced 'size' parameter to the shortcode to allow sizing of the email text input box
308
+ * Fix for non-sending emails to newly Registered Subscribers - thanks to Gengar003 and WebEndev
309
+ * Fix for commenter subscriptions on systems without moderation in place - thanks to elarson
310
+ * Improved the TinyMCE plugin code that handles placement of the Subscribe2 shortcode in the rich text editor
311
+ * Tidied up some public subscribe functions removing unnecessary code
312
+
313
  = Version 7.1 by Matthew Robinson =
314
 
315
  * Fix for Opt-out by Author for Registered Users that resulted in posts being sent even though a user had opted out
include/widget.php CHANGED
@@ -20,6 +20,7 @@ class S2_Form_widget extends WP_Widget {
20
  $widgetpostcontent = empty($instance['widgetpostcontent']) ? '' : $instance['widgetpostcontent'];
21
  $hidebutton = empty($instance['hidebutton']) ? 'none' : $instance['hidebutton'];
22
  $postto = empty($instance['postto']) ? '' : $instance['postto'];
 
23
  $hide = '';
24
  if ( $hidebutton == 'subscribe' || $hidebutton == 'unsubscribe' ) {
25
  $hide = " hide=\"" . $hidebutton . "\"";
@@ -30,7 +31,8 @@ class S2_Form_widget extends WP_Widget {
30
  if ( $postto ) {
31
  $postid = " id=\"" . $postto . "\"";
32
  }
33
- $shortcode = "[subscribe2" . $hide . $postid . "]";
 
34
  echo $before_widget;
35
  echo $before_title . $title . $after_title;
36
  echo "<div class=\"" . $div . "\">";
@@ -57,6 +59,7 @@ class S2_Form_widget extends WP_Widget {
57
  $instance['widgetpostcontent'] = stripslashes($new_instance['widgetpostcontent']);
58
  $instance['hidebutton'] = strip_tags(stripslashes($new_instance['hidebutton']));
59
  $instance['postto'] = stripslashes($new_instance['postto']);
 
60
 
61
  return $instance;
62
  }
@@ -68,20 +71,21 @@ class S2_Form_widget extends WP_Widget {
68
  // set some defaults, getting any old options first
69
  $options = get_option('widget_subscribe2widget');
70
  if ( $options === false ) {
71
- $defaults = array('title' => 'Subscribe2', 'div' => 'search', 'widgetprecontent' => '', 'widgetpostcontent' => '', 'hidebutton' => 'none', 'postto' => '');
72
  } else {
73
- $defaults = array('title' => $options['title'], 'div' => $options['div'], 'widgetprecontent' => $options['widgetprecontent'], 'widgetpostcontent' => $options['widgetpostcontent'], 'hidebutton' => $options['hidebutton'], 'postto' => $options['postto']);
74
  delete_option('widget_subscribe2widget');
75
  }
76
  // code to obtain old settings too
77
  $instance = wp_parse_args( (array) $instance, $defaults);
78
 
79
  $title = htmlspecialchars($instance['title'], ENT_QUOTES);
80
- $div= htmlspecialchars($instance['div'], ENT_QUOTES);
81
  $widgetprecontent = htmlspecialchars($instance['widgetprecontent'], ENT_QUOTES);
82
  $widgetpostcontent = htmlspecialchars($instance['widgetpostcontent'], ENT_QUOTES);
83
  $hidebutton = htmlspecialchars($instance['hidebutton'], ENT_QUOTES);
84
  $postto = htmlspecialchars($instance['postto'], ENT_QUOTES);
 
85
 
86
  global $wpdb, $mysubscribe2;
87
  $sql = "SELECT ID, post_title FROM $wpdb->posts WHERE post_type='page' AND post_status='publish'";
@@ -96,6 +100,8 @@ class S2_Form_widget extends WP_Widget {
96
  echo "<textarea class=\"widefat\" id=\"" . $this->get_field_name('widgetprecontent') . "\" name=\"" . $this->get_field_name('widgetprecontent') . "\" rows=\"2\" cols=\"25\">" . $widgetprecontent . "</textarea></label></p>\r\n";
97
  echo "<p><label for=\"" . $this->get_field_name('widgetpostcontent') . "\">" . __('Post-Content', 'subscribe2') . ":\r\n";
98
  echo "<textarea class=\"widefat\" id=\"" . $this->get_field_id('widgetpostcontent') . "\" name=\"" . $this->get_field_name('widgetpostcontent') . "\" rows=\"2\" cols=\"25\">" . $widgetpostcontent . "</textarea></label></p>\r\n";
 
 
99
  echo "<p><label for=\"" . $this->get_field_name('hidebutton') . "\">" . __('Display options', 'subscribe2') . ":<br />\r\n";
100
  echo "<input name=\"" . $this->get_field_name('hidebutton') . "\" type=\"radio\" value=\"none\"". checked('none', $hidebutton, false) . "/>" . __('Show complete form', 'subscribe2') . "<br /><input name=\"" . $this->get_field_name('hidebutton') . "\" type=\"radio\" value=\"subscribe\"". checked('subscribe', $hidebutton, false) . "/>" . __('Hide Subscribe button', 'subscribe2') . "<br /><input name=\"" . $this->get_field_name('hidebutton') . "\" type=\"radio\" value=\"unsubscribe\"". checked('unsubscribe', $hidebutton, false) . "/>" . __('Hide Unsubscribe button', 'subscribe2');
101
  if ( '1' == $mysubscribe2->subscribe2_options['ajax'] ) {
20
  $widgetpostcontent = empty($instance['widgetpostcontent']) ? '' : $instance['widgetpostcontent'];
21
  $hidebutton = empty($instance['hidebutton']) ? 'none' : $instance['hidebutton'];
22
  $postto = empty($instance['postto']) ? '' : $instance['postto'];
23
+ $textbox_size = empty($instance['size']) ? 20 : $instance['size'];
24
  $hide = '';
25
  if ( $hidebutton == 'subscribe' || $hidebutton == 'unsubscribe' ) {
26
  $hide = " hide=\"" . $hidebutton . "\"";
31
  if ( $postto ) {
32
  $postid = " id=\"" . $postto . "\"";
33
  }
34
+ $size = " size=\"" . $textbox_size . "\"";
35
+ $shortcode = "[subscribe2" . $hide . $postid . $size . "]";
36
  echo $before_widget;
37
  echo $before_title . $title . $after_title;
38
  echo "<div class=\"" . $div . "\">";
59
  $instance['widgetpostcontent'] = stripslashes($new_instance['widgetpostcontent']);
60
  $instance['hidebutton'] = strip_tags(stripslashes($new_instance['hidebutton']));
61
  $instance['postto'] = stripslashes($new_instance['postto']);
62
+ $instance['size'] = intval(stripslashes($new_instance['size']));
63
 
64
  return $instance;
65
  }
71
  // set some defaults, getting any old options first
72
  $options = get_option('widget_subscribe2widget');
73
  if ( $options === false ) {
74
+ $defaults = array('title' => 'Subscribe2', 'div' => 'search', 'widgetprecontent' => '', 'widgetpostcontent' => '', 'hidebutton' => 'none', 'postto' => '', 'size' => 20);
75
  } else {
76
+ $defaults = array('title' => $options['title'], 'div' => $options['div'], 'widgetprecontent' => $options['widgetprecontent'], 'widgetpostcontent' => $options['widgetpostcontent'], 'hidebutton' => $options['hidebutton'], 'postto' => $options['postto'], 'size' => $options['size']);
77
  delete_option('widget_subscribe2widget');
78
  }
79
  // code to obtain old settings too
80
  $instance = wp_parse_args( (array) $instance, $defaults);
81
 
82
  $title = htmlspecialchars($instance['title'], ENT_QUOTES);
83
+ $div = htmlspecialchars($instance['div'], ENT_QUOTES);
84
  $widgetprecontent = htmlspecialchars($instance['widgetprecontent'], ENT_QUOTES);
85
  $widgetpostcontent = htmlspecialchars($instance['widgetpostcontent'], ENT_QUOTES);
86
  $hidebutton = htmlspecialchars($instance['hidebutton'], ENT_QUOTES);
87
  $postto = htmlspecialchars($instance['postto'], ENT_QUOTES);
88
+ $size = htmlspecialchars($instance['size'], ENT_QUOTES);
89
 
90
  global $wpdb, $mysubscribe2;
91
  $sql = "SELECT ID, post_title FROM $wpdb->posts WHERE post_type='page' AND post_status='publish'";
100
  echo "<textarea class=\"widefat\" id=\"" . $this->get_field_name('widgetprecontent') . "\" name=\"" . $this->get_field_name('widgetprecontent') . "\" rows=\"2\" cols=\"25\">" . $widgetprecontent . "</textarea></label></p>\r\n";
101
  echo "<p><label for=\"" . $this->get_field_name('widgetpostcontent') . "\">" . __('Post-Content', 'subscribe2') . ":\r\n";
102
  echo "<textarea class=\"widefat\" id=\"" . $this->get_field_id('widgetpostcontent') . "\" name=\"" . $this->get_field_name('widgetpostcontent') . "\" rows=\"2\" cols=\"25\">" . $widgetpostcontent . "</textarea></label></p>\r\n";
103
+ echo "<p><label for=\"" . $this->get_field_name('size') . "\">" . __('Text Box Size', 'subscribe2') . ":\r\n";
104
+ echo "<input class=\"widefat\" id=\"" . $this->get_field_id('size') . "\" name=\"" . $this->get_field_name('size') . "\" type=\"text\" value=\"" . $size . "\" /></label></label></p>\r\n";
105
  echo "<p><label for=\"" . $this->get_field_name('hidebutton') . "\">" . __('Display options', 'subscribe2') . ":<br />\r\n";
106
  echo "<input name=\"" . $this->get_field_name('hidebutton') . "\" type=\"radio\" value=\"none\"". checked('none', $hidebutton, false) . "/>" . __('Show complete form', 'subscribe2') . "<br /><input name=\"" . $this->get_field_name('hidebutton') . "\" type=\"radio\" value=\"subscribe\"". checked('subscribe', $hidebutton, false) . "/>" . __('Hide Subscribe button', 'subscribe2') . "<br /><input name=\"" . $this->get_field_name('hidebutton') . "\" type=\"radio\" value=\"unsubscribe\"". checked('unsubscribe', $hidebutton, false) . "/>" . __('Hide Unsubscribe button', 'subscribe2');
107
  if ( '1' == $mysubscribe2->subscribe2_options['ajax'] ) {
subscribe2.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
- Version: 7.1
7
  Author: Matthew Robinson
8
  Author URI: http://subscribe2.wordpress.com
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=2387904
@@ -38,7 +38,7 @@ if ( version_compare($GLOBALS['wp_version'], '3.1', '<') ) {
38
 
39
  // our version number. Don't touch this or any line below
40
  // unless you know exactly what you are doing
41
- define( 'S2VERSION', '7.1' );
42
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
43
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
44
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
@@ -395,8 +395,8 @@ class s2class {
395
  // Construct BCC headers for sending or send individual emails
396
  $bcc = '';
397
  natcasesort($recipients);
398
- if ( function_exists('wpmq_mail') || $this->subscribe2_options['bcclimit'] == 1 ) {
399
- // BCCLimit is 1 so send individual emails
400
  foreach ( $recipients as $recipient ) {
401
  $recipient = trim($recipient);
402
  // sanity check -- make sure we have a valid email
@@ -492,7 +492,7 @@ class s2class {
492
  $header['From'] = $this->myname . " <" . $this->myemail . ">";
493
  $header['Reply-To'] = $this->myname . " <" . $this->myemail . ">";
494
  $header['Return-path'] = "<" . $this->myemail . ">";
495
- $header['Precedence'] = "list\nList-Id: " . get_option('blogname') . "";
496
  if ( $type == 'html' ) {
497
  // To send HTML mail, the Content-Type header must be set
498
  $header['Content-Type'] = get_option('html_type') . "; charset=\"". get_option('blog_charset') . "\"";
@@ -650,10 +650,15 @@ class s2class {
650
  if ( function_exists('strip_shortcodes') ) {
651
  $plaintext = strip_shortcodes($plaintext);
652
  }
 
 
 
 
653
  $gallid = '[gallery id="' . $post->ID . '"';
654
  $content = str_replace('[gallery', $gallid, $post->post_content);
655
  $content = apply_filters('the_content', $content);
656
  $content = str_replace("]]>", "]]&gt", $content);
 
657
  $excerpt = $post->post_excerpt;
658
  if ( '' == $excerpt ) {
659
  // no excerpt, is there a <!--more--> ?
@@ -695,6 +700,10 @@ class s2class {
695
  }
696
  }
697
 
 
 
 
 
698
  // prepare mail body texts
699
  $excerpt_body = str_replace("{POST}", $excerpt, $mailtext);
700
  $full_body = str_replace("{POST}", strip_tags($plaintext), $mailtext);
@@ -938,7 +947,7 @@ class s2class {
938
  $this->ip = $_SERVER['REMOTE_ADDR'];
939
  $this->activate($this->email);
940
  if ( $this->subscribe2_options['admin_email'] == 'subs' || $this->subscribe2_options['admin_email'] == 'both' ) {
941
- ( '' == get_option('blogname') ) ? $subject = "" : $subject = "[" . stripslashes(get_option('blogname')) . "] ";
942
  $subject .= __('New Subscription', 'subscribe2');
943
  $subject = html_entity_decode($subject, ENT_QUOTES);
944
  $message = $this->email . " " . __('subscribed to email notifications!', 'subscribe2');
@@ -961,7 +970,7 @@ class s2class {
961
  if ( '0' != $current ) {
962
  $this->delete($this->email);
963
  if ( $this->subscribe2_options['admin_email'] == 'unsubs' || $this->subscribe2_options['admin_email'] == 'both' ) {
964
- ( '' == get_option('blogname') ) ? $subject = "" : $subject = "[" . stripslashes(get_option('blogname')) . "] ";
965
  $subject .= __('New Unsubscription', 'subscribe2');
966
  $subject = html_entity_decode($subject, ENT_QUOTES);
967
  $message = $this->email . " " . __('unsubscribed from email notifications!', 'subscribe2');
@@ -1241,6 +1250,7 @@ class s2class {
1241
  }
1242
  update_user_meta($user_ID, $this->get_usermeta_keyname('s2_format'), 'excerpt');
1243
  update_user_meta($user_ID, $this->get_usermeta_keyname('s2_autosub'), $this->subscribe2_options['autosub_def']);
 
1244
  } else {
1245
  // create post format entries for all users
1246
  if ( in_array($this->subscribe2_options['autoformat'], array('html', 'html_excerpt', 'post', 'excerpt')) ) {
@@ -1256,6 +1266,7 @@ class s2class {
1256
  update_user_meta($user_ID, $this->get_usermeta_keyname('s2_cat') . $cat, $cat);
1257
  }
1258
  }
 
1259
  }
1260
  return $user_ID;
1261
  } // end register()
@@ -1860,9 +1871,9 @@ class s2class {
1860
  }
1861
  } else {
1862
  if ( $_POST['searchterm'] ) {
1863
- echo "<tr><td align=\"center\"><b>" . __('No matching subscribers found', 'subscribe2') . "</b></td></tr>\r\n";
1864
  } else {
1865
- echo "<tr><td align=\"center\"><b>" . __('NONE', 'subscribe2') . "</b></td></tr>\r\n";
1866
  }
1867
  }
1868
  if ( !empty($subscribers) ) {
@@ -2543,8 +2554,10 @@ class s2class {
2543
  }
2544
 
2545
  if ( count($this->get_authors()) > 1 ) {
 
2546
  echo "<h2>" . __('Do not send notifications for post made by these authors', 'subscribe2') . "</h2>\r\n";
2547
  $this->display_author_form(explode(',', get_user_meta($user_ID, $this->get_usermeta_keyname('s2_authors'), true)));
 
2548
  }
2549
 
2550
  // submit
@@ -2703,7 +2716,7 @@ class s2class {
2703
  if ( isset($_POST['subject']) ) {
2704
  $subject = $_POST['subject'];
2705
  } else {
2706
- $subject = __('A message from', 'subscribe2') . " " . get_option('blogname');
2707
  }
2708
  if ( !isset($_POST['content']) ) {
2709
  $body = '';
@@ -3302,9 +3315,32 @@ class s2class {
3302
  /**
3303
  Process comment meta data
3304
  */
3305
- function s2_comment_meta($comment_ID) {
3306
  if ( $_POST['s2_comment_request'] == '1' ) {
3307
- add_comment_meta($comment_ID, 's2_comment_request', $_POST['s2_comment_request']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3308
  }
3309
  } // end s2_comment_meta()
3310
 
@@ -3324,9 +3360,11 @@ class s2class {
3324
  if ( empty($comment) ) { return $comment_ID; }
3325
 
3326
  switch ($comment->comment_approved){
3327
- case '0': // Unapproved
 
3328
  break;
3329
- case '1': // Approved
 
3330
  $is_public = $this->is_public($comment->comment_author_email);
3331
  if ( $is_public == 0 ) {
3332
  $this->toggle($comment->comment_author_email);
@@ -3337,7 +3375,8 @@ class s2class {
3337
  }
3338
  delete_comment_meta($comment_ID, 's2_comment_request');
3339
  break;
3340
- default: // post is trash, spam or deleted
 
3341
  delete_comment_meta($comment_ID, 's2_comment_request');
3342
  break;
3343
  }
@@ -3355,7 +3394,8 @@ class s2class {
3355
  'id' => '',
3356
  'url' => '',
3357
  'nojs' => 'false',
3358
- 'link' => ''
 
3359
  ), $atts));
3360
 
3361
  // if link is true return a link to the page with the ajax class
@@ -3379,9 +3419,9 @@ class s2class {
3379
  }
3380
  // build default form
3381
  if ( $nojs == 'true' ) {
3382
- $this->form = "<form method=\"post\" action=\"" . $url . "\"><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" /><p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"\" size=\"20\" /></p><p>" . $this->input_form_action . "</p></form>";
3383
  } else {
3384
- $this->form = "<form method=\"post\" action=\"" . $url . "\"><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" /><p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"" . __('Enter email address...', 'subscribe2') . "\" size=\"20\" onfocus=\"if (this.value == '" . __('Enter email address...', 'subscribe2') . "') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = '" . __('Enter email address...', 'subscribe2') . "';}\" /></p><p>" . $this->input_form_action . "</p></form>\r\n";
3385
  }
3386
  $this->s2form = $this->form;
3387
 
@@ -3814,6 +3854,9 @@ class s2class {
3814
  // we add a blank line after each post excerpt now trim white space that occurs for the last post
3815
  $message_post = trim($message_post);
3816
  $message_posttime = trim($message_posttime);
 
 
 
3817
 
3818
  // apply filter to allow external content to be inserted or content manipulated
3819
  $message_post = apply_filters('s2_digest_email', $message_post, $now, $prev, $last, $this->subscribe2_options['cron_order']);
@@ -3837,7 +3880,7 @@ class s2class {
3837
  $scheds = (array)wp_get_schedules();
3838
  $email_freq = $this->subscribe2_options['email_freq'];
3839
  $display = $scheds[$email_freq]['display'];
3840
- ( '' == get_option('blogname') ) ? $subject = "" : $subject = "[" . stripslashes(get_option('blogname')) . "] ";
3841
  $subject .= $display . " " . __('Digest Email', 'subscribe2');
3842
  $mailtext = str_replace("{TABLELINKS}", $tablelinks, $mailtext);
3843
  $mailtext = str_replace("{TABLE}", $table, $mailtext);
@@ -3998,7 +4041,7 @@ class s2class {
3998
  } else {
3999
  add_action('comment_form', array(&$this, 's2_comment_meta_form'));
4000
  }
4001
- add_action('comment_post', array(&$this, 's2_comment_meta'), 1);
4002
  add_action('wp_set_comment_status', array(&$this, 'comment_status'));
4003
  }
4004
 
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
+ Version: 7.2
7
  Author: Matthew Robinson
8
  Author URI: http://subscribe2.wordpress.com
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=2387904
38
 
39
  // our version number. Don't touch this or any line below
40
  // unless you know exactly what you are doing
41
+ define( 'S2VERSION', '7.2' );
42
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
43
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
44
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
395
  // Construct BCC headers for sending or send individual emails
396
  $bcc = '';
397
  natcasesort($recipients);
398
+ if ( function_exists('wpmq_mail') || $this->subscribe2_options['bcclimit'] == 1 || count($recipients) == 1 ) {
399
+ // BCCLimit is 1 so send individual emails or we only have 1 recipient
400
  foreach ( $recipients as $recipient ) {
401
  $recipient = trim($recipient);
402
  // sanity check -- make sure we have a valid email
492
  $header['From'] = $this->myname . " <" . $this->myemail . ">";
493
  $header['Reply-To'] = $this->myname . " <" . $this->myemail . ">";
494
  $header['Return-path'] = "<" . $this->myemail . ">";
495
+ $header['Precedence'] = "list\nList-Id: " . html_entity_decode(get_option('blogname'), ENT_QUOTES) . "";
496
  if ( $type == 'html' ) {
497
  // To send HTML mail, the Content-Type header must be set
498
  $header['Content-Type'] = get_option('html_type') . "; charset=\"". get_option('blog_charset') . "\"";
650
  if ( function_exists('strip_shortcodes') ) {
651
  $plaintext = strip_shortcodes($plaintext);
652
  }
653
+ $plaintext = preg_replace('|<s*>(.*)<\/s>|','', $plaintext);
654
+ $plaintext = preg_replace('|<strike*>(.*)<\/strike>|','', $plaintext);
655
+ $plaintext = preg_replace('|<del*>(.*)<\/del>|','', $plaintext);
656
+
657
  $gallid = '[gallery id="' . $post->ID . '"';
658
  $content = str_replace('[gallery', $gallid, $post->post_content);
659
  $content = apply_filters('the_content', $content);
660
  $content = str_replace("]]>", "]]&gt", $content);
661
+
662
  $excerpt = $post->post_excerpt;
663
  if ( '' == $excerpt ) {
664
  // no excerpt, is there a <!--more--> ?
700
  }
701
  }
702
 
703
+ // remove excess white space from with $excerpt and $plaintext
704
+ $excerpt = preg_replace('|\s+|', ' ', $excerpt);
705
+ $plaintext = preg_replace('|\s+|', ' ', $plaintext);
706
+
707
  // prepare mail body texts
708
  $excerpt_body = str_replace("{POST}", $excerpt, $mailtext);
709
  $full_body = str_replace("{POST}", strip_tags($plaintext), $mailtext);
947
  $this->ip = $_SERVER['REMOTE_ADDR'];
948
  $this->activate($this->email);
949
  if ( $this->subscribe2_options['admin_email'] == 'subs' || $this->subscribe2_options['admin_email'] == 'both' ) {
950
+ ( '' == get_option('blogname') ) ? $subject = "" : $subject = "[" . stripslashes(html_entity_decode(get_option('blogname'), ENT_QUOTES)) . "] ";
951
  $subject .= __('New Subscription', 'subscribe2');
952
  $subject = html_entity_decode($subject, ENT_QUOTES);
953
  $message = $this->email . " " . __('subscribed to email notifications!', 'subscribe2');
970
  if ( '0' != $current ) {
971
  $this->delete($this->email);
972
  if ( $this->subscribe2_options['admin_email'] == 'unsubs' || $this->subscribe2_options['admin_email'] == 'both' ) {
973
+ ( '' == get_option('blogname') ) ? $subject = "" : $subject = "[" . stripslashes(html_entity_decode(get_option('blogname'), ENT_QUOTES)) . "] ";
974
  $subject .= __('New Unsubscription', 'subscribe2');
975
  $subject = html_entity_decode($subject, ENT_QUOTES);
976
  $message = $this->email . " " . __('unsubscribed from email notifications!', 'subscribe2');
1250
  }
1251
  update_user_meta($user_ID, $this->get_usermeta_keyname('s2_format'), 'excerpt');
1252
  update_user_meta($user_ID, $this->get_usermeta_keyname('s2_autosub'), $this->subscribe2_options['autosub_def']);
1253
+ update_user_meta($user_ID, $this->get_usermeta_keyname('s2_authors'), '');
1254
  } else {
1255
  // create post format entries for all users
1256
  if ( in_array($this->subscribe2_options['autoformat'], array('html', 'html_excerpt', 'post', 'excerpt')) ) {
1266
  update_user_meta($user_ID, $this->get_usermeta_keyname('s2_cat') . $cat, $cat);
1267
  }
1268
  }
1269
+ update_user_meta($user_ID, $this->get_usermeta_keyname('s2_authors'), '');
1270
  }
1271
  return $user_ID;
1272
  } // end register()
1871
  }
1872
  } else {
1873
  if ( $_POST['searchterm'] ) {
1874
+ echo "<tr><td colspan=\"6\" align=\"center\"><b>" . __('No matching subscribers found', 'subscribe2') . "</b></td></tr>\r\n";
1875
  } else {
1876
+ echo "<tr><td colspan=\"6\" align=\"center\"><b>" . __('NONE', 'subscribe2') . "</b></td></tr>\r\n";
1877
  }
1878
  }
1879
  if ( !empty($subscribers) ) {
2554
  }
2555
 
2556
  if ( count($this->get_authors()) > 1 ) {
2557
+ echo "<div class=\"s2_admin\" id=\"s2_authors\">\r\n";
2558
  echo "<h2>" . __('Do not send notifications for post made by these authors', 'subscribe2') . "</h2>\r\n";
2559
  $this->display_author_form(explode(',', get_user_meta($user_ID, $this->get_usermeta_keyname('s2_authors'), true)));
2560
+ echo "</div>\r\n";
2561
  }
2562
 
2563
  // submit
2716
  if ( isset($_POST['subject']) ) {
2717
  $subject = $_POST['subject'];
2718
  } else {
2719
+ $subject = __('A message from', 'subscribe2') . " " . html_entity_decode(get_option('blogname'), ENT_QUOTES);
2720
  }
2721
  if ( !isset($_POST['content']) ) {
2722
  $body = '';
3315
  /**
3316
  Process comment meta data
3317
  */
3318
+ function s2_comment_meta($comment_ID, $approved) {
3319
  if ( $_POST['s2_comment_request'] == '1' ) {
3320
+ global $wpdb;
3321
+ $sql = "SELECT comment_author_email, comment_approved FROM $wpdb->comments WHERE comment_ID='$comment_ID' LIMIT 1";
3322
+ $comment = $wpdb->get_row($sql, OBJECT);
3323
+ if ( empty($comment) ) { return $comment_ID; }
3324
+ switch ($approved) {
3325
+ case '0':
3326
+ // Unapproved so hold in meta data pending moderation
3327
+ add_comment_meta($comment_ID, 's2_comment_request', $_POST['s2_comment_request']);
3328
+ break;
3329
+ case '1':
3330
+ // Approved so add
3331
+ $is_public = $this->is_public($comment->comment_author_email);
3332
+ if ( $is_public == 0 ) {
3333
+ $this->toggle($comment->comment_author_email);
3334
+ }
3335
+ $is_registered = $this->is_registered($comment->comment_author_email);
3336
+ if ( !$is_public && !$is_registered ) {
3337
+ $this->activate($comment->comment_author_email);
3338
+ }
3339
+ break;
3340
+ default:
3341
+ // post is trash, spam or deleted
3342
+ break;
3343
+ }
3344
  }
3345
  } // end s2_comment_meta()
3346
 
3360
  if ( empty($comment) ) { return $comment_ID; }
3361
 
3362
  switch ($comment->comment_approved){
3363
+ case '0':
3364
+ // Unapproved
3365
  break;
3366
+ case '1':
3367
+ // Approved
3368
  $is_public = $this->is_public($comment->comment_author_email);
3369
  if ( $is_public == 0 ) {
3370
  $this->toggle($comment->comment_author_email);
3375
  }
3376
  delete_comment_meta($comment_ID, 's2_comment_request');
3377
  break;
3378
+ default:
3379
+ // post is trash, spam or deleted
3380
  delete_comment_meta($comment_ID, 's2_comment_request');
3381
  break;
3382
  }
3394
  'id' => '',
3395
  'url' => '',
3396
  'nojs' => 'false',
3397
+ 'link' => '',
3398
+ 'size' => 20
3399
  ), $atts));
3400
 
3401
  // if link is true return a link to the page with the ajax class
3419
  }
3420
  // build default form
3421
  if ( $nojs == 'true' ) {
3422
+ $this->form = "<form method=\"post\" action=\"" . $url . "\"><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" /><p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"\" size=\"" . $size . "\" /></p><p>" . $this->input_form_action . "</p></form>";
3423
  } else {
3424
+ $this->form = "<form method=\"post\" action=\"" . $url . "\"><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" /><p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"" . __('Enter email address...', 'subscribe2') . "\" size=\"" . $size . "\" onfocus=\"if (this.value == '" . __('Enter email address...', 'subscribe2') . "') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = '" . __('Enter email address...', 'subscribe2') . "';}\" /></p><p>" . $this->input_form_action . "</p></form>\r\n";
3425
  }
3426
  $this->s2form = $this->form;
3427
 
3854
  // we add a blank line after each post excerpt now trim white space that occurs for the last post
3855
  $message_post = trim($message_post);
3856
  $message_posttime = trim($message_posttime);
3857
+ // remove excess white space from within $message_post and $message_posttime
3858
+ $message_post = preg_replace('|\s+|', ' ', $message_post);
3859
+ $message_posttime = preg_replace('|\s+|', ' ', $message_posttime);
3860
 
3861
  // apply filter to allow external content to be inserted or content manipulated
3862
  $message_post = apply_filters('s2_digest_email', $message_post, $now, $prev, $last, $this->subscribe2_options['cron_order']);
3880
  $scheds = (array)wp_get_schedules();
3881
  $email_freq = $this->subscribe2_options['email_freq'];
3882
  $display = $scheds[$email_freq]['display'];
3883
+ ( '' == get_option('blogname') ) ? $subject = "" : $subject = "[" . stripslashes(html_entity_decode(get_option('blogname'), ENT_QUOTES)) . "] ";
3884
  $subject .= $display . " " . __('Digest Email', 'subscribe2');
3885
  $mailtext = str_replace("{TABLELINKS}", $tablelinks, $mailtext);
3886
  $mailtext = str_replace("{TABLE}", $table, $mailtext);
4041
  } else {
4042
  add_action('comment_form', array(&$this, 's2_comment_meta_form'));
4043
  }
4044
+ add_action('comment_post', array(&$this, 's2_comment_meta'), 1, 2);
4045
  add_action('wp_set_comment_status', array(&$this, 'comment_status'));
4046
  }
4047
 
subscribe2.pot CHANGED
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2012-01-14 09:18+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -40,8 +40,8 @@ msgstr ""
40
  msgid "profile"
41
  msgstr ""
42
 
43
- #: subscribe2.php:72 subscribe2.php:1778 subscribe2.php:1884
44
- #: subscribe2.php:2633 subscribe2.php:3371 subscribe2.php:3374
45
  msgid "Subscribe"
46
  msgstr ""
47
 
@@ -129,7 +129,7 @@ msgstr ""
129
  msgid "Subscribers"
130
  msgstr ""
131
 
132
- #: subscribe2.php:124 subscribe2.php:3182
133
  msgid "Settings"
134
  msgstr ""
135
 
@@ -137,833 +137,833 @@ msgstr ""
137
  msgid "Send Email"
138
  msgstr ""
139
 
140
- #: subscribe2.php:708
141
  msgid "Plain Text Excerpt Preview"
142
  msgstr ""
143
 
144
- #: subscribe2.php:710
145
  msgid "Plain Text Full Preview"
146
  msgstr ""
147
 
148
- #: subscribe2.php:712
149
  msgid "HTML Excerpt Preview"
150
  msgstr ""
151
 
152
- #: subscribe2.php:714
153
  msgid "HTML Full Preview"
154
  msgstr ""
155
 
156
- #: subscribe2.php:942
157
  msgid "New Subscription"
158
  msgstr ""
159
 
160
- #: subscribe2.php:944
161
  msgid "subscribed to email notifications!"
162
  msgstr ""
163
 
164
- #: subscribe2.php:965
165
  msgid "New Unsubscription"
166
  msgstr ""
167
 
168
- #: subscribe2.php:967
169
  msgid "unsubscribed from email notifications!"
170
  msgstr ""
171
 
172
- #: subscribe2.php:1585
173
  msgid "Address(es) subscribed!"
174
  msgstr ""
175
 
176
- #: subscribe2.php:1592
177
  msgid "Address(es) unsubscribed!"
178
  msgstr ""
179
 
180
- #: subscribe2.php:1596
181
  msgid "Some emails were not processed, the following were already subscribed"
182
  msgstr ""
183
 
184
- #: subscribe2.php:1599
185
  msgid "Some emails were not processed, the following were not in the database"
186
  msgstr ""
187
 
188
- #: subscribe2.php:1608
189
  msgid "Address(es) deleted!"
190
  msgstr ""
191
 
192
- #: subscribe2.php:1614 subscribe2.php:1620
193
  msgid "Status changed!"
194
  msgstr ""
195
 
196
- #: subscribe2.php:1634
197
  msgid "Reminder Email(s) Sent!"
198
  msgstr ""
199
 
200
- #: subscribe2.php:1637
201
  msgid "Registered Users Subscribed!"
202
  msgstr ""
203
 
204
- #: subscribe2.php:1640
205
  msgid "Registered Users Unsubscribed!"
206
  msgstr ""
207
 
208
- #: subscribe2.php:1643
209
  msgid "Format updated for Selected Registered Users!"
210
  msgstr ""
211
 
212
- #: subscribe2.php:1646
213
  msgid "Digest Subscription updated for Selected Registered Users!"
214
  msgstr ""
215
 
216
- #: subscribe2.php:1741
217
  msgid "Previous Page"
218
  msgstr ""
219
 
220
- #: subscribe2.php:1761
221
  msgid "Next Page"
222
  msgstr ""
223
 
224
- #: subscribe2.php:1768
225
  msgid "Manage Subscribers"
226
  msgstr ""
227
 
228
- #: subscribe2.php:1774
229
  msgid "Add/Remove Subscribers"
230
  msgstr ""
231
 
232
- #: subscribe2.php:1775
233
  msgid "Enter addresses, one per line or comma-separated"
234
  msgstr ""
235
 
236
- #: subscribe2.php:1779 subscribe2.php:1885 subscribe2.php:2612
237
- #: subscribe2.php:3369 subscribe2.php:3374
238
  msgid "Unsubscribe"
239
  msgstr ""
240
 
241
- #: subscribe2.php:1784
242
  msgid "Current Subscribers"
243
  msgstr ""
244
 
245
- #: subscribe2.php:1786
246
  msgid "Filter"
247
  msgstr ""
248
 
249
- #: subscribe2.php:1793
250
  msgid "Search Subscribers"
251
  msgstr ""
252
 
253
- #: subscribe2.php:1796
254
  msgid "Send Reminder Email"
255
  msgstr ""
256
 
257
- #: subscribe2.php:1803
258
  msgid "Save Emails to CSV File"
259
  msgstr ""
260
 
261
- #: subscribe2.php:1810 subscribe2.php:1869
262
  msgid "Process"
263
  msgstr ""
264
 
265
- #: subscribe2.php:1823 subscribe2.php:1845
266
  msgid "Confirm this email address"
267
  msgstr ""
268
 
269
- #: subscribe2.php:1825 subscribe2.php:1838
270
  msgid "Unconfirm this email address"
271
  msgstr ""
272
 
273
- #: subscribe2.php:1827 subscribe2.php:1840 subscribe2.php:1848
274
  msgid "Delete this email address"
275
  msgstr ""
276
 
277
- #: subscribe2.php:1831 subscribe2.php:2777 subscribe2.php:2823
278
- #: subscribe2.php:2863
279
  msgid "Select / Unselect All"
280
  msgstr ""
281
 
282
- #: subscribe2.php:1856
283
  msgid "edit"
284
  msgstr ""
285
 
286
- #: subscribe2.php:1863
287
  msgid "No matching subscribers found"
288
  msgstr ""
289
 
290
- #: subscribe2.php:1865
291
  msgid "NONE"
292
  msgstr ""
293
 
294
- #: subscribe2.php:1879
295
  msgid "Bulk Management"
296
  msgstr ""
297
 
298
- #: subscribe2.php:1881 subscribe2.php:1897
299
  msgid ""
300
  "Preferences for Registered Users selected in the filter above can be changed "
301
  "using this section."
302
  msgstr ""
303
 
304
- #: subscribe2.php:1882 subscribe2.php:1898
305
  msgid "Consider User Privacy as changes cannot be undone"
306
  msgstr ""
307
 
308
- #: subscribe2.php:1883
309
  msgid "Action to perform"
310
  msgstr ""
311
 
312
- #: subscribe2.php:1888
313
  msgid "Bulk Update Categories"
314
  msgstr ""
315
 
316
- #: subscribe2.php:1890
317
  msgid "Send email as"
318
  msgstr ""
319
 
320
- #: subscribe2.php:1891 subscribe2.php:2337 subscribe2.php:2493
321
  msgid "HTML - Full"
322
  msgstr ""
323
 
324
- #: subscribe2.php:1892 subscribe2.php:2339 subscribe2.php:2495
325
  msgid "HTML - Excerpt"
326
  msgstr ""
327
 
328
- #: subscribe2.php:1893 subscribe2.php:2341 subscribe2.php:2497
329
  msgid "Plain Text - Full"
330
  msgstr ""
331
 
332
- #: subscribe2.php:1894 subscribe2.php:2343 subscribe2.php:2499
333
  msgid "Plain Text - Excerpt"
334
  msgstr ""
335
 
336
- #: subscribe2.php:1895
337
  msgid "Bulk Update Format"
338
  msgstr ""
339
 
340
- #: subscribe2.php:1899
341
  msgid "Subscribe Selected Users to recieve a periodic digest notification"
342
  msgstr ""
343
 
344
- #: subscribe2.php:1901 subscribe2.php:2153 subscribe2.php:2159
345
- #: subscribe2.php:2173 subscribe2.php:2178 subscribe2.php:2327
346
- #: subscribe2.php:2332 subscribe2.php:2346 subscribe2.php:2353
347
- #: subscribe2.php:2504 subscribe2.php:2537
348
  msgid "Yes"
349
  msgstr ""
350
 
351
- #: subscribe2.php:1903 subscribe2.php:2155 subscribe2.php:2161
352
- #: subscribe2.php:2175 subscribe2.php:2180 subscribe2.php:2324
353
- #: subscribe2.php:2329 subscribe2.php:2334 subscribe2.php:2348
354
- #: subscribe2.php:2355 subscribe2.php:2362 subscribe2.php:2506
355
- #: subscribe2.php:2541
356
  msgid "No"
357
  msgstr ""
358
 
359
- #: subscribe2.php:1905
360
  msgid "Bulk Update Digest Subscription"
361
  msgstr ""
362
 
363
- #: subscribe2.php:1944
364
  msgid "Preview message(s) sent to logged in user"
365
  msgstr ""
366
 
367
- #: subscribe2.php:1948
368
  msgid ""
369
  "The Digest Notification email contained no post information. No email was "
370
  "sent"
371
  msgstr ""
372
 
373
- #: subscribe2.php:1950
374
  msgid "Attempt made to resend the Digest Notification email"
375
  msgstr ""
376
 
377
- #: subscribe2.php:2118
378
  msgid "Subscribe2 Settings"
379
  msgstr ""
380
 
381
- #: subscribe2.php:2119
382
  msgid "Plugin Blog"
383
  msgstr ""
384
 
385
- #: subscribe2.php:2120
386
  msgid "Make a donation via PayPal"
387
  msgstr ""
388
 
389
- #: subscribe2.php:2132 subscribe2.php:2479
390
  msgid "Notification Settings"
391
  msgstr ""
392
 
393
- #: subscribe2.php:2133
394
  msgid "Restrict the number of recipients per email to (0 for unlimited)"
395
  msgstr ""
396
 
397
- #: subscribe2.php:2135 subscribe2.php:2282
398
  msgid "Edit"
399
  msgstr ""
400
 
401
- #: subscribe2.php:2138 subscribe2.php:2285
402
  msgid "Update"
403
  msgstr ""
404
 
405
- #: subscribe2.php:2139 subscribe2.php:2286
406
  msgid "Revert"
407
  msgstr ""
408
 
409
- #: subscribe2.php:2141
410
  msgid "Send Admins notifications for new"
411
  msgstr ""
412
 
413
- #: subscribe2.php:2143
414
  msgid "Subscriptions"
415
  msgstr ""
416
 
417
- #: subscribe2.php:2145
418
  msgid "Unsubscriptions"
419
  msgstr ""
420
 
421
- #: subscribe2.php:2147
422
  msgid "Both"
423
  msgstr ""
424
 
425
- #: subscribe2.php:2149
426
  msgid "Neither"
427
  msgstr ""
428
 
429
- #: subscribe2.php:2151
430
  msgid "Include theme CSS stylesheet in HTML notifications"
431
  msgstr ""
432
 
433
- #: subscribe2.php:2157
434
  msgid "Send Emails for Pages"
435
  msgstr ""
436
 
437
- #: subscribe2.php:2165
438
  msgid ""
439
  "Subscribe2 will send email notifications for the following custom post types"
440
  msgstr ""
441
 
442
- #: subscribe2.php:2171
443
  msgid "Send Emails for Password Protected Posts"
444
  msgstr ""
445
 
446
- #: subscribe2.php:2176
447
  msgid "Send Emails for Private Posts"
448
  msgstr ""
449
 
450
- #: subscribe2.php:2181
451
  msgid "Send Email From"
452
  msgstr ""
453
 
454
- #: subscribe2.php:2186
455
  msgid "Send Emails"
456
  msgstr ""
457
 
458
- #: subscribe2.php:2188
459
  msgid "For digest notifications, date order for posts is"
460
  msgstr ""
461
 
462
- #: subscribe2.php:2190
463
  msgid "Descending"
464
  msgstr ""
465
 
466
- #: subscribe2.php:2192
467
  msgid "Ascending"
468
  msgstr ""
469
 
470
- #: subscribe2.php:2194
471
  msgid "Add Tracking Parameters to the Permalink"
472
  msgstr ""
473
 
474
- #: subscribe2.php:2196
475
  msgid "eg. utm_source=subscribe2&utm_medium=email&utm_campaign=postnotify"
476
  msgstr ""
477
 
478
- #: subscribe2.php:2201
479
  msgid "Email Templates"
480
  msgstr ""
481
 
482
- #: subscribe2.php:2205
483
  msgid "New Post email (must not be empty)"
484
  msgstr ""
485
 
486
- #: subscribe2.php:2206 subscribe2.php:2236 subscribe2.php:2241
487
  msgid "Subject Line"
488
  msgstr ""
489
 
490
- #: subscribe2.php:2211
491
  msgid "Send Email Preview"
492
  msgstr ""
493
 
494
- #: subscribe2.php:2212
495
  msgid "Message substitutions"
496
  msgstr ""
497
 
498
- #: subscribe2.php:2214
499
  msgid ""
500
  "IF THE FOLLOWING KEYWORDS ARE ALSO IN YOUR POST THEY WILL BE SUBSTITUTED"
501
  msgstr ""
502
 
503
- #: subscribe2.php:2217
504
  msgid "the post's title<br />(<i>for per-post emails only</i>)"
505
  msgstr ""
506
 
507
- #: subscribe2.php:2218
508
  msgid ""
509
  "the excerpt or the entire post<br />(<i>based on the subscriber's "
510
  "preferences</i>)"
511
  msgstr ""
512
 
513
- #: subscribe2.php:2219
514
  msgid ""
515
  "the excerpt of the post and the time it was posted<br />(<i>for digest "
516
  "emails only</i>)"
517
  msgstr ""
518
 
519
- #: subscribe2.php:2220
520
  msgid "a list of post titles<br />(<i>for digest emails only</i>)"
521
  msgstr ""
522
 
523
- #: subscribe2.php:2221
524
  msgid ""
525
  "a list of post titles followed by links to the atricles<br />(<i>for digest "
526
  "emails only</i>)"
527
  msgstr ""
528
 
529
- #: subscribe2.php:2222
530
  msgid "the post's permalink<br />(<i>for per-post emails only</i>)"
531
  msgstr ""
532
 
533
- #: subscribe2.php:2223
534
  msgid ""
535
  "the post's permalink after conversion by TinyURL<br />(<i>for per-post "
536
  "emails only</i>)"
537
  msgstr ""
538
 
539
- #: subscribe2.php:2224
540
  msgid "the date the post was made<br />(<i>for per-post emails only</i>)"
541
  msgstr ""
542
 
543
- #: subscribe2.php:2225
544
  msgid "the time the post was made<br />(<i>for per-post emails only</i>)"
545
  msgstr ""
546
 
547
- #: subscribe2.php:2226
548
  msgid "the admin or post author's name"
549
  msgstr ""
550
 
551
- #: subscribe2.php:2227
552
  msgid "the admin or post author's email"
553
  msgstr ""
554
 
555
- #: subscribe2.php:2228
556
  msgid "the post author's name"
557
  msgstr ""
558
 
559
- #: subscribe2.php:2229
560
  msgid ""
561
  "the generated link to confirm a request<br />(<i>only used in the "
562
  "confirmation email template</i>)"
563
  msgstr ""
564
 
565
- #: subscribe2.php:2230
566
  msgid ""
567
  "Action performed by LINK in confirmation email<br />(<i>only used in the "
568
  "confirmation email template</i>)"
569
  msgstr ""
570
 
571
- #: subscribe2.php:2231
572
  msgid "the post's assigned categories"
573
  msgstr ""
574
 
575
- #: subscribe2.php:2232
576
  msgid "the post's assigned Tags"
577
  msgstr ""
578
 
579
- #: subscribe2.php:2233
580
  msgid ""
581
  "the number of posts included in the digest email<br />(<i>for digest emails "
582
  "only</i>)"
583
  msgstr ""
584
 
585
- #: subscribe2.php:2235
586
  msgid "Subscribe / Unsubscribe confirmation email"
587
  msgstr ""
588
 
589
- #: subscribe2.php:2240
590
  msgid "Reminder email to Unconfirmed Subscribers"
591
  msgstr ""
592
 
593
- #: subscribe2.php:2249
594
  msgid "Excluded Categories"
595
  msgstr ""
596
 
597
- #: subscribe2.php:2251
598
  msgid ""
599
  "Posts assigned to any Excluded Category do not generate notifications and "
600
  "are not included in digest notifications"
601
  msgstr ""
602
 
603
- #: subscribe2.php:2255
604
  msgid "Allow registered users to subscribe to excluded categories?"
605
  msgstr ""
606
 
607
- #: subscribe2.php:2260
608
  msgid "Excluded Formats"
609
  msgstr ""
610
 
611
- #: subscribe2.php:2262
612
  msgid ""
613
  "Posts assigned to any Excluded Format do not generate notifications and are "
614
  "not included in digest notifications"
615
  msgstr ""
616
 
617
- #: subscribe2.php:2270
618
  msgid "Appearance"
619
  msgstr ""
620
 
621
- #: subscribe2.php:2274
622
  msgid "Set default Subscribe2 page as ID"
623
  msgstr ""
624
 
625
- #: subscribe2.php:2280
626
  msgid "Set the number of Subscribers displayed per page"
627
  msgstr ""
628
 
629
- #: subscribe2.php:2290
630
  msgid "Show a link to your subscription page in \"meta\"?"
631
  msgstr ""
632
 
633
- #: subscribe2.php:2294
634
  msgid "Show the Subscribe2 button on the Write toolbar?"
635
  msgstr ""
636
 
637
- #: subscribe2.php:2298
638
  msgid "Enable AJAX style subscription form?"
639
  msgstr ""
640
 
641
- #: subscribe2.php:2302
642
  msgid "Enable Subscribe2 Widget?"
643
  msgstr ""
644
 
645
- #: subscribe2.php:2306
646
  msgid "Enable Subscribe2 Counter Widget?"
647
  msgstr ""
648
 
649
- #: subscribe2.php:2310
650
  msgid "Disable email notifications is checked by default on authoring pages?"
651
  msgstr ""
652
 
653
- #: subscribe2.php:2316
654
  msgid "Auto Subscribe"
655
  msgstr ""
656
 
657
- #: subscribe2.php:2318
658
  msgid "Subscribe new users registering with your blog"
659
  msgstr ""
660
 
661
- #: subscribe2.php:2320
662
  msgid "Automatically"
663
  msgstr ""
664
 
665
- #: subscribe2.php:2322
666
  msgid "Display option on Registration Form"
667
  msgstr ""
668
 
669
- #: subscribe2.php:2325
670
  msgid "Auto-subscribe includes any excluded categories"
671
  msgstr ""
672
 
673
- #: subscribe2.php:2330
674
  msgid "Registration Form option is checked by default"
675
  msgstr ""
676
 
677
- #: subscribe2.php:2335
678
  msgid "Auto-subscribe users to receive email as"
679
  msgstr ""
680
 
681
- #: subscribe2.php:2344
682
  msgid "Registered Users have the option to auto-subscribe to new categories"
683
  msgstr ""
684
 
685
- #: subscribe2.php:2350
686
  msgid "New categories are immediately excluded"
687
  msgstr ""
688
 
689
- #: subscribe2.php:2351
690
  msgid ""
691
  "Option for Registered Users to auto-subscribe to new categories is checked "
692
  "by default"
693
  msgstr ""
694
 
695
- #: subscribe2.php:2356
696
  msgid "Display checkbox to allow subscriptions from the comment form"
697
  msgstr ""
698
 
699
- #: subscribe2.php:2358
700
  msgid "Before the Comment Submit button"
701
  msgstr ""
702
 
703
- #: subscribe2.php:2360
704
  msgid "After the Comment Submit button"
705
  msgstr ""
706
 
707
- #: subscribe2.php:2368
708
  msgid "Barred Domains"
709
  msgstr ""
710
 
711
- #: subscribe2.php:2370
712
  msgid ""
713
  "Enter domains to bar from public subscriptions: <br /> (Use a new line for "
714
  "each entry and omit the \"@\" symbol, for example email.com)"
715
  msgstr ""
716
 
717
- #: subscribe2.php:2376
718
  msgid "Submit"
719
  msgstr ""
720
 
721
- #: subscribe2.php:2379
722
  msgid "Reset Default"
723
  msgstr ""
724
 
725
- #: subscribe2.php:2380
726
  msgid ""
727
  "Use this to reset all options to their defaults. This <strong><em>will not</"
728
  "em></strong> modify your list of subscribers."
729
  msgstr ""
730
 
731
- #: subscribe2.php:2382
732
  msgid "RESET"
733
  msgstr ""
734
 
735
- #: subscribe2.php:2473
736
  msgid "Subscription preferences updated."
737
  msgstr ""
738
 
739
- #: subscribe2.php:2482
740
  msgid "Editing Subscribe2 preferences for user"
741
  msgstr ""
742
 
743
- #: subscribe2.php:2491
744
  msgid "Receive email as"
745
  msgstr ""
746
 
747
- #: subscribe2.php:2502
748
  msgid "Automatically subscribe me to newly created categories"
749
  msgstr ""
750
 
751
- #: subscribe2.php:2517
752
  msgid "Unsubscribe me from this blog"
753
  msgstr ""
754
 
755
- #: subscribe2.php:2521
756
  msgid "Subscribe to all categories"
757
  msgstr ""
758
 
759
- #: subscribe2.php:2523
760
  msgid "Subscribed Categories on"
761
  msgstr ""
762
 
763
- #: subscribe2.php:2525
764
  msgid "Subscribed Categories"
765
  msgstr ""
766
 
767
- #: subscribe2.php:2531
768
  msgid "Receive periodic summaries of new posts?"
769
  msgstr ""
770
 
771
- #: subscribe2.php:2546
772
  msgid "Do not send notifications for post made by these authors"
773
  msgstr ""
774
 
775
- #: subscribe2.php:2551
776
  msgid "Update Preferences"
777
  msgstr ""
778
 
779
- #: subscribe2.php:2601
780
  msgid "Subscribed Blogs"
781
  msgstr ""
782
 
783
- #: subscribe2.php:2606 subscribe2.php:2627
784
  msgid "Viewing Settings Now"
785
  msgstr ""
786
 
787
- #: subscribe2.php:2610 subscribe2.php:2631
788
  msgid "View Settings"
789
  msgstr ""
790
 
791
- #: subscribe2.php:2622
792
  msgid "Subscribe to new blogs"
793
  msgstr ""
794
 
795
- #: subscribe2.php:2698
796
  msgid "Send an email to subscribers"
797
  msgstr ""
798
 
799
- #: subscribe2.php:2706
800
  msgid "A message from"
801
  msgstr ""
802
 
803
- #: subscribe2.php:2711
804
  msgid "Subject"
805
  msgstr ""
806
 
807
- #: subscribe2.php:2714
808
  msgid "Recipients:"
809
  msgstr ""
810
 
811
- #: subscribe2.php:2718
812
  msgid "Preview"
813
  msgstr ""
814
 
815
- #: subscribe2.php:2718
816
  msgid "Send"
817
  msgstr ""
818
 
819
- #: subscribe2.php:2898
820
  msgid "All Users and Subscribers"
821
  msgstr ""
822
 
823
- #: subscribe2.php:2899
824
  msgid "Public Subscribers"
825
  msgstr ""
826
 
827
- #: subscribe2.php:2900
828
  msgid "Confirmed"
829
  msgstr ""
830
 
831
- #: subscribe2.php:2901
832
  msgid "Unconfirmed"
833
  msgstr ""
834
 
835
- #: subscribe2.php:2902
836
  msgid "All Registered Users"
837
  msgstr ""
838
 
839
- #: subscribe2.php:2903
840
  msgid "Registered Subscribers"
841
  msgstr ""
842
 
843
- #: subscribe2.php:2982
844
  msgid "Post Author"
845
  msgstr ""
846
 
847
- #: subscribe2.php:3006
848
  msgid ""
849
  "The WordPress cron functions may be disabled on this server. Digest "
850
  "notifications may not work."
851
  msgstr ""
852
 
853
- #: subscribe2.php:3010
854
  msgid "For each Post"
855
  msgstr ""
856
 
857
- #: subscribe2.php:3024
858
  msgid "Send Digest Notification at"
859
  msgstr ""
860
 
861
- #: subscribe2.php:3036
862
  msgid ""
863
  "This option will be ignored if the time selected is not in the future in "
864
  "relation to the current time"
865
  msgstr ""
866
 
867
- #: subscribe2.php:3039
868
  msgid "Current UTC time is"
869
  msgstr ""
870
 
871
- #: subscribe2.php:3041
872
  msgid "Current blog time is"
873
  msgstr ""
874
 
875
- #: subscribe2.php:3043
876
  msgid "Next email notification will be sent when your blog time is after"
877
  msgstr ""
878
 
879
- #: subscribe2.php:3046
880
  msgid "Attempt to resend the last Digest Notification email"
881
  msgstr ""
882
 
883
- #: subscribe2.php:3047
884
  msgid "Resend Digest"
885
  msgstr ""
886
 
887
- #: subscribe2.php:3125
888
  msgid "Confirmed Public Subscriber"
889
  msgstr ""
890
 
891
- #: subscribe2.php:3127
892
  msgid "Unconfirmed Public Subscriber"
893
  msgstr ""
894
 
895
- #: subscribe2.php:3183
896
  msgid "Donate"
897
  msgstr ""
898
 
899
- #: subscribe2.php:3195
900
  msgid "Check here to Subscribe to email notifications for new posts"
901
  msgstr ""
902
 
903
- #: subscribe2.php:3201
904
  msgid ""
905
  "By registering with this blog you are also agreeing to receive email "
906
  "notifications for new posts but you can unsubscribe at anytime"
907
  msgstr ""
908
 
909
- #: subscribe2.php:3252 subscribe2.php:3253
910
  msgid "Subscribe2 Notification Override"
911
  msgstr ""
912
 
913
- #: subscribe2.php:3263
914
  msgid ""
915
  "Check here to disable sending of an email notification for this post/page"
916
  msgstr ""
917
 
918
- #: subscribe2.php:3298
919
  msgid "Check here to Subscribe to notifications for new posts"
920
  msgstr ""
921
 
922
- #: subscribe2.php:3382 subscribe2.php:3384
923
  msgid "Your email:"
924
  msgstr ""
925
 
926
- #: subscribe2.php:3384
927
  msgid "Enter email address..."
928
  msgstr ""
929
 
930
- #: subscribe2.php:3489
931
  msgid "Subscription Confirmation"
932
  msgstr ""
933
 
934
- #: subscribe2.php:3561
935
  msgid "[Un]Subscribe to Posts"
936
  msgstr ""
937
 
938
- #: subscribe2.php:3585 subscribe2.php:3587
939
  msgid "Subscribe to this blog"
940
  msgstr ""
941
 
942
- #: subscribe2.php:3639
943
  msgid "Weekly"
944
  msgstr ""
945
 
946
- #: subscribe2.php:3760 subscribe2.php:3761
947
  msgid "Author"
948
  msgstr ""
949
 
950
- #: subscribe2.php:3769
951
  msgid "Posted on"
952
  msgstr ""
953
 
954
- #: subscribe2.php:3773 subscribe2.php:3774
955
  msgid "Posted in"
956
  msgstr ""
957
 
958
- #: subscribe2.php:3779 subscribe2.php:3780
959
  msgid "Tagged as"
960
  msgstr ""
961
 
962
- #: subscribe2.php:3841
963
  msgid "Digest Email"
964
  msgstr ""
965
 
966
- #: subscribe2.php:3851
967
  msgid "Digest Preview"
968
  msgstr ""
969
 
@@ -1028,51 +1028,55 @@ msgstr ""
1028
  msgid "Subscribe2 Widget"
1029
  msgstr ""
1030
 
1031
- #: include/widget.php:27
1032
  msgid "(Un)Subscribe to Posts"
1033
  msgstr ""
1034
 
1035
- #: include/widget.php:91
1036
  msgid "Title"
1037
  msgstr ""
1038
 
1039
- #: include/widget.php:93
1040
  msgid "Div class name"
1041
  msgstr ""
1042
 
1043
- #: include/widget.php:95
1044
  msgid "Pre-Content"
1045
  msgstr ""
1046
 
1047
- #: include/widget.php:97
1048
  msgid "Post-Content"
1049
  msgstr ""
1050
 
1051
- #: include/widget.php:99
 
 
 
 
1052
  msgid "Display options"
1053
  msgstr ""
1054
 
1055
- #: include/widget.php:100
1056
  msgid "Show complete form"
1057
  msgstr ""
1058
 
1059
- #: include/widget.php:100
1060
  msgid "Hide Subscribe button"
1061
  msgstr ""
1062
 
1063
- #: include/widget.php:100
1064
  msgid "Hide Unsubscribe button"
1065
  msgstr ""
1066
 
1067
- #: include/widget.php:102
1068
  msgid "Show as link"
1069
  msgstr ""
1070
 
1071
- #: include/widget.php:106
1072
  msgid "Post form content to page"
1073
  msgstr ""
1074
 
1075
- #: include/widget.php:108
1076
  msgid "Use Subscribe2 Default"
1077
  msgstr ""
1078
 
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2012-02-01 20:48+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
40
  msgid "profile"
41
  msgstr ""
42
 
43
+ #: subscribe2.php:72 subscribe2.php:1789 subscribe2.php:1895
44
+ #: subscribe2.php:2646 subscribe2.php:3411 subscribe2.php:3414
45
  msgid "Subscribe"
46
  msgstr ""
47
 
129
  msgid "Subscribers"
130
  msgstr ""
131
 
132
+ #: subscribe2.php:124 subscribe2.php:3195
133
  msgid "Settings"
134
  msgstr ""
135
 
137
  msgid "Send Email"
138
  msgstr ""
139
 
140
+ #: subscribe2.php:717
141
  msgid "Plain Text Excerpt Preview"
142
  msgstr ""
143
 
144
+ #: subscribe2.php:719
145
  msgid "Plain Text Full Preview"
146
  msgstr ""
147
 
148
+ #: subscribe2.php:721
149
  msgid "HTML Excerpt Preview"
150
  msgstr ""
151
 
152
+ #: subscribe2.php:723
153
  msgid "HTML Full Preview"
154
  msgstr ""
155
 
156
+ #: subscribe2.php:951
157
  msgid "New Subscription"
158
  msgstr ""
159
 
160
+ #: subscribe2.php:953
161
  msgid "subscribed to email notifications!"
162
  msgstr ""
163
 
164
+ #: subscribe2.php:974
165
  msgid "New Unsubscription"
166
  msgstr ""
167
 
168
+ #: subscribe2.php:976
169
  msgid "unsubscribed from email notifications!"
170
  msgstr ""
171
 
172
+ #: subscribe2.php:1596
173
  msgid "Address(es) subscribed!"
174
  msgstr ""
175
 
176
+ #: subscribe2.php:1603
177
  msgid "Address(es) unsubscribed!"
178
  msgstr ""
179
 
180
+ #: subscribe2.php:1607
181
  msgid "Some emails were not processed, the following were already subscribed"
182
  msgstr ""
183
 
184
+ #: subscribe2.php:1610
185
  msgid "Some emails were not processed, the following were not in the database"
186
  msgstr ""
187
 
188
+ #: subscribe2.php:1619
189
  msgid "Address(es) deleted!"
190
  msgstr ""
191
 
192
+ #: subscribe2.php:1625 subscribe2.php:1631
193
  msgid "Status changed!"
194
  msgstr ""
195
 
196
+ #: subscribe2.php:1645
197
  msgid "Reminder Email(s) Sent!"
198
  msgstr ""
199
 
200
+ #: subscribe2.php:1648
201
  msgid "Registered Users Subscribed!"
202
  msgstr ""
203
 
204
+ #: subscribe2.php:1651
205
  msgid "Registered Users Unsubscribed!"
206
  msgstr ""
207
 
208
+ #: subscribe2.php:1654
209
  msgid "Format updated for Selected Registered Users!"
210
  msgstr ""
211
 
212
+ #: subscribe2.php:1657
213
  msgid "Digest Subscription updated for Selected Registered Users!"
214
  msgstr ""
215
 
216
+ #: subscribe2.php:1752
217
  msgid "Previous Page"
218
  msgstr ""
219
 
220
+ #: subscribe2.php:1772
221
  msgid "Next Page"
222
  msgstr ""
223
 
224
+ #: subscribe2.php:1779
225
  msgid "Manage Subscribers"
226
  msgstr ""
227
 
228
+ #: subscribe2.php:1785
229
  msgid "Add/Remove Subscribers"
230
  msgstr ""
231
 
232
+ #: subscribe2.php:1786
233
  msgid "Enter addresses, one per line or comma-separated"
234
  msgstr ""
235
 
236
+ #: subscribe2.php:1790 subscribe2.php:1896 subscribe2.php:2625
237
+ #: subscribe2.php:3409 subscribe2.php:3414
238
  msgid "Unsubscribe"
239
  msgstr ""
240
 
241
+ #: subscribe2.php:1795
242
  msgid "Current Subscribers"
243
  msgstr ""
244
 
245
+ #: subscribe2.php:1797
246
  msgid "Filter"
247
  msgstr ""
248
 
249
+ #: subscribe2.php:1804
250
  msgid "Search Subscribers"
251
  msgstr ""
252
 
253
+ #: subscribe2.php:1807
254
  msgid "Send Reminder Email"
255
  msgstr ""
256
 
257
+ #: subscribe2.php:1814
258
  msgid "Save Emails to CSV File"
259
  msgstr ""
260
 
261
+ #: subscribe2.php:1821 subscribe2.php:1880
262
  msgid "Process"
263
  msgstr ""
264
 
265
+ #: subscribe2.php:1834 subscribe2.php:1856
266
  msgid "Confirm this email address"
267
  msgstr ""
268
 
269
+ #: subscribe2.php:1836 subscribe2.php:1849
270
  msgid "Unconfirm this email address"
271
  msgstr ""
272
 
273
+ #: subscribe2.php:1838 subscribe2.php:1851 subscribe2.php:1859
274
  msgid "Delete this email address"
275
  msgstr ""
276
 
277
+ #: subscribe2.php:1842 subscribe2.php:2790 subscribe2.php:2836
278
+ #: subscribe2.php:2876
279
  msgid "Select / Unselect All"
280
  msgstr ""
281
 
282
+ #: subscribe2.php:1867
283
  msgid "edit"
284
  msgstr ""
285
 
286
+ #: subscribe2.php:1874
287
  msgid "No matching subscribers found"
288
  msgstr ""
289
 
290
+ #: subscribe2.php:1876
291
  msgid "NONE"
292
  msgstr ""
293
 
294
+ #: subscribe2.php:1890
295
  msgid "Bulk Management"
296
  msgstr ""
297
 
298
+ #: subscribe2.php:1892 subscribe2.php:1908
299
  msgid ""
300
  "Preferences for Registered Users selected in the filter above can be changed "
301
  "using this section."
302
  msgstr ""
303
 
304
+ #: subscribe2.php:1893 subscribe2.php:1909
305
  msgid "Consider User Privacy as changes cannot be undone"
306
  msgstr ""
307
 
308
+ #: subscribe2.php:1894
309
  msgid "Action to perform"
310
  msgstr ""
311
 
312
+ #: subscribe2.php:1899
313
  msgid "Bulk Update Categories"
314
  msgstr ""
315
 
316
+ #: subscribe2.php:1901
317
  msgid "Send email as"
318
  msgstr ""
319
 
320
+ #: subscribe2.php:1902 subscribe2.php:2348 subscribe2.php:2504
321
  msgid "HTML - Full"
322
  msgstr ""
323
 
324
+ #: subscribe2.php:1903 subscribe2.php:2350 subscribe2.php:2506
325
  msgid "HTML - Excerpt"
326
  msgstr ""
327
 
328
+ #: subscribe2.php:1904 subscribe2.php:2352 subscribe2.php:2508
329
  msgid "Plain Text - Full"
330
  msgstr ""
331
 
332
+ #: subscribe2.php:1905 subscribe2.php:2354 subscribe2.php:2510
333
  msgid "Plain Text - Excerpt"
334
  msgstr ""
335
 
336
+ #: subscribe2.php:1906
337
  msgid "Bulk Update Format"
338
  msgstr ""
339
 
340
+ #: subscribe2.php:1910
341
  msgid "Subscribe Selected Users to recieve a periodic digest notification"
342
  msgstr ""
343
 
344
+ #: subscribe2.php:1912 subscribe2.php:2164 subscribe2.php:2170
345
+ #: subscribe2.php:2184 subscribe2.php:2189 subscribe2.php:2338
346
+ #: subscribe2.php:2343 subscribe2.php:2357 subscribe2.php:2364
347
+ #: subscribe2.php:2515 subscribe2.php:2548
348
  msgid "Yes"
349
  msgstr ""
350
 
351
+ #: subscribe2.php:1914 subscribe2.php:2166 subscribe2.php:2172
352
+ #: subscribe2.php:2186 subscribe2.php:2191 subscribe2.php:2335
353
+ #: subscribe2.php:2340 subscribe2.php:2345 subscribe2.php:2359
354
+ #: subscribe2.php:2366 subscribe2.php:2373 subscribe2.php:2517
355
+ #: subscribe2.php:2552
356
  msgid "No"
357
  msgstr ""
358
 
359
+ #: subscribe2.php:1916
360
  msgid "Bulk Update Digest Subscription"
361
  msgstr ""
362
 
363
+ #: subscribe2.php:1955
364
  msgid "Preview message(s) sent to logged in user"
365
  msgstr ""
366
 
367
+ #: subscribe2.php:1959
368
  msgid ""
369
  "The Digest Notification email contained no post information. No email was "
370
  "sent"
371
  msgstr ""
372
 
373
+ #: subscribe2.php:1961
374
  msgid "Attempt made to resend the Digest Notification email"
375
  msgstr ""
376
 
377
+ #: subscribe2.php:2129
378
  msgid "Subscribe2 Settings"
379
  msgstr ""
380
 
381
+ #: subscribe2.php:2130
382
  msgid "Plugin Blog"
383
  msgstr ""
384
 
385
+ #: subscribe2.php:2131
386
  msgid "Make a donation via PayPal"
387
  msgstr ""
388
 
389
+ #: subscribe2.php:2143 subscribe2.php:2490
390
  msgid "Notification Settings"
391
  msgstr ""
392
 
393
+ #: subscribe2.php:2144
394
  msgid "Restrict the number of recipients per email to (0 for unlimited)"
395
  msgstr ""
396
 
397
+ #: subscribe2.php:2146 subscribe2.php:2293
398
  msgid "Edit"
399
  msgstr ""
400
 
401
+ #: subscribe2.php:2149 subscribe2.php:2296
402
  msgid "Update"
403
  msgstr ""
404
 
405
+ #: subscribe2.php:2150 subscribe2.php:2297
406
  msgid "Revert"
407
  msgstr ""
408
 
409
+ #: subscribe2.php:2152
410
  msgid "Send Admins notifications for new"
411
  msgstr ""
412
 
413
+ #: subscribe2.php:2154
414
  msgid "Subscriptions"
415
  msgstr ""
416
 
417
+ #: subscribe2.php:2156
418
  msgid "Unsubscriptions"
419
  msgstr ""
420
 
421
+ #: subscribe2.php:2158
422
  msgid "Both"
423
  msgstr ""
424
 
425
+ #: subscribe2.php:2160
426
  msgid "Neither"
427
  msgstr ""
428
 
429
+ #: subscribe2.php:2162
430
  msgid "Include theme CSS stylesheet in HTML notifications"
431
  msgstr ""
432
 
433
+ #: subscribe2.php:2168
434
  msgid "Send Emails for Pages"
435
  msgstr ""
436
 
437
+ #: subscribe2.php:2176
438
  msgid ""
439
  "Subscribe2 will send email notifications for the following custom post types"
440
  msgstr ""
441
 
442
+ #: subscribe2.php:2182
443
  msgid "Send Emails for Password Protected Posts"
444
  msgstr ""
445
 
446
+ #: subscribe2.php:2187
447
  msgid "Send Emails for Private Posts"
448
  msgstr ""
449
 
450
+ #: subscribe2.php:2192
451
  msgid "Send Email From"
452
  msgstr ""
453
 
454
+ #: subscribe2.php:2197
455
  msgid "Send Emails"
456
  msgstr ""
457
 
458
+ #: subscribe2.php:2199
459
  msgid "For digest notifications, date order for posts is"
460
  msgstr ""
461
 
462
+ #: subscribe2.php:2201
463
  msgid "Descending"
464
  msgstr ""
465
 
466
+ #: subscribe2.php:2203
467
  msgid "Ascending"
468
  msgstr ""
469
 
470
+ #: subscribe2.php:2205
471
  msgid "Add Tracking Parameters to the Permalink"
472
  msgstr ""
473
 
474
+ #: subscribe2.php:2207
475
  msgid "eg. utm_source=subscribe2&utm_medium=email&utm_campaign=postnotify"
476
  msgstr ""
477
 
478
+ #: subscribe2.php:2212
479
  msgid "Email Templates"
480
  msgstr ""
481
 
482
+ #: subscribe2.php:2216
483
  msgid "New Post email (must not be empty)"
484
  msgstr ""
485
 
486
+ #: subscribe2.php:2217 subscribe2.php:2247 subscribe2.php:2252
487
  msgid "Subject Line"
488
  msgstr ""
489
 
490
+ #: subscribe2.php:2222
491
  msgid "Send Email Preview"
492
  msgstr ""
493
 
494
+ #: subscribe2.php:2223
495
  msgid "Message substitutions"
496
  msgstr ""
497
 
498
+ #: subscribe2.php:2225
499
  msgid ""
500
  "IF THE FOLLOWING KEYWORDS ARE ALSO IN YOUR POST THEY WILL BE SUBSTITUTED"
501
  msgstr ""
502
 
503
+ #: subscribe2.php:2228
504
  msgid "the post's title<br />(<i>for per-post emails only</i>)"
505
  msgstr ""
506
 
507
+ #: subscribe2.php:2229
508
  msgid ""
509
  "the excerpt or the entire post<br />(<i>based on the subscriber's "
510
  "preferences</i>)"
511
  msgstr ""
512
 
513
+ #: subscribe2.php:2230
514
  msgid ""
515
  "the excerpt of the post and the time it was posted<br />(<i>for digest "
516
  "emails only</i>)"
517
  msgstr ""
518
 
519
+ #: subscribe2.php:2231
520
  msgid "a list of post titles<br />(<i>for digest emails only</i>)"
521
  msgstr ""
522
 
523
+ #: subscribe2.php:2232
524
  msgid ""
525
  "a list of post titles followed by links to the atricles<br />(<i>for digest "
526
  "emails only</i>)"
527
  msgstr ""
528
 
529
+ #: subscribe2.php:2233
530
  msgid "the post's permalink<br />(<i>for per-post emails only</i>)"
531
  msgstr ""
532
 
533
+ #: subscribe2.php:2234
534
  msgid ""
535
  "the post's permalink after conversion by TinyURL<br />(<i>for per-post "
536
  "emails only</i>)"
537
  msgstr ""
538
 
539
+ #: subscribe2.php:2235
540
  msgid "the date the post was made<br />(<i>for per-post emails only</i>)"
541
  msgstr ""
542
 
543
+ #: subscribe2.php:2236
544
  msgid "the time the post was made<br />(<i>for per-post emails only</i>)"
545
  msgstr ""
546
 
547
+ #: subscribe2.php:2237
548
  msgid "the admin or post author's name"
549
  msgstr ""
550
 
551
+ #: subscribe2.php:2238
552
  msgid "the admin or post author's email"
553
  msgstr ""
554
 
555
+ #: subscribe2.php:2239
556
  msgid "the post author's name"
557
  msgstr ""
558
 
559
+ #: subscribe2.php:2240
560
  msgid ""
561
  "the generated link to confirm a request<br />(<i>only used in the "
562
  "confirmation email template</i>)"
563
  msgstr ""
564
 
565
+ #: subscribe2.php:2241
566
  msgid ""
567
  "Action performed by LINK in confirmation email<br />(<i>only used in the "
568
  "confirmation email template</i>)"
569
  msgstr ""
570
 
571
+ #: subscribe2.php:2242
572
  msgid "the post's assigned categories"
573
  msgstr ""
574
 
575
+ #: subscribe2.php:2243
576
  msgid "the post's assigned Tags"
577
  msgstr ""
578
 
579
+ #: subscribe2.php:2244
580
  msgid ""
581
  "the number of posts included in the digest email<br />(<i>for digest emails "
582
  "only</i>)"
583
  msgstr ""
584
 
585
+ #: subscribe2.php:2246
586
  msgid "Subscribe / Unsubscribe confirmation email"
587
  msgstr ""
588
 
589
+ #: subscribe2.php:2251
590
  msgid "Reminder email to Unconfirmed Subscribers"
591
  msgstr ""
592
 
593
+ #: subscribe2.php:2260
594
  msgid "Excluded Categories"
595
  msgstr ""
596
 
597
+ #: subscribe2.php:2262
598
  msgid ""
599
  "Posts assigned to any Excluded Category do not generate notifications and "
600
  "are not included in digest notifications"
601
  msgstr ""
602
 
603
+ #: subscribe2.php:2266
604
  msgid "Allow registered users to subscribe to excluded categories?"
605
  msgstr ""
606
 
607
+ #: subscribe2.php:2271
608
  msgid "Excluded Formats"
609
  msgstr ""
610
 
611
+ #: subscribe2.php:2273
612
  msgid ""
613
  "Posts assigned to any Excluded Format do not generate notifications and are "
614
  "not included in digest notifications"
615
  msgstr ""
616
 
617
+ #: subscribe2.php:2281
618
  msgid "Appearance"
619
  msgstr ""
620
 
621
+ #: subscribe2.php:2285
622
  msgid "Set default Subscribe2 page as ID"
623
  msgstr ""
624
 
625
+ #: subscribe2.php:2291
626
  msgid "Set the number of Subscribers displayed per page"
627
  msgstr ""
628
 
629
+ #: subscribe2.php:2301
630
  msgid "Show a link to your subscription page in \"meta\"?"
631
  msgstr ""
632
 
633
+ #: subscribe2.php:2305
634
  msgid "Show the Subscribe2 button on the Write toolbar?"
635
  msgstr ""
636
 
637
+ #: subscribe2.php:2309
638
  msgid "Enable AJAX style subscription form?"
639
  msgstr ""
640
 
641
+ #: subscribe2.php:2313
642
  msgid "Enable Subscribe2 Widget?"
643
  msgstr ""
644
 
645
+ #: subscribe2.php:2317
646
  msgid "Enable Subscribe2 Counter Widget?"
647
  msgstr ""
648
 
649
+ #: subscribe2.php:2321
650
  msgid "Disable email notifications is checked by default on authoring pages?"
651
  msgstr ""
652
 
653
+ #: subscribe2.php:2327
654
  msgid "Auto Subscribe"
655
  msgstr ""
656
 
657
+ #: subscribe2.php:2329
658
  msgid "Subscribe new users registering with your blog"
659
  msgstr ""
660
 
661
+ #: subscribe2.php:2331
662
  msgid "Automatically"
663
  msgstr ""
664
 
665
+ #: subscribe2.php:2333
666
  msgid "Display option on Registration Form"
667
  msgstr ""
668
 
669
+ #: subscribe2.php:2336
670
  msgid "Auto-subscribe includes any excluded categories"
671
  msgstr ""
672
 
673
+ #: subscribe2.php:2341
674
  msgid "Registration Form option is checked by default"
675
  msgstr ""
676
 
677
+ #: subscribe2.php:2346
678
  msgid "Auto-subscribe users to receive email as"
679
  msgstr ""
680
 
681
+ #: subscribe2.php:2355
682
  msgid "Registered Users have the option to auto-subscribe to new categories"
683
  msgstr ""
684
 
685
+ #: subscribe2.php:2361
686
  msgid "New categories are immediately excluded"
687
  msgstr ""
688
 
689
+ #: subscribe2.php:2362
690
  msgid ""
691
  "Option for Registered Users to auto-subscribe to new categories is checked "
692
  "by default"
693
  msgstr ""
694
 
695
+ #: subscribe2.php:2367
696
  msgid "Display checkbox to allow subscriptions from the comment form"
697
  msgstr ""
698
 
699
+ #: subscribe2.php:2369
700
  msgid "Before the Comment Submit button"
701
  msgstr ""
702
 
703
+ #: subscribe2.php:2371
704
  msgid "After the Comment Submit button"
705
  msgstr ""
706
 
707
+ #: subscribe2.php:2379
708
  msgid "Barred Domains"
709
  msgstr ""
710
 
711
+ #: subscribe2.php:2381
712
  msgid ""
713
  "Enter domains to bar from public subscriptions: <br /> (Use a new line for "
714
  "each entry and omit the \"@\" symbol, for example email.com)"
715
  msgstr ""
716
 
717
+ #: subscribe2.php:2387
718
  msgid "Submit"
719
  msgstr ""
720
 
721
+ #: subscribe2.php:2390
722
  msgid "Reset Default"
723
  msgstr ""
724
 
725
+ #: subscribe2.php:2391
726
  msgid ""
727
  "Use this to reset all options to their defaults. This <strong><em>will not</"
728
  "em></strong> modify your list of subscribers."
729
  msgstr ""
730
 
731
+ #: subscribe2.php:2393
732
  msgid "RESET"
733
  msgstr ""
734
 
735
+ #: subscribe2.php:2484
736
  msgid "Subscription preferences updated."
737
  msgstr ""
738
 
739
+ #: subscribe2.php:2493
740
  msgid "Editing Subscribe2 preferences for user"
741
  msgstr ""
742
 
743
+ #: subscribe2.php:2502
744
  msgid "Receive email as"
745
  msgstr ""
746
 
747
+ #: subscribe2.php:2513
748
  msgid "Automatically subscribe me to newly created categories"
749
  msgstr ""
750
 
751
+ #: subscribe2.php:2528
752
  msgid "Unsubscribe me from this blog"
753
  msgstr ""
754
 
755
+ #: subscribe2.php:2532
756
  msgid "Subscribe to all categories"
757
  msgstr ""
758
 
759
+ #: subscribe2.php:2534
760
  msgid "Subscribed Categories on"
761
  msgstr ""
762
 
763
+ #: subscribe2.php:2536
764
  msgid "Subscribed Categories"
765
  msgstr ""
766
 
767
+ #: subscribe2.php:2542
768
  msgid "Receive periodic summaries of new posts?"
769
  msgstr ""
770
 
771
+ #: subscribe2.php:2558
772
  msgid "Do not send notifications for post made by these authors"
773
  msgstr ""
774
 
775
+ #: subscribe2.php:2564
776
  msgid "Update Preferences"
777
  msgstr ""
778
 
779
+ #: subscribe2.php:2614
780
  msgid "Subscribed Blogs"
781
  msgstr ""
782
 
783
+ #: subscribe2.php:2619 subscribe2.php:2640
784
  msgid "Viewing Settings Now"
785
  msgstr ""
786
 
787
+ #: subscribe2.php:2623 subscribe2.php:2644
788
  msgid "View Settings"
789
  msgstr ""
790
 
791
+ #: subscribe2.php:2635
792
  msgid "Subscribe to new blogs"
793
  msgstr ""
794
 
795
+ #: subscribe2.php:2711
796
  msgid "Send an email to subscribers"
797
  msgstr ""
798
 
799
+ #: subscribe2.php:2719
800
  msgid "A message from"
801
  msgstr ""
802
 
803
+ #: subscribe2.php:2724
804
  msgid "Subject"
805
  msgstr ""
806
 
807
+ #: subscribe2.php:2727
808
  msgid "Recipients:"
809
  msgstr ""
810
 
811
+ #: subscribe2.php:2731
812
  msgid "Preview"
813
  msgstr ""
814
 
815
+ #: subscribe2.php:2731
816
  msgid "Send"
817
  msgstr ""
818
 
819
+ #: subscribe2.php:2911
820
  msgid "All Users and Subscribers"
821
  msgstr ""
822
 
823
+ #: subscribe2.php:2912
824
  msgid "Public Subscribers"
825
  msgstr ""
826
 
827
+ #: subscribe2.php:2913
828
  msgid "Confirmed"
829
  msgstr ""
830
 
831
+ #: subscribe2.php:2914
832
  msgid "Unconfirmed"
833
  msgstr ""
834
 
835
+ #: subscribe2.php:2915
836
  msgid "All Registered Users"
837
  msgstr ""
838
 
839
+ #: subscribe2.php:2916
840
  msgid "Registered Subscribers"
841
  msgstr ""
842
 
843
+ #: subscribe2.php:2995
844
  msgid "Post Author"
845
  msgstr ""
846
 
847
+ #: subscribe2.php:3019
848
  msgid ""
849
  "The WordPress cron functions may be disabled on this server. Digest "
850
  "notifications may not work."
851
  msgstr ""
852
 
853
+ #: subscribe2.php:3023
854
  msgid "For each Post"
855
  msgstr ""
856
 
857
+ #: subscribe2.php:3037
858
  msgid "Send Digest Notification at"
859
  msgstr ""
860
 
861
+ #: subscribe2.php:3049
862
  msgid ""
863
  "This option will be ignored if the time selected is not in the future in "
864
  "relation to the current time"
865
  msgstr ""
866
 
867
+ #: subscribe2.php:3052
868
  msgid "Current UTC time is"
869
  msgstr ""
870
 
871
+ #: subscribe2.php:3054
872
  msgid "Current blog time is"
873
  msgstr ""
874
 
875
+ #: subscribe2.php:3056
876
  msgid "Next email notification will be sent when your blog time is after"
877
  msgstr ""
878
 
879
+ #: subscribe2.php:3059
880
  msgid "Attempt to resend the last Digest Notification email"
881
  msgstr ""
882
 
883
+ #: subscribe2.php:3060
884
  msgid "Resend Digest"
885
  msgstr ""
886
 
887
+ #: subscribe2.php:3138
888
  msgid "Confirmed Public Subscriber"
889
  msgstr ""
890
 
891
+ #: subscribe2.php:3140
892
  msgid "Unconfirmed Public Subscriber"
893
  msgstr ""
894
 
895
+ #: subscribe2.php:3196
896
  msgid "Donate"
897
  msgstr ""
898
 
899
+ #: subscribe2.php:3208
900
  msgid "Check here to Subscribe to email notifications for new posts"
901
  msgstr ""
902
 
903
+ #: subscribe2.php:3214
904
  msgid ""
905
  "By registering with this blog you are also agreeing to receive email "
906
  "notifications for new posts but you can unsubscribe at anytime"
907
  msgstr ""
908
 
909
+ #: subscribe2.php:3265 subscribe2.php:3266
910
  msgid "Subscribe2 Notification Override"
911
  msgstr ""
912
 
913
+ #: subscribe2.php:3276
914
  msgid ""
915
  "Check here to disable sending of an email notification for this post/page"
916
  msgstr ""
917
 
918
+ #: subscribe2.php:3311
919
  msgid "Check here to Subscribe to notifications for new posts"
920
  msgstr ""
921
 
922
+ #: subscribe2.php:3422 subscribe2.php:3424
923
  msgid "Your email:"
924
  msgstr ""
925
 
926
+ #: subscribe2.php:3424
927
  msgid "Enter email address..."
928
  msgstr ""
929
 
930
+ #: subscribe2.php:3529
931
  msgid "Subscription Confirmation"
932
  msgstr ""
933
 
934
+ #: subscribe2.php:3601
935
  msgid "[Un]Subscribe to Posts"
936
  msgstr ""
937
 
938
+ #: subscribe2.php:3625 subscribe2.php:3627
939
  msgid "Subscribe to this blog"
940
  msgstr ""
941
 
942
+ #: subscribe2.php:3679
943
  msgid "Weekly"
944
  msgstr ""
945
 
946
+ #: subscribe2.php:3800 subscribe2.php:3801
947
  msgid "Author"
948
  msgstr ""
949
 
950
+ #: subscribe2.php:3809
951
  msgid "Posted on"
952
  msgstr ""
953
 
954
+ #: subscribe2.php:3813 subscribe2.php:3814
955
  msgid "Posted in"
956
  msgstr ""
957
 
958
+ #: subscribe2.php:3819 subscribe2.php:3820
959
  msgid "Tagged as"
960
  msgstr ""
961
 
962
+ #: subscribe2.php:3884
963
  msgid "Digest Email"
964
  msgstr ""
965
 
966
+ #: subscribe2.php:3894
967
  msgid "Digest Preview"
968
  msgstr ""
969
 
1028
  msgid "Subscribe2 Widget"
1029
  msgstr ""
1030
 
1031
+ #: include/widget.php:28
1032
  msgid "(Un)Subscribe to Posts"
1033
  msgstr ""
1034
 
1035
+ #: include/widget.php:95
1036
  msgid "Title"
1037
  msgstr ""
1038
 
1039
+ #: include/widget.php:97
1040
  msgid "Div class name"
1041
  msgstr ""
1042
 
1043
+ #: include/widget.php:99
1044
  msgid "Pre-Content"
1045
  msgstr ""
1046
 
1047
+ #: include/widget.php:101
1048
  msgid "Post-Content"
1049
  msgstr ""
1050
 
1051
+ #: include/widget.php:103
1052
+ msgid "Text Box Size"
1053
+ msgstr ""
1054
+
1055
+ #: include/widget.php:105
1056
  msgid "Display options"
1057
  msgstr ""
1058
 
1059
+ #: include/widget.php:106
1060
  msgid "Show complete form"
1061
  msgstr ""
1062
 
1063
+ #: include/widget.php:106
1064
  msgid "Hide Subscribe button"
1065
  msgstr ""
1066
 
1067
+ #: include/widget.php:106
1068
  msgid "Hide Unsubscribe button"
1069
  msgstr ""
1070
 
1071
+ #: include/widget.php:108
1072
  msgid "Show as link"
1073
  msgstr ""
1074
 
1075
+ #: include/widget.php:112
1076
  msgid "Post form content to page"
1077
  msgstr ""
1078
 
1079
+ #: include/widget.php:114
1080
  msgid "Use Subscribe2 Default"
1081
  msgstr ""
1082
 
tinymce3/editor_plugin.dev.js CHANGED
@@ -3,12 +3,9 @@
3
  init : function(ed, url) {
4
  var pb = '<img src="' + url + '/../include/spacer.gif" class="mceSubscribe2 mceItemNoResize" />',
5
  cls = 'mceSubscribe2',
6
- sep = ed.getParam('subscribe2_separator', '[subscribe2]'),
7
- pbRE;
8
-
9
- pbRE = new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g, function(a) {
10
- return '\\' + a;
11
- }), 'g');
12
 
13
  // Register commands
14
  ed.addCommand('mceSubscribe2', function() {
@@ -22,6 +19,7 @@
22
  cmd : cls
23
  });
24
 
 
25
  ed.onInit.add(function() {
26
  ed.dom.loadCSS(url + "/css/content.css");
27
 
@@ -33,6 +31,7 @@
33
  }
34
  });
35
 
 
36
  ed.onClick.add(function(ed, e) {
37
  e = e.target;
38
 
@@ -40,22 +39,39 @@
40
  ed.selection.select(e);
41
  });
42
 
 
43
  ed.onNodeChange.add(function(ed, cm, n) {
44
  cm.setActive('subscribe2', n.nodeName === 'IMG' && ed.dom.hasClass(n, cls));
45
  });
46
 
 
 
47
  ed.onBeforeSetContent.add(function(ed, o) {
 
48
  o.content = o.content.replace(pbRE, pb);
49
  });
50
 
 
 
51
  ed.onPostProcess.add(function(ed, o) {
52
- if (o.get)
53
- o.content = o.content.replace(/<img[^>]+>/g, function(im) {
54
- if (im.indexOf('class="mceSubscribe2') !== -1)
55
- im = sep;
56
-
 
 
 
 
 
 
 
 
 
 
57
  return im;
58
  });
 
59
  });
60
  },
61
 
3
  init : function(ed, url) {
4
  var pb = '<img src="' + url + '/../include/spacer.gif" class="mceSubscribe2 mceItemNoResize" />',
5
  cls = 'mceSubscribe2',
6
+ shortcode = '[subscribe2]',
7
+ pbreplaced = [],
8
+ pbRE = new RegExp(/(\[|<!--)subscribe2.*(\]|-->)/g);
 
 
 
9
 
10
  // Register commands
11
  ed.addCommand('mceSubscribe2', function() {
19
  cmd : cls
20
  });
21
 
22
+ // load the CSS and enable it on the right class
23
  ed.onInit.add(function() {
24
  ed.dom.loadCSS(url + "/css/content.css");
25
 
31
  }
32
  });
33
 
34
+ // allow selection of the image placeholder
35
  ed.onClick.add(function(ed, e) {
36
  e = e.target;
37
 
39
  ed.selection.select(e);
40
  });
41
 
42
+ // re-enable the CSS when the node changes
43
  ed.onNodeChange.add(function(ed, cm, n) {
44
  cm.setActive('subscribe2', n.nodeName === 'IMG' && ed.dom.hasClass(n, cls));
45
  });
46
 
47
+ // create an array of replaced shortcodes so we have additional parameters
48
+ // then swap in the graphic
49
  ed.onBeforeSetContent.add(function(ed, o) {
50
+ pbreplaced = o.content.match(pbRE);
51
  o.content = o.content.replace(pbRE, pb);
52
  });
53
 
54
+ // swap back the array of shortcodes to preserve parameters
55
+ // replace any other instances with the default shortcode
56
  ed.onPostProcess.add(function(ed, o) {
57
+ if (o.get) {
58
+ if ( pbreplaced !== null ) {
59
+ for ( i = 0; i < pbreplaced.length; i++ ) {
60
+ o.content = o.content.replace(/<img[^>]+>/, function(im) {
61
+ if (im.indexOf('class="mceSubscribe2') !== -1) {
62
+ im = pbreplaced[i];
63
+ }
64
+ return im;
65
+ });
66
+ }
67
+ }
68
+ o.content = o.content.replace(/<img[^>]+>/, function(im) {
69
+ if (im.indexOf('class="mceSubscribe2') !== -1) {
70
+ im = shortcode;
71
+ }
72
  return im;
73
  });
74
+ }
75
  });
76
  },
77
 
tinymce3/editor_plugin.js CHANGED
@@ -1 +1 @@
1
- (function(){tinymce.create('tinymce.plugins.Subscribe2Plugin',{init:function(ed,url){var pb='<img src="'+url+'/../include/spacer.gif" class="mceSubscribe2 mceItemNoResize" />',cls='mceSubscribe2',sep=ed.getParam('subscribe2_separator','[subscribe2]'),pbRE;pbRE=new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(a){return'\\'+a}),'g');ed.addCommand('mceSubscribe2',function(){ed.execCommand('mceInsertContent',0,pb)});ed.addButton('subscribe2',{title:'Insert Subscribe2 Token',image:url+'/../include/s2_button.png',cmd:cls});ed.onInit.add(function(){ed.dom.loadCSS(url+"/css/content.css");if(ed.theme.onResolveName){ed.theme.onResolveName.add(function(th,o){if(o.node.nodeName=='IMG'&&ed.dom.hasClass(o.node,cls))o.name='subscribe2'})}});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName==='IMG'&&ed.dom.hasClass(e,cls))ed.selection.select(e)});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('subscribe2',n.nodeName==='IMG'&&ed.dom.hasClass(n,cls))});ed.onBeforeSetContent.add(function(ed,o){o.content=o.content.replace(pbRE,pb)});ed.onPostProcess.add(function(ed,o){if(o.get)o.content=o.content.replace(/<img[^>]+>/g,function(im){if(im.indexOf('class="mceSubscribe2')!==-1)im=sep;return im})})},getInfo:function(){return{longname:'Insert Subscribe2 Token',author:'Matthew Robinson',authorurl:'http://subscribe2.wordpress.com',infourl:'http://subscribe2.wordpress.com',version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add('subscribe2',tinymce.plugins.Subscribe2Plugin)})();
1
+ (function(){tinymce.create('tinymce.plugins.Subscribe2Plugin',{init:function(ed,url){var pb='<img src="'+url+'/../include/spacer.gif" class="mceSubscribe2 mceItemNoResize" />',cls='mceSubscribe2',shortcode='[subscribe2]',pbreplaced=[],pbRE=new RegExp(/(\[|<!--)subscribe2.*(\]|-->)/g);ed.addCommand('mceSubscribe2',function(){ed.execCommand('mceInsertContent',0,pb)});ed.addButton('subscribe2',{title:'Insert Subscribe2 Token',image:url+'/../include/s2_button.png',cmd:cls});ed.onInit.add(function(){ed.dom.loadCSS(url+"/css/content.css");if(ed.theme.onResolveName){ed.theme.onResolveName.add(function(th,o){if(o.node.nodeName=='IMG'&&ed.dom.hasClass(o.node,cls))o.name='subscribe2'})}});ed.onClick.add(function(ed,e){e=e.target;if(e.nodeName==='IMG'&&ed.dom.hasClass(e,cls))ed.selection.select(e)});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('subscribe2',n.nodeName==='IMG'&&ed.dom.hasClass(n,cls))});ed.onBeforeSetContent.add(function(ed,o){pbreplaced=o.content.match(pbRE);o.content=o.content.replace(pbRE,pb)});ed.onPostProcess.add(function(ed,o){if(o.get){if(pbreplaced!==null){for(i=0;i<pbreplaced.length;i++){o.content=o.content.replace(/<img[^>]+>/,function(im){if(im.indexOf('class="mceSubscribe2')!==-1){im=pbreplaced[i]}return im})}}o.content=o.content.replace(/<img[^>]+>/,function(im){if(im.indexOf('class="mceSubscribe2')!==-1){im=shortcode}return im})}})},getInfo:function(){return{longname:'Insert Subscribe2 Token',author:'Matthew Robinson',authorurl:'http://subscribe2.wordpress.com',infourl:'http://subscribe2.wordpress.com',version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add('subscribe2',tinymce.plugins.Subscribe2Plugin)})();