Subscribe To Comments Reloaded - Version 190426

Version Description

Download this release

Release Info

Developer wpkube
Plugin Icon 128x128 Subscribe To Comments Reloaded
Version 190426
Comparing to
See all releases

Code changes from version 190412 to 190426

Files changed (72) hide show
  1. classes/stcr_i18n.php +35 -41
  2. includes/js/admin/management_page.js +1 -1
  3. includes/js/admin/subs_management.js +14 -14
  4. langs/{subscribe-reloaded-be_BY.mo → subscribe-to-comments-reloaded-be_BY.mo} +0 -0
  5. langs/{subscribe-reloaded-be_BY.po → subscribe-to-comments-reloaded-be_BY.po} +0 -0
  6. langs/{subscribe-reloaded-cs_CZ.mo → subscribe-to-comments-reloaded-cs_CZ.mo} +0 -0
  7. langs/{subscribe-reloaded-cs_CZ.po → subscribe-to-comments-reloaded-cs_CZ.po} +0 -0
  8. langs/{subscribe-reloaded-da_DK.mo → subscribe-to-comments-reloaded-da_DK.mo} +0 -0
  9. langs/{subscribe-reloaded-da_DK.po → subscribe-to-comments-reloaded-da_DK.po} +0 -0
  10. langs/{subscribe-reloaded-de_DE.mo → subscribe-to-comments-reloaded-de_DE.mo} +0 -0
  11. langs/{subscribe-reloaded-de_DE.po → subscribe-to-comments-reloaded-de_DE.po} +0 -0
  12. langs/{subscribe-reloaded-es_ES.mo → subscribe-to-comments-reloaded-es_ES.mo} +0 -0
  13. langs/{subscribe-reloaded-es_ES.po → subscribe-to-comments-reloaded-es_ES.po} +0 -0
  14. langs/{subscribe-reloaded-fa_IR.mo → subscribe-to-comments-reloaded-fa_IR.mo} +0 -0
  15. langs/{subscribe-reloaded-fa_IR.po → subscribe-to-comments-reloaded-fa_IR.po} +0 -0
  16. langs/{subscribe-reloaded-fr_FR.mo → subscribe-to-comments-reloaded-fr_FR.mo} +0 -0
  17. langs/{subscribe-reloaded-fr_FR.po → subscribe-to-comments-reloaded-fr_FR.po} +0 -0
  18. langs/{subscribe-reloaded-he_IL.mo → subscribe-to-comments-reloaded-he_IL.mo} +0 -0
  19. langs/{subscribe-reloaded-he_IL.po → subscribe-to-comments-reloaded-he_IL.po} +0 -0
  20. langs/{subscribe-reloaded-hu_HU.mo → subscribe-to-comments-reloaded-hu_HU.mo} +0 -0
  21. langs/{subscribe-reloaded-hu_HU.po → subscribe-to-comments-reloaded-hu_HU.po} +0 -0
  22. langs/{subscribe-reloaded-id_ID.mo → subscribe-to-comments-reloaded-id_ID.mo} +0 -0
  23. langs/{subscribe-reloaded-id_ID.po → subscribe-to-comments-reloaded-id_ID.po} +0 -0
  24. langs/{subscribe-reloaded-it_IT.mo → subscribe-to-comments-reloaded-it_IT.mo} +0 -0
  25. langs/{subscribe-reloaded-it_IT.po → subscribe-to-comments-reloaded-it_IT.po} +0 -0
  26. langs/{subscribe-reloaded-nb_NO.mo → subscribe-to-comments-reloaded-nb_NO.mo} +0 -0
  27. langs/{subscribe-reloaded-nb_NO.po → subscribe-to-comments-reloaded-nb_NO.po} +0 -0
  28. langs/{subscribe-reloaded-nl_NL.mo → subscribe-to-comments-reloaded-nl_NL.mo} +0 -0
  29. langs/{subscribe-reloaded-nl_NL.po → subscribe-to-comments-reloaded-nl_NL.po} +0 -0
  30. langs/{subscribe-reloaded-pl_PL.mo → subscribe-to-comments-reloaded-pl_PL.mo} +0 -0
  31. langs/{subscribe-reloaded-pl_PL.po → subscribe-to-comments-reloaded-pl_PL.po} +0 -0
  32. langs/{subscribe-reloaded-pt_BR.mo → subscribe-to-comments-reloaded-pt_BR.mo} +0 -0
  33. langs/{subscribe-reloaded-pt_BR.po → subscribe-to-comments-reloaded-pt_BR.po} +0 -0
  34. langs/{subscribe-reloaded-pt_PT.mo → subscribe-to-comments-reloaded-pt_PT.mo} +0 -0
  35. langs/{subscribe-reloaded-pt_PT.po → subscribe-to-comments-reloaded-pt_PT.po} +0 -0
  36. langs/{subscribe-reloaded-ru_RU.mo → subscribe-to-comments-reloaded-ru_RU.mo} +0 -0
  37. langs/{subscribe-reloaded-ru_RU.po → subscribe-to-comments-reloaded-ru_RU.po} +0 -0
  38. langs/{subscribe-reloaded-sr_RS.mo → subscribe-to-comments-reloaded-sr_RS.mo} +0 -0
  39. langs/{subscribe-reloaded-sr_RS.po → subscribe-to-comments-reloaded-sr_RS.po} +0 -0
  40. langs/{subscribe-reloaded-sv_SE.mo → subscribe-to-comments-reloaded-sv_SE.mo} +0 -0
  41. langs/{subscribe-reloaded-sv_SE.po → subscribe-to-comments-reloaded-sv_SE.po} +0 -0
  42. langs/{subscribe-reloaded-tr_TR.mo → subscribe-to-comments-reloaded-tr_TR.mo} +0 -0
  43. langs/{subscribe-reloaded-tr_TR.po → subscribe-to-comments-reloaded-tr_TR.po} +0 -0
  44. langs/{subscribe-reloaded-zh_CN.mo → subscribe-to-comments-reloaded-zh_CN.mo} +0 -0
  45. langs/{subscribe-reloaded-zh_CN.po → subscribe-to-comments-reloaded-zh_CN.po} +0 -0
  46. langs/{subscribe-reloaded.pot → subscribe-to-comments-reloaded.pot} +0 -0
  47. options/options_template.php +3 -3
  48. options/panel1-add-subscription.php +8 -8
  49. options/panel1-business-logic.php +10 -10
  50. options/panel1-edit-subscription.php +14 -14
  51. options/stcr_comment_form.php +48 -48
  52. options/stcr_manage_subscriptions.php +54 -59
  53. options/stcr_management_page.php +42 -42
  54. options/stcr_notifications.php +37 -37
  55. options/stcr_options.php +75 -75
  56. options/stcr_support.php +9 -9
  57. options/stcr_system.php +95 -79
  58. readme.txt +11 -1
  59. subscribe-to-comments-reloaded.php +1 -1
  60. templates/author.php +28 -28
  61. templates/confirm.php +1 -1
  62. templates/key_expired.php +3 -3
  63. templates/one-click-unsubscribe.php +1 -1
  64. templates/request-management-link.php +8 -8
  65. templates/subscribe.php +11 -11
  66. templates/user.php +28 -28
  67. templates/wrong-request.php +1 -1
  68. utils/stcr_manage.php +23 -23
  69. utils/stcr_upgrade.php +77 -77
  70. utils/stcr_utils.php +44 -44
  71. utils/systemInformation.txt +1 -0
  72. wp_subscribe_reloaded.php +24 -23
classes/stcr_i18n.php CHANGED
@@ -13,13 +13,12 @@ if ( ! function_exists( 'add_action' ) ) {
13
exit;
14
}
15
16
- class stcr_i18n
17
- {
18
private $js_subs_translation = array();
19
private $wp_locale = null;
20
21
- public function __construct()
22
- {
23
add_action( 'plugins_loaded', array( $this, 'register_js_subs_translation' ) );
24
global $wp_locale;
25
$this->wp_locale = get_locale();
@@ -35,8 +34,7 @@ class stcr_i18n
35
* Example: '/[a-zA-Z0-9_]+/'.
36
* @param string $l10n The data itself. The data can be either a single or multi-dimensional array.
37
*/
38
- public function stcr_localize_script( $handle, $object_name, $l10n )
39
- {
40
wp_localize_script( $handle, $object_name, $l10n );
41
}
42
/**
@@ -45,78 +43,74 @@ class stcr_i18n
45
* @since 28-Mar-2018
46
* @author reedyseth
47
*/
48
- public function register_js_subs_translation()
49
- {
50
$translation_array = array (
51
- "decimal" => __( " ", "subscribe-reloaded" ),
52
- "emptyTable" => __( "No data available in table", "subscribe-reloaded" ),
53
- "info" => __( "Showing _START_ to _END_ of _TOTAL_ entries", "subscribe-reloaded" ),
54
- "infoEmpty" => __( "Showing 0 to 0 of 0 entries", "subscribe-reloaded" ),
55
- "infoFiltered" => __( "(filtered from _MAX_ total entries)", "subscribe-reloaded" ),
56
- "infoPostFix" => __( " ", "subscribe-reloaded" ),
57
- "thousands" => __( ",", "subscribe-reloaded" ),
58
- "lengthMenu" => __( "Show _MENU_ entries", "subscribe-reloaded" ),
59
- "loadingRecords" => __( "Loading...", "subscribe-reloaded" ),
60
- "processing" => __( "Processing...", "subscribe-reloaded" ),
61
- "search" => __( "Search", "subscribe-reloaded" ),
62
- "zeroRecords" => __( "No matching records found", "subscribe-reloaded" ),
63
"paginate" => array(
64
- "first" => __( "First", "subscribe-reloaded" ),
65
- "last" => __( "Last", "subscribe-reloaded" ),
66
- "next" => __( "Next", "subscribe-reloaded" ),
67
- "previous" => __( "Previous", "subscribe-reloaded" )
68
),
69
"aria" => array(
70
- "sortAscending" => __( "activate to sort column ascending", "subscribe-reloaded" ),
71
- "sortDescending"=> __( "activate to sort column descending", "subscribe-reloaded" )
72
),
73
"langTextDirection" => $this->get_text_direction()
74
);
75
76
$this->set_js_subs_translation( $translation_array );
77
}
78
/**
79
* @return mixed
80
*/
81
- public function get_js_subs_translation()
82
- {
83
return $this->js_subs_translation;
84
}
85
86
/**
87
* @param mixed $translation_array
88
*/
89
- public function set_js_subs_translation( $translation_array )
90
- {
91
$this->js_subs_translation = array_merge( $this->get_js_subs_translation(), $translation_array );
92
}
93
94
/**
95
* @return null
96
*/
97
- public function get_wp_locale()
98
- {
99
return $this->wp_locale;
100
}
101
102
- public function get_text_direction()
103
- {
104
- if ( is_rtl() )
105
- {
106
$text_direction = "rtl";
107
- }
108
- else
109
- {
110
$text_direction = "ltr";
111
}
112
113
return $text_direction;
114
}
115
/**
116
* @param null $wp_locale
117
*/
118
- public function set_wp_locale($wp_locale)
119
- {
120
$this->wp_locale = $wp_locale;
121
}
122
}
13
exit;
14
}
15
16
+ class stcr_i18n {
17
+
18
private $js_subs_translation = array();
19
private $wp_locale = null;
20
21
+ public function __construct() {
22
add_action( 'plugins_loaded', array( $this, 'register_js_subs_translation' ) );
23
global $wp_locale;
24
$this->wp_locale = get_locale();
34
* Example: '/[a-zA-Z0-9_]+/'.
35
* @param string $l10n The data itself. The data can be either a single or multi-dimensional array.
36
*/
37
+ public function stcr_localize_script( $handle, $object_name, $l10n ) {
38
wp_localize_script( $handle, $object_name, $l10n );
39
}
40
/**
43
* @since 28-Mar-2018
44
* @author reedyseth
45
*/
46
+ public function register_js_subs_translation() {
47
$translation_array = array (
48
+ "decimal" => __( " ", 'subscribe-to-comments-reloaded' ),
49
+ "emptyTable" => __( "No data available in table", 'subscribe-to-comments-reloaded' ),
50
+ "info" => __( "Showing _START_ to _END_ of _TOTAL_ entries", 'subscribe-to-comments-reloaded' ),
51
+ "infoEmpty" => __( "Showing 0 to 0 of 0 entries", 'subscribe-to-comments-reloaded' ),
52
+ "infoFiltered" => __( "(filtered from _MAX_ total entries)", 'subscribe-to-comments-reloaded' ),
53
+ "infoPostFix" => __( " ", 'subscribe-to-comments-reloaded' ),
54
+ "thousands" => __( ",", 'subscribe-to-comments-reloaded' ),
55
+ "lengthMenu" => __( "Show _MENU_ entries", 'subscribe-to-comments-reloaded' ),
56
+ "loadingRecords" => __( "Loading...", 'subscribe-to-comments-reloaded' ),
57
+ "processing" => __( "Processing...", 'subscribe-to-comments-reloaded' ),
58
+ "search" => __( "Search", 'subscribe-to-comments-reloaded' ),
59
+ "zeroRecords" => __( "No matching records found", 'subscribe-to-comments-reloaded' ),
60
"paginate" => array(
61
+ "first" => __( "First", 'subscribe-to-comments-reloaded' ),
62
+ "last" => __( "Last", 'subscribe-to-comments-reloaded' ),
63
+ "next" => __( "Next", 'subscribe-to-comments-reloaded' ),
64
+ "previous" => __( "Previous", 'subscribe-to-comments-reloaded' )
65
),
66
"aria" => array(
67
+ "sortAscending" => __( "activate to sort column ascending", 'subscribe-to-comments-reloaded' ),
68
+ "sortDescending"=> __( "activate to sort column descending", 'subscribe-to-comments-reloaded' )
69
),
70
"langTextDirection" => $this->get_text_direction()
71
);
72
73
$this->set_js_subs_translation( $translation_array );
74
}
75
+
76
/**
77
* @return mixed
78
*/
79
+ public function get_js_subs_translation() {
80
return $this->js_subs_translation;
81
}
82
83
/**
84
* @param mixed $translation_array
85
*/
86
+ public function set_js_subs_translation( $translation_array ) {
87
$this->js_subs_translation = array_merge( $this->get_js_subs_translation(), $translation_array );
88
}
89
90
/**
91
* @return null
92
*/
93
+ public function get_wp_locale() {
94
return $this->wp_locale;
95
}
96
97
+ public function get_text_direction() {
98
+
99
+ if ( function_exists( 'is_rtl' ) && is_rtl() ) {
100
$text_direction = "rtl";
101
+ } else {
102
$text_direction = "ltr";
103
}
104
105
return $text_direction;
106
+
107
}
108
+
109
/**
110
* @param null $wp_locale
111
*/
112
+ public function set_wp_locale($wp_locale) {
113
$this->wp_locale = $wp_locale;
114
}
115
+
116
}
includes/js/admin/management_page.js CHANGED
@@ -17,7 +17,7 @@
17
{
18
missing_fields.push( // TODO: Only push if the array does not contain the key already.
19
{
20
- message: "<?php _e( 'Missing information', 'subscribe-reloaded' ) ?>",
21
field: field
22
} );
23
}
17
{
18
missing_fields.push( // TODO: Only push if the array does not contain the key already.
19
{
20
+ message: "<?php _e( 'Missing information', 'subscribe-to-comments-reloaded' ) ?>",
21
field: field
22
} );
23
}
includes/js/admin/subs_management.js CHANGED
@@ -7,7 +7,7 @@
7
8
9
oldsre_input.focus(function(){
10
- if (oldsre_input.val() == "<?php _e( 'email address', 'subscribe-reloaded' ) ?>")
11
{
12
oldsre_input.val("");
13
}
@@ -17,13 +17,13 @@
17
oldsre_input.blur(function(){
18
if (oldsre_input.val() == "")
19
{
20
- oldsre_input.val("<?php _e( 'email address', 'subscribe-reloaded' ) ?>");
21
oldsre_input.css("color","#ccc");
22
}
23
});
24
25
sre_input.focus(function(){
26
- if (sre_input.val() == "<?php _e( 'optional - new email address', 'subscribe-reloaded' ) ?>")
27
{
28
sre_input.val("");
29
}
@@ -33,7 +33,7 @@
33
sre_input.blur(function(){
34
if (sre_input.val() == "")
35
{
36
- sre_input.val("<?php _e( 'optional - new email address', 'subscribe-reloaded' ) ?>");
37
sre_input.css("color","#ccc");
38
}
39
});
@@ -43,11 +43,11 @@
43
var email = $.trim( $("form#mass_update_address_form input[name='sre']").val() );
44
var missing_fields = [];
45
46
- if( old_email == "<?php _e( 'email address', 'subscribe-reloaded' ) ?>" || old_email == "")
47
{
48
missing_fields.push(
49
{
50
- message: "<?php _e( 'Missing information', 'subscribe-reloaded' ) ?>",
51
field: "oldsre"
52
} );
53
}
@@ -55,7 +55,7 @@
55
{
56
missing_fields.push(
57
{
58
- message: "<?php _e( 'Invalid email address.', 'subscribe-reloaded' ) ?>",
59
field: "oldsre"
60
} );
61
}
@@ -77,7 +77,7 @@
77
else
78
{
79
var answer = confirm('Please remember: this operation cannot be undone. Are you sure you want to proceed?');
80
- // var answer = confirm('<?php _e( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-reloaded' ) ?>');
81
if( ! answer )
82
{
83
return false;
@@ -115,7 +115,7 @@
115
{
116
missing_fields.push(
117
{
118
- message: "<?php _e( 'Missing information', 'subscribe-reloaded' ) ?>",
119
field: "srp"
120
} );
121
}
@@ -123,7 +123,7 @@
123
{
124
missing_fields.push(
125
{
126
- message: "<?php _e( 'Enter a numeric Post ID.', 'subscribe-reloaded' ) ?>",
127
field: "srp"
128
} );
129
}
@@ -132,7 +132,7 @@
132
{
133
missing_fields.push(
134
{
135
- message: "<?php _e( 'Missing email information', 'subscribe-reloaded' ) ?>",
136
field: "sre"
137
} );
138
}
@@ -140,7 +140,7 @@
140
{
141
missing_fields.push(
142
{
143
- message: "<?php _e( 'Invalid email address.', 'subscribe-reloaded' ) ?>",
144
field: "sre"
145
} );
146
}
@@ -168,7 +168,7 @@
168
169
if( search_value == "")
170
{
171
- search_input.val("<?php _e( 'Please enter a value', 'subscribe-reloaded' ) ?>");
172
search_input.addClass("validate-error-field");
173
174
return false;
@@ -176,7 +176,7 @@
176
});
177
178
search_input.focus(function(){
179
- if( search_input.val() == "<?php _e( 'Please enter a value', 'subscribe-reloaded' ) ?>" )
180
{
181
search_input.val("");
182
}
7
8
9
oldsre_input.focus(function(){
10
+ if (oldsre_input.val() == "<?php _e( 'email address', 'subscribe-to-comments-reloaded' ) ?>")
11
{
12
oldsre_input.val("");
13
}
17
oldsre_input.blur(function(){
18
if (oldsre_input.val() == "")
19
{
20
+ oldsre_input.val("<?php _e( 'email address', 'subscribe-to-comments-reloaded' ) ?>");
21
oldsre_input.css("color","#ccc");
22
}
23
});
24
25
sre_input.focus(function(){
26
+ if (sre_input.val() == "<?php _e( 'optional - new email address', 'subscribe-to-comments-reloaded' ) ?>")
27
{
28
sre_input.val("");
29
}
33
sre_input.blur(function(){
34
if (sre_input.val() == "")
35
{
36
+ sre_input.val("<?php _e( 'optional - new email address', 'subscribe-to-comments-reloaded' ) ?>");
37
sre_input.css("color","#ccc");
38
}
39
});
43
var email = $.trim( $("form#mass_update_address_form input[name='sre']").val() );
44
var missing_fields = [];
45
46
+ if( old_email == "<?php _e( 'email address', 'subscribe-to-comments-reloaded' ) ?>" || old_email == "")
47
{
48
missing_fields.push(
49
{
50
+ message: "<?php _e( 'Missing information', 'subscribe-to-comments-reloaded' ) ?>",
51
field: "oldsre"
52
} );
53
}
55
{
56
missing_fields.push(
57
{
58
+ message: "<?php _e( 'Invalid email address.', 'subscribe-to-comments-reloaded' ) ?>",
59
field: "oldsre"
60
} );
61
}
77
else
78
{
79
var answer = confirm('Please remember: this operation cannot be undone. Are you sure you want to proceed?');
80
+ // var answer = confirm('<?php _e( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-to-comments-reloaded' ) ?>');
81
if( ! answer )
82
{
83
return false;
115
{
116
missing_fields.push(
117
{
118
+ message: "<?php _e( 'Missing information', 'subscribe-to-comments-reloaded' ) ?>",
119
field: "srp"
120
} );
121
}
123
{
124
missing_fields.push(
125
{
126
+ message: "<?php _e( 'Enter a numeric Post ID.', 'subscribe-to-comments-reloaded' ) ?>",
127
field: "srp"
128
} );
129
}
132
{
133
missing_fields.push(
134
{
135
+ message: "<?php _e( 'Missing email information', 'subscribe-to-comments-reloaded' ) ?>",
136
field: "sre"
137
} );
138
}
140
{
141
missing_fields.push(
142
{
143
+ message: "<?php _e( 'Invalid email address.', 'subscribe-to-comments-reloaded' ) ?>",
144
field: "sre"
145
} );
146
}
168
169
if( search_value == "")
170
{
171
+ search_input.val("<?php _e( 'Please enter a value', 'subscribe-to-comments-reloaded' ) ?>");
172
search_input.addClass("validate-error-field");
173
174
return false;
176
});
177
178
search_input.focus(function(){
179
+ if( search_input.val() == "<?php _e( 'Please enter a value', 'subscribe-to-comments-reloaded' ) ?>" )
180
{
181
search_input.val("");
182
}
langs/{subscribe-reloaded-be_BY.mo → subscribe-to-comments-reloaded-be_BY.mo} RENAMED
File without changes
langs/{subscribe-reloaded-be_BY.po → subscribe-to-comments-reloaded-be_BY.po} RENAMED
File without changes
langs/{subscribe-reloaded-cs_CZ.mo → subscribe-to-comments-reloaded-cs_CZ.mo} RENAMED
File without changes
langs/{subscribe-reloaded-cs_CZ.po → subscribe-to-comments-reloaded-cs_CZ.po} RENAMED
File without changes
langs/{subscribe-reloaded-da_DK.mo → subscribe-to-comments-reloaded-da_DK.mo} RENAMED
File without changes
langs/{subscribe-reloaded-da_DK.po → subscribe-to-comments-reloaded-da_DK.po} RENAMED
File without changes
langs/{subscribe-reloaded-de_DE.mo → subscribe-to-comments-reloaded-de_DE.mo} RENAMED
File without changes
langs/{subscribe-reloaded-de_DE.po → subscribe-to-comments-reloaded-de_DE.po} RENAMED
File without changes
langs/{subscribe-reloaded-es_ES.mo → subscribe-to-comments-reloaded-es_ES.mo} RENAMED
File without changes
langs/{subscribe-reloaded-es_ES.po → subscribe-to-comments-reloaded-es_ES.po} RENAMED
File without changes
langs/{subscribe-reloaded-fa_IR.mo → subscribe-to-comments-reloaded-fa_IR.mo} RENAMED
File without changes
langs/{subscribe-reloaded-fa_IR.po → subscribe-to-comments-reloaded-fa_IR.po} RENAMED
File without changes
langs/{subscribe-reloaded-fr_FR.mo → subscribe-to-comments-reloaded-fr_FR.mo} RENAMED
File without changes
langs/{subscribe-reloaded-fr_FR.po → subscribe-to-comments-reloaded-fr_FR.po} RENAMED
File without changes
langs/{subscribe-reloaded-he_IL.mo → subscribe-to-comments-reloaded-he_IL.mo} RENAMED
File without changes
langs/{subscribe-reloaded-he_IL.po → subscribe-to-comments-reloaded-he_IL.po} RENAMED
File without changes
langs/{subscribe-reloaded-hu_HU.mo → subscribe-to-comments-reloaded-hu_HU.mo} RENAMED
File without changes
langs/{subscribe-reloaded-hu_HU.po → subscribe-to-comments-reloaded-hu_HU.po} RENAMED
File without changes
langs/{subscribe-reloaded-id_ID.mo → subscribe-to-comments-reloaded-id_ID.mo} RENAMED
File without changes
langs/{subscribe-reloaded-id_ID.po → subscribe-to-comments-reloaded-id_ID.po} RENAMED
File without changes
langs/{subscribe-reloaded-it_IT.mo → subscribe-to-comments-reloaded-it_IT.mo} RENAMED
File without changes
langs/{subscribe-reloaded-it_IT.po → subscribe-to-comments-reloaded-it_IT.po} RENAMED
File without changes
langs/{subscribe-reloaded-nb_NO.mo → subscribe-to-comments-reloaded-nb_NO.mo} RENAMED
File without changes
langs/{subscribe-reloaded-nb_NO.po → subscribe-to-comments-reloaded-nb_NO.po} RENAMED
File without changes
langs/{subscribe-reloaded-nl_NL.mo → subscribe-to-comments-reloaded-nl_NL.mo} RENAMED
File without changes
langs/{subscribe-reloaded-nl_NL.po → subscribe-to-comments-reloaded-nl_NL.po} RENAMED
File without changes
langs/{subscribe-reloaded-pl_PL.mo → subscribe-to-comments-reloaded-pl_PL.mo} RENAMED
File without changes
langs/{subscribe-reloaded-pl_PL.po → subscribe-to-comments-reloaded-pl_PL.po} RENAMED
File without changes
langs/{subscribe-reloaded-pt_BR.mo → subscribe-to-comments-reloaded-pt_BR.mo} RENAMED
File without changes
langs/{subscribe-reloaded-pt_BR.po → subscribe-to-comments-reloaded-pt_BR.po} RENAMED
File without changes
langs/{subscribe-reloaded-pt_PT.mo → subscribe-to-comments-reloaded-pt_PT.mo} RENAMED
File without changes
langs/{subscribe-reloaded-pt_PT.po → subscribe-to-comments-reloaded-pt_PT.po} RENAMED
File without changes
langs/{subscribe-reloaded-ru_RU.mo → subscribe-to-comments-reloaded-ru_RU.mo} RENAMED
File without changes
langs/{subscribe-reloaded-ru_RU.po → subscribe-to-comments-reloaded-ru_RU.po} RENAMED
File without changes
langs/{subscribe-reloaded-sr_RS.mo → subscribe-to-comments-reloaded-sr_RS.mo} RENAMED
File without changes
langs/{subscribe-reloaded-sr_RS.po → subscribe-to-comments-reloaded-sr_RS.po} RENAMED
File without changes
langs/{subscribe-reloaded-sv_SE.mo → subscribe-to-comments-reloaded-sv_SE.mo} RENAMED
File without changes
langs/{subscribe-reloaded-sv_SE.po → subscribe-to-comments-reloaded-sv_SE.po} RENAMED
File without changes
langs/{subscribe-reloaded-tr_TR.mo → subscribe-to-comments-reloaded-tr_TR.mo} RENAMED
File without changes
langs/{subscribe-reloaded-tr_TR.po → subscribe-to-comments-reloaded-tr_TR.po} RENAMED
File without changes
langs/{subscribe-reloaded-zh_CN.mo → subscribe-to-comments-reloaded-zh_CN.mo} RENAMED
File without changes
langs/{subscribe-reloaded-zh_CN.po → subscribe-to-comments-reloaded-zh_CN.po} RENAMED
File without changes
langs/{subscribe-reloaded.pot → subscribe-to-comments-reloaded.pot} RENAMED
File without changes
options/options_template.php CHANGED
@@ -41,9 +41,9 @@ if ( isset( $_POST['options'] ) ) {
41
// Display an alert in the admin interface if something went wrong
42
echo '<div class="updated"><p>';
43
if ( sizeof( $faulty_fields ) == 0 ) {
44
- _e( 'Your settings have been successfully updated.', 'subscribe-reloaded' );
45
} else {
46
- _e( 'There was an error updating the options.', 'subscribe-reloaded' );
47
// echo ' <strong>' . substr( $faulty_fields, 0, - 2 ) . '</strong>';
48
}
49
echo "</p></div>";
@@ -64,7 +64,7 @@ wp_print_scripts( 'quicktags' );
64
<div class="form-group row">
65
<div class="col-sm-9 offset-sm-1">
66
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
67
- <?php _e( 'Save Changes', 'subscribe-reloaded' ) ?>
68
</button>
69
</div>
70
</div>
41
// Display an alert in the admin interface if something went wrong
42
echo '<div class="updated"><p>';
43
if ( sizeof( $faulty_fields ) == 0 ) {
44
+ _e( 'Your settings have been successfully updated.', 'subscribe-to-comments-reloaded' );
45
} else {
46
+ _e( 'There was an error updating the options.', 'subscribe-to-comments-reloaded' );
47
// echo ' <strong>' . substr( $faulty_fields, 0, - 2 ) . '</strong>';
48
}
49
echo "</p></div>";
64
<div class="form-group row">
65
<div class="col-sm-9 offset-sm-1">
66
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
67
+ <?php _e( 'Save Changes', 'subscribe-to-comments-reloaded' ) ?>
68
</button>
69
</div>
70
</div>
options/panel1-add-subscription.php CHANGED
@@ -5,25 +5,25 @@ if ( ! function_exists( 'is_admin' ) || ! is_admin() ) {
5
}
6
?>
7
<div class="postbox">
8
- <h3><?php _e( 'Add New Subscription', 'subscribe-reloaded' ) ?></h3>
9
10
<form action="" method="post" id="update_address_form"
11
onsubmit="if (this.srp.value == '' || this.sre.value == '') return false;">
12
<fieldset style="border:0">
13
- <p><?php _e( 'Post:', 'subscribe-reloaded' );
14
echo ' <strong>' . get_the_title( intval( $_GET['srp'] ) ) . " (" . intval( $_GET['srp'] ) . ")"; ?></strong></p>
15
16
- <p class="liquid"><label for='sre'><?php _e( 'Email', 'subscribe-reloaded' ) ?></label>
17
<input readonly='readonly' type='text' size='30' name='sre' id='sre' value='<?php echo esc_attr($_GET['sre']) ?>' />
18
</p>
19
20
- <p class="liquid"><label for='srs'><?php _e( 'Status', 'subscribe-reloaded' ) ?></label>
21
<select name="srs" id="srs">
22
- <option value='Y'><?php _e( 'Active', 'subscribe-reloaded' ) ?></option>
23
- <option value='R'><?php _e( 'Replies only', 'subscribe-reloaded' ) ?></option>
24
- <option value='YC'><?php _e( 'Ask user to confirm', 'subscribe-reloaded' ) ?></option>
25
</select>
26
- <input type='submit' class='subscribe-form-button' value='<?php _e( 'Update', 'subscribe-reloaded' ) ?>' />
27
</p>
28
<input type='hidden' name='sra' value='add' />
29
<input type='hidden' name='srp' value='<?php echo intval( $_GET['srp'] ) ?>' />
5
}
6
?>
7
<div class="postbox">
8
+ <h3><?php _e( 'Add New Subscription', 'subscribe-to-comments-reloaded' ) ?></h3>
9
10
<form action="" method="post" id="update_address_form"
11
onsubmit="if (this.srp.value == '' || this.sre.value == '') return false;">
12
<fieldset style="border:0">
13
+ <p><?php _e( 'Post:', 'subscribe-to-comments-reloaded' );
14
echo ' <strong>' . get_the_title( intval( $_GET['srp'] ) ) . " (" . intval( $_GET['srp'] ) . ")"; ?></strong></p>
15
16
+ <p class="liquid"><label for='sre'><?php _e( 'Email', 'subscribe-to-comments-reloaded' ) ?></label>
17
<input readonly='readonly' type='text' size='30' name='sre' id='sre' value='<?php echo esc_attr($_GET['sre']) ?>' />
18
</p>
19
20
+ <p class="liquid"><label for='srs'><?php _e( 'Status', 'subscribe-to-comments-reloaded' ) ?></label>
21
<select name="srs" id="srs">
22
+ <option value='Y'><?php _e( 'Active', 'subscribe-to-comments-reloaded' ) ?></option>
23
+ <option value='R'><?php _e( 'Replies only', 'subscribe-to-comments-reloaded' ) ?></option>
24
+ <option value='YC'><?php _e( 'Ask user to confirm', 'subscribe-to-comments-reloaded' ) ?></option>
25
</select>
26
+ <input type='submit' class='subscribe-form-button' value='<?php _e( 'Update', 'subscribe-to-comments-reloaded' ) ?>' />
27
</p>
28
<input type='hidden' name='sra' value='add' />
29
<input type='hidden' name='srp' value='<?php echo intval( $_GET['srp'] ) ?>' />
options/panel1-business-logic.php CHANGED
@@ -37,7 +37,7 @@ switch ( $action ) {
37
$wp_subscribe_reloaded->stcr->confirmation_email( $post_id, $email );
38
}
39
40
- echo '<div class="updated"><p>' . __( 'Subscription added.', 'subscribe-reloaded' ) . '</p></div>';
41
break;
42
43
case 'edit':
@@ -62,7 +62,7 @@ switch ( $action ) {
62
$wp_subscribe_reloaded->stcr->update_subscription_status( $post_id, $old_email, $status );
63
$wp_subscribe_reloaded->stcr->update_subscription_email( $post_id, $old_email, $new_email );
64
65
- echo '<div class="updated"><p>' . __( 'Subscriptions updated.', 'subscribe-reloaded' ) . '</p></div>';
66
break;
67
68
case 'delete-subscription':
@@ -77,7 +77,7 @@ switch ( $action ) {
77
78
$wp_subscribe_reloaded->stcr->delete_subscriptions( $post_id, $stcr_post_email );
79
80
- echo '<div class="updated"><p>' . __( 'Subscription deleted.', 'subscribe-reloaded' ) . '</p></div>';
81
break;
82
83
default:
@@ -96,23 +96,23 @@ switch ( $action ) {
96
switch ( $action ) {
97
case 'delete':
98
$rows_affected = $wp_subscribe_reloaded->stcr->delete_subscriptions( $post_list, $email_list );
99
- echo '<div class="updated"><p>' . __( 'Subscriptions deleted:', 'subscribe-reloaded' ) . " $rows_affected</p></div>";
100
break;
101
case 'suspend':
102
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email_list, 'C' );
103
- echo '<div class="updated"><p>' . __( 'Subscriptions suspended:', 'subscribe-reloaded' ) . " $rows_affected</p></div>";
104
break;
105
case 'activate':
106
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email_list, '-C' );
107
- echo '<div class="updated"><p>' . __( 'Subscriptions activated:', 'subscribe-reloaded' ) . " $rows_affected</p></div>";
108
break;
109
case 'force_y':
110
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email_list, 'Y' );
111
- echo '<div class="updated"><p>' . __( 'Subscriptions updated:', 'subscribe-reloaded' ) . " $rows_affected</p></div>";
112
break;
113
case 'force_r':
114
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email_list, 'R' );
115
- echo '<div class="updated"><p>' . __( 'Subscriptions updated:', 'subscribe-reloaded' ) . " $rows_affected</p></div>";
116
break;
117
default:
118
break;
@@ -148,9 +148,9 @@ $previous_link = $next_link = $next_page_link = $previous_page_link = '';
148
149
if ( $offset > 0 ) {
150
$new_starting = ( $offset > $limit_results ) ? $offset - $limit_results : 0;
151
- $previous_link = "<a href='admin.php?page=stcr_manage_subscriptions&amp;srf=$search_field&amp;srt=" . urlencode( $operator ) . "&amp;srv=$search_value&amp;srob=$order_by&amp;sro=$order&amp;srsf=$new_starting&amp;srrp=$limit_results'>" . __( '&laquo; Previous', 'subscribe-reloaded' ) . "</a> ";
152
}
153
if ( ( $ending_to < $count_total ) && ( $count_results > 0 ) ) {
154
$new_starting = $offset + $limit_results;
155
- $next_link = "<a href='admin.php?page=stcr_manage_subscriptions&amp;srf=$search_field&amp;srt=" . urlencode( $operator ) . "&amp;srv=$search_value&amp;srob=$order_by&amp;sro=$order&amp;srsf=$new_starting&amp;srrp=$limit_results'>" . __( 'Next &raquo;', 'subscribe-reloaded' ) . "</a> ";
156
}
37
$wp_subscribe_reloaded->stcr->confirmation_email( $post_id, $email );
38
}
39
40
+ echo '<div class="updated"><p>' . __( 'Subscription added.', 'subscribe-to-comments-reloaded' ) . '</p></div>';
41
break;
42
43
case 'edit':
62
$wp_subscribe_reloaded->stcr->update_subscription_status( $post_id, $old_email, $status );
63
$wp_subscribe_reloaded->stcr->update_subscription_email( $post_id, $old_email, $new_email );
64
65
+ echo '<div class="updated"><p>' . __( 'Subscriptions updated.', 'subscribe-to-comments-reloaded' ) . '</p></div>';
66
break;
67
68
case 'delete-subscription':
77
78
$wp_subscribe_reloaded->stcr->delete_subscriptions( $post_id, $stcr_post_email );
79
80
+ echo '<div class="updated"><p>' . __( 'Subscription deleted.', 'subscribe-to-comments-reloaded' ) . '</p></div>';
81
break;
82
83
default:
96
switch ( $action ) {
97
case 'delete':
98
$rows_affected = $wp_subscribe_reloaded->stcr->delete_subscriptions( $post_list, $email_list );
99
+ echo '<div class="updated"><p>' . __( 'Subscriptions deleted:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p></div>";
100
break;
101
case 'suspend':
102
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email_list, 'C' );
103
+ echo '<div class="updated"><p>' . __( 'Subscriptions suspended:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p></div>";
104
break;
105
case 'activate':
106
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email_list, '-C' );
107
+ echo '<div class="updated"><p>' . __( 'Subscriptions activated:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p></div>";
108
break;
109
case 'force_y':
110
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email_list, 'Y' );
111
+ echo '<div class="updated"><p>' . __( 'Subscriptions updated:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p></div>";
112
break;
113
case 'force_r':
114
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email_list, 'R' );
115
+ echo '<div class="updated"><p>' . __( 'Subscriptions updated:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p></div>";
116
break;
117
default:
118
break;
148
149
if ( $offset > 0 ) {
150
$new_starting = ( $offset > $limit_results ) ? $offset - $limit_results : 0;
151
+ $previous_link = "<a href='admin.php?page=stcr_manage_subscriptions&amp;srf=$search_field&amp;srt=" . urlencode( $operator ) . "&amp;srv=$search_value&amp;srob=$order_by&amp;sro=$order&amp;srsf=$new_starting&amp;srrp=$limit_results'>" . __( '&laquo; Previous', 'subscribe-to-comments-reloaded' ) . "</a> ";
152
}
153
if ( ( $ending_to < $count_total ) && ( $count_results > 0 ) ) {
154
$new_starting = $offset + $limit_results;
155
+ $next_link = "<a href='admin.php?page=stcr_manage_subscriptions&amp;srf=$search_field&amp;srt=" . urlencode( $operator ) . "&amp;srv=$search_value&amp;srob=$order_by&amp;sro=$order&amp;srsf=$new_starting&amp;srrp=$limit_results'>" . __( 'Next &raquo;', 'subscribe-to-comments-reloaded' ) . "</a> ";
156
}
options/panel1-edit-subscription.php CHANGED
@@ -5,32 +5,32 @@ if ( ! function_exists( 'is_admin' ) || ! is_admin() ) {
5
}
6
?>
7
<div class="postbox">
8
- <h3><?php _e( 'Update Subscription', 'subscribe-reloaded' ) ?></h3>
9
10
<form action="" method="post" id="update_address_form"
11
- onsubmit="if (this.sre.value != '<?php _e( 'optional', 'subscribe-reloaded' ) ?>') return confirm('<?php _e( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-reloaded' ) ?>')">
12
<fieldset style="border:0">
13
- <p><?php _e( 'Post:', 'subscribe-reloaded' );
14
echo ' <strong>' . get_the_title( intval( $_GET['srp'] ) ) . " (" . intval( $_GET['srp'] ) . ")"; ?></strong></p>
15
16
- <p class="liquid"><label for='oldsre'><?php _e( 'From', 'subscribe-reloaded' ) ?></label>
17
<input readonly='readonly' type='text' size='30' name='oldsre' id='oldsre' value='<?php echo esc_attr($_GET['sre']) ?>' />
18
</p>
19
20
- <p class="liquid"><label for='sre'><?php _e( 'To', 'subscribe-reloaded' ) ?></label>
21
- <input type='text' size='30' name='sre' id='sre' value='<?php _e( 'optional', 'subscribe-reloaded' ) ?>' style="color:#ccc"
22
- onfocus='if (this.value == "<?php _e( 'optional', 'subscribe-reloaded' ) ?>") this.value="";this.style.color="#000"'
23
- onblur='if (this.value == ""){this.value="<?php _e( 'optional', 'subscribe-reloaded' ) ?>";this.style.color="#ccc"}' />
24
</p>
25
26
- <p class="liquid"><label for='srs'><?php _e( 'Status', 'subscribe-reloaded' ) ?></label>
27
<select name="srs" id="srs">
28
- <option value=''><?php _e( 'Keep unchanged', 'subscribe-reloaded' ) ?></option>
29
- <option value='Y'><?php _e( 'Active', 'subscribe-reloaded' ) ?></option>
30
- <option value='R'><?php _e( 'Replies only', 'subscribe-reloaded' ) ?></option>
31
- <option value='C'><?php _e( 'Suspended', 'subscribe-reloaded' ) ?></option>
32
</select>
33
- <input type='submit' class='subscribe-form-button' value='<?php _e( 'Update', 'subscribe-reloaded' ) ?>' />
34
</p>
35
<input type='hidden' name='sra' value='edit' />
36
<input type='hidden' name='srp' value='<?php echo intval( $_GET['srp'] ) ?>' />
5
}
6
?>
7
<div class="postbox">
8
+ <h3><?php _e( 'Update Subscription', 'subscribe-to-comments-reloaded' ) ?></h3>
9
10
<form action="" method="post" id="update_address_form"
11
+ onsubmit="if (this.sre.value != '<?php _e( 'optional', 'subscribe-to-comments-reloaded' ) ?>') return confirm('<?php _e( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-to-comments-reloaded' ) ?>')">
12
<fieldset style="border:0">
13
+ <p><?php _e( 'Post:', 'subscribe-to-comments-reloaded' );
14
echo ' <strong>' . get_the_title( intval( $_GET['srp'] ) ) . " (" . intval( $_GET['srp'] ) . ")"; ?></strong></p>
15
16
+ <p class="liquid"><label for='oldsre'><?php _e( 'From', 'subscribe-to-comments-reloaded' ) ?></label>
17
<input readonly='readonly' type='text' size='30' name='oldsre' id='oldsre' value='<?php echo esc_attr($_GET['sre']) ?>' />
18
</p>
19
20
+ <p class="liquid"><label for='sre'><?php _e( 'To', 'subscribe-to-comments-reloaded' ) ?></label>
21
+ <input type='text' size='30' name='sre' id='sre' value='<?php _e( 'optional', 'subscribe-to-comments-reloaded' ) ?>' style="color:#ccc"
22
+ onfocus='if (this.value == "<?php _e( 'optional', 'subscribe-to-comments-reloaded' ) ?>") this.value="";this.style.color="#000"'
23
+ onblur='if (this.value == ""){this.value="<?php _e( 'optional', 'subscribe-to-comments-reloaded' ) ?>";this.style.color="#ccc"}' />
24
</p>
25
26
+ <p class="liquid"><label for='srs'><?php _e( 'Status', 'subscribe-to-comments-reloaded' ) ?></label>
27
<select name="srs" id="srs">
28
+ <option value=''><?php _e( 'Keep unchanged', 'subscribe-to-comments-reloaded' ) ?></option>
29
+ <option value='Y'><?php _e( 'Active', 'subscribe-to-comments-reloaded' ) ?></option>
30
+ <option value='R'><?php _e( 'Replies only', 'subscribe-to-comments-reloaded' ) ?></option>
31
+ <option value='C'><?php _e( 'Suspended', 'subscribe-to-comments-reloaded' ) ?></option>
32
</select>
33
+ <input type='submit' class='subscribe-form-button' value='<?php _e( 'Update', 'subscribe-to-comments-reloaded' ) ?>' />
34
</p>
35
<input type='hidden' name='sra' value='edit' />
36
<input type='hidden' name='srp' value='<?php echo intval( $_GET['srp'] ) ?>' />
options/stcr_comment_form.php CHANGED
@@ -37,9 +37,9 @@ if ( isset( $_POST['options'] ) ) {
37
// Display an alert in the admin interface if something went wrong
38
echo '<div class="updated"><p>';
39
if ( sizeof( $faulty_fields ) == 0 ) {
40
- _e( 'Your settings have been successfully updated.', 'subscribe-reloaded' );
41
} else {
42
- _e( 'There was an error updating the following fields:', 'subscribe-reloaded' );
43
// echo ' <strong>' . substr( $faulty_fields, 0, - 2 ) . '</strong>';
44
}
45
echo "</p></div>";
@@ -53,50 +53,50 @@ if ( isset( $_POST['options'] ) ) {
53
<div class="col-sm-9">
54
<form action="" method="post">
55
<div class="form-group row">
56
- <label for="show_subscription_box" class="col-sm-3 col-form-label text-right"><?php _e( 'Enable default checkbox', 'subscribe-reloaded' ) ?></label>
57
<div class="col-sm-7">
58
<div class="switch">
59
<input type="radio" class="switch-input" name="options[show_subscription_box]"
60
value="yes" id="show_subscription_box-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'show_subscription_box' ) == 'yes' ) ? ' checked' : ''; ?> />
61
<label for="show_subscription_box-yes" class="switch-label switch-label-off">
62
- <?php _e( 'Yes', 'subscribe-reloaded' ) ?>
63
</label>
64
<input type="radio" class="switch-input" name="options[show_subscription_box]" value="no" id="show_subscription_box-no"
65
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'show_subscription_box' ) == 'no' ) ? ' checked' : ''; ?> />
66
<label for="show_subscription_box-no" class="switch-label switch-label-on">
67
- <?php _e( 'No', 'subscribe-reloaded' ) ?>
68
</label>
69
<span class="switch-selection"></span>
70
</div>
71
<div class="helpDescription subsOptDescriptions"
72
- data-content="<?php _e( 'Disable this option if you want to move the subscription checkbox to a different place on your page.', 'subscribe-reloaded' ); ?>"
73
data-placement="right"
74
- aria-label="<?php _e( 'Disable this option if you want to move the subscription checkbox to a different place on your page.', 'subscribe-reloaded' ); ?>">
75
<i class="fas fa-question-circle"></i>
76
</div>
77
</div>
78
</div>
79
80
<div class="form-group row">
81
- <label for="checked_by_default" class="col-sm-3 col-form-label text-right"><?php _e( 'Checked by default', 'subscribe-reloaded' ) ?></label>
82
<div class="col-sm-7">
83
<div class="switch">
84
<input type="radio" class="switch-input" name="options[checked_by_default]"
85
value="yes" id="checked_by_default-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checked_by_default' ) == 'yes' ) ? ' checked' : ''; ?> />
86
<label for="checked_by_default-yes" class="switch-label switch-label-off">
87
- <?php _e( 'Yes', 'subscribe-reloaded' ) ?>
88
</label>
89
<input type="radio" class="switch-input" name="options[checked_by_default]" value="no" id="checked_by_default-no"
90
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checked_by_default' ) == 'no' ) ? ' checked' : ''; ?> />
91
<label for="checked_by_default-no" class="switch-label switch-label-on">
92
- <?php _e( 'No', 'subscribe-reloaded' ) ?>
93
</label>
94
<span class="switch-selection"></span>
95
</div>
96
<div class="helpDescription subsOptDescriptions"
97
- data-content="<?php _e( 'Decide if the checkbox should be checked by default or not.', 'subscribe-reloaded' ); ?>"
98
data-placement="right"
99
- aria-label="<?php _e( 'Decide if the checkbox should be checked by default or not.', 'subscribe-reloaded' ); ?>">
100
<i class="fas fa-question-circle"></i>
101
</div>
102
</div>
@@ -106,16 +106,16 @@ if ( isset( $_POST['options'] ) ) {
106
if ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checked_by_default' ) == 'yes') :
107
?>
108
<div class="form-group row">
109
- <label for="checked_by_default_value" class="col-sm-3 col-form-label text-right"><?php _e( 'Default Checkbox Value', 'subscribe-reloaded' ) ?></label>
110
<div class="col-sm-7">
111
<select name="options[checked_by_default_value]" id="checked_by_default_value" class="form-control form-control-select">
112
- <option value="0" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checked_by_default_value' ) === '0' ) ? "selected='selected'" : ''; ?>><?php _e( 'All new comments', 'subscribe-reloaded' ); ?></option>
113
- <option value="1" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checked_by_default_value' ) === '1' ) ? "selected='selected'" : ''; ?>><?php _e( 'Replies to this comment', 'subscribe-reloaded' ); ?></option>
114
</select>
115
<div class="helpDescription subsOptDescriptions"
116
- data-content="<?php _e( 'Select the default option for the Checkbox. Be careful! Some users might like to be subscribed to all the post.', 'subscribe-reloaded' ); ?>"
117
data-placement="right"
118
- aria-label="<?php _e( 'Select the default option for the Checkbox. Be careful! Some users might like to be subscribed to all the post.', 'subscribe-reloaded' ); ?>">
119
<i class="fas fa-question-circle"></i>
120
</div>
121
</div>
@@ -127,26 +127,26 @@ if ( isset( $_POST['options'] ) ) {
127
128
<div class="form-group row">
129
<label for="enable_advanced_subscriptions" class="col-sm-3 col-form-label text-right">
130
- <?php _e( 'Advanced subscription', 'subscribe-reloaded' ) ?></label>
131
<div class="col-sm-7">
132
<div class="switch">
133
<input type="radio" class="switch-input" name="options[enable_advanced_subscriptions]"
134
value="yes" id="enable_advanced_subscriptions-yes"
135
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_advanced_subscriptions' ) == 'yes' ) ? ' checked' : ''; ?> />
136
<label for="enable_advanced_subscriptions-yes" class="switch-label switch-label-off">
137
- <?php _e( 'Yes', 'subscribe-reloaded' ) ?>
138
</label>
139
<input type="radio" class="switch-input" name="options[enable_advanced_subscriptions]" value="no" id="enable_advanced_subscriptions-no"
140
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_advanced_subscriptions' ) == 'no' ) ? ' checked' : ''; ?> />
141
<label for="enable_advanced_subscriptions-no" class="switch-label switch-label-on">
142
- <?php _e( 'No', 'subscribe-reloaded' ) ?>
143
</label>
144
<span class="switch-selection"></span>
145
</div>
146
<div class="helpDescription subsOptDescriptions"
147
- data-content="<?php _e( 'Allow users to choose from different subscription types (all, replies only).', 'subscribe-reloaded' ); ?>"
148
data-placement="right"
149
- aria-label="<?php _e( 'Allow users to choose from different subscription types (all, replies only).', 'subscribe-reloaded' ); ?>">
150
<i class="fas fa-question-circle"></i>
151
</div>
152
</div>
@@ -157,17 +157,17 @@ if ( isset( $_POST['options'] ) ) {
157
if ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_advanced_subscriptions' ) == 'yes' ): ?>
158
<div class="form-group row">
159
<label for="default_subscription_type" class="col-sm-3 col-form-label text-right">
160
- <?php _e( 'Advanced default', 'subscribe-reloaded' ) ?></label>
161
<div class="col-sm-7">
162
<select name="options[default_subscription_type]" id="default_subscription_type" class="form-control form-control-select">
163
- <option value="0" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'default_subscription_type' ) === '0' ) ? "selected='selected'" : ''; ?>><?php _e( 'None', 'subscribe-reloaded' ); ?></option>
164
- <option value="1" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'default_subscription_type' ) === '1' ) ? "selected='selected'" : ''; ?>><?php _e( 'All new comments', 'subscribe-reloaded' ); ?></option>
165
- <option value="2" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'default_subscription_type' ) === '2' ) ? "selected='selected'" : ''; ?>><?php _e( 'Replies to this comment', 'subscribe-reloaded' ); ?></option>
166
</select>
167
<div class="helpDescription subsOptDescriptions"
168
- data-content="<?php _e( 'The default subscription type that should be selected when Advanced subscriptions are enable.', 'subscribe-reloaded' ); ?>"
169
data-placement="right"
170
- aria-label="<?php _e( 'The default subscription type that should be selected when Advanced subscriptions are enable.', 'subscribe-reloaded' ); ?>">
171
<i class="fas fa-question-circle"></i>
172
</div>
173
</div>
@@ -179,16 +179,16 @@ if ( isset( $_POST['options'] ) ) {
179
180
<div class="form-group row">
181
<label for="checkbox_inline_style" class="col-sm-3 col-form-label text-right">
182
- <?php _e( 'Custom inline style', 'subscribe-reloaded' ) ?></label>
183
<div class="col-sm-7">
184
<input type="text" name="options[checkbox_inline_style]" id="checkbox_inline_style"
185
class="form-control form-control-input-8"
186
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checkbox_inline_style' ); ?>" size="20">
187
188
<div class="helpDescription subsOptDescriptions"
189
- data-content="<?php _e( 'Custom inline CSS to add to the checkbox.', 'subscribe-reloaded' ); ?>"
190
data-placement="right"
191
- aria-label="<?php _e( 'Custom inline CSS to add to the checkbox.', 'subscribe-reloaded' ); ?>">
192
<i class="fas fa-question-circle"></i>
193
</div>
194
</div>
@@ -196,12 +196,12 @@ if ( isset( $_POST['options'] ) ) {
196
197
<div class="form-group row">
198
<label for="checkbox_html" class="col-sm-3 offset-sm-1 col-form-label">
199
- <?php _e( 'Custom HTML', 'subscribe-reloaded' ) ?>
200
201
<div class="helpDescription subsOptDescriptions"
202
- data-content="<?php _e( 'Custom HTML code to be used when displaying the checkbox. Allowed tags: [checkbox_field], [checkbox_label]', 'subscribe-reloaded' ); ?>"
203
data-placement="right"
204
- aria-label="<?php _e( 'Custom HTML code to be used when displaying the checkbox. Allowed tags: [checkbox_field], [checkbox_label]', 'subscribe-reloaded' ); ?>">
205
<i class="fas fa-question-circle"></i>
206
</div>
207
@@ -222,16 +222,16 @@ if ( isset( $_POST['options'] ) ) {
222
</div>
223
</div>
224
225
- <h3><?php _e( 'Messages for your visitors', 'subscribe-reloaded' ) ?></h3>
226
227
<div class="form-group row">
228
<label for="checkbox_label" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
229
- <?php _e( 'Default label', 'subscribe-reloaded' ) ?>
230
231
<div class="helpDescription subsOptDescriptions"
232
- data-content="<?php _e( 'Label associated to the checkbox. Allowed tag: [subscribe_link]', 'subscribe-reloaded' ); ?>"
233
data-placement="right"
234
- aria-label="<?php _e( 'Label associated to the checkbox. Allowed tag: [subscribe_link]', 'subscribe-reloaded' ); ?>">
235
<i class="fas fa-question-circle"></i>
236
</div>
237
@@ -253,12 +253,12 @@ if ( isset( $_POST['options'] ) ) {
253
254
<div class="form-group row">
255
<label for="subscribed_label" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
256
- <?php _e( 'Subscribed label', 'subscribe-reloaded' ) ?>
257
258
<div class="helpDescription subsOptDescriptions"
259
- data-content="<?php _e( 'Label shown to those who are already subscribed to a post. Allowed tag: [manager_link]', 'subscribe-reloaded' ); ?>"
260
data-placement="right"
261
- aria-label="<?php _e( 'Label shown to those who are already subscribed to a post. Allowed tag: [manager_link]', 'subscribe-reloaded' ); ?>">
262
<i class="fas fa-question-circle"></i>
263
</div>
264
@@ -280,12 +280,12 @@ if ( isset( $_POST['options'] ) ) {
280
281
<div class="form-group row">
282
<label for="subscribed_waiting_label" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
283
- <?php _e( 'Pending label', 'subscribe-reloaded' ) ?>
284
285
<div class="helpDescription subsOptDescriptions"
286
- data-content="<?php _e( "Label shown to those who are already subscribed, but haven't clicked on the confirmation link yet. Allowed tag: [manager_link]", 'subscribe-reloaded' ); ?>"
287
data-placement="right"
288
- aria-label="<?php _e( "Label shown to those who are already subscribed, but haven't clicked on the confirmation link yet. Allowed tag: [manager_link]", 'subscribe-reloaded' ); ?>">
289
<i class="fas fa-question-circle"></i>
290
</div>
291
@@ -307,12 +307,12 @@ if ( isset( $_POST['options'] ) ) {
307
308
<div class="form-group row">
309
<label for="author_label" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
310
- <?php _e( 'Author label', 'subscribe-reloaded' ) ?>
311
312
<div class="helpDescription subsOptDescriptions"
313
- data-content="<?php _e( "Label shown to authors (and administrators). Allowed tag: [manager_link]", 'subscribe-reloaded' ); ?>"
314
data-placement="right"
315
- aria-label="<?php _e( "Label shown to authors (and administrators). Allowed tag: [manager_link]", 'subscribe-reloaded' ); ?>">
316
<i class="fas fa-question-circle"></i>
317
</div>
318
@@ -335,7 +335,7 @@ if ( isset( $_POST['options'] ) ) {
335
<div class="form-group row">
336
<div class="col-sm-9 offset-sm-1">
337
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
338
- <?php _e( 'Save Changes', 'subscribe-reloaded' ) ?>
339
</button>
340
</div>
341
</div>
37
// Display an alert in the admin interface if something went wrong
38
echo '<div class="updated"><p>';
39
if ( sizeof( $faulty_fields ) == 0 ) {
40
+ _e( 'Your settings have been successfully updated.', 'subscribe-to-comments-reloaded' );
41
} else {
42
+ _e( 'There was an error updating the following fields:', 'subscribe-to-comments-reloaded' );
43
// echo ' <strong>' . substr( $faulty_fields, 0, - 2 ) . '</strong>';
44
}
45
echo "</p></div>";
53
<div class="col-sm-9">
54
<form action="" method="post">
55
<div class="form-group row">
56
+ <label for="show_subscription_box" class="col-sm-3 col-form-label text-right"><?php _e( 'Enable default checkbox', 'subscribe-to-comments-reloaded' ) ?></label>
57
<div class="col-sm-7">
58
<div class="switch">
59
<input type="radio" class="switch-input" name="options[show_subscription_box]"
60
value="yes" id="show_subscription_box-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'show_subscription_box' ) == 'yes' ) ? ' checked' : ''; ?> />
61
<label for="show_subscription_box-yes" class="switch-label switch-label-off">
62
+ <?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
63
</label>
64
<input type="radio" class="switch-input" name="options[show_subscription_box]" value="no" id="show_subscription_box-no"
65
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'show_subscription_box' ) == 'no' ) ? ' checked' : ''; ?> />
66
<label for="show_subscription_box-no" class="switch-label switch-label-on">
67
+ <?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
68
</label>
69
<span class="switch-selection"></span>
70
</div>
71
<div class="helpDescription subsOptDescriptions"
72
+ data-content="<?php _e( 'Disable this option if you want to move the subscription checkbox to a different place on your page.', 'subscribe-to-comments-reloaded' ); ?>"
73
data-placement="right"
74
+ aria-label="<?php _e( 'Disable this option if you want to move the subscription checkbox to a different place on your page.', 'subscribe-to-comments-reloaded' ); ?>">
75
<i class="fas fa-question-circle"></i>
76
</div>
77
</div>
78
</div>
79
80
<div class="form-group row">
81
+ <label for="checked_by_default" class="col-sm-3 col-form-label text-right"><?php _e( 'Checked by default', 'subscribe-to-comments-reloaded' ) ?></label>
82
<div class="col-sm-7">
83
<div class="switch">
84
<input type="radio" class="switch-input" name="options[checked_by_default]"
85
value="yes" id="checked_by_default-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checked_by_default' ) == 'yes' ) ? ' checked' : ''; ?> />
86
<label for="checked_by_default-yes" class="switch-label switch-label-off">
87
+ <?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
88
</label>
89
<input type="radio" class="switch-input" name="options[checked_by_default]" value="no" id="checked_by_default-no"
90
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checked_by_default' ) == 'no' ) ? ' checked' : ''; ?> />
91
<label for="checked_by_default-no" class="switch-label switch-label-on">
92
+ <?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
93
</label>
94
<span class="switch-selection"></span>
95
</div>
96
<div class="helpDescription subsOptDescriptions"
97
+ data-content="<?php _e( 'Decide if the checkbox should be checked by default or not.', 'subscribe-to-comments-reloaded' ); ?>"
98
data-placement="right"
99
+ aria-label="<?php _e( 'Decide if the checkbox should be checked by default or not.', 'subscribe-to-comments-reloaded' ); ?>">
100
<i class="fas fa-question-circle"></i>
101
</div>
102
</div>
106
if ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checked_by_default' ) == 'yes') :
107
?>
108
<div class="form-group row">
109
+ <label for="checked_by_default_value" class="col-sm-3 col-form-label text-right"><?php _e( 'Default Checkbox Value', 'subscribe-to-comments-reloaded' ) ?></label>
110
<div class="col-sm-7">
111
<select name="options[checked_by_default_value]" id="checked_by_default_value" class="form-control form-control-select">
112
+ <option value="0" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checked_by_default_value' ) === '0' ) ? "selected='selected'" : ''; ?>><?php _e( 'All new comments', 'subscribe-to-comments-reloaded' ); ?></option>
113
+ <option value="1" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checked_by_default_value' ) === '1' ) ? "selected='selected'" : ''; ?>><?php _e( 'Replies to this comment', 'subscribe-to-comments-reloaded' ); ?></option>
114
</select>
115
<div class="helpDescription subsOptDescriptions"
116
+ data-content="<?php _e( 'Select the default option for the Checkbox. Be careful! Some users might like to be subscribed to all the post.', 'subscribe-to-comments-reloaded' ); ?>"
117
data-placement="right"
118
+ aria-label="<?php _e( 'Select the default option for the Checkbox. Be careful! Some users might like to be subscribed to all the post.', 'subscribe-to-comments-reloaded' ); ?>">
119
<i class="fas fa-question-circle"></i>
120
</div>
121
</div>
127
128
<div class="form-group row">
129
<label for="enable_advanced_subscriptions" class="col-sm-3 col-form-label text-right">
130
+ <?php _e( 'Advanced subscription', 'subscribe-to-comments-reloaded' ) ?></label>
131
<div class="col-sm-7">
132
<div class="switch">
133
<input type="radio" class="switch-input" name="options[enable_advanced_subscriptions]"
134
value="yes" id="enable_advanced_subscriptions-yes"
135
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_advanced_subscriptions' ) == 'yes' ) ? ' checked' : ''; ?> />
136
<label for="enable_advanced_subscriptions-yes" class="switch-label switch-label-off">
137
+ <?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
138
</label>
139
<input type="radio" class="switch-input" name="options[enable_advanced_subscriptions]" value="no" id="enable_advanced_subscriptions-no"
140
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_advanced_subscriptions' ) == 'no' ) ? ' checked' : ''; ?> />
141
<label for="enable_advanced_subscriptions-no" class="switch-label switch-label-on">
142
+ <?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
143
</label>
144
<span class="switch-selection"></span>
145
</div>
146
<div class="helpDescription subsOptDescriptions"
147
+ data-content="<?php _e( 'Allow users to choose from different subscription types (all, replies only).', 'subscribe-to-comments-reloaded' ); ?>"
148
data-placement="right"
149
+ aria-label="<?php _e( 'Allow users to choose from different subscription types (all, replies only).', 'subscribe-to-comments-reloaded' ); ?>">
150
<i class="fas fa-question-circle"></i>
151
</div>
152
</div>
157
if ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_advanced_subscriptions' ) == 'yes' ): ?>
158
<div class="form-group row">
159
<label for="default_subscription_type" class="col-sm-3 col-form-label text-right">
160
+ <?php _e( 'Advanced default', 'subscribe-to-comments-reloaded' ) ?></label>
161
<div class="col-sm-7">
162
<select name="options[default_subscription_type]" id="default_subscription_type" class="form-control form-control-select">
163
+ <option value="0" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'default_subscription_type' ) === '0' ) ? "selected='selected'" : ''; ?>><?php _e( 'None', 'subscribe-to-comments-reloaded' ); ?></option>
164
+ <option value="1" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'default_subscription_type' ) === '1' ) ? "selected='selected'" : ''; ?>><?php _e( 'All new comments', 'subscribe-to-comments-reloaded' ); ?></option>
165
+ <option value="2" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'default_subscription_type' ) === '2' ) ? "selected='selected'" : ''; ?>><?php _e( 'Replies to this comment', 'subscribe-to-comments-reloaded' ); ?></option>
166
</select>
167
<div class="helpDescription subsOptDescriptions"
168
+ data-content="<?php _e( 'The default subscription type that should be selected when Advanced subscriptions are enable.', 'subscribe-to-comments-reloaded' ); ?>"
169
data-placement="right"
170
+ aria-label="<?php _e( 'The default subscription type that should be selected when Advanced subscriptions are enable.', 'subscribe-to-comments-reloaded' ); ?>">
171
<i class="fas fa-question-circle"></i>
172
</div>
173
</div>
179
180
<div class="form-group row">
181
<label for="checkbox_inline_style" class="col-sm-3 col-form-label text-right">
182
+ <?php _e( 'Custom inline style', 'subscribe-to-comments-reloaded' ) ?></label>
183
<div class="col-sm-7">
184
<input type="text" name="options[checkbox_inline_style]" id="checkbox_inline_style"
185
class="form-control form-control-input-8"
186
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'checkbox_inline_style' ); ?>" size="20">
187
188
<div class="helpDescription subsOptDescriptions"
189
+ data-content="<?php _e( 'Custom inline CSS to add to the checkbox.', 'subscribe-to-comments-reloaded' ); ?>"
190
data-placement="right"
191
+ aria-label="<?php _e( 'Custom inline CSS to add to the checkbox.', 'subscribe-to-comments-reloaded' ); ?>">
192
<i class="fas fa-question-circle"></i>
193
</div>
194
</div>
196
197
<div class="form-group row">
198
<label for="checkbox_html" class="col-sm-3 offset-sm-1 col-form-label">
199
+ <?php _e( 'Custom HTML', 'subscribe-to-comments-reloaded' ) ?>
200
201
<div class="helpDescription subsOptDescriptions"
202
+ data-content="<?php _e( 'Custom HTML code to be used when displaying the checkbox. Allowed tags: [checkbox_field], [checkbox_label]', 'subscribe-to-comments-reloaded' ); ?>"
203
data-placement="right"
204
+ aria-label="<?php _e( 'Custom HTML code to be used when displaying the checkbox. Allowed tags: [checkbox_field], [checkbox_label]', 'subscribe-to-comments-reloaded' ); ?>">
205
<i class="fas fa-question-circle"></i>
206
</div>
207
222
</div>
223
</div>
224
225
+ <h3><?php _e( 'Messages for your visitors', 'subscribe-to-comments-reloaded' ) ?></h3>
226
227
<div class="form-group row">
228
<label for="checkbox_label" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
229
+ <?php _e( 'Default label', 'subscribe-to-comments-reloaded' ) ?>
230
231
<div class="helpDescription subsOptDescriptions"
232
+ data-content="<?php _e( 'Label associated to the checkbox. Allowed tag: [subscribe_link]', 'subscribe-to-comments-reloaded' ); ?>"
233
data-placement="right"
234
+ aria-label="<?php _e( 'Label associated to the checkbox. Allowed tag: [subscribe_link]', 'subscribe-to-comments-reloaded' ); ?>">
235
<i class="fas fa-question-circle"></i>
236
</div>
237
253
254
<div class="form-group row">
255
<label for="subscribed_label" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
256
+ <?php _e( 'Subscribed label', 'subscribe-to-comments-reloaded' ) ?>
257
258
<div class="helpDescription subsOptDescriptions"
259
+ data-content="<?php _e( 'Label shown to those who are already subscribed to a post. Allowed tag: [manager_link]', 'subscribe-to-comments-reloaded' ); ?>"
260
data-placement="right"
261
+ aria-label="<?php _e( 'Label shown to those who are already subscribed to a post. Allowed tag: [manager_link]', 'subscribe-to-comments-reloaded' ); ?>">
262
<i class="fas fa-question-circle"></i>
263
</div>
264
280
281
<div class="form-group row">
282
<label for="subscribed_waiting_label" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
283
+ <?php _e( 'Pending label', 'subscribe-to-comments-reloaded' ) ?>
284
285
<div class="helpDescription subsOptDescriptions"
286
+ data-content="<?php _e( "Label shown to those who are already subscribed, but haven't clicked on the confirmation link yet. Allowed tag: [manager_link]", 'subscribe-to-comments-reloaded' ); ?>"
287
data-placement="right"
288
+ aria-label="<?php _e( "Label shown to those who are already subscribed, but haven't clicked on the confirmation link yet. Allowed tag: [manager_link]", 'subscribe-to-comments-reloaded' ); ?>">
289
<i class="fas fa-question-circle"></i>
290
</div>
291
307
308
<div class="form-group row">
309
<label for="author_label" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
310
+ <?php _e( 'Author label', 'subscribe-to-comments-reloaded' ) ?>
311
312
<div class="helpDescription subsOptDescriptions"
313
+ data-content="<?php _e( "Label shown to authors (and administrators). Allowed tag: [manager_link]", 'subscribe-to-comments-reloaded' ); ?>"
314
data-placement="right"
315
+ aria-label="<?php _e( "Label shown to authors (and administrators). Allowed tag: [manager_link]", 'subscribe-to-comments-reloaded' ); ?>">
316
<i class="fas fa-question-circle"></i>
317
</div>
318
335
<div class="form-group row">
336
<div class="col-sm-9 offset-sm-1">
337
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
338
+ <?php _e( 'Save Changes', 'subscribe-to-comments-reloaded' ) ?>
339
</button>
340
</div>
341
</div>
options/stcr_manage_subscriptions.php CHANGED
@@ -19,14 +19,14 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
19
if ( ! $valid_email )
20
{
21
echo '<div class="notice notice-error is-dismissible"><p>';
22
- _e( 'The email that you typed is not correct.', 'subscribe-reloaded' );
23
echo "</p></div>";
24
}
25
26
if ( ! $valid_post_id )
27
{
28
echo '<div class="notice notice-error is-dismissible"><p>';
29
- _e( 'Please enter a valid Post ID.', 'subscribe-reloaded' );
30
echo "</p></div>";
31
}
32
}
@@ -46,7 +46,7 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
46
<div class="col-sm-6">
47
<div class="card card-font-size mass-update-subs">
48
<h6 class="card-header">
49
- <i class="fas fa-exchange-alt"></i> <?php _e( 'Mass Update Subscriptions', 'subscribe-reloaded' ) ?>
50
<i class="fas fa-caret-down pull-right"></i>
51
</h6>
52
<div class="card-body cbody-mass" style="padding: 0;">
@@ -55,30 +55,30 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
55
56
<table>
57
<tr>
58
- <td><label for='oldsre'><?php _e( 'From', 'subscribe-reloaded' ) ?></label></td>
59
- <td><input class="form-control form-controls-font" type='text' size='30' name='oldsre' id='oldsre' value='<?php _e( 'email address', 'subscribe-reloaded' ) ?>' style="color:#ccc;"></td>
60
<td><span class="validate-error-text validate-error-text-oldsre stcr-hidden "></span></td>
61
</tr>
62
<tr>
63
- <td><label for='sre'><?php _e( 'To', 'subscribe-reloaded' ) ?></label></td>
64
- <td><input class="form-control form-controls-font" type='text' size='30' name='sre' id='sre' value='<?php _e( 'optional - new email address', 'subscribe-reloaded' ) ?>' style="color:#ccc;"
65
>
66
</td>
67
<td><span class="validate-error-text validate-error-text-sre stcr-hidden "></span></td>
68
</tr>
69
<tr>
70
- <td><label for='srs'><?php _e( 'Status', 'subscribe-reloaded' ) ?></label></td>
71
<td><select class="form-control form-controls-font mass-update-select-status" name="srs" id="srs">
72
- <option value=''><?php _e( 'Keep unchanged', 'subscribe-reloaded' ) ?></option>
73
- <option value='Y'><?php _e( 'Active', 'subscribe-reloaded' ) ?></option>
74
- <option value='R'><?php _e( 'Replies only', 'subscribe-reloaded' ) ?></option>
75
- <option value='C'><?php _e( 'Suspended', 'subscribe-reloaded' ) ?></option>
76
</select>
77
- <input type='submit' style="font-size: 0.8rem;" class='subscribe-form-button btn btn-primary' value='<?php _e( 'Update', 'subscribe-reloaded' ) ?>' ></td>
78
</tr>
79
<tr>
80
<td colspan="2">
81
- <div class="more-info" data-infopanel="info-panel-mass-update" aria-label="<?php _e("More info", "subscribe-reloaded"); ?>">
82
<i class="fas fa-question-circle"></i>
83
</div>
84
</td>
@@ -90,7 +90,7 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
90
</table>
91
92
<div class="alert alert-info hidden info-panel-mass-update" role="alert">
93
- <?php _e('This option will allow you to change an email address for another one or to update the same status for all the subscription on a specific email address.', 'subscribe-reloaded' ); ?>
94
</div>
95
</form>
96
</div>
@@ -101,7 +101,7 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
101
<div class="col-sm-6">
102
<div class="card card-font-size add-new-subs">
103
<h6 class="card-header">
104
- <i class="fas fa-plus-square"></i> <?php _e( 'Add New Subscription', 'subscribe-reloaded' ) ?>
105
<i class="fas fa-caret-down pull-right"></i>
106
</h6>
107
<div class="card-body" style="padding: 0;">
@@ -110,24 +110,24 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
110
<fieldset style="border:0">
111
<table>
112
<tr>
113
- <td><?php _e( 'Post ID', 'subscribe-reloaded' ) ?></td>
114
<td><input class="form-control form-controls-font" type='text' size='30' name='srp' value='' ></td>
115
<td><span class="validate-error-text validate-error-text-srp stcr-hidden "></span></td>
116
</tr>
117
<tr>
118
- <td><?php _e( 'Email', 'subscribe-reloaded' ) ?></td>
119
<td><input class="form-control form-controls-font" type='text' size='30' name='sre' value='' ></td>
120
<td><span class="validate-error-text validate-error-text-sre stcr-hidden "></span></td>
121
</tr>
122
<tr>
123
- <td><?php _e( 'Status', 'subscribe-reloaded' ) ?></td>
124
<td>
125
<select name="srs" class="form-control form-controls-font new-sub-select-status">
126
- <option value='Y'><?php _e( 'Active', 'subscribe-reloaded' ) ?></option>
127
- <option value='R'><?php _e( 'Replies only', 'subscribe-reloaded' ) ?></option>
128
- <option value='YC'><?php _e( 'Ask user to confirm', 'subscribe-reloaded' ) ?></option>
129
</select>
130
- <input type='submit' style="font-size: 0.8rem;" class='subscribe-form-button btn btn-primary' value='<?php _e( 'Add', 'subscribe-reloaded' ) ?>' >
131
</td>
132
</tr>
133
<tr>
@@ -152,14 +152,14 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
152
153
<div class="card-text postbox" style="border: none;">
154
155
- <h4><i class="fas fa-search"></i> <?php _e( 'Search subscriptions', 'subscribe-reloaded' ) ?></h4>
156
157
- <div class="col-md-2 subs-spinner mx-auto"><h5><?php _e( "Loading", "subscribe-reloaded"); ?> <i class="fas fa-play-circle"></i></h5></div>
158
159
<div class="clearfix"></div>
160
161
<form action="" method="post" id="subscription_form" name="subscription_form"
162
- onsubmit="if(this.sra[0].checked) return confirm('<?php _e( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-reloaded' ) ?>')">
163
164
<?php
165
@@ -167,23 +167,18 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
167
$date_time_format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' );
168
// Let us form those status
169
$status_arry = array(
170
- 'R' => __( 'Replies', 'subscribe-reloaded'),
171
- 'RC' => __( 'Replies Unconfirmed', 'subscribe-reloaded'),
172
- 'Y' => __( "All Comments", "subscribe-reloaded"),
173
- 'YC' => __( "Unconfirmed", "subscribe-reloaded"),
174
- 'C' => __( "Inactive", "subscribe-reloaded"),
175
- '-C' => __( "Active", "subscribe-reloaded")
176
);
177
178
if ( ! empty( $subscriptions ) && is_array( $subscriptions ) ) {
179
- // $order_post_id = "<a style='text-decoration:none' title='" . __( 'Reverse the order by Post ID', 'subscribe-reloaded' ) . "' href='admin.php?page=stcr_manage_subscriptions&amp;srv=" . urlencode( $search_value ) . "&amp;srt=" . urlencode( $operator ) . "&amp;srob=post_id&amp;sro=" . ( ( $order == 'ASC' ) ? "DESC'><i class=\"fas fa-caret-down\"></i>" : "ASC'><i class=\"fas fa-caret-up\"></i>" ) . "</a>";
180
- // $order_dt = "<a style='text-decoration:none' title='" . __( 'Reverse the order by Date/Time', 'subscribe-reloaded' ) . "' href='admin.php?page=stcr_manage_subscriptions&amp;srv=" . urlencode( $search_value ) . "&amp;srt=" . urlencode( $operator ) . "&amp;srob=dt&amp;sro=" . ( ( $order == 'ASC' ) ? "DESC'><i class=\"fas fa-caret-down\"></i>" : "ASC'><i class=\"fas fa-caret-up\"></i>" ) . "</a>";
181
- // $order_status = "<a style='text-decoration:none' title='" . __( 'Reverse the order by Date/Time', 'subscribe-reloaded' ) . "' href='admin.php?page=stcr_manage_subscriptions&amp;srv=" . urlencode( $search_value ) . "&amp;srt=" . urlencode( $operator ) . "&amp;srob=status&amp;sro=" . ( ( $order == 'ASC' ) ? "DESC'><i class=\"fas fa-caret-down\"></i>" : "ASC'><i class=\"fas fa-caret-up\"></i>" ) . "</a>";
182
183
- $show_post_column = ( $operator != 'equals' || $search_field != 'post_id' ) ? __( 'Post (ID)', 'subscribe-reloaded' ) : '';
184
- $show_email_column = ( $operator != 'equals' || $search_field != 'email' ) ? __( 'Email', 'subscribe-reloaded' ) : '';
185
-
186
- // echo '<p>' . __( 'Search query:', 'subscribe-reloaded' ) . " <code>$search_field $operator <strong>$search_value</strong> ORDER BY $order_by $order</code>. " . __( 'Rows:', 'subscribe-reloaded' ) . ' ' . ( $offset + 1 ) . " - $ending_to " . __( 'of', 'subscribe-reloaded' ) . " $count_total</p>";
187
188
echo "<table class=\"table table-smx table-hover table-striped subscribers-table stcr-hidden\" style=\"font-size: 0.8em\">
189
<thead>";
@@ -193,13 +188,13 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
193
194
echo "<tr>
195
<th scope=\"col\">
196
- &nbsp;&nbsp;&nbsp;<i class=\"fas fa-exchange-alt\"></i> <span>" . __('Actions', 'subscribe-reloaded') ."</span>
197
<input class='checkbox' type='checkbox' name='subscription_list_select_all' id='stcr_select_all' class='stcr_select_all'/>
198
</th>
199
<th scope=\"col\"><i class=\"fas fa-thumbtack\"></i><span>$show_post_column</span></th>
200
<th scope=\"col\"><i class=\"fas fa-address-card\"></i><span>$show_email_column</span></th>
201
- <th scope=\"col\"><i class=\"fas fa-calendar-alt\"></i><span>". __( 'Date and Time', 'subscribe-reloaded' ) . " &nbsp;&nbsp;$order_dt</span></th>
202
- <th scope=\"col\"><i class=\"fas fa-info-circle\"></i><span>". __( 'Status', 'subscribe-reloaded' ) . " &nbsp;&nbsp;$order_status</span></th>
203
</tr>";
204
}
205
else
@@ -207,12 +202,12 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
207
echo "<tr>
208
<th scope=\"col\">
209
<input class='checkbox' type='checkbox' name='subscription_list_select_all' id='stcr_select_all' class='stcr_select_all'/>
210
- &nbsp;&nbsp;&nbsp;<i class=\"fas fa-exchange-alt\"></i> <span>" . __('Actions', 'subscribe-reloaded') ."</span>
211
</th>
212
<th scope=\"col\"><i class=\"fas fa-thumbtack\"></i><span>$show_post_column</span></th>
213
<th scope=\"col\"><i class=\"fas fa-address-card\"></i><span>$show_email_column</span></th>
214
- <th scope=\"col\"><i class=\"fas fa-calendar-alt\"></i><span>". __( 'Date and Time', 'subscribe-reloaded' ) . " &nbsp;&nbsp;$order_dt</span></th>
215
- <th scope=\"col\"><i class=\"fas fa-info-circle\"></i><span>". __( 'Status', 'subscribe-reloaded' ) . " &nbsp;&nbsp;$order_status</span></th>
216
</tr>";
217
}
218
@@ -240,10 +235,10 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
240
{
241
echo "<tr>
242
<td>
243
- <label for='sub_{$a_subscription->meta_id}' class='hidden'>" . __( 'Subscription', 'subscribe-reloaded' ) . " {$a_subscription->meta_id}</label>
244
<input class='checkbox' type='checkbox' name='subscriptions_list[]' value='$a_subscription->post_id," . urlencode( $a_subscription->email ) . "' id='sub_{$a_subscription->meta_id}' />
245
- <a href='admin.php?page=stcr_manage_subscriptions&amp;sra=edit-subscription&amp;srp=" . $a_subscription->post_id . "&amp;sre=" . urlencode( $a_subscription->email ) . "' alt='" . __( 'Edit', 'subscribe-reloaded' ) . "'><i class=\"fas fa-edit\" style='font-size: 1.1em;color: #ffc53a;'></i></a>
246
- &nbsp;&nbsp;&nbsp;&nbsp;<a href='admin.php?page=stcr_manage_subscriptions&amp;sra=delete-subscription&amp;srp=" . $a_subscription->post_id . "&amp;sre=" . urlencode( $a_subscription->email ) . "' onclick='return confirm(\"" . __( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-reloaded' ) . "\");' alt='" . __( 'Delete', 'subscribe-reloaded' ) . "'><i class=\"fas fa-trash-alt\" style='font-size: 1.1em;color: #ff695a;'></i></a>
247
</td>
248
<td>$row_post</td>
249
<td>$row_email</td>
@@ -255,10 +250,10 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
255
{
256
echo "<tr>
257
<td>
258
- <label for='sub_{$a_subscription->meta_id}' class='hidden'>" . __( 'Subscription', 'subscribe-reloaded' ) . " {$a_subscription->meta_id}</label>
259
<input class='checkbox' type='checkbox' name='subscriptions_list[]' value='$a_subscription->post_id," . urlencode( $a_subscription->email ) . "' id='sub_{$a_subscription->meta_id}' />
260
- <a href='admin.php?page=stcr_manage_subscriptions&amp;sra=edit-subscription&amp;srp=" . $a_subscription->post_id . "&amp;sre=" . urlencode( $a_subscription->email ) . "' alt='" . __( 'Edit', 'subscribe-reloaded' ) . "'><i class=\"fas fa-edit\" style='font-size: 1.1em;color: #ffc53a;'></i></a>
261
- &nbsp;&nbsp;&nbsp;&nbsp;<a href='admin.php?page=stcr_manage_subscriptions&amp;sra=delete-subscription&amp;srp=" . $a_subscription->post_id . "&amp;sre=" . urlencode( $a_subscription->email ) . "' onclick='return confirm(\"" . __( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-reloaded' ) . "\");' alt='" . __( 'Delete', 'subscribe-reloaded' ) . "'><i class=\"fas fa-trash-alt\" style='font-size: 1.1em;color: #ff695a;'></i></a>
262
</td>
263
<td>$row_post</td>
264
<td>$row_email</td>
@@ -273,23 +268,23 @@ if ( is_readable( WP_PLUGIN_DIR . "/subscribe-to-comments-reloaded/options/panel
273
echo "</table>";
274
275
echo "<div class='subscribers-mass-actions form-group row'>";
276
- echo '<label for="action_type" class="col-sm-1 col-form-label">' . __( 'Action:', 'subscribe-reloaded' ) . '</label >' ;
277
?> <div class="col-sm-3">
278
<select name="sra" id="action_type" class="form-control">
279
- <option value="delete"><?php _e( 'Delete forever', 'subscribe-reloaded' ) ?></option>
280
- <option value="suspend"><?php _e( 'Suspend', 'subscribe-reloaded' ) ?></option>
281
- <option value="force_y"><?php _e( 'Activate and set to notify on all comments', 'subscribe-reloaded' ) ?></option>
282
- <option value="force_r"><?php _e( 'Activate and set to notify on replies only ', 'subscribe-reloaded' ) ?></option>
283
- <option value="activate"><?php _e( 'Activate', 'subscribe-reloaded' ) ?></option>
284
</select>
285
</div>
286
<?php
287
- echo '<div class="col-sm-2"><button type="submit" class="subscribe-form-button btn btn-primary" >' . __( 'Update subscriptions', 'subscribe-reloaded' ) . '</button></div>';
288
echo "<input type='hidden' name='srf' value='$search_field'/><input type='hidden' name='srt' value='$operator'/><input type='hidden' name='srv' value='$search_value'/><input type='hidden' name='srsf' value='$offset'/><input type='hidden' name='srrp' value='$limit_results'/><input type='hidden' name='srob' value='$order_by'/><input type='hidden' name='sro' value='$order'/>";
289
echo "</div>";
290
291
} elseif ( $action == 'search' ) {
292
- echo '<p>' . __( 'Sorry, no subscriptions match your search criteria.', 'subscribe-reloaded' ) . "</p>";
293
}
294
?>
295
19
if ( ! $valid_email )
20
{
21
echo '<div class="notice notice-error is-dismissible"><p>';
22
+ _e( 'The email that you typed is not correct.', 'subscribe-to-comments-reloaded' );
23
echo "</p></div>";
24
}
25
26
if ( ! $valid_post_id )
27
{
28
echo '<div class="notice notice-error is-dismissible"><p>';
29
+ _e( 'Please enter a valid Post ID.', 'subscribe-to-comments-reloaded' );
30
echo "</p></div>";
31
}
32
}
46
<div class="col-sm-6">
47
<div class="card card-font-size mass-update-subs">
48
<h6 class="card-header">
49
+ <i class="fas fa-exchange-alt"></i> <?php _e( 'Mass Update Subscriptions', 'subscribe-to-comments-reloaded' ) ?>
50
<i class="fas fa-caret-down pull-right"></i>
51
</h6>
52
<div class="card-body cbody-mass" style="padding: 0;">
55
56
<table>
57
<tr>
58
+ <td><label for='oldsre'><?php _e( 'From', 'subscribe-to-comments-reloaded' ) ?></label></td>
59
+ <td><input class="form-control form-controls-font" type='text' size='30' name='oldsre' id='oldsre' value='<?php _e( 'email address', 'subscribe-to-comments-reloaded' ) ?>' style="color:#ccc;"></td>
60
<td><span class="validate-error-text validate-error-text-oldsre stcr-hidden "></span></td>
61
</tr>
62
<tr>
63
+ <td><label for='sre'><?php _e( 'To', 'subscribe-to-comments-reloaded' ) ?></label></td>
64
+ <td><input class="form-control form-controls-font" type='text' size='30' name='sre' id='sre' value='<?php _e( 'optional - new email address', 'subscribe-to-comments-reloaded' ) ?>' style="color:#ccc;"
65
>
66
</td>
67
<td><span class="validate-error-text validate-error-text-sre stcr-hidden "></span></td>
68
</tr>
69
<tr>
70
+ <td><label for='srs'><?php _e( 'Status', 'subscribe-to-comments-reloaded' ) ?></label></td>
71
<td><select class="form-control form-controls-font mass-update-select-status" name="srs" id="srs">
72
+ <option value=''><?php _e( 'Keep unchanged', 'subscribe-to-comments-reloaded' ) ?></option>
73
+ <option value='Y'><?php _e( 'Active', 'subscribe-to-comments-reloaded' ) ?></option>
74
+ <option value='R'><?php _e( 'Replies only', 'subscribe-to-comments-reloaded' ) ?></option>
75
+ <option value='C'><?php _e( 'Suspended', 'subscribe-to-comments-reloaded' ) ?></option>
76
</select>
77
+ <input type='submit' style="font-size: 0.8rem;" class='subscribe-form-button btn btn-primary' value='<?php _e( 'Update', 'subscribe-to-comments-reloaded' ) ?>' ></td>
78
</tr>
79
<tr>
80
<td colspan="2">
81
+ <div class="more-info" data-infopanel="info-panel-mass-update" aria-label="<?php _e("More info", 'subscribe-to-comments-reloaded'); ?>">
82
<i class="fas fa-question-circle"></i>
83
</div>
84
</td>
90
</table>
91
92
<div class="alert alert-info hidden info-panel-mass-update" role="alert">
93
+ <?php _e('This option will allow you to change an email address for another one or to update the same status for all the subscription on a specific email address.', 'subscribe-to-comments-reloaded' ); ?>
94
</div>
95
</form>
96
</div>
101
<div class="col-sm-6">
102
<div class="card card-font-size add-new-subs">
103
<h6 class="card-header">
104
+ <i class="fas fa-plus-square"></i> <?php _e( 'Add New Subscription', 'subscribe-to-comments-reloaded' ) ?>
105
<i class="fas fa-caret-down pull-right"></i>
106
</h6>
107
<div class="card-body" style="padding: 0;">
110
<fieldset style="border:0">
111
<table>
112
<tr>
113
+ <td><?php _e( 'Post ID', 'subscribe-to-comments-reloaded' ) ?></td>
114
<td><input class="form-control form-controls-font" type='text' size='30' name='srp' value='' ></td>
115
<td><span class="validate-error-text validate-error-text-srp stcr-hidden "></span></td>
116
</tr>
117
<tr>
118
+ <td><?php _e( 'Email', 'subscribe-to-comments-reloaded' ) ?></td>
119
<td><input class="form-control form-controls-font" type='text' size='30' name='sre' value='' ></td>
120
<td><span class="validate-error-text validate-error-text-sre stcr-hidden "></span></td>
121
</tr>
122
<tr>
123
+ <td><?php _e( 'Status', 'subscribe-to-comments-reloaded' ) ?></td>
124
<td>
125
<select name="srs" class="form-control form-controls-font new-sub-select-status">
126
+ <option value='Y'><?php _e( 'Active', 'subscribe-to-comments-reloaded' ) ?></option>
127
+ <option value='R'><?php _e( 'Replies only', 'subscribe-to-comments-reloaded' ) ?></option>
128
+ <option value='YC'><?php _e( 'Ask user to confirm', 'subscribe-to-comments-reloaded' ) ?></option>
129
</select>
130
+ <input type='submit' style="font-size: 0.8rem;" class='subscribe-form-button btn btn-primary' value='<?php _e( 'Add', 'subscribe-to-comments-reloaded' ) ?>' >
131
</td>
132
</tr>
133
<tr>
152
153
<div class="card-text postbox" style="border: none;">
154
155
+ <h4><i class="fas fa-search"></i> <?php _e( 'Search subscriptions', 'subscribe-to-comments-reloaded' ) ?></h4>
156
157
+ <div class="col-md-2 subs-spinner mx-auto"><h5><?php _e( "Loading", 'subscribe-to-comments-reloaded'); ?> <i class="fas fa-play-circle"></i></h5></div>
158
159
<div class="clearfix"></div>
160
161
<form action="" method="post" id="subscription_form" name="subscription_form"
162
+ onsubmit="if(this.sra[0].checked) return confirm('<?php _e( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-to-comments-reloaded' ) ?>')">
163
164
<?php
165
167
$date_time_format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' );
168
// Let us form those status
169
$status_arry = array(
170
+ 'R' => __( 'Replies', 'subscribe-to-comments-reloaded'),
171
+ 'RC' => __( 'Replies Unconfirmed', 'subscribe-to-comments-reloaded'),
172
+ 'Y' => __( "All Comments", 'subscribe-to-comments-reloaded'),
173
+ 'YC' => __( "Unconfirmed", 'subscribe-to-comments-reloaded'),
174
+ 'C' => __( "Inactive", 'subscribe-to-comments-reloaded'),
175
+ '-C' => __( "Active", 'subscribe-to-comments-reloaded')
176
);
177
178
if ( ! empty( $subscriptions ) && is_array( $subscriptions ) ) {
179
180
+ $show_post_column = ( $operator != 'equals' || $search_field != 'post_id' ) ? __( 'Post (ID)', 'subscribe-to-comments-reloaded' ) : '';
181
+ $show_email_column = ( $operator != 'equals' || $search_field != 'email' ) ? __( 'Email', 'subscribe-to-comments-reloaded' ) : '';
182
183
echo "<table class=\"table table-smx table-hover table-striped subscribers-table stcr-hidden\" style=\"font-size: 0.8em\">
184
<thead>";
188
189
echo "<tr>
190
<th scope=\"col\">
191
+ &nbsp;&nbsp;&nbsp;<i class=\"fas fa-exchange-alt\"></i> <span>" . __('Actions', 'subscribe-to-comments-reloaded') ."</span>
192
<input class='checkbox' type='checkbox' name='subscription_list_select_all' id='stcr_select_all' class='stcr_select_all'/>
193
</th>
194
<th scope=\"col\"><i class=\"fas fa-thumbtack\"></i><span>$show_post_column</span></th>
195
<th scope=\"col\"><i class=\"fas fa-address-card\"></i><span>$show_email_column</span></th>
196
+ <th scope=\"col\"><i class=\"fas fa-calendar-alt\"></i><span>". __( 'Date and Time', 'subscribe-to-comments-reloaded' ) . "</span></th>
197
+ <th scope=\"col\"><i class=\"fas fa-info-circle\"></i><span>". __( 'Status', 'subscribe-to-comments-reloaded' ) . "</span></th>
198
</tr>";
199
}
200
else
202
echo "<tr>
203
<th scope=\"col\">
204
<input class='checkbox' type='checkbox' name='subscription_list_select_all' id='stcr_select_all' class='stcr_select_all'/>
205
+ &nbsp;&nbsp;&nbsp;<i class=\"fas fa-exchange-alt\"></i> <span>" . __('Actions', 'subscribe-to-comments-reloaded') ."</span>
206
</th>
207
<th scope=\"col\"><i class=\"fas fa-thumbtack\"></i><span>$show_post_column</span></th>
208
<th scope=\"col\"><i class=\"fas fa-address-card\"></i><span>$show_email_column</span></th>
209
+ <th scope=\"col\"><i class=\"fas fa-calendar-alt\"></i><span>". __( 'Date and Time', 'subscribe-to-comments-reloaded' ) . "</span></th>
210
+ <th scope=\"col\"><i class=\"fas fa-info-circle\"></i><span>". __( 'Status', 'subscribe-to-comments-reloaded' ) . "</span></th>
211
</tr>";
212
}
213
235
{
236
echo "<tr>
237
<td>
238
+ <label for='sub_{$a_subscription->meta_id}' class='hidden'>" . __( 'Subscription', 'subscribe-to-comments-reloaded' ) . " {$a_subscription->meta_id}</label>
239
<input class='checkbox' type='checkbox' name='subscriptions_list[]' value='$a_subscription->post_id," . urlencode( $a_subscription->email ) . "' id='sub_{$a_subscription->meta_id}' />
240
+ <a href='admin.php?page=stcr_manage_subscriptions&amp;sra=edit-subscription&amp;srp=" . $a_subscription->post_id . "&amp;sre=" . urlencode( $a_subscription->email ) . "' alt='" . __( 'Edit', 'subscribe-to-comments-reloaded' ) . "'><i class=\"fas fa-edit\" style='font-size: 1.1em;color: #ffc53a;'></i></a>
241
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href='admin.php?page=stcr_manage_subscriptions&amp;sra=delete-subscription&amp;srp=" . $a_subscription->post_id . "&amp;sre=" . urlencode( $a_subscription->email ) . "' onclick='return confirm(\"" . __( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-to-comments-reloaded' ) . "\");' alt='" . __( 'Delete', 'subscribe-to-comments-reloaded' ) . "'><i class=\"fas fa-trash-alt\" style='font-size: 1.1em;color: #ff695a;'></i></a>
242
</td>
243
<td>$row_post</td>
244
<td>$row_email</td>
250
{
251
echo "<tr>
252
<td>
253
+ <label for='sub_{$a_subscription->meta_id}' class='hidden'>" . __( 'Subscription', 'subscribe-to-comments-reloaded' ) . " {$a_subscription->meta_id}</label>
254
<input class='checkbox' type='checkbox' name='subscriptions_list[]' value='$a_subscription->post_id," . urlencode( $a_subscription->email ) . "' id='sub_{$a_subscription->meta_id}' />
255
+ <a href='admin.php?page=stcr_manage_subscriptions&amp;sra=edit-subscription&amp;srp=" . $a_subscription->post_id . "&amp;sre=" . urlencode( $a_subscription->email ) . "' alt='" . __( 'Edit', 'subscribe-to-comments-reloaded' ) . "'><i class=\"fas fa-edit\" style='font-size: 1.1em;color: #ffc53a;'></i></a>
256
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href='admin.php?page=stcr_manage_subscriptions&amp;sra=delete-subscription&amp;srp=" . $a_subscription->post_id . "&amp;sre=" . urlencode( $a_subscription->email ) . "' onclick='return confirm(\"" . __( 'Please remember: this operation cannot be undone. Are you sure you want to proceed?', 'subscribe-to-comments-reloaded' ) . "\");' alt='" . __( 'Delete', 'subscribe-to-comments-reloaded' ) . "'><i class=\"fas fa-trash-alt\" style='font-size: 1.1em;color: #ff695a;'></i></a>
257
</td>
258
<td>$row_post</td>
259
<td>$row_email</td>
268
echo "</table>";
269
270
echo "<div class='subscribers-mass-actions form-group row'>";
271
+ echo '<label for="action_type" class="col-sm-1 col-form-label">' . __( 'Action:', 'subscribe-to-comments-reloaded' ) . '</label >' ;
272
?> <div class="col-sm-3">
273
<select name="sra" id="action_type" class="form-control">
274
+ <option value="delete"><?php _e( 'Delete forever', 'subscribe-to-comments-reloaded' ) ?></option>
275
+ <option value="suspend"><?php _e( 'Suspend', 'subscribe-to-comments-reloaded' ) ?></option>
276
+ <option value="force_y"><?php _e( 'Activate and set to notify on all comments', 'subscribe-to-comments-reloaded' ) ?></option>
277
+ <option value="force_r"><?php _e( 'Activate and set to notify on replies only ', 'subscribe-to-comments-reloaded' ) ?></option>
278
+ <option value="activate"><?php _e( 'Activate', 'subscribe-to-comments-reloaded' ) ?></option>
279
</select>
280
</div>
281
<?php
282
+ echo '<div class="col-sm-2"><button type="submit" class="subscribe-form-button btn btn-primary" >' . __( 'Update subscriptions', 'subscribe-to-comments-reloaded' ) . '</button></div>';
283
echo "<input type='hidden' name='srf' value='$search_field'/><input type='hidden' name='srt' value='$operator'/><input type='hidden' name='srv' value='$search_value'/><input type='hidden' name='srsf' value='$offset'/><input type='hidden' name='srrp' value='$limit_results'/><input type='hidden' name='srob' value='$order_by'/><input type='hidden' name='sro' value='$order'/>";
284
echo "</div>";
285
286
} elseif ( $action == 'search' ) {
287
+ echo '<p>' . __( 'Sorry, no subscriptions match your search criteria.', 'subscribe-to-comments-reloaded' ) . "</p>";
288
}
289
?>
290
options/stcr_management_page.php CHANGED
@@ -22,7 +22,7 @@ $options = array(
22
);
23
24
$options_readable = array(
25
- "manager_page" => __("Management URL","subscribe-reloaded")
26
);
27
28
// Update options
@@ -44,11 +44,11 @@ if ( isset( $_POST['options'] ) ) {
44
// Display an alert in the admin interface if something went wrong
45
if ( sizeof( $faulty_fields ) == 0 ) {
46
echo '<div class="updated"><p>';
47
- _e( 'Your settings have been successfully updated.', 'subscribe-reloaded' );
48
echo "</p></div>";
49
} else {
50
echo '<div class="error"><p>';
51
- _e( 'There was an error updating the following fields:', 'subscribe-reloaded' );
52
echo "<ul style='font-size: 0.8em;'>";
53
foreach( $faulty_fields as $field )
54
{
@@ -69,25 +69,25 @@ wp_print_scripts( 'quicktags' );
69
<div class="col-sm-9">
70
<form class="management_page_form" action="" method="post">
71
<div class="form-group row">
72
- <label for="manager_page_enabled" class="col-sm-3 col-form-label text-right"><?php _e( 'Virtual Management Page', 'subscribe-reloaded' ) ?></label>
73
<div class="col-sm-7">
74
<div class="switch">
75
<input type="radio" class="switch-input" name="options[manager_page_enabled]"
76
value="yes" id="manager_page_enabled-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'manager_page_enabled' ) == 'yes' ) ? ' checked' : ''; ?> />
77
<label for="manager_page_enabled-yes" class="switch-label switch-label-off">
78
- <?php _e( 'Yes', 'subscribe-reloaded' ) ?>
79
</label>
80
<input type="radio" class="switch-input" name="options[manager_page_enabled]" value="no" id="manager_page_enabled-no"
81
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'manager_page_enabled' ) == 'no' ) ? ' checked' : ''; ?> />
82
<label for="manager_page_enabled-no" class="switch-label switch-label-on">
83
- <?php _e( 'No', 'subscribe-reloaded' ) ?>
84
</label>
85
<span class="switch-selection"></span>
86
</div>
87
<div class="helpDescription subsOptDescriptions"
88
- data-content="<?php _e( "Disable the virtual management page if you need to create a <a href='https://github.com/stcr/subscribe-to-comments-reloaded/wiki/KB#create-a-real-management-page'>real page</a> to make your theme happy.", 'subscribe-reloaded' ); ?>"
89
data-placement="right"
90
- aria-label="<?php _e( "Disable the virtual management page if you need to create a <a href='https://github.com/stcr/subscribe-to-comments-reloaded/wiki/KB#create-a-real-management-page'>real page</a> to make your theme happy.", 'subscribe-reloaded' ); ?>">
91
<i class="fas fa-question-circle"></i>
92
</div>
93
</div>
@@ -95,16 +95,16 @@ wp_print_scripts( 'quicktags' );
95
96
<div class="form-group row">
97
<label for="manager_page_title" class="col-sm-3 col-form-label text-right">
98
- <?php _e( 'Page title', 'subscribe-reloaded' ) ?></label>
99
<div class="col-sm-7">
100
<input type="text" name="options[manager_page_title]" id="manager_page_title"
101
class="form-control form-control-input-8"
102
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'manager_page_title' ); ?>" size="20">
103
104
<div class="helpDescription subsOptDescriptions"
105
- data-content="<?php _e( 'Title of the page your visitors will use to manage their subscriptions.', 'subscribe-reloaded' ); ?>"
106
data-placement="right"
107
- aria-label="<?php _e( 'Title of the page your visitors will use to manage their subscriptions.', 'subscribe-reloaded' ); ?>">
108
<i class="fas fa-question-circle"></i>
109
</div>
110
</div>
@@ -112,7 +112,7 @@ wp_print_scripts( 'quicktags' );
112
113
<div class="form-group row">
114
<label for="manager_page" class="col-sm-3 col-form-label text-right">
115
- <?php _e( 'Management URL', 'subscribe-reloaded' ) ?></label>
116
<div class="col-sm-7">
117
<code><?php echo get_bloginfo( 'url' ) ?></code>
118
<input type="text" name="options[manager_page]" id="manager_page"
@@ -120,16 +120,16 @@ wp_print_scripts( 'quicktags' );
120
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'manager_page' ); ?>" style=" width: 60% !important;">
121
122
<div class="helpDescription subsOptDescriptions"
123
- data-content="<?php _e( "The permalink for your management page (something like <code>/manage-subscriptions</code> or <code>/?page_id=345</code>). This page <b>does not</b> actually exist in the system, but its link must follow your permalink structure.", 'subscribe-reloaded' ); ?>"
124
data-placement="bottom"
125
- aria-label="<?php _e( "The permalink for your management page (something like <code>/manage-subscriptions</code> or <code>/?page_id=345</code>). This page <b>does not</b> actually exist in the system, but its link must follow your permalink structure.", 'subscribe-reloaded' ); ?>">
126
<i class="fas fa-question-circle"></i>
127
</div>
128
129
<?php
130
if ( ( get_option( 'permalink_structure' ) == '' ) && ( strpos( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'manager_page' ), '?page_id=' ) === false ) ) {
131
echo "<div class=\"alert alert-danger\" role=\"alert\">";
132
- echo '<strong>' . __( "Warning: it looks like the value you are using may be incompatible with your permalink structure", 'subscribe-reloaded' ) . '</strong>';
133
echo "</div>";
134
}
135
?>
@@ -138,31 +138,31 @@ wp_print_scripts( 'quicktags' );
138
139
<div class="form-group row">
140
<label for="custom_header_meta" class="col-sm-3 col-form-label text-right">
141
- <?php _e( 'Custom HEAD meta', 'subscribe-reloaded' ) ?></label>
142
<div class="col-sm-7">
143
<input type="text" name="options[custom_header_meta]" id="custom_header_meta"
144
class="form-control form-control-input-8"
145
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'custom_header_meta' ); ?>" size="20">
146
147
<div class="helpDescription subsOptDescriptions"
148
- data-content="<?php _e( 'Specify your custom HTML code to be added to the HEAD section of the page. Use <strong>single</strong> quotes for values.', 'subscribe-reloaded' ); ?>"
149
data-placement="right"
150
- aria-label="<?php _e( 'Specify your custom HTML code to be added to the HEAD section of the page. Use <strong>single</strong> quotes for values.', 'subscribe-reloaded' ); ?>">
151
<i class="fas fa-question-circle"></i>
152
</div>
153
</div>
154
</div>
155
156
- <h3><?php _e( 'Messages', 'subscribe-reloaded' ) ?></h3>
157
158
<div class="form-group row">
159
<label for="request_mgmt_link" class="col-sm-2 offset-sm-1 col-form-label" style="z-index: 9999;">
160
- <?php _e( 'Request link', 'subscribe-reloaded' ) ?>
161
162
<div class="helpDescription subsOptDescriptions"
163
- data-content="<?php _e( 'Text shown to those who request to manage their subscriptions.', 'subscribe-reloaded' ); ?>"
164
data-placement="right"
165
- aria-label="<?php _e( 'Text shown to those who request to manage their subscriptions.', 'subscribe-reloaded' ); ?>">
166
<i class="fas fa-question-circle"></i>
167
</div>
168
@@ -182,14 +182,14 @@ wp_print_scripts( 'quicktags' );
182
</div>
183
</div>
184
185
- <div class="form-group row">
186
<label for="request_mgmt_link_thankyou" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
187
- <?php _e( 'Request submitted', 'subscribe-reloaded' ) ?>
188
189
<div class="helpDescription subsOptDescriptions"
190
- data-content="<?php _e( 'Thank you note shown after the request here above has been processed. Allowed tags: [post_title], [post_permalink]', 'subscribe-reloaded' ); ?>"
191
data-placement="right"
192
- aria-label="<?php _e( 'Thank you note shown after the request here above has been processed. Allowed tags: [post_title], [post_permalink]', 'subscribe-reloaded' ); ?>">
193
<i class="fas fa-question-circle"></i>
194
</div>
195
@@ -211,12 +211,12 @@ wp_print_scripts( 'quicktags' );
211
212
<div class="form-group row">
213
<label for="subscribe_without_commenting" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
214
- <?php _e( 'Subscribe without commenting', 'subscribe-reloaded' ) ?>
215
216
<div class="helpDescription subsOptDescriptions"
217
- data-content="<?php _e( 'Text shown to those who want to subscribe without commenting. Allowed tags: [post_title], [post_permalink]', 'subscribe-reloaded' ); ?>"
218
data-placement="right"
219
- aria-label="<?php _e( 'Text shown to those who want to subscribe without commenting. Allowed tags: [post_title], [post_permalink]', 'subscribe-reloaded' ); ?>">
220
<i class="fas fa-question-circle"></i>
221
</div>
222
@@ -238,12 +238,12 @@ wp_print_scripts( 'quicktags' );
238
239
<div class="form-group row">
240
<label for="subscription_confirmed" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
241
- <?php _e( 'Subscription processed', 'subscribe-reloaded' ) ?>
242
243
<div class="helpDescription subsOptDescriptions"
244
- data-content="<?php _e( 'Thank you note shown after the subscription request has been processed (double check-in disabled). Allowed tags: [post_title], [post_permalink]', 'subscribe-reloaded' ); ?>"
245
data-placement="right"
246
- aria-label="<?php _e( 'Thank you note shown after the subscription request has been processed (double check-in disabled). Allowed tags: [post_title], [post_permalink]', 'subscribe-reloaded' ); ?>">
247
<i class="fas fa-question-circle"></i>
248
</div>
249
@@ -265,12 +265,12 @@ wp_print_scripts( 'quicktags' );
265
266
<div class="form-group row">
267
<label for="subscription_confirmed_dci" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
268
- <?php _e( 'Subscription processed (DCI)', 'subscribe-reloaded' ) ?>
269
270
<div class="helpDescription subsOptDescriptions"
271
- data-content="<?php _e( 'Thank you note shown after the subscription request has been processed (double check-in enabled). Allowed tags: [post_title], [post_permalink]', 'subscribe-reloaded' ); ?>"
272
data-placement="right"
273
- aria-label="<?php _e( 'Thank you note shown after the subscription request has been processed (double check-in enabled). Allowed tags: [post_title], [post_permalink]', 'subscribe-reloaded' ); ?>">
274
<i class="fas fa-question-circle"></i>
275
</div>
276
@@ -292,12 +292,12 @@ wp_print_scripts( 'quicktags' );
292
293
<div class="form-group row">
294
<label for="author_text" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
295
- <?php _e( 'Authors', 'subscribe-reloaded' ) ?>
296
297
<div class="helpDescription subsOptDescriptions"
298
- data-content="<?php _e( "Introductory text for the authors' management page.", 'subscribe-reloaded' ); ?>"
299
data-placement="right"
300
- aria-label="<?php _e( "Introductory text for the authors' management page.", 'subscribe-reloaded' ); ?>">
301
<i class="fas fa-question-circle"></i>
302
</div>
303
@@ -319,12 +319,12 @@ wp_print_scripts( 'quicktags' );
319
320
<div class="form-group row">
321
<label for="user_text" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
322
- <?php _e( 'Users', 'subscribe-reloaded' ) ?>
323
324
<div class="helpDescription subsOptDescriptions"
325
- data-content="<?php _e( "Introductory text for the users' management page.", 'subscribe-reloaded' ); ?>"
326
data-placement="right"
327
- aria-label="<?php _e( "Introductory text for the users' management page.", 'subscribe-reloaded' ); ?>">
328
<i class="fas fa-question-circle"></i>
329
</div>
330
@@ -347,7 +347,7 @@ wp_print_scripts( 'quicktags' );
347
<div class="form-group row">
348
<div class="col-sm-9 offset-sm-1">
349
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
350
- <?php _e( 'Save Changes', 'subscribe-reloaded' ) ?>
351
</button>
352
</div>
353
</div>
22
);
23
24
$options_readable = array(
25
+ "manager_page" => __("Management URL",'subscribe-to-comments-reloaded')
26
);
27
28
// Update options
44
// Display an alert in the admin interface if something went wrong
45
if ( sizeof( $faulty_fields ) == 0 ) {
46
echo '<div class="updated"><p>';
47
+ _e( 'Your settings have been successfully updated.', 'subscribe-to-comments-reloaded' );
48
echo "</p></div>";
49
} else {
50
echo '<div class="error"><p>';
51
+ _e( 'There was an error updating the following fields:', 'subscribe-to-comments-reloaded' );
52
echo "<ul style='font-size: 0.8em;'>";
53
foreach( $faulty_fields as $field )
54
{
69
<div class="col-sm-9">
70
<form class="management_page_form" action="" method="post">
71
<div class="form-group row">
72
+ <label for="manager_page_enabled" class="col-sm-3 col-form-label text-right"><?php _e( 'Virtual Management Page', 'subscribe-to-comments-reloaded' ) ?></label>
73
<div class="col-sm-7">
74
<div class="switch">
75
<input type="radio" class="switch-input" name="options[manager_page_enabled]"
76
value="yes" id="manager_page_enabled-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'manager_page_enabled' ) == 'yes' ) ? ' checked' : ''; ?> />
77
<label for="manager_page_enabled-yes" class="switch-label switch-label-off">
78
+ <?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
79
</label>
80
<input type="radio" class="switch-input" name="options[manager_page_enabled]" value="no" id="manager_page_enabled-no"
81
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'manager_page_enabled' ) == 'no' ) ? ' checked' : ''; ?> />
82
<label for="manager_page_enabled-no" class="switch-label switch-label-on">
83
+ <?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
84
</label>
85
<span class="switch-selection"></span>
86
</div>
87
<div class="helpDescription subsOptDescriptions"
88
+ data-content="<?php _e( "Disable the virtual management page if you need to create a <a href='https://github.com/stcr/subscribe-to-comments-reloaded/wiki/KB#create-a-real-management-page'>real page</a> to make your theme happy.", 'subscribe-to-comments-reloaded' ); ?>"
89
data-placement="right"
90
+ aria-label="<?php _e( "Disable the virtual management page if you need to create a <a href='https://github.com/stcr/subscribe-to-comments-reloaded/wiki/KB#create-a-real-management-page'>real page</a> to make your theme happy.", 'subscribe-to-comments-reloaded' ); ?>">
91
<i class="fas fa-question-circle"></i>
92
</div>
93
</div>
95
96
<div class="form-group row">
97
<label for="manager_page_title" class="col-sm-3 col-form-label text-right">
98
+ <?php _e( 'Page title', 'subscribe-to-comments-reloaded' ) ?></label>
99
<div class="col-sm-7">
100
<input type="text" name="options[manager_page_title]" id="manager_page_title"
101
class="form-control form-control-input-8"
102
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'manager_page_title' ); ?>" size="20">
103
104
<div class="helpDescription subsOptDescriptions"
105
+ data-content="<?php _e( 'Title of the page your visitors will use to manage their subscriptions.', 'subscribe-to-comments-reloaded' ); ?>"
106
data-placement="right"
107
+ aria-label="<?php _e( 'Title of the page your visitors will use to manage their subscriptions.', 'subscribe-to-comments-reloaded' ); ?>">
108
<i class="fas fa-question-circle"></i>
109
</div>
110
</div>
112
113
<div class="form-group row">
114
<label for="manager_page" class="col-sm-3 col-form-label text-right">
115
+ <?php _e( 'Management URL', 'subscribe-to-comments-reloaded' ) ?></label>
116
<div class="col-sm-7">
117
<code><?php echo get_bloginfo( 'url' ) ?></code>
118
<input type="text" name="options[manager_page]" id="manager_page"
120
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'manager_page' ); ?>" style=" width: 60% !important;">
121
122
<div class="helpDescription subsOptDescriptions"
123
+ data-content="<?php _e( "The permalink for your management page (something like <code>/manage-subscriptions</code> or <code>/?page_id=345</code>). This page <b>does not</b> actually exist in the system, but its link must follow your permalink structure.", 'subscribe-to-comments-reloaded' ); ?>"
124
data-placement="bottom"
125
+ aria-label="<?php _e( "The permalink for your management page (something like <code>/manage-subscriptions</code> or <code>/?page_id=345</code>). This page <b>does not</b> actually exist in the system, but its link must follow your permalink structure.", 'subscribe-to-comments-reloaded' ); ?>">
126
<i class="fas fa-question-circle"></i>
127
</div>
128
129
<?php
130
if ( ( get_option( 'permalink_structure' ) == '' ) && ( strpos( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'manager_page' ), '?page_id=' ) === false ) ) {
131
echo "<div class=\"alert alert-danger\" role=\"alert\">";
132
+ echo '<strong>' . __( "Warning: it looks like the value you are using may be incompatible with your permalink structure", 'subscribe-to-comments-reloaded' ) . '</strong>';
133
echo "</div>";
134
}
135
?>
138
139
<div class="form-group row">
140
<label for="custom_header_meta" class="col-sm-3 col-form-label text-right">
141
+ <?php _e( 'Custom HEAD meta', 'subscribe-to-comments-reloaded' ) ?></label>
142
<div class="col-sm-7">
143
<input type="text" name="options[custom_header_meta]" id="custom_header_meta"
144
class="form-control form-control-input-8"
145
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'custom_header_meta' ); ?>" size="20">
146
147
<div class="helpDescription subsOptDescriptions"
148
+ data-content="<?php _e( 'Specify your custom HTML code to be added to the HEAD section of the page. Use <strong>single</strong> quotes for values.', 'subscribe-to-comments-reloaded' ); ?>"
149
data-placement="right"
150
+ aria-label="<?php _e( 'Specify your custom HTML code to be added to the HEAD section of the page. Use <strong>single</strong> quotes for values.', 'subscribe-to-comments-reloaded' ); ?>">
151
<i class="fas fa-question-circle"></i>
152
</div>
153
</div>
154
</div>
155
156
+ <h3><?php _e( 'Messages', 'subscribe-to-comments-reloaded' ) ?></h3>
157
158
<div class="form-group row">
159
<label for="request_mgmt_link" class="col-sm-2 offset-sm-1 col-form-label" style="z-index: 9999;">
160
+ <?php _e( 'Request link', 'subscribe-to-comments-reloaded' ) ?>
161
162
<div class="helpDescription subsOptDescriptions"
163
+ data-content="<?php _e( 'Text shown to those who request to manage their subscriptions.', 'subscribe-to-comments-reloaded' ); ?>"
164
data-placement="right"
165
+ aria-label="<?php _e( 'Text shown to those who request to manage their subscriptions.', 'subscribe-to-comments-reloaded' ); ?>">
166
<i class="fas fa-question-circle"></i>
167
</div>
168
182
</div>
183
</div>
184
185
+ <div class="form-group row" style="display: none;">
186
<label for="request_mgmt_link_thankyou" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
187
+ <?php _e( 'Request submitted', 'subscribe-to-comments-reloaded' ) ?>
188
189
<div class="helpDescription subsOptDescriptions"
190
+ data-content="<?php _e( 'Thank you note shown after the request here above has been processed. Allowed tags: [post_title], [post_permalink]', 'subscribe-to-comments-reloaded' ); ?>"
191
data-placement="right"
192
+ aria-label="<?php _e( 'Thank you note shown after the request here above has been processed. Allowed tags: [post_title], [post_permalink]', 'subscribe-to-comments-reloaded' ); ?>">
193
<i class="fas fa-question-circle"></i>
194
</div>
195
211
212
<div class="form-group row">
213
<label for="subscribe_without_commenting" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
214
+ <?php _e( 'Subscribe without commenting', 'subscribe-to-comments-reloaded' ) ?>
215
216
<div class="helpDescription subsOptDescriptions"
217
+ data-content="<?php _e( 'Text shown to those who want to subscribe without commenting. Allowed tags: [post_title], [post_permalink]', 'subscribe-to-comments-reloaded' ); ?>"
218
data-placement="right"
219
+ aria-label="<?php _e( 'Text shown to those who want to subscribe without commenting. Allowed tags: [post_title], [post_permalink]', 'subscribe-to-comments-reloaded' ); ?>">
220
<i class="fas fa-question-circle"></i>
221
</div>
222
238
239
<div class="form-group row">
240
<label for="subscription_confirmed" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
241
+ <?php _e( 'Subscription processed', 'subscribe-to-comments-reloaded' ) ?>
242
243
<div class="helpDescription subsOptDescriptions"
244
+ data-content="<?php _e( 'Thank you note shown after the subscription request has been processed (double check-in disabled). Allowed tags: [post_title], [post_permalink]', 'subscribe-to-comments-reloaded' ); ?>"
245
data-placement="right"
246
+ aria-label="<?php _e( 'Thank you note shown after the subscription request has been processed (double check-in disabled). Allowed tags: [post_title], [post_permalink]', 'subscribe-to-comments-reloaded' ); ?>">
247
<i class="fas fa-question-circle"></i>
248
</div>
249
265
266
<div class="form-group row">
267
<label for="subscription_confirmed_dci" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
268
+ <?php _e( 'Subscription processed (DCI)', 'subscribe-to-comments-reloaded' ) ?>
269
270
<div class="helpDescription subsOptDescriptions"
271
+ data-content="<?php _e( 'Thank you note shown after the subscription request has been processed (double check-in enabled). Allowed tags: [post_title], [post_permalink]', 'subscribe-to-comments-reloaded' ); ?>"
272
data-placement="right"
273
+ aria-label="<?php _e( 'Thank you note shown after the subscription request has been processed (double check-in enabled). Allowed tags: [post_title], [post_permalink]', 'subscribe-to-comments-reloaded' ); ?>">
274
<i class="fas fa-question-circle"></i>
275
</div>
276
292
293
<div class="form-group row">
294
<label for="author_text" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
295
+ <?php _e( 'Authors', 'subscribe-to-comments-reloaded' ) ?>
296
297
<div class="helpDescription subsOptDescriptions"
298
+ data-content="<?php _e( "Introductory text for the authors' management page.", 'subscribe-to-comments-reloaded' ); ?>"
299
data-placement="right"
300
+ aria-label="<?php _e( "Introductory text for the authors' management page.", 'subscribe-to-comments-reloaded' ); ?>">
301
<i class="fas fa-question-circle"></i>
302
</div>
303
319
320
<div class="form-group row">
321
<label for="user_text" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
322
+ <?php _e( 'Users', 'subscribe-to-comments-reloaded' ) ?>
323
324
<div class="helpDescription subsOptDescriptions"
325
+ data-content="<?php _e( "Introductory text for the users' management page.", 'subscribe-to-comments-reloaded' ); ?>"
326
data-placement="right"
327
+ aria-label="<?php _e( "Introductory text for the users' management page.", 'subscribe-to-comments-reloaded' ); ?>">
328
<i class="fas fa-question-circle"></i>
329
</div>
330
347
<div class="form-group row">
348
<div class="col-sm-9 offset-sm-1">
349
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
350
+ <?php _e( 'Save Changes', 'subscribe-to-comments-reloaded' ) ?>
351
</button>
352
</div>
353
</div>
options/stcr_notifications.php CHANGED
@@ -52,9 +52,9 @@ if ( isset( $_POST['options'] ) ) {
52
// Display an alert in the admin interface if something went wrong
53
echo '<div class="updated"><p>';
54
if ( sizeof( $faulty_fields ) == 0 ) {
55
- _e( 'Your settings have been successfully updated.', 'subscribe-reloaded' );
56
} else {
57
- _e( 'There was an error updating the options.', 'subscribe-reloaded' );
58
// echo ' <strong>' . substr( $faulty_fields, 0, - 2 ) . '</strong>';
59
}
60
echo "</p></div>";
@@ -72,16 +72,16 @@ wp_print_scripts( 'quicktags' );
72
73
<div class="form-group row">
74
<label for="from_name" class="col-sm-3 col-form-label text-right">
75
- <?php _e( 'Sender email address', 'subscribe-reloaded' ) ?></label>
76
<div class="col-sm-7">
77
<input type="text" name="options[from_name]" id="from_name"
78
class="form-control form-control-input-8"
79
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'from_name' ); ?>" size="20">
80
81
<div class="helpDescription subsOptDescriptions"
82
- data-content="<?php _e( "Name to use for the 'from' field when sending a new notification to the user.", 'subscribe-reloaded' ); ?>"
83
data-placement="right"
84
- aria-label="<?php _e( "Name to use for the 'from' field when sending a new notification to the user.", 'subscribe-reloaded' ); ?>">
85
<i class="fas fa-question-circle"></i>
86
</div>
87
</div>
@@ -89,16 +89,16 @@ wp_print_scripts( 'quicktags' );
89
90
<div class="form-group row">
91
<label for="from_email" class="col-sm-3 col-form-label text-right">
92
- <?php _e( 'Sender email address', 'subscribe-reloaded' ) ?></label>
93
<div class="col-sm-7">
94
<input type="text" name="options[from_email]" id="from_email"
95
class="form-control form-control-input-8"
96
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'from_email' ); ?>" size="20">
97
98
<div class="helpDescription subsOptDescriptions"
99
- data-content="<?php _e( "Email address to use for the \"from\" field when sending a new notification to the user.", 'subscribe-reloaded' ); ?>"
100
data-placement="right"
101
- aria-label="<?php _e( "Email address to use for the \"from\" field when sending a new notification to the user.", 'subscribe-reloaded' ); ?>">
102
<i class="fas fa-question-circle"></i>
103
</div>
104
</div>
@@ -106,35 +106,35 @@ wp_print_scripts( 'quicktags' );
106
107
<div class="form-group row">
108
<label for="reply_to" class="col-sm-3 col-form-label text-right">
109
- <?php _e( 'Reply To', 'subscribe-reloaded' ) ?></label>
110
<div class="col-sm-7">
111
<input type="text" name="options[reply_to]" id="reply_to"
112
class="form-control form-control-input-8"
113
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'reply_to' ); ?>" size="20">
114
115
<div class="helpDescription subsOptDescriptions"
116
- data-content="<?php _e( "This will be use when the user click reply on their email agent. If not set it will be the same as the Sender email address.", 'subscribe-reloaded' ); ?>"
117
data-placement="right"
118
- aria-label="<?php _e( "This will be use when the user click reply on their email agent. If not set it will be the same as the Sender email address.", 'subscribe-reloaded' ); ?>">
119
<i class="fas fa-question-circle"></i>
120
</div>
121
</div>
122
</div>
123
124
- <h3><?php _e( 'Messages', 'subscribe-reloaded' ) ?></h3>
125
126
<div class="form-group row">
127
<label for="notification_subject" class="col-sm-3 col-form-label text-right">
128
- <?php _e( 'Notification subject', 'subscribe-reloaded' ) ?></label>
129
<div class="col-sm-7">
130
<input type="text" name="options[notification_subject]" id="notification_subject"
131
class="form-control form-control-input-8"
132
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'notification_subject' ); ?>" size="20">
133
134
<div class="helpDescription subsOptDescriptions"
135
- data-content="<?php _e( "Subject of the notification email. Allowed tag: [post_title]", 'subscribe-reloaded' ); ?>"
136
data-placement="right"
137
- aria-label="<?php _e( "Subject of the notification email. Allowed tag: [post_title]", 'subscribe-reloaded' ); ?>">
138
<i class="fas fa-question-circle"></i>
139
</div>
140
</div>
@@ -142,12 +142,12 @@ wp_print_scripts( 'quicktags' );
142
143
<div class="form-group row">
144
<label for="notification_content" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
145
- <?php _e( 'Notification message', 'subscribe-reloaded' ) ?>
146
147
<div class="helpDescription subsOptDescriptions"
148
- data-content="<?php _e( "Content of the notification email. Allowed tags: [post_title], [comment_permalink], [comment_author], [comment_content], [post_permalink], [manager_link], [comment_gravatar]<p style='color: #156dc7;'><strong>Note: To get a default template clear all the content and save the options.</strong></p>", 'subscribe-reloaded' ); ?>"
149
data-placement="right"
150
- aria-label="<?php _e( "Content of the notification email. Allowed tags: [post_title], [comment_permalink], [comment_author], [comment_content], [post_permalink], [manager_link], [comment_gravatar]<p style='color: #156dc7;'><strong>Note: To get a default template clear all the content and save the options.</strong></p>", 'subscribe-reloaded' ); ?>">
151
<i class="fas fa-question-circle"></i>
152
</div>
153
@@ -173,16 +173,16 @@ wp_print_scripts( 'quicktags' );
173
174
<div class="form-group row">
175
<label for="double_check_subject" class="col-sm-3 col-form-label text-right">
176
- <?php _e( 'Double check subject', 'subscribe-reloaded' ) ?></label>
177
<div class="col-sm-7">
178
<input type="text" name="options[double_check_subject]" id="double_check_subject"
179
class="form-control form-control-input-8"
180
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'double_check_subject' ); ?>" size="20">
181
182
<div class="helpDescription subsOptDescriptions"
183
- data-content="<?php _e( "Subject of the confirmation email. Allowed tag: [post_title]", 'subscribe-reloaded' ); ?>"
184
data-placement="right"
185
- aria-label="<?php _e( "Subject of the confirmation email. Allowed tag: [post_title]", 'subscribe-reloaded' ); ?>">
186
<i class="fas fa-question-circle"></i>
187
</div>
188
</div>
@@ -190,12 +190,12 @@ wp_print_scripts( 'quicktags' );
190
191
<div class="form-group row">
192
<label for="double_check_content" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
193
- <?php _e( 'Double check message', 'subscribe-reloaded' ) ?>
194
195
<div class="helpDescription subsOptDescriptions"
196
- data-content="<?php _e( "Content of the confirmation email. Allowed tags: [post_permalink], [confirm_link], [post_title], [manager_link]", 'subscribe-reloaded' ); ?>"
197
data-placement="right"
198
- aria-label="<?php _e( "Content of the confirmation email. Allowed tags: [post_permalink], [confirm_link], [post_title], [manager_link]", 'subscribe-reloaded' ); ?>">
199
<i class="fas fa-question-circle"></i>
200
</div>
201
@@ -217,16 +217,16 @@ wp_print_scripts( 'quicktags' );
217
218
<div class="form-group row">
219
<label for="management_subject" class="col-sm-3 col-form-label text-right">
220
- <?php _e( 'Management subject', 'subscribe-reloaded' ) ?></label>
221
<div class="col-sm-7">
222
<input type="text" name="options[management_subject]" id="management_subject"
223
class="form-control form-control-input-8"
224
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'management_subject' ); ?>" size="20">
225
226
<div class="helpDescription subsOptDescriptions"
227
- data-content="<?php _e( "Subject of the mail sent to those who request to access their management page. Allowed tag: [blog_name]", 'subscribe-reloaded' ); ?>"
228
data-placement="right"
229
- aria-label="<?php _e( "Subject of the mail sent to those who request to access their management page. Allowed tag: [blog_name]", 'subscribe-reloaded' ); ?>">
230
<i class="fas fa-question-circle"></i>
231
</div>
232
</div>
@@ -234,12 +234,12 @@ wp_print_scripts( 'quicktags' );
234
235
<div class="form-group row">
236
<label for="management_content" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
237
- <?php _e( 'Management Page message', 'subscribe-reloaded' ) ?>
238
239
<div class="helpDescription subsOptDescriptions"
240
- data-content="<?php _e( "Content of the management Page message. Allowed tags: [blog_name].", 'subscribe-reloaded' ); ?>"
241
data-placement="right"
242
- aria-label="<?php _e( "Content of the management Page message. Allowed tags: [blog_name].", 'subscribe-reloaded' ); ?>">
243
<i class="fas fa-question-circle"></i>
244
</div>
245
@@ -261,12 +261,12 @@ wp_print_scripts( 'quicktags' );
261
262
<div class="form-group row">
263
<label for="management_email_content" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
264
- <?php _e( 'Management Email message', 'subscribe-reloaded' ) ?>
265
266
<div class="helpDescription subsOptDescriptions"
267
- data-content="<?php _e( "Content of the management email message. Allowed tags: [blog_name], [manager_link].", 'subscribe-reloaded' ); ?>"
268
data-placement="right"
269
- aria-label="<?php _e( "Content of the management email message. Allowed tags: [blog_name], [manager_link].", 'subscribe-reloaded' ); ?>">
270
<i class="fas fa-question-circle"></i>
271
</div>
272
@@ -288,12 +288,12 @@ wp_print_scripts( 'quicktags' );
288
289
<div class="form-group row">
290
<label for="oneclick_text" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
291
- <?php _e( 'One Click Unsubscribe', 'subscribe-reloaded' ) ?>
292
293
<div class="helpDescription subsOptDescriptions"
294
- data-content="<?php _e( "Content of the One Click confirmation. Allowed tags: [post_title], [blog_name].", 'subscribe-reloaded' ); ?>"
295
data-placement="right"
296
- aria-label="<?php _e( "Content of the One Click confirmation. Allowed tags: [post_title], [blog_name].", 'subscribe-reloaded' ); ?>">
297
<i class="fas fa-question-circle"></i>
298
</div>
299
@@ -316,7 +316,7 @@ wp_print_scripts( 'quicktags' );
316
<div class="form-group row">
317
<div class="col-sm-9 offset-sm-1">
318
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
319
- <?php _e( 'Save Changes', 'subscribe-reloaded' ) ?>
320
</button>
321
</div>
322
</div>
52
// Display an alert in the admin interface if something went wrong
53
echo '<div class="updated"><p>';
54
if ( sizeof( $faulty_fields ) == 0 ) {
55
+ _e( 'Your settings have been successfully updated.', 'subscribe-to-comments-reloaded' );
56
} else {
57
+ _e( 'There was an error updating the options.', 'subscribe-to-comments-reloaded' );
58
// echo ' <strong>' . substr( $faulty_fields, 0, - 2 ) . '</strong>';
59
}
60
echo "</p></div>";
72
73
<div class="form-group row">
74
<label for="from_name" class="col-sm-3 col-form-label text-right">
75
+ <?php _e( 'Sender email address', 'subscribe-to-comments-reloaded' ) ?></label>
76
<div class="col-sm-7">
77
<input type="text" name="options[from_name]" id="from_name"
78
class="form-control form-control-input-8"
79
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'from_name' ); ?>" size="20">
80
81
<div class="helpDescription subsOptDescriptions"
82
+ data-content="<?php _e( "Name to use for the 'from' field when sending a new notification to the user.", 'subscribe-to-comments-reloaded' ); ?>"
83
data-placement="right"
84
+ aria-label="<?php _e( "Name to use for the 'from' field when sending a new notification to the user.", 'subscribe-to-comments-reloaded' ); ?>">
85
<i class="fas fa-question-circle"></i>
86
</div>
87
</div>
89
90
<div class="form-group row">
91
<label for="from_email" class="col-sm-3 col-form-label text-right">
92
+ <?php _e( 'Sender email address', 'subscribe-to-comments-reloaded' ) ?></label>
93
<div class="col-sm-7">
94
<input type="text" name="options[from_email]" id="from_email"
95
class="form-control form-control-input-8"
96
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'from_email' ); ?>" size="20">
97
98
<div class="helpDescription subsOptDescriptions"
99
+ data-content="<?php _e( "Email address to use for the \"from\" field when sending a new notification to the user.", 'subscribe-to-comments-reloaded' ); ?>"
100
data-placement="right"
101
+ aria-label="<?php _e( "Email address to use for the \"from\" field when sending a new notification to the user.", 'subscribe-to-comments-reloaded' ); ?>">
102
<i class="fas fa-question-circle"></i>
103
</div>
104
</div>
106
107
<div class="form-group row">
108
<label for="reply_to" class="col-sm-3 col-form-label text-right">
109
+ <?php _e( 'Reply To', 'subscribe-to-comments-reloaded' ) ?></label>
110
<div class="col-sm-7">
111
<input type="text" name="options[reply_to]" id="reply_to"
112
class="form-control form-control-input-8"
113
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'reply_to' ); ?>" size="20">
114
115
<div class="helpDescription subsOptDescriptions"
116
+ data-content="<?php _e( "This will be use when the user click reply on their email agent. If not set it will be the same as the Sender email address.", 'subscribe-to-comments-reloaded' ); ?>"
117
data-placement="right"
118
+ aria-label="<?php _e( "This will be use when the user click reply on their email agent. If not set it will be the same as the Sender email address.", 'subscribe-to-comments-reloaded' ); ?>">
119
<i class="fas fa-question-circle"></i>
120
</div>
121
</div>
122
</div>
123
124
+ <h3><?php _e( 'Messages', 'subscribe-to-comments-reloaded' ) ?></h3>
125
126
<div class="form-group row">
127
<label for="notification_subject" class="col-sm-3 col-form-label text-right">
128
+ <?php _e( 'Notification subject', 'subscribe-to-comments-reloaded' ) ?></label>
129
<div class="col-sm-7">
130
<input type="text" name="options[notification_subject]" id="notification_subject"
131
class="form-control form-control-input-8"
132
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'notification_subject' ); ?>" size="20">
133
134
<div class="helpDescription subsOptDescriptions"
135
+ data-content="<?php _e( "Subject of the notification email. Allowed tag: [post_title]", 'subscribe-to-comments-reloaded' ); ?>"
136
data-placement="right"
137
+ aria-label="<?php _e( "Subject of the notification email. Allowed tag: [post_title]", 'subscribe-to-comments-reloaded' ); ?>">
138
<i class="fas fa-question-circle"></i>
139
</div>
140
</div>
142
143
<div class="form-group row">
144
<label for="notification_content" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
145
+ <?php _e( 'Notification message', 'subscribe-to-comments-reloaded' ) ?>
146
147
<div class="helpDescription subsOptDescriptions"
148
+ data-content="<?php _e( "Content of the notification email. Allowed tags: [post_title], [comment_permalink], [comment_author], [comment_content], [post_permalink], [manager_link], [comment_gravatar]<p style='color: #156dc7;'><strong>Note: To get a default template clear all the content and save the options.</strong></p>", 'subscribe-to-comments-reloaded' ); ?>"
149
data-placement="right"
150
+ aria-label="<?php _e( "Content of the notification email. Allowed tags: [post_title], [comment_permalink], [comment_author], [comment_content], [post_permalink], [manager_link], [comment_gravatar]<p style='color: #156dc7;'><strong>Note: To get a default template clear all the content and save the options.</strong></p>", 'subscribe-to-comments-reloaded' ); ?>">
151
<i class="fas fa-question-circle"></i>
152
</div>
153
173
174
<div class="form-group row">
175
<label for="double_check_subject" class="col-sm-3 col-form-label text-right">
176
+ <?php _e( 'Double check subject', 'subscribe-to-comments-reloaded' ) ?></label>
177
<div class="col-sm-7">
178
<input type="text" name="options[double_check_subject]" id="double_check_subject"
179
class="form-control form-control-input-8"
180
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'double_check_subject' ); ?>" size="20">
181
182
<div class="helpDescription subsOptDescriptions"
183
+ data-content="<?php _e( "Subject of the confirmation email. Allowed tag: [post_title]", 'subscribe-to-comments-reloaded' ); ?>"
184
data-placement="right"
185
+ aria-label="<?php _e( "Subject of the confirmation email. Allowed tag: [post_title]", 'subscribe-to-comments-reloaded' ); ?>">
186
<i class="fas fa-question-circle"></i>
187
</div>
188
</div>
190
191
<div class="form-group row">
192
<label for="double_check_content" class="col-sm-3 offset-sm-1 col-form-label" style="z-index: 9999;">
193
+ <?php _e( 'Double check message', 'subscribe-to-comments-reloaded' ) ?>
194
195
<div class="helpDescription subsOptDescriptions"
196
+ data-content="<?php _e( "Content of the confirmation email. Allowed tags: [post_permalink], [confirm_link], [post_title], [manager_link]", 'subscribe-to-comments-reloaded' ); ?>"
197
data-placement="right"
198
+ aria-label="<?php _e( "Content of the confirmation email. Allowed tags: [post_permalink], [confirm_link], [post_title], [manager_link]", 'subscribe-to-comments-reloaded' ); ?>">
199
<i class="fas fa-question-circle"></i>
200
</div>
201
217
218
<div class="form-group row">
219
<label for="management_subject" class="col-sm-3 col-form-label text-right">
220
+ <?php _e( 'Management subject', 'subscribe-to-comments-reloaded' ) ?></label>
221
<div class="col-sm-7">
222
<input type="text" name="options[management_subject]" id="management_subject"
223
class="form-control form-control-input-8"
224
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'management_subject' ); ?>" size="20">
225
226
<div class="helpDescription subsOptDescriptions"
227
+ data-content="<?php _e( "Subject of the mail sent to those who request to access their management page. Allowed tag: [blog_name]", 'subscribe-to-comments-reloaded' ); ?>"
228
data-placement="right"
229
+ aria-label="<?php _e( "Subject of the mail sent to those who request to access their management page. Allowed tag: [blog_name]", 'subscribe-to-comments-reloaded' ); ?>">
230
<i class="fas fa-question-circle"></i>
231
</div>
232
</div>
234
235
<div class="form-group row">
236
<label for="management_content" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
237
+ <?php _e( 'Management Page message', 'subscribe-to-comments-reloaded' ) ?>
238
239
<div class="helpDescription subsOptDescriptions"
240
+ data-content="<?php _e( "Content of the management Page message. Allowed tags: [blog_name].", 'subscribe-to-comments-reloaded' ); ?>"
241
data-placement="right"
242
+ aria-label="<?php _e( "Content of the management Page message. Allowed tags: [blog_name].", 'subscribe-to-comments-reloaded' ); ?>">
243
<i class="fas fa-question-circle"></i>
244
</div>
245
261
262
<div class="form-group row">
263
<label for="management_email_content" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
264
+ <?php _e( 'Management Email message', 'subscribe-to-comments-reloaded' ) ?>
265
266
<div class="helpDescription subsOptDescriptions"
267
+ data-content="<?php _e( "Content of the management email message. Allowed tags: [blog_name], [manager_link].", 'subscribe-to-comments-reloaded' ); ?>"
268
data-placement="right"
269
+ aria-label="<?php _e( "Content of the management email message. Allowed tags: [blog_name], [manager_link].", 'subscribe-to-comments-reloaded' ); ?>">
270
<i class="fas fa-question-circle"></i>
271
</div>
272
288
289
<div class="form-group row">
290
<label for="oneclick_text" class="col-sm-4 offset-sm-1 col-form-label" style="z-index: 9999;">
291
+ <?php _e( 'One Click Unsubscribe', 'subscribe-to-comments-reloaded' ) ?>
292
293
<div class="helpDescription subsOptDescriptions"
294
+ data-content="<?php _e( "Content of the One Click confirmation. Allowed tags: [post_title], [blog_name].", 'subscribe-to-comments-reloaded' ); ?>"
295
data-placement="right"
296
+ aria-label="<?php _e( "Content of the One Click confirmation. Allowed tags: [post_title], [blog_name].", 'subscribe-to-comments-reloaded' ); ?>">
297
<i class="fas fa-question-circle"></i>
298
</div>
299
316
<div class="form-group row">
317
<div class="col-sm-9 offset-sm-1">
318
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
319
+ <?php _e( 'Save Changes', 'subscribe-to-comments-reloaded' ) ?>
320
</button>
321
</div>
322
</div>
options/stcr_options.php CHANGED
@@ -29,7 +29,7 @@ if ( array_key_exists( "generate_key", $_POST ) ) {
29
$wp_subscribe_reloaded->stcr->utils->stcr_update_menu_options( 'unique_key', $unique_key, 'text' );
30
31
echo '<div class="updated"><p>';
32
- echo __( 'Your settings have been successfully updated.', 'subscribe-reloaded' );
33
echo "</p></div>";
34
35
}
@@ -60,9 +60,9 @@ elseif( isset( $_POST['options'] ) ) { // Update options
60
// Display an alert in the admin interface if something went wrong
61
echo '<div class="updated"><p>';
62
if ( sizeof( $faulty_fields ) == 0 ) {
63
- _e( 'Your settings have been successfully updated.', 'subscribe-reloaded' );
64
} else {
65
- _e( 'There was an error updating the options.', 'subscribe-reloaded' );
66
// echo ' <strong>' . substr( $faulty_fields, 0, - 2 ) . '</strong>';
67
}
68
echo "</p></div>";
@@ -79,50 +79,50 @@ wp_print_scripts( 'quicktags' );
79
<form action="" method="post">
80
81
<div class="form-group row" style="margin-bottom: 0;">
82
- <label for="show_subscription_box" class="col-sm-3 col-form-label text-right"><?php _e( 'Show StCR checkbox / dropdown', 'subscribe-reloaded' ) ?></label>
83
<div class="col-sm-7">
84
<div class="switch">
85
<input type="radio" class="switch-input" name="options[show_subscription_box]"
86
value="yes" id="show_subscription_box-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'show_subscription_box' ) == 'yes' ) ? ' checked' : ''; ?> />
87
<label for="show_subscription_box-yes" class="switch-label switch-label-off">
88
- <?php _e( 'Yes', 'subscribe-reloaded' ) ?>
89
</label>
90
<input type="radio" class="switch-input" name="options[show_subscription_box]" value="no" id="show_subscription_box-no"
91
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'show_subscription_box' ) == 'no' ) ? ' checked' : ''; ?> />
92
<label for="show_subscription_box-no" class="switch-label switch-label-on">
93
- <?php _e( 'No', 'subscribe-reloaded' ) ?>
94
</label>
95
<span class="switch-selection"></span>
96
</div>
97
<div class="helpDescription subsOptDescriptions"
98
- data-content="<?php _e( "This option will disable the StCR checkbox or dropdown in your comment form. You should leave it to Yes always.", 'subscribe-reloaded' ); ?>"
99
data-placement="right"
100
- aria-label="<?php _e( "This option will disable the StCR checkbox or dropdown in your comment form. You should leave it to Yes always.", 'subscribe-reloaded' ); ?>">
101
<i class="fas fa-question-circle"></i>
102
</div>
103
</div>
104
</div>
105
106
<div class="form-group row">
107
- <label for="safely_uninstall" class="col-sm-3 col-form-label text-right"><?php _e( 'Safely Uninstall', 'subscribe-reloaded' ) ?></label>
108
<div class="col-sm-7">
109
<div class="switch">
110
<input type="radio" class="switch-input" name="options[safely_uninstall]"
111
value="yes" id="safely_uninstall-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'safely_uninstall' ) == 'yes' ) ? ' checked' : ''; ?> />
112
<label for="safely_uninstall-yes" class="switch-label switch-label-off">
113
- <?php _e( 'Yes', 'subscribe-reloaded' ) ?>
114
</label>
115
<input type="radio" class="switch-input" name="options[safely_uninstall]" value="no" id="safely_uninstall-no"
116
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'safely_uninstall' ) == 'no' ) ? ' checked' : ''; ?> />
117
<label for="safely_uninstall-no" class="switch-label switch-label-on">
118
- <?php _e( 'No', 'subscribe-reloaded' ) ?>
119
</label>
120
<span class="switch-selection"></span>
121
</div>
122
<div class="helpDescription subsOptDescriptions"
123
- data-content="<?php _e( "This option will allow you to delete the plugin with WordPress without loosing your subscribers. Any database table and plugin options are wipeout.", 'subscribe-reloaded' ); ?>"
124
data-placement="right"
125
- aria-label="<?php _e( "This option will allow you to delete the plugin with WordPress without loosing your subscribers. Any database table and plugin options are wipeout.", 'subscribe-reloaded' ); ?>">
126
<i class="fas fa-question-circle"></i>
127
</div>
128
</div>
@@ -130,16 +130,16 @@ wp_print_scripts( 'quicktags' );
130
131
<div class="form-group row">
132
<label for="purge_days" class="col-sm-3 col-form-label text-right">
133
- <?php _e( 'Autopurge requests', 'subscribe-reloaded' ) ?></label>
134
<div class="col-sm-7">
135
<input type="number" name="options[purge_days]" id="purge_days"
136
class="form-control form-control-input-3"
137
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'purge_days' ); ?>" size="20">
138
139
<div class="helpDescription subsOptDescriptions"
140
- data-content="<?php _e( "Delete pending subscriptions (not confirmed) after X days. Zero disables this feature.", 'subscribe-reloaded' ); ?>"
141
data-placement="right"
142
- aria-label="<?php _e( "Delete pending subscriptions (not confirmed) after X days. Zero disables this feature.", 'subscribe-reloaded' ); ?>">
143
<i class="fas fa-question-circle"></i>
144
</div>
145
</div>
@@ -147,41 +147,41 @@ wp_print_scripts( 'quicktags' );
147
148
<div class="form-group row">
149
<label for="date_format" class="col-sm-3 col-form-label text-right">
150
- <?php _e( 'Date Format', 'subscribe-reloaded' ) ?></label>
151
<div class="col-sm-7">
152
<input type="text" name="options[date_format]" id="date_format"
153
class="form-control form-control-input-3"
154
value="<?php echo $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'date_format' ); ?>" size="20">
155
156
<div class="helpDescription subsOptDescriptions"
157
- data-content="<?php _e( "Date format that will be display on the management page. Use <a href='https://secure.php.net/manual/en/function.date.php#refsect1-function.date-parameters' target='_blank'>PHP Date Format</a>", 'subscribe-reloaded' ); ?>"
158
data-placement="right"
159
- aria-label="<?php _e( "Date format that will be display on the management page. Use <a href='https://secure.php.net/manual/en/function.date.php#refsect1-function.date-parameters' target='_blank'>PHP Date Format</a>", 'subscribe-reloaded' ); ?>">
160
<i class="fas fa-question-circle"></i>
161
</div>
162
</div>
163
</div>
164
165
<div class="form-group row">
166
- <label for="stcr_position" class="col-sm-3 col-form-label text-right"><?php _e( 'StCR Position', 'subscribe-reloaded' ) ?></label>
167
<div class="col-sm-7">
168
<div class="switch">
169
<input type="radio" class="switch-input" name="options[stcr_position]"
170
value="yes" id="stcr_position-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'stcr_position' ) == 'yes' ) ? ' checked' : ''; ?> />
171
<label for="stcr_position-yes" class="switch-label switch-label-off">
172
- <?php _e( 'Yes', 'subscribe-reloaded' ) ?>
173
</label>
174
<input type="radio" class="switch-input" name="options[stcr_position]" value="no" id="stcr_position-no"
175
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'stcr_position' ) == 'no' ) ? ' checked' : ''; ?> />
176
<label for="stcr_position-no" class="switch-label switch-label-on">
177
- <?php _e( 'No', 'subscribe-reloaded' ) ?>
178
</label>
179
<span class="switch-selection"></span>
180
</div>
181
<div class="helpDescription subsOptDescriptions"
182
- data-content="<?php _e( "If this option is enable the subscription box will be above the submit button in your comment form. Use this when your theme is outdated and using the incorrect WordPress Hooks and the checkbox is not displayed.", 'subscribe-reloaded' ); ?>"
183
data-placement="right"
184
- aria-label="<?php _e( "If this option is enable the subscription box will be above the submit button in your comment form. Use this when your theme is outdated and using the incorrect WordPress Hooks and the checkbox is not displayed.", 'subscribe-reloaded' ); ?>">
185
<i class="fas fa-question-circle"></i>
186
</div>
187
</div>
@@ -189,26 +189,26 @@ wp_print_scripts( 'quicktags' );
189
190
<div class="form-group row">
191
<label for="enable_double_check" class="col-sm-3 col-form-label text-right">
192
- <?php _e( 'Enable double check', 'subscribe-reloaded' ) ?>
193
</label>
194
<div class="col-sm-7">
195
<div class="switch">
196
<input type="radio" class="switch-input" name="options[enable_double_check]"
197
value="yes" id="enable_double_check-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_double_check' ) == 'yes' ) ? ' checked' : ''; ?> />
198
<label for="enable_double_check-yes" class="switch-label switch-label-off">
199
- <?php _e( 'Yes', 'subscribe-reloaded' ) ?>
200
</label>
201
<input type="radio" class="switch-input" name="options[enable_double_check]" value="no" id="enable_double_check-no"
202
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_double_check' ) == 'no' ) ? ' checked' : ''; ?> />
203
<label for="enable_double_check-no" class="switch-label switch-label-on">
204
- <?php _e( 'No', 'subscribe-reloaded' ) ?>
205
</label>
206
<span class="switch-selection"></span>
207
</div>
208
<div class="helpDescription subsOptDescriptions"
209
- data-content="<?php _e( "Send a notification email to confirm the subscription (to avoid addresses misuse).", 'subscribe-reloaded' ); ?>"
210
data-placement="right"
211
- aria-label="<?php _e( "Send a notification email to confirm the subscription (to avoid addresses misuse).", 'subscribe-reloaded' ); ?>">
212
<i class="fas fa-question-circle"></i>
213
</div>
214
</div>
@@ -216,26 +216,26 @@ wp_print_scripts( 'quicktags' );
216
217
<div class="form-group row">
218
<label for="notify_authors" class="col-sm-3 col-form-label text-right">
219