Version Description
Download this release
Release Info
Developer | wpkube |
Plugin | Subscribe To Comments Reloaded |
Version | 190426 |
Comparing to | |
See all releases |
Code changes from version 190412 to 190426
- classes/stcr_i18n.php +35 -41
- includes/js/admin/management_page.js +1 -1
- includes/js/admin/subs_management.js +14 -14
- langs/{subscribe-reloaded-be_BY.mo → subscribe-to-comments-reloaded-be_BY.mo} +0 -0
- langs/{subscribe-reloaded-be_BY.po → subscribe-to-comments-reloaded-be_BY.po} +0 -0
- langs/{subscribe-reloaded-cs_CZ.mo → subscribe-to-comments-reloaded-cs_CZ.mo} +0 -0
- langs/{subscribe-reloaded-cs_CZ.po → subscribe-to-comments-reloaded-cs_CZ.po} +0 -0
- langs/{subscribe-reloaded-da_DK.mo → subscribe-to-comments-reloaded-da_DK.mo} +0 -0
- langs/{subscribe-reloaded-da_DK.po → subscribe-to-comments-reloaded-da_DK.po} +0 -0
- langs/{subscribe-reloaded-de_DE.mo → subscribe-to-comments-reloaded-de_DE.mo} +0 -0
- langs/{subscribe-reloaded-de_DE.po → subscribe-to-comments-reloaded-de_DE.po} +0 -0
- langs/{subscribe-reloaded-es_ES.mo → subscribe-to-comments-reloaded-es_ES.mo} +0 -0
- langs/{subscribe-reloaded-es_ES.po → subscribe-to-comments-reloaded-es_ES.po} +0 -0
- langs/{subscribe-reloaded-fa_IR.mo → subscribe-to-comments-reloaded-fa_IR.mo} +0 -0
- langs/{subscribe-reloaded-fa_IR.po → subscribe-to-comments-reloaded-fa_IR.po} +0 -0
- langs/{subscribe-reloaded-fr_FR.mo → subscribe-to-comments-reloaded-fr_FR.mo} +0 -0
- langs/{subscribe-reloaded-fr_FR.po → subscribe-to-comments-reloaded-fr_FR.po} +0 -0
- langs/{subscribe-reloaded-he_IL.mo → subscribe-to-comments-reloaded-he_IL.mo} +0 -0
- langs/{subscribe-reloaded-he_IL.po → subscribe-to-comments-reloaded-he_IL.po} +0 -0
- langs/{subscribe-reloaded-hu_HU.mo → subscribe-to-comments-reloaded-hu_HU.mo} +0 -0
- langs/{subscribe-reloaded-hu_HU.po → subscribe-to-comments-reloaded-hu_HU.po} +0 -0
- langs/{subscribe-reloaded-id_ID.mo → subscribe-to-comments-reloaded-id_ID.mo} +0 -0
- langs/{subscribe-reloaded-id_ID.po → subscribe-to-comments-reloaded-id_ID.po} +0 -0
- langs/{subscribe-reloaded-it_IT.mo → subscribe-to-comments-reloaded-it_IT.mo} +0 -0
- langs/{subscribe-reloaded-it_IT.po → subscribe-to-comments-reloaded-it_IT.po} +0 -0
- langs/{subscribe-reloaded-nb_NO.mo → subscribe-to-comments-reloaded-nb_NO.mo} +0 -0
- langs/{subscribe-reloaded-nb_NO.po → subscribe-to-comments-reloaded-nb_NO.po} +0 -0
- langs/{subscribe-reloaded-nl_NL.mo → subscribe-to-comments-reloaded-nl_NL.mo} +0 -0
- langs/{subscribe-reloaded-nl_NL.po → subscribe-to-comments-reloaded-nl_NL.po} +0 -0
- langs/{subscribe-reloaded-pl_PL.mo → subscribe-to-comments-reloaded-pl_PL.mo} +0 -0
- langs/{subscribe-reloaded-pl_PL.po → subscribe-to-comments-reloaded-pl_PL.po} +0 -0
- langs/{subscribe-reloaded-pt_BR.mo → subscribe-to-comments-reloaded-pt_BR.mo} +0 -0
- langs/{subscribe-reloaded-pt_BR.po → subscribe-to-comments-reloaded-pt_BR.po} +0 -0
- langs/{subscribe-reloaded-pt_PT.mo → subscribe-to-comments-reloaded-pt_PT.mo} +0 -0
- langs/{subscribe-reloaded-pt_PT.po → subscribe-to-comments-reloaded-pt_PT.po} +0 -0
- langs/{subscribe-reloaded-ru_RU.mo → subscribe-to-comments-reloaded-ru_RU.mo} +0 -0
- langs/{subscribe-reloaded-ru_RU.po → subscribe-to-comments-reloaded-ru_RU.po} +0 -0
- langs/{subscribe-reloaded-sr_RS.mo → subscribe-to-comments-reloaded-sr_RS.mo} +0 -0
- langs/{subscribe-reloaded-sr_RS.po → subscribe-to-comments-reloaded-sr_RS.po} +0 -0
- langs/{subscribe-reloaded-sv_SE.mo → subscribe-to-comments-reloaded-sv_SE.mo} +0 -0
- langs/{subscribe-reloaded-sv_SE.po → subscribe-to-comments-reloaded-sv_SE.po} +0 -0
- langs/{subscribe-reloaded-tr_TR.mo → subscribe-to-comments-reloaded-tr_TR.mo} +0 -0
- langs/{subscribe-reloaded-tr_TR.po → subscribe-to-comments-reloaded-tr_TR.po} +0 -0
- langs/{subscribe-reloaded-zh_CN.mo → subscribe-to-comments-reloaded-zh_CN.mo} +0 -0
- langs/{subscribe-reloaded-zh_CN.po → subscribe-to-comments-reloaded-zh_CN.po} +0 -0
- langs/{subscribe-reloaded.pot → subscribe-to-comments-reloaded.pot} +0 -0
- options/options_template.php +3 -3
- options/panel1-add-subscription.php +8 -8
- options/panel1-business-logic.php +10 -10
- options/panel1-edit-subscription.php +14 -14
- options/stcr_comment_form.php +48 -48
- options/stcr_manage_subscriptions.php +54 -59
- options/stcr_management_page.php +42 -42
- options/stcr_notifications.php +37 -37
- options/stcr_options.php +75 -75
- options/stcr_support.php +9 -9
- options/stcr_system.php +95 -79
- readme.txt +11 -1
- subscribe-to-comments-reloaded.php +1 -1
- templates/author.php +28 -28
- templates/confirm.php +1 -1
- templates/key_expired.php +3 -3
- templates/one-click-unsubscribe.php +1 -1
- templates/request-management-link.php +8 -8
- templates/subscribe.php +11 -11
- templates/user.php +28 -28
- templates/wrong-request.php +1 -1
- utils/stcr_manage.php +23 -23
- utils/stcr_upgrade.php +77 -77
- utils/stcr_utils.php +44 -44
- utils/systemInformation.txt +1 -0
- 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" => __( " ",
|
52 |
-
"emptyTable" => __( "No data available in table",
|
53 |
-
"info" => __( "Showing _START_ to _END_ of _TOTAL_ entries",
|
54 |
-
"infoEmpty" => __( "Showing 0 to 0 of 0 entries",
|
55 |
-
"infoFiltered" => __( "(filtered from _MAX_ total entries)",
|
56 |
-
"infoPostFix" => __( " ",
|
57 |
-
"thousands" => __( ",",
|
58 |
-
"lengthMenu" => __( "Show _MENU_ entries",
|
59 |
-
"loadingRecords" => __( "Loading...",
|
60 |
-
"processing" => __( "Processing...",
|
61 |
-
"search" => __( "Search",
|
62 |
-
"zeroRecords" => __( "No matching records found",
|
63 |
"paginate" => array(
|
64 |
-
"first" => __( "First",
|
65 |
-
"last" => __( "Last",
|
66 |
-
"next" => __( "Next",
|
67 |
-
"previous" => __( "Previous",
|
68 |
),
|
69 |
"aria" => array(
|
70 |
-
"sortAscending" => __( "activate to sort column ascending",
|
71 |
-
"sortDescending"=> __( "activate to sort column descending",
|
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&srf=$search_field&srt=" . urlencode( $operator ) . "&srv=$search_value&srob=$order_by&sro=$order&srsf=$new_starting&srrp=$limit_results'>" . __( '« 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&srf=$search_field&srt=" . urlencode( $operator ) . "&srv=$search_value&srob=$order_by&sro=$order&srsf=$new_starting&srrp=$limit_results'>" . __( 'Next »', '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&srf=$search_field&srt=" . urlencode( $operator ) . "&srv=$search_value&srob=$order_by&sro=$order&srsf=$new_starting&srrp=$limit_results'>" . __( '« 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&srf=$search_field&srt=" . urlencode( $operator ) . "&srv=$search_value&srob=$order_by&sro=$order&srsf=$new_starting&srrp=$limit_results'>" . __( 'Next »', '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",
|
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",
|
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",
|
173 |
-
'YC' => __( "Unconfirmed",
|
174 |
-
'C' => __( "Inactive",
|
175 |
-
'-C' => __( "Active",
|
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&srv=" . urlencode( $search_value ) . "&srt=" . urlencode( $operator ) . "&srob=post_id&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&srv=" . urlencode( $search_value ) . "&srt=" . urlencode( $operator ) . "&srob=dt&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&srv=" . urlencode( $search_value ) . "&srt=" . urlencode( $operator ) . "&srob=status&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 |
-
<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' ) . "
|
202 |
-
<th scope=\"col\"><i class=\"fas fa-info-circle\"></i><span>". __( 'Status', 'subscribe-reloaded' ) . "
|
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 |
-
<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' ) . "
|
215 |
-
<th scope=\"col\"><i class=\"fas fa-info-circle\"></i><span>". __( 'Status', 'subscribe-reloaded' ) . "
|
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&sra=edit-subscription&srp=" . $a_subscription->post_id . "&sre=" . urlencode( $a_subscription->email ) . "' alt='" . __( 'Edit', 'subscribe-reloaded' ) . "'><i class=\"fas fa-edit\" style='font-size: 1.1em;color: #ffc53a;'></i></a>
|
246 |
-
<a href='admin.php?page=stcr_manage_subscriptions&sra=delete-subscription&srp=" . $a_subscription->post_id . "&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&sra=edit-subscription&srp=" . $a_subscription->post_id . "&sre=" . urlencode( $a_subscription->email ) . "' alt='" . __( 'Edit', 'subscribe-reloaded' ) . "'><i class=\"fas fa-edit\" style='font-size: 1.1em;color: #ffc53a;'></i></a>
|
261 |
-
<a href='admin.php?page=stcr_manage_subscriptions&sra=delete-subscription&srp=" . $a_subscription->post_id . "&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 |
+
<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 |
+
<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&sra=edit-subscription&srp=" . $a_subscription->post_id . "&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 |
+
<a href='admin.php?page=stcr_manage_subscriptions&sra=delete-subscription&srp=" . $a_subscription->post_id . "&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&sra=edit-subscription&srp=" . $a_subscription->post_id . "&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 |
+
<a href='admin.php?page=stcr_manage_subscriptions&sra=delete-subscription&srp=" . $a_subscription->post_id . "&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",
|
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 |
-
<?php _e( 'Subscribe authors', 'subscribe-reloaded' ) ?>
|
220 |
</label>
|
221 |
<div class="col-sm-7">
|
222 |
<div class="switch">
|
223 |
<input type="radio" class="switch-input" name="options[notify_authors]"
|
224 |
value="yes" id="notify_authors-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'notify_authors' ) == 'yes' ) ? ' checked' : ''; ?> />
|
225 |
<label for="notify_authors-yes" class="switch-label switch-label-off">
|
226 |
-
<?php _e( 'Yes', 'subscribe-reloaded' ) ?>
|
227 |
</label>
|
228 |
<input type="radio" class="switch-input" name="options[notify_authors]" value="no" id="notify_authors-no"
|
229 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'notify_authors' ) == 'no' ) ? ' checked' : ''; ?> />
|
230 |
<label for="notify_authors-no" class="switch-label switch-label-on">
|
231 |
-
<?php _e( 'No', 'subscribe-reloaded' ) ?>
|
232 |
</label>
|
233 |
<span class="switch-selection"></span>
|
234 |
</div>
|
235 |
<div class="helpDescription subsOptDescriptions"
|
236 |
-
data-content="<?php _e( "Automatically subscribe authors to their own articles (not retroactive).", 'subscribe-reloaded' ); ?>"
|
237 |
data-placement="right"
|
238 |
-
aria-label="<?php _e( "Automatically subscribe authors to their own articles (not retroactive).", 'subscribe-reloaded' ); ?>">
|
239 |
<i class="fas fa-question-circle"></i>
|
240 |
</div>
|
241 |
</div>
|
@@ -243,26 +243,26 @@ wp_print_scripts( 'quicktags' );
|
|
243 |
|
244 |
<div class="form-group row">
|
245 |
<label for="enable_html_emails" class="col-sm-3 col-form-label text-right">
|
246 |
-
<?php _e( 'Enable HTML emails', 'subscribe-reloaded' ) ?>
|
247 |
</label>
|
248 |
<div class="col-sm-7">
|
249 |
<div class="switch">
|
250 |
<input type="radio" class="switch-input" name="options[enable_html_emails]"
|
251 |
value="yes" id="enable_html_emails-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_html_emails' ) == 'yes' ) ? ' checked' : ''; ?> />
|
252 |
<label for="enable_html_emails-yes" class="switch-label switch-label-off">
|
253 |
-
<?php _e( 'Yes', 'subscribe-reloaded' ) ?>
|
254 |
</label>
|
255 |
<input type="radio" class="switch-input" name="options[enable_html_emails]" value="no" id="enable_html_emails-no"
|
256 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_html_emails' ) == 'no' ) ? ' checked' : ''; ?> />
|
257 |
<label for="enable_html_emails-no" class="switch-label switch-label-on">
|
258 |
-
<?php _e( 'No', 'subscribe-reloaded' ) ?>
|
259 |
</label>
|
260 |
<span class="switch-selection"></span>
|
261 |
</div>
|
262 |
<div class="helpDescription subsOptDescriptions"
|
263 |
-
data-content="<?php _e( "If enabled, will send email messages with content-type = text/html instead of text/plain", 'subscribe-reloaded' ); ?>"
|
264 |
data-placement="right"
|
265 |
-
aria-label="<?php _e( "If enabled, will send email messages with content-type = text/html instead of text/plain", 'subscribe-reloaded' ); ?>">
|
266 |
<i class="fas fa-question-circle"></i>
|
267 |
</div>
|
268 |
</div>
|
@@ -270,26 +270,26 @@ wp_print_scripts( 'quicktags' );
|
|
270 |
|
271 |
<div class="form-group row">
|
272 |
<label for="process_trackbacks" class="col-sm-3 col-form-label text-right">
|
273 |
-
<?php _e( 'Process trackbacks', 'subscribe-reloaded' ) ?>
|
274 |
</label>
|
275 |
<div class="col-sm-7">
|
276 |
<div class="switch">
|
277 |
<input type="radio" class="switch-input" name="options[process_trackbacks]"
|
278 |
value="yes" id="process_trackbacks-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'process_trackbacks' ) == 'yes' ) ? ' checked' : ''; ?> />
|
279 |
<label for="process_trackbacks-yes" class="switch-label switch-label-off">
|
280 |
-
<?php _e( 'Yes', 'subscribe-reloaded' ) ?>
|
281 |
</label>
|
282 |
<input type="radio" class="switch-input" name="options[process_trackbacks]" value="no" id="process_trackbacks-no"
|
283 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'process_trackbacks' ) == 'no' ) ? ' checked' : ''; ?> />
|
284 |
<label for="process_trackbacks-no" class="switch-label switch-label-on">
|
285 |
-
<?php _e( 'No', 'subscribe-reloaded' ) ?>
|
286 |
</label>
|
287 |
<span class="switch-selection"></span>
|
288 |
</div>
|
289 |
<div class="helpDescription subsOptDescriptions"
|
290 |
-
data-content="<?php _e( "Notify users when a new trackback or pingback is added to the discussion.", 'subscribe-reloaded' ); ?>"
|
291 |
data-placement="right"
|
292 |
-
aria-label="<?php _e( "Notify users when a new trackback or pingback is added to the discussion.", 'subscribe-reloaded' ); ?>">
|
293 |
<i class="fas fa-question-circle"></i>
|
294 |
</div>
|
295 |
</div>
|
@@ -297,26 +297,26 @@ wp_print_scripts( 'quicktags' );
|
|
297 |
|
298 |
<div class="form-group row">
|
299 |
<label for="enable_admin_messages" class="col-sm-3 col-form-label text-right">
|
300 |
-
<?php _e( 'Track all subscriptions', 'subscribe-reloaded' ) ?>
|
301 |
</label>
|
302 |
<div class="col-sm-7">
|
303 |
<div class="switch">
|
304 |
<input type="radio" class="switch-input" name="options[enable_admin_messages]"
|
305 |
value="yes" id="enable_admin_messages-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_admin_messages' ) == 'yes' ) ? ' checked' : ''; ?> />
|
306 |
<label for="enable_admin_messages-yes" class="switch-label switch-label-off">
|
307 |
-
<?php _e( 'Yes', 'subscribe-reloaded' ) ?>
|
308 |
</label>
|
309 |
<input type="radio" class="switch-input" name="options[enable_admin_messages]" value="no" id="enable_admin_messages-no"
|
310 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_admin_messages' ) == 'no' ) ? ' checked' : ''; ?> />
|
311 |
<label for="enable_admin_messages-no" class="switch-label switch-label-on">
|
312 |
-
<?php _e( 'No', 'subscribe-reloaded' ) ?>
|
313 |
</label>
|
314 |
<span class="switch-selection"></span>
|
315 |
</div>
|
316 |
<div class="helpDescription subsOptDescriptions"
|
317 |
-
data-content="<?php _e( "Notify the administrator when users subscribe without commenting.", 'subscribe-reloaded' ); ?>"
|
318 |
data-placement="right"
|
319 |
-
aria-label="<?php _e( "Notify the administrator when users subscribe without commenting.", 'subscribe-reloaded' ); ?>">
|
320 |
<i class="fas fa-question-circle"></i>
|
321 |
</div>
|
322 |
</div>
|
@@ -324,26 +324,26 @@ wp_print_scripts( 'quicktags' );
|
|
324 |
|
325 |
<div class="form-group row">
|
326 |
<label for="admin_subscribe" class="col-sm-3 col-form-label text-right">
|
327 |
-
<?php _e( 'Let Admin Subscribe', 'subscribe-reloaded' ) ?>
|
328 |
</label>
|
329 |
<div class="col-sm-7">
|
330 |
<div class="switch">
|
331 |
<input type="radio" class="switch-input" name="options[admin_subscribe]"
|
332 |
value="yes" id="admin_subscribe-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'admin_subscribe' ) == 'yes' ) ? ' checked' : ''; ?> />
|
333 |
<label for="admin_subscribe-yes" class="switch-label switch-label-off">
|
334 |
-
<?php _e( 'Yes', 'subscribe-reloaded' ) ?>
|
335 |
</label>
|
336 |
<input type="radio" class="switch-input" name="options[admin_subscribe]" value="no" id="admin_subscribe-no"
|
337 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'admin_subscribe' ) == 'no' ) ? ' checked' : ''; ?> />
|
338 |
<label for="admin_subscribe-no" class="switch-label switch-label-on">
|
339 |
-
<?php _e( 'No', 'subscribe-reloaded' ) ?>
|
340 |
</label>
|
341 |
<span class="switch-selection"></span>
|
342 |
</div>
|
343 |
<div class="helpDescription subsOptDescriptions"
|
344 |
-
data-content="<?php _e( "Let the administrator subscribe to comments when logged in.", 'subscribe-reloaded' ); ?>"
|
345 |
data-placement="right"
|
346 |
-
aria-label="<?php _e( "Let the administrator subscribe to comments when logged in.", 'subscribe-reloaded' ); ?>">
|
347 |
<i class="fas fa-question-circle"></i>
|
348 |
</div>
|
349 |
</div>
|
@@ -351,26 +351,26 @@ wp_print_scripts( 'quicktags' );
|
|
351 |
|
352 |
<div class="form-group row" style="margin-bottom: 0;">
|
353 |
<label for="admin_bcc" class="col-sm-3 col-form-label text-right">
|
354 |
-
<?php _e( 'BCC admin on Notifications', 'subscribe-reloaded' ) ?>
|
355 |
</label>
|
356 |
<div class="col-sm-7">
|
357 |
<div class="switch">
|
358 |
<input type="radio" class="switch-input" name="options[admin_bcc]"
|
359 |
value="yes" id="admin_bcc-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'admin_bcc' ) == 'yes' ) ? ' checked' : ''; ?> />
|
360 |
<label for="admin_bcc-yes" class="switch-label switch-label-off">
|
361 |
-
<?php _e( 'Yes', 'subscribe-reloaded' ) ?>
|
362 |
</label>
|
363 |
<input type="radio" class="switch-input" name="options[admin_bcc]" value="no" id="admin_bcc-no"
|
364 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'admin_bcc' ) == 'no' ) ? ' checked' : ''; ?> />
|
365 |
<label for="admin_bcc-no" class="switch-label switch-label-on">
|
366 |
-
<?php _e( 'No', 'subscribe-reloaded' ) ?>
|
367 |
</label>
|
368 |
<span class="switch-selection"></span>
|
369 |
</div>
|
370 |
<div class="helpDescription subsOptDescriptions"
|
371 |
-
data-content="<?php _e( "Send a copy of all Notifications to the administrator.", 'subscribe-reloaded' ); ?>"
|
372 |
data-placement="right"
|
373 |
-
aria-label="<?php _e( "Send a copy of all Notifications to the administrator.", 'subscribe-reloaded' ); ?>">
|
374 |
<i class="fas fa-question-circle"></i>
|
375 |
</div>
|
376 |
</div>
|
@@ -378,26 +378,26 @@ wp_print_scripts( 'quicktags' );
|
|
378 |
|
379 |
<div class="form-group row">
|
380 |
<label for="enable_font_awesome" class="col-sm-3 col-form-label text-right">
|
381 |
-
<?php _e( 'Enable Font Awesome', 'subscribe-reloaded' ) ?>
|
382 |
</label>
|
383 |
<div class="col-sm-7">
|
384 |
<div class="switch">
|
385 |
<input type="radio" class="switch-input" name="options[enable_font_awesome]"
|
386 |
value="yes" id="enable_font_awesome-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_font_awesome' ) == 'yes' ) ? ' checked' : ''; ?> />
|
387 |
<label for="enable_font_awesome-yes" class="switch-label switch-label-off">
|
388 |
-
<?php _e( 'Yes', 'subscribe-reloaded' ) ?>
|
389 |
</label>
|
390 |
<input type="radio" class="switch-input" name="options[enable_font_awesome]" value="no" id="enable_font_awesome-no"
|
391 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_font_awesome' ) == 'no' ) ? ' checked' : ''; ?> />
|
392 |
<label for="enable_font_awesome-no" class="switch-label switch-label-on">
|
393 |
-
<?php _e( 'No', 'subscribe-reloaded' ) ?>
|
394 |
</label>
|
395 |
<span class="switch-selection"></span>
|
396 |
</div>
|
397 |
<div class="helpDescription subsOptDescriptions"
|
398 |
-
data-content="<?php _e( "Let you control the inclusion of the Font Awesome into your site. Disable if your theme already add this into your site.", 'subscribe-reloaded' ); ?>"
|
399 |
data-placement="right"
|
400 |
-
aria-label="<?php _e( "Let you control the inclusion of the Font Awesome into your site. Disable if your theme already add this into your site.", 'subscribe-reloaded' ); ?>">
|
401 |
<i class="fas fa-question-circle"></i>
|
402 |
</div>
|
403 |
</div>
|
@@ -405,14 +405,14 @@ wp_print_scripts( 'quicktags' );
|
|
405 |
|
406 |
<div class="form-group row">
|
407 |
<label for="unique_key" class="col-sm-3 col-form-label text-right">
|
408 |
-
<?php _e( 'StCR Unique Key', 'subscribe-reloaded' ) ?></label>
|
409 |
<div class="col-sm-7">
|
410 |
|
411 |
<?php
|
412 |
if ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'unique_key' ) == "" ) {
|
413 |
|
414 |
echo "<div class=\"alert alert-danger\" role=\"alert\" style='font-size: 0.85rem;'>";
|
415 |
-
echo '<strong>' . __( "This Unique Key is not set, please click the following button to ", 'subscribe-reloaded' ) . '</strong>';
|
416 |
echo "<input type='submit' value='" . __( 'Generate' ) ."' class='btn btn-secondary subscribe-form-button' name='generate_key' >";
|
417 |
echo "</div>";
|
418 |
}
|
@@ -427,9 +427,9 @@ wp_print_scripts( 'quicktags' );
|
|
427 |
|
428 |
|
429 |
<div class="helpDescription subsOptDescriptions"
|
430 |
-
data-content="<?php _e( "This Unique Key will be use to send the notification to your subscribers with more security.", 'subscribe-reloaded' ); ?>"
|
431 |
data-placement="right"
|
432 |
-
aria-label="<?php _e( "This Unique Key will be use to send the notification to your subscribers with more security.", 'subscribe-reloaded' ); ?>">
|
433 |
<i class="fas fa-question-circle"></i>
|
434 |
</div>
|
435 |
</div>
|
@@ -437,19 +437,19 @@ wp_print_scripts( 'quicktags' );
|
|
437 |
|
438 |
<div class="form-group row">
|
439 |
<label for="" class="col-sm-3 col-form-label text-right">
|
440 |
-
<?php _e( 'Reset All Options', 'subscribe-reloaded' ) ?>
|
441 |
</label>
|
442 |
<div class="col-sm-7">
|
443 |
|
444 |
<div class="alert alert-danger" role="alert">
|
445 |
<strong>Danger!</strong>
|
446 |
<p>
|
447 |
-
<?php _e( 'This will reset all the options and messages of the plugin. Please proceed with caution.', 'subscribe-reloaded' ); ?>
|
448 |
</p>
|
449 |
|
450 |
<p>
|
451 |
-
<?php _e( '<strong>Yes</strong> = Delete Options including subscriptions.', 'subscribe-reloaded' ) ?><br/>
|
452 |
-
<?php _e( '<strong>No</strong> = Only delete the StCR Options.', 'subscribe-reloaded' ) ?>
|
453 |
</p>
|
454 |
|
455 |
|
@@ -457,12 +457,12 @@ wp_print_scripts( 'quicktags' );
|
|
457 |
<input type="radio" class="switch-input" name="options[delete_options_subscriptions]"
|
458 |
value="yes" id="delete_options_subscriptions-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'delete_options_subscriptions' ) == 'yes' ) ? ' checked' : ''; ?> />
|
459 |
<label for="delete_options_subscriptions-yes" class="switch-label switch-label-off">
|
460 |
-
<?php _e( 'Yes', 'subscribe-reloaded' ) ?>
|
461 |
</label>
|
462 |
<input type="radio" class="switch-input" name="options[delete_options_subscriptions]" value="no" id="delete_options_subscriptions-no"
|
463 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'delete_options_subscriptions' ) == 'no' ) ? ' checked' : ''; ?> />
|
464 |
<label for="delete_options_subscriptions-no" class="switch-label switch-label-on">
|
465 |
-
<?php _e( 'No', 'subscribe-reloaded' ) ?>
|
466 |
</label>
|
467 |
<span class="switch-selection"></span>
|
468 |
</div>
|
@@ -476,7 +476,7 @@ wp_print_scripts( 'quicktags' );
|
|
476 |
<div class="form-group row">
|
477 |
<div class="col-sm-9 offset-sm-1">
|
478 |
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
|
479 |
-
<?php _e( 'Save Changes', 'subscribe-reloaded' ) ?>
|
480 |
</button>
|
481 |
</div>
|
482 |
</div>
|
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-to-comments-reloaded' );
|
33 |
echo "</p></div>";
|
34 |
|
35 |
}
|
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-to-comments-reloaded' );
|
64 |
} else {
|
65 |
+
_e( 'There was an error updating the options.', 'subscribe-to-comments-reloaded' );
|
66 |
// echo ' <strong>' . substr( $faulty_fields, 0, - 2 ) . '</strong>';
|
67 |
}
|
68 |
echo "</p></div>";
|
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-to-comments-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-to-comments-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-to-comments-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-to-comments-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-to-comments-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-to-comments-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-to-comments-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-to-comments-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-to-comments-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-to-comments-reloaded' ); ?>">
|
126 |
<i class="fas fa-question-circle"></i>
|
127 |
</div>
|
128 |
</div>
|
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-to-comments-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-to-comments-reloaded' ); ?>"
|
141 |
data-placement="right"
|
142 |
+
aria-label="<?php _e( "Delete pending subscriptions (not confirmed) after X days. Zero disables this feature.", 'subscribe-to-comments-reloaded' ); ?>">
|
143 |
<i class="fas fa-question-circle"></i>
|
144 |
</div>
|
145 |
</div>
|
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-to-comments-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-to-comments-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-to-comments-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-to-comments-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-to-comments-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-to-comments-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-to-comments-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-to-comments-reloaded' ); ?>">
|
185 |
<i class="fas fa-question-circle"></i>
|
186 |
</div>
|
187 |
</div>
|
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-to-comments-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-to-comments-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-to-comments-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-to-comments-reloaded' ); ?>"
|
210 |
data-placement="right"
|
211 |
+
aria-label="<?php _e( "Send a notification email to confirm the subscription (to avoid addresses misuse).", 'subscribe-to-comments-reloaded' ); ?>">
|
212 |
<i class="fas fa-question-circle"></i>
|
213 |
</div>
|
214 |
</div>
|
216 |
|
217 |
<div class="form-group row">
|
218 |
<label for="notify_authors" class="col-sm-3 col-form-label text-right">
|
219 |
+
<?php _e( 'Subscribe authors', 'subscribe-to-comments-reloaded' ) ?>
|
220 |
</label>
|
221 |
<div class="col-sm-7">
|
222 |
<div class="switch">
|
223 |
<input type="radio" class="switch-input" name="options[notify_authors]"
|
224 |
value="yes" id="notify_authors-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'notify_authors' ) == 'yes' ) ? ' checked' : ''; ?> />
|
225 |
<label for="notify_authors-yes" class="switch-label switch-label-off">
|
226 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
227 |
</label>
|
228 |
<input type="radio" class="switch-input" name="options[notify_authors]" value="no" id="notify_authors-no"
|
229 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'notify_authors' ) == 'no' ) ? ' checked' : ''; ?> />
|
230 |
<label for="notify_authors-no" class="switch-label switch-label-on">
|
231 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
232 |
</label>
|
233 |
<span class="switch-selection"></span>
|
234 |
</div>
|
235 |
<div class="helpDescription subsOptDescriptions"
|
236 |
+
data-content="<?php _e( "Automatically subscribe authors to their own articles (not retroactive).", 'subscribe-to-comments-reloaded' ); ?>"
|
237 |
data-placement="right"
|
238 |
+
aria-label="<?php _e( "Automatically subscribe authors to their own articles (not retroactive).", 'subscribe-to-comments-reloaded' ); ?>">
|
239 |
<i class="fas fa-question-circle"></i>
|
240 |
</div>
|
241 |
</div>
|
243 |
|
244 |
<div class="form-group row">
|
245 |
<label for="enable_html_emails" class="col-sm-3 col-form-label text-right">
|
246 |
+
<?php _e( 'Enable HTML emails', 'subscribe-to-comments-reloaded' ) ?>
|
247 |
</label>
|
248 |
<div class="col-sm-7">
|
249 |
<div class="switch">
|
250 |
<input type="radio" class="switch-input" name="options[enable_html_emails]"
|
251 |
value="yes" id="enable_html_emails-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_html_emails' ) == 'yes' ) ? ' checked' : ''; ?> />
|
252 |
<label for="enable_html_emails-yes" class="switch-label switch-label-off">
|
253 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
254 |
</label>
|
255 |
<input type="radio" class="switch-input" name="options[enable_html_emails]" value="no" id="enable_html_emails-no"
|
256 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_html_emails' ) == 'no' ) ? ' checked' : ''; ?> />
|
257 |
<label for="enable_html_emails-no" class="switch-label switch-label-on">
|
258 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
259 |
</label>
|
260 |
<span class="switch-selection"></span>
|
261 |
</div>
|
262 |
<div class="helpDescription subsOptDescriptions"
|
263 |
+
data-content="<?php _e( "If enabled, will send email messages with content-type = text/html instead of text/plain", 'subscribe-to-comments-reloaded' ); ?>"
|
264 |
data-placement="right"
|
265 |
+
aria-label="<?php _e( "If enabled, will send email messages with content-type = text/html instead of text/plain", 'subscribe-to-comments-reloaded' ); ?>">
|
266 |
<i class="fas fa-question-circle"></i>
|
267 |
</div>
|
268 |
</div>
|
270 |
|
271 |
<div class="form-group row">
|
272 |
<label for="process_trackbacks" class="col-sm-3 col-form-label text-right">
|
273 |
+
<?php _e( 'Process trackbacks', 'subscribe-to-comments-reloaded' ) ?>
|
274 |
</label>
|
275 |
<div class="col-sm-7">
|
276 |
<div class="switch">
|
277 |
<input type="radio" class="switch-input" name="options[process_trackbacks]"
|
278 |
value="yes" id="process_trackbacks-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'process_trackbacks' ) == 'yes' ) ? ' checked' : ''; ?> />
|
279 |
<label for="process_trackbacks-yes" class="switch-label switch-label-off">
|
280 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
281 |
</label>
|
282 |
<input type="radio" class="switch-input" name="options[process_trackbacks]" value="no" id="process_trackbacks-no"
|
283 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'process_trackbacks' ) == 'no' ) ? ' checked' : ''; ?> />
|
284 |
<label for="process_trackbacks-no" class="switch-label switch-label-on">
|
285 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
286 |
</label>
|
287 |
<span class="switch-selection"></span>
|
288 |
</div>
|
289 |
<div class="helpDescription subsOptDescriptions"
|
290 |
+
data-content="<?php _e( "Notify users when a new trackback or pingback is added to the discussion.", 'subscribe-to-comments-reloaded' ); ?>"
|
291 |
data-placement="right"
|
292 |
+
aria-label="<?php _e( "Notify users when a new trackback or pingback is added to the discussion.", 'subscribe-to-comments-reloaded' ); ?>">
|
293 |
<i class="fas fa-question-circle"></i>
|
294 |
</div>
|
295 |
</div>
|
297 |
|
298 |
<div class="form-group row">
|
299 |
<label for="enable_admin_messages" class="col-sm-3 col-form-label text-right">
|
300 |
+
<?php _e( 'Track all subscriptions', 'subscribe-to-comments-reloaded' ) ?>
|
301 |
</label>
|
302 |
<div class="col-sm-7">
|
303 |
<div class="switch">
|
304 |
<input type="radio" class="switch-input" name="options[enable_admin_messages]"
|
305 |
value="yes" id="enable_admin_messages-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_admin_messages' ) == 'yes' ) ? ' checked' : ''; ?> />
|
306 |
<label for="enable_admin_messages-yes" class="switch-label switch-label-off">
|
307 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
308 |
</label>
|
309 |
<input type="radio" class="switch-input" name="options[enable_admin_messages]" value="no" id="enable_admin_messages-no"
|
310 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_admin_messages' ) == 'no' ) ? ' checked' : ''; ?> />
|
311 |
<label for="enable_admin_messages-no" class="switch-label switch-label-on">
|
312 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
313 |
</label>
|
314 |
<span class="switch-selection"></span>
|
315 |
</div>
|
316 |
<div class="helpDescription subsOptDescriptions"
|
317 |
+
data-content="<?php _e( "Notify the administrator when users subscribe without commenting.", 'subscribe-to-comments-reloaded' ); ?>"
|
318 |
data-placement="right"
|
319 |
+
aria-label="<?php _e( "Notify the administrator when users subscribe without commenting.", 'subscribe-to-comments-reloaded' ); ?>">
|
320 |
<i class="fas fa-question-circle"></i>
|
321 |
</div>
|
322 |
</div>
|
324 |
|
325 |
<div class="form-group row">
|
326 |
<label for="admin_subscribe" class="col-sm-3 col-form-label text-right">
|
327 |
+
<?php _e( 'Let Admin Subscribe', 'subscribe-to-comments-reloaded' ) ?>
|
328 |
</label>
|
329 |
<div class="col-sm-7">
|
330 |
<div class="switch">
|
331 |
<input type="radio" class="switch-input" name="options[admin_subscribe]"
|
332 |
value="yes" id="admin_subscribe-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'admin_subscribe' ) == 'yes' ) ? ' checked' : ''; ?> />
|
333 |
<label for="admin_subscribe-yes" class="switch-label switch-label-off">
|
334 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
335 |
</label>
|
336 |
<input type="radio" class="switch-input" name="options[admin_subscribe]" value="no" id="admin_subscribe-no"
|
337 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'admin_subscribe' ) == 'no' ) ? ' checked' : ''; ?> />
|
338 |
<label for="admin_subscribe-no" class="switch-label switch-label-on">
|
339 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
340 |
</label>
|
341 |
<span class="switch-selection"></span>
|
342 |
</div>
|
343 |
<div class="helpDescription subsOptDescriptions"
|
344 |
+
data-content="<?php _e( "Let the administrator subscribe to comments when logged in.", 'subscribe-to-comments-reloaded' ); ?>"
|
345 |
data-placement="right"
|
346 |
+
aria-label="<?php _e( "Let the administrator subscribe to comments when logged in.", 'subscribe-to-comments-reloaded' ); ?>">
|
347 |
<i class="fas fa-question-circle"></i>
|
348 |
</div>
|
349 |
</div>
|
351 |
|
352 |
<div class="form-group row" style="margin-bottom: 0;">
|
353 |
<label for="admin_bcc" class="col-sm-3 col-form-label text-right">
|
354 |
+
<?php _e( 'BCC admin on Notifications', 'subscribe-to-comments-reloaded' ) ?>
|
355 |
</label>
|
356 |
<div class="col-sm-7">
|
357 |
<div class="switch">
|
358 |
<input type="radio" class="switch-input" name="options[admin_bcc]"
|
359 |
value="yes" id="admin_bcc-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'admin_bcc' ) == 'yes' ) ? ' checked' : ''; ?> />
|
360 |
<label for="admin_bcc-yes" class="switch-label switch-label-off">
|
361 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
362 |
</label>
|
363 |
<input type="radio" class="switch-input" name="options[admin_bcc]" value="no" id="admin_bcc-no"
|
364 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'admin_bcc' ) == 'no' ) ? ' checked' : ''; ?> />
|
365 |
<label for="admin_bcc-no" class="switch-label switch-label-on">
|
366 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
367 |
</label>
|
368 |
<span class="switch-selection"></span>
|
369 |
</div>
|
370 |
<div class="helpDescription subsOptDescriptions"
|
371 |
+
data-content="<?php _e( "Send a copy of all Notifications to the administrator.", 'subscribe-to-comments-reloaded' ); ?>"
|
372 |
data-placement="right"
|
373 |
+
aria-label="<?php _e( "Send a copy of all Notifications to the administrator.", 'subscribe-to-comments-reloaded' ); ?>">
|
374 |
<i class="fas fa-question-circle"></i>
|
375 |
</div>
|
376 |
</div>
|
378 |
|
379 |
<div class="form-group row">
|
380 |
<label for="enable_font_awesome" class="col-sm-3 col-form-label text-right">
|
381 |
+
<?php _e( 'Enable Font Awesome', 'subscribe-to-comments-reloaded' ) ?>
|
382 |
</label>
|
383 |
<div class="col-sm-7">
|
384 |
<div class="switch">
|
385 |
<input type="radio" class="switch-input" name="options[enable_font_awesome]"
|
386 |
value="yes" id="enable_font_awesome-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_font_awesome' ) == 'yes' ) ? ' checked' : ''; ?> />
|
387 |
<label for="enable_font_awesome-yes" class="switch-label switch-label-off">
|
388 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
389 |
</label>
|
390 |
<input type="radio" class="switch-input" name="options[enable_font_awesome]" value="no" id="enable_font_awesome-no"
|
391 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_font_awesome' ) == 'no' ) ? ' checked' : ''; ?> />
|
392 |
<label for="enable_font_awesome-no" class="switch-label switch-label-on">
|
393 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
394 |
</label>
|
395 |
<span class="switch-selection"></span>
|
396 |
</div>
|
397 |
<div class="helpDescription subsOptDescriptions"
|
398 |
+
data-content="<?php _e( "Let you control the inclusion of the Font Awesome into your site. Disable if your theme already add this into your site.", 'subscribe-to-comments-reloaded' ); ?>"
|
399 |
data-placement="right"
|
400 |
+
aria-label="<?php _e( "Let you control the inclusion of the Font Awesome into your site. Disable if your theme already add this into your site.", 'subscribe-to-comments-reloaded' ); ?>">
|
401 |
<i class="fas fa-question-circle"></i>
|
402 |
</div>
|
403 |
</div>
|
405 |
|
406 |
<div class="form-group row">
|
407 |
<label for="unique_key" class="col-sm-3 col-form-label text-right">
|
408 |
+
<?php _e( 'StCR Unique Key', 'subscribe-to-comments-reloaded' ) ?></label>
|
409 |
<div class="col-sm-7">
|
410 |
|
411 |
<?php
|
412 |
if ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'unique_key' ) == "" ) {
|
413 |
|
414 |
echo "<div class=\"alert alert-danger\" role=\"alert\" style='font-size: 0.85rem;'>";
|
415 |
+
echo '<strong>' . __( "This Unique Key is not set, please click the following button to ", 'subscribe-to-comments-reloaded' ) . '</strong>';
|
416 |
echo "<input type='submit' value='" . __( 'Generate' ) ."' class='btn btn-secondary subscribe-form-button' name='generate_key' >";
|
417 |
echo "</div>";
|
418 |
}
|
427 |
|
428 |
|
429 |
<div class="helpDescription subsOptDescriptions"
|
430 |
+
data-content="<?php _e( "This Unique Key will be use to send the notification to your subscribers with more security.", 'subscribe-to-comments-reloaded' ); ?>"
|
431 |
data-placement="right"
|
432 |
+
aria-label="<?php _e( "This Unique Key will be use to send the notification to your subscribers with more security.", 'subscribe-to-comments-reloaded' ); ?>">
|
433 |
<i class="fas fa-question-circle"></i>
|
434 |
</div>
|
435 |
</div>
|
437 |
|
438 |
<div class="form-group row">
|
439 |
<label for="" class="col-sm-3 col-form-label text-right">
|
440 |
+
<?php _e( 'Reset All Options', 'subscribe-to-comments-reloaded' ) ?>
|
441 |
</label>
|
442 |
<div class="col-sm-7">
|
443 |
|
444 |
<div class="alert alert-danger" role="alert">
|
445 |
<strong>Danger!</strong>
|
446 |
<p>
|
447 |
+
<?php _e( 'This will reset all the options and messages of the plugin. Please proceed with caution.', 'subscribe-to-comments-reloaded' ); ?>
|
448 |
</p>
|
449 |
|
450 |
<p>
|
451 |
+
<?php _e( '<strong>Yes</strong> = Delete Options including subscriptions.', 'subscribe-to-comments-reloaded' ) ?><br/>
|
452 |
+
<?php _e( '<strong>No</strong> = Only delete the StCR Options.', 'subscribe-to-comments-reloaded' ) ?>
|
453 |
</p>
|
454 |
|
455 |
|
457 |
<input type="radio" class="switch-input" name="options[delete_options_subscriptions]"
|
458 |
value="yes" id="delete_options_subscriptions-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'delete_options_subscriptions' ) == 'yes' ) ? ' checked' : ''; ?> />
|
459 |
<label for="delete_options_subscriptions-yes" class="switch-label switch-label-off">
|
460 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
461 |
</label>
|
462 |
<input type="radio" class="switch-input" name="options[delete_options_subscriptions]" value="no" id="delete_options_subscriptions-no"
|
463 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'delete_options_subscriptions' ) == 'no' ) ? ' checked' : ''; ?> />
|
464 |
<label for="delete_options_subscriptions-no" class="switch-label switch-label-on">
|
465 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
466 |
</label>
|
467 |
<span class="switch-selection"></span>
|
468 |
</div>
|
476 |
<div class="form-group row">
|
477 |
<div class="col-sm-9 offset-sm-1">
|
478 |
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
|
479 |
+
<?php _e( 'Save Changes', 'subscribe-to-comments-reloaded' ) ?>
|
480 |
</button>
|
481 |
</div>
|
482 |
</div>
|
options/stcr_support.php
CHANGED
@@ -17,21 +17,21 @@ if ( ! function_exists( 'is_admin' ) || ! is_admin() ) {
|
|
17 |
<div class="card-body">
|
18 |
<div class="card-text">
|
19 |
|
20 |
-
<h5><?php _e( "You can help", 'subscribe-reloaded' ) ?></h5>
|
21 |
-
<p><?php _e( "Please consider blogging about my plugin with a link to the plugin's page. Please let your readers know what makes your blog better. You can also contribute donating your time: do not hesitate to send me bug reports, your localization files, ideas on how to improve <strong>Subscribe to Comments Reloaded</strong> and so on. Whatever you do, thanks for using my plugin!", 'subscribe-reloaded' ) ?></p>
|
22 |
|
23 |
-
<h5><?php _e( "Subscribe to the Beta testers", 'subscribe-reloaded' ) ?></h5>
|
24 |
-
<p><?php _e( "Before a new Update we release a Beta version so that our current users can give us feedback if they find a bug, If you want to join the tester list you can add your email <a href='http://eepurl.com/biCk1b' target='_blank'>here</a>", 'subscribe-reloaded' ) ?></h5></p>
|
25 |
|
26 |
-
<h5><?php _e( "Vote and show your appreciation", 'subscribe-reloaded' ) ?></h5>
|
27 |
-
<p><?php _e( 'Tell other people if <strong>Subscribe to Comments Reloaded</strong> works for you and how good it is. <a href="http://wordpress.org/extend/plugins/subscribe-to-comments-reloaded/">Rate it</a> on its Plugin Directory page.', 'subscribe-reloaded' ) ?></p>
|
28 |
|
29 |
-
<h5><?php _e( "Did you find a Bug on the plugin?", 'subscribe-reloaded' ) ?></h5>
|
30 |
-
<p><?php _e( 'Please report any bug on the <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues/new?title=Bug%20Report:%20%3Cshort%20description%3E&labels=bug" target="_blank">GitHub</a> Page rather than on the WordPress Support page.', 'subscribe-reloaded' ) ?>
|
31 |
</p>
|
32 |
<div class="alert alert-info" role="alert">
|
33 |
<strong>Heads up!</strong>
|
34 |
-
<p><?php printf( __( 'The options on the WordPress forum at very limited to share media information, so I urge you to use GitHub to report any issue, you will get a better and faster experience than in WordPress. And you can use <a href="%s" target="_blank" >Markdown syntax</a>.', 'subscribe-reloaded' ), "https://guides.github.com/features/mastering-markdown/" ); ?></p>
|
35 |
</div>
|
36 |
</div>
|
37 |
</div>
|
17 |
<div class="card-body">
|
18 |
<div class="card-text">
|
19 |
|
20 |
+
<h5><?php _e( "You can help", 'subscribe-to-comments-reloaded' ) ?></h5>
|
21 |
+
<p><?php _e( "Please consider blogging about my plugin with a link to the plugin's page. Please let your readers know what makes your blog better. You can also contribute donating your time: do not hesitate to send me bug reports, your localization files, ideas on how to improve <strong>Subscribe to Comments Reloaded</strong> and so on. Whatever you do, thanks for using my plugin!", 'subscribe-to-comments-reloaded' ) ?></p>
|
22 |
|
23 |
+
<h5><?php _e( "Subscribe to the Beta testers", 'subscribe-to-comments-reloaded' ) ?></h5>
|
24 |
+
<p><?php _e( "Before a new Update we release a Beta version so that our current users can give us feedback if they find a bug, If you want to join the tester list you can add your email <a href='http://eepurl.com/biCk1b' target='_blank'>here</a>", 'subscribe-to-comments-reloaded' ) ?></h5></p>
|
25 |
|
26 |
+
<h5><?php _e( "Vote and show your appreciation", 'subscribe-to-comments-reloaded' ) ?></h5>
|
27 |
+
<p><?php _e( 'Tell other people if <strong>Subscribe to Comments Reloaded</strong> works for you and how good it is. <a href="http://wordpress.org/extend/plugins/subscribe-to-comments-reloaded/">Rate it</a> on its Plugin Directory page.', 'subscribe-to-comments-reloaded' ) ?></p>
|
28 |
|
29 |
+
<h5><?php _e( "Did you find a Bug on the plugin?", 'subscribe-to-comments-reloaded' ) ?></h5>
|
30 |
+
<p><?php _e( 'Please report any bug on the <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues/new?title=Bug%20Report:%20%3Cshort%20description%3E&labels=bug" target="_blank">GitHub</a> Page rather than on the WordPress Support page.', 'subscribe-to-comments-reloaded' ) ?>
|
31 |
</p>
|
32 |
<div class="alert alert-info" role="alert">
|
33 |
<strong>Heads up!</strong>
|
34 |
+
<p><?php printf( __( 'The options on the WordPress forum at very limited to share media information, so I urge you to use GitHub to report any issue, you will get a better and faster experience than in WordPress. And you can use <a href="%s" target="_blank" >Markdown syntax</a>.', 'subscribe-to-comments-reloaded' ), "https://guides.github.com/features/mastering-markdown/" ); ?></p>
|
35 |
</div>
|
36 |
</div>
|
37 |
</div>
|
options/stcr_system.php
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
|
4 |
// Avoid direct access to this piece of code
|
5 |
if ( ! function_exists( 'is_admin' ) || ! is_admin() ) {
|
@@ -52,18 +54,18 @@ if ( array_key_exists( "purge_log", $_POST ) ) {
|
|
52 |
if( unlink($file_path) )
|
53 |
{
|
54 |
// show success message.
|
55 |
-
$message = __( 'The log file has been successfully deleted.', 'subscribe-reloaded' );
|
56 |
$message_type = "notice-success";
|
57 |
}
|
58 |
else
|
59 |
{
|
60 |
-
$message = __( 'Can\'t delete the log file, check the file permissions.', 'subscribe-reloaded' );
|
61 |
$message_type = "notice-warning";
|
62 |
}
|
63 |
}
|
64 |
else
|
65 |
{
|
66 |
-
$message = __( 'The log file does not exists.', 'subscribe-reloaded' );
|
67 |
$message_type = "notice-warning";
|
68 |
}
|
69 |
echo "<div class='notice $message_type'><p>";
|
@@ -109,9 +111,9 @@ else {
|
|
109 |
// Display an alert in the admin interface if something went wrong
|
110 |
echo '<div class="updated"><p>';
|
111 |
if ( sizeof( $faulty_fields ) == 0 ) {
|
112 |
-
_e( 'Your settings have been successfully updated.', 'subscribe-reloaded' );
|
113 |
} else {
|
114 |
-
_e( 'There was an error updating the options.', 'subscribe-reloaded' );
|
115 |
// echo ' <strong>' . substr( $faulty_fields, 0, - 2 ) . '</strong>';
|
116 |
}
|
117 |
echo "</p></div>";
|
@@ -136,59 +138,73 @@ else {
|
|
136 |
<div class="col-sm-9">
|
137 |
<form action="" method="post">
|
138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
<div class="form-group row" style="margin-bottom: 0;">
|
140 |
-
<label for="enable_log_data" class="col-sm-3 col-form-label text-right"><?php _e( 'Enable Log Information', 'subscribe-reloaded' ) ?></label>
|
141 |
<div class="col-sm-7">
|
142 |
<div class="switch">
|
143 |
<input type="radio" class="switch-input" name="options[enable_log_data]"
|
144 |
value="yes" id="enable_log_data-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_log_data' ) == 'yes' ) ? ' checked' : ''; ?> />
|
145 |
<label for="enable_log_data-yes" class="switch-label switch-label-off">
|
146 |
-
<?php _e( 'Yes', 'subscribe-reloaded' ) ?>
|
147 |
</label>
|
148 |
<input type="radio" class="switch-input" name="options[enable_log_data]" value="no" id="enable_log_data-no"
|
149 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_log_data' ) == 'no' ) ? ' checked' : ''; ?> />
|
150 |
<label for="enable_log_data-no" class="switch-label switch-label-on">
|
151 |
-
<?php _e( 'No', 'subscribe-reloaded' ) ?>
|
152 |
</label>
|
153 |
<span class="switch-selection"></span>
|
154 |
</div>
|
155 |
|
156 |
<div class="helpDescription subsOptDescriptions"
|
157 |
-
data-content="<?php _e( "If enabled, will log information of the plugin. Helpful for debugging purposes.<p>The file is stored under the path <code>Plugins Dir>subscribe-to-comments-reloaded>utils>log.txt</code></code></p>", 'subscribe-reloaded' ); ?>"
|
158 |
data-placement="right"
|
159 |
-
aria-label="<?php _e( "If enabled, will log information of the plugin. Helpful for debugging purposes.", 'subscribe-reloaded' ); ?>">
|
160 |
<i class="fas fa-question-circle"></i>
|
161 |
</div>
|
162 |
</div>
|
163 |
</div>
|
164 |
|
165 |
<div class="form-group row" style="margin-bottom: 0;">
|
166 |
-
<label for="auto_clean_log_data" class="col-sm-3 col-form-label text-right"><?php _e( 'Enable Auto clean log data', 'subscribe-reloaded' ) ?></label>
|
167 |
<div class="col-sm-7">
|
168 |
<div class="switch">
|
169 |
<input type="radio" class="switch-input" name="options[auto_clean_log_data]"
|
170 |
value="yes" id="auto_clean_log_data-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'auto_clean_log_data' ) == 'yes' ) ? ' checked' : ''; ?> />
|
171 |
<label for="auto_clean_log_data-yes" class="switch-label switch-label-off">
|
172 |
-
<?php _e( 'Yes', 'subscribe-reloaded' ) ?>
|
173 |
</label>
|
174 |
<input type="radio" class="switch-input" name="options[auto_clean_log_data]" value="no" id="auto_clean_log_data-no"
|
175 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'auto_clean_log_data' ) == 'no' ) ? ' checked' : ''; ?> />
|
176 |
<label for="auto_clean_log_data-no" class="switch-label switch-label-on">
|
177 |
-
<?php _e( 'No', 'subscribe-reloaded' ) ?>
|
178 |
</label>
|
179 |
<span class="switch-selection"></span>
|
180 |
</div>
|
181 |
|
182 |
<select class="auto_clean_log_frecuency form-control form-control-select" name="options[auto_clean_log_frecuency]">
|
183 |
-
<option value="hourly" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'auto_clean_log_frecuency' ) === 'hourly' ) ? "selected='selected'" : ''; ?>><?php _e( 'Hourly', 'subscribe-reloaded' ); ?></option>
|
184 |
-
<option value="twicedaily" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'auto_clean_log_frecuency' ) === 'twicedaily' ) ? "selected='selected'" : ''; ?>><?php _e( 'Twice Daily', 'subscribe-reloaded' ); ?></option>
|
185 |
-
<option value="daily" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'auto_clean_log_frecuency' ) === 'daily' ) ? "selected='selected'" : ''; ?>><?php _e( 'Daily', 'subscribe-reloaded' ); ?></option>
|
186 |
</select>
|
187 |
|
188 |
<div class="helpDescription subsOptDescriptions"
|
189 |
-
data-content="<?php _e( "If enabled, StCR will auto clean your information according to the frequency that you defined on the dropdown.", 'subscribe-reloaded' ); ?>"
|
190 |
data-placement="right"
|
191 |
-
aria-label="<?php _e( "If enabled, StCR will auto clean your information according to the frequency that you defined on the dropdown.", 'subscribe-reloaded' ); ?>">
|
192 |
<i class="fas fa-question-circle"></i>
|
193 |
</div>
|
194 |
</div>
|
@@ -196,12 +212,12 @@ else {
|
|
196 |
|
197 |
<div class="form-group row">
|
198 |
<label for="purge_log" class="col-sm-3 col-form-label text-right">
|
199 |
-
<?php _e( 'Clean Up Log Archive', 'subscribe-reloaded' ) ?></label>
|
200 |
<div class="col-sm-7">
|
201 |
|
202 |
<span style="font-size: 0.9rem;"><?php _e(
|
203 |
"If you want to clean up the log archive please click the following button",
|
204 |
-
'subscribe-reloaded'
|
205 |
); ?>
|
206 |
</span>
|
207 |
|
@@ -211,10 +227,10 @@ else {
|
|
211 |
|
212 |
<div class="form-group row">
|
213 |
<label for="generate_system_info" class="col-sm-3 col-form-label text-right">
|
214 |
-
<?php _e( 'Download System Info File', 'subscribe-reloaded' ) ?></label>
|
215 |
<div class="col-sm-7">
|
216 |
<a class="download_report btn btn-download subscribe-form-button" href="#">
|
217 |
-
<?php _e( 'Download', 'subscribe-reloaded' ); ?>
|
218 |
</a>
|
219 |
</div>
|
220 |
</div>
|
@@ -222,16 +238,16 @@ else {
|
|
222 |
<div class="form-group row">
|
223 |
<div class="col-sm-9 offset-sm-3">
|
224 |
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
|
225 |
-
<?php _e( 'Save Changes', 'subscribe-reloaded' ) ?>
|
226 |
</button>
|
227 |
</div>
|
228 |
</div>
|
229 |
|
230 |
-
<h3><?php _e( 'System Information', 'subscribe-reloaded' ) ?></h3>
|
231 |
|
232 |
<table class="table table-sm table-hover table-striped system-info-table" style="font-size: 0.8em">
|
233 |
<thead style="background-color: #4688d2; color: #ffffff;">
|
234 |
-
<th style="textalilfe" class="text-left" colspan="2"><?php _e( 'WordPress Environment', 'subscribe-reloaded' ) ?></th>
|
235 |
</thead>
|
236 |
<?php
|
237 |
|
@@ -247,7 +263,7 @@ else {
|
|
247 |
$wpPermalink = esc_html( get_option( 'permalink_structure' ) );
|
248 |
$wpTablePrefix = esc_html( $wpdb->prefix );
|
249 |
$wpTablePrefixLength = strlen( $wpdb->prefix );
|
250 |
-
$wpTablePrefixStatus = $wpTablePrefixLength > 16 ? esc_html( 'Error: Too long', 'subscribe-reloaded' ) : esc_html( 'Acceptable', 'subscribe-reloaded' );
|
251 |
$wpRegisteredPostStatuses = esc_html( implode( ', ', get_post_stati() ) );
|
252 |
|
253 |
$stcr_system_information['Wordpress Environment']["Home URL"] = $wpHome;
|
@@ -269,7 +285,7 @@ else {
|
|
269 |
}
|
270 |
|
271 |
if ( $memory < 67108864 ) {
|
272 |
-
$memoryValue = '<div class="system-error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend setting memory to at least 64 MB. See: %s', 'subscribe-reloaded' ), size_format( $memory ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">' . __( 'Increasing memory allocated to PHP', 'subscribe-reloaded' ) . '</a>' ) . '</div>';
|
273 |
$stcr_system_information['Wordpress Environment']["Memory Limit"] = "Memory under 64MB";
|
274 |
}
|
275 |
else {
|
@@ -301,15 +317,15 @@ else {
|
|
301 |
|
302 |
$wordpressEnvironment = array(
|
303 |
1 => array(
|
304 |
-
__( "Home URL",
|
305 |
$wpHome
|
306 |
),
|
307 |
2 => array(
|
308 |
-
__( "Site URL",
|
309 |
$wpsiteurl
|
310 |
),
|
311 |
3 => array(
|
312 |
-
__( "WordPress Version",
|
313 |
$wpVersion
|
314 |
),
|
315 |
4 => array(
|
@@ -317,39 +333,39 @@ else {
|
|
317 |
$wpMultisite ? '<span class="dashicons dashicons-yes"></span>' : 'No'
|
318 |
),
|
319 |
5 => array(
|
320 |
-
__( "Memory Limit",
|
321 |
$memoryValue
|
322 |
),
|
323 |
6 => array(
|
324 |
-
__( "WP Debug Mode",
|
325 |
$wpDebug
|
326 |
),
|
327 |
7 => array(
|
328 |
-
__( "WP Cron",
|
329 |
$wpCron
|
330 |
),
|
331 |
8 => array(
|
332 |
-
__( "Language",
|
333 |
$wpLanguage
|
334 |
),
|
335 |
9 => array(
|
336 |
-
__( "Permalink Structure",
|
337 |
$wpPermalink
|
338 |
),
|
339 |
10 => array(
|
340 |
-
__( "Table Prefix",
|
341 |
$wpTablePrefix
|
342 |
),
|
343 |
11 => array(
|
344 |
-
__( "Table Prefix Length",
|
345 |
$wpTablePrefixLength
|
346 |
),
|
347 |
12 => array(
|
348 |
-
__( "Table Prefix Status",
|
349 |
$wpTablePrefixStatus
|
350 |
),
|
351 |
13 => array(
|
352 |
-
__( "Registered Post Statuses",
|
353 |
$wpRegisteredPostStatuses
|
354 |
)
|
355 |
);
|
@@ -370,17 +386,17 @@ else {
|
|
370 |
<!-- Server Environment -->
|
371 |
<table class="table table-sm table-hover table-striped system-info-table" style="font-size: 0.8em">
|
372 |
<thead style="background-color: #4688d2; color: #ffffff;">
|
373 |
-
<th style="textalilfe" class="text-left" colspan="2"><?php _e( 'Server Environment', 'subscribe-reloaded' ) ?></th>
|
374 |
</thead>
|
375 |
<?php
|
376 |
|
377 |
$tlsCheck = false;
|
378 |
-
$tlsCheckValue = __( 'Cannot Evaluate', 'subscribe-reloaded' );
|
379 |
-
$tlsRating = __( 'Not Available', 'subscribe-reloaded' );
|
380 |
-
$phpVersion = __( 'Not Available', 'subscribe-reloaded' );
|
381 |
-
$cURLVersion = __( 'Not Available', 'subscribe-reloaded' );
|
382 |
-
$MySQLSVersion = __( 'Not Available', 'subscribe-reloaded' );
|
383 |
-
$defaultTimezone = __( 'Not Available', 'subscribe-reloaded' );
|
384 |
$serverInfo = esc_html( $_SERVER['SERVER_SOFTWARE'] );
|
385 |
$maxPostSize = size_format( $wp_subscribe_reloaded->stcr->utils->to_num_ini_notation( ini_get( 'post_max_size' ) ) );
|
386 |
|
@@ -393,7 +409,7 @@ else {
|
|
393 |
{
|
394 |
$tlsCheck = json_decode( $tlsCheck );
|
395 |
/* translators: %s: SSL connection response */
|
396 |
-
$tlsCheckValue = sprintf( __( 'Connection uses %s', 'subscribe-reloaded' ), esc_html( $tlsCheck->tls_version ) );
|
397 |
}
|
398 |
$stcr_system_information['Server Environment']["TLS Connection"] = $tlsCheckValue;
|
399 |
// Check TSL Rating
|
@@ -410,7 +426,7 @@ else {
|
|
410 |
|
411 |
if ( version_compare( $phpVersion, '5.6', '<' ) )
|
412 |
{
|
413 |
-
$phpVersion = '<div class="system-error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend a minimum PHP version of 5.6. See: %s', 'subscribe-reloaded' ), esc_html( $phpVersion ), '<a href="http://subscribe-reloaded.com/about/" target="_blank">' . __( 'PHP Requirements in StCR', 'subscribe-reloaded' ) . '</a>' ) . '</div>';
|
414 |
$stcr_system_information['Server Environment']["PHP Version"] = sprintf( '%s - We recommend a minimum PHP version of 5.6. See: %s', esc_html( $phpVersion ), '<a href="http://subscribe-reloaded.com/about/" target="_blank">PHP Requirements in StCR</a>' );
|
415 |
}
|
416 |
else
|
@@ -421,7 +437,7 @@ else {
|
|
421 |
}
|
422 |
else
|
423 |
{
|
424 |
-
$phpVersion = __( "Couldn't determine PHP version because the function phpversion() doesn't exist.", 'subscribe-reloaded' );
|
425 |
$stcr_system_information['Server Environment']["PHP Version"] = "Couldn't determine PHP version because the function phpversion() doesn't exist.";
|
426 |
}
|
427 |
|
@@ -439,7 +455,7 @@ else {
|
|
439 |
|
440 |
if ( version_compare( $cURLVersionNumber, '7.40', '<' ) )
|
441 |
{
|
442 |
-
$cURLVersion = '<div class="system-error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend a minimum cURL version of 7.40.', 'subscribe-reloaded' ), esc_html( $cURLVersionNumber . ', ' . $cURLSSLVersion ) ) . '</div>';
|
443 |
$stcr_system_information['Server Environment']["cURL Version"] = sprintf('%s - We recommend a minimum cURL version of 7.40.', esc_html( $cURLVersionNumber . ', ' . $cURLSSLVersion ) );
|
444 |
}
|
445 |
else
|
@@ -469,7 +485,7 @@ else {
|
|
469 |
|
470 |
if ( 'UTC' !== $defaultTimezone )
|
471 |
{
|
472 |
-
$defaultTimezone = '<div class="system-error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( 'Default timezone is %s - it should be UTC', 'subscribe-reloaded' ), $defaultTimezone ) . '</div>';
|
473 |
$stcr_system_information['Server Environment']["Default Timezone is UTC"] = sprintf('Default timezone is %s - it should be UTC', $defaultTimezone );
|
474 |
}
|
475 |
else
|
@@ -478,28 +494,28 @@ else {
|
|
478 |
$stcr_system_information['Server Environment']["Default Timezone is UTC"] = "Yes";
|
479 |
}
|
480 |
// DOMDocument
|
481 |
-
$DOMDocument = __( 'Not Available', 'subscribe-reloaded' );
|
482 |
if ( class_exists( 'DOMDocument' ) )
|
483 |
{
|
484 |
$DOMDocument = '<div class="system-success"><span class="dashicons dashicons-yes"></span></div>';
|
485 |
$stcr_system_information['Server Environment']["DOMDocument"] = "Yes";
|
486 |
}
|
487 |
else {
|
488 |
-
$DOMDocument = sprintf( __( 'Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument.', 'subscribe-reloaded' ), '<a href="https://php.net/manual/en/class.domdocument.php">DOMDocument</a>' );
|
489 |
$stcr_system_information['Server Environment']["DOMDocument"] = sprintf( 'Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument.', '<a href="https://php.net/manual/en/class.domdocument.php">DOMDocument</a>' );
|
490 |
}
|
491 |
// Check gzip
|
492 |
-
$gzip = __( 'Not Available', 'subscribe-reloaded' );
|
493 |
if ( is_callable( 'gzopen' ) )
|
494 |
{
|
495 |
$gzip = '<div class="system-success"><span class="dashicons dashicons-yes"></span></div>';
|
496 |
$stcr_system_information['Server Environment']["gzip"] = "Yes";
|
497 |
}
|
498 |
else {
|
499 |
-
$gzip = sprintf( __( 'Your server does not support the %s function - this is used for file compression and decompression.', 'subscribe-reloaded' ), '<a href="https://php.net/manual/en/zlib.installation.php">gzopen</a>' );
|
500 |
$stcr_system_information['Server Environment']["gzip"] = sprintf( 'Your server does not support the %s function - this is used for file compression and decompression.', '<a href="https://php.net/manual/en/zlib.installation.php">gzopen</a>' );
|
501 |
}// Check GD
|
502 |
-
$gd = __( 'Not Available', 'subscribe-reloaded' );
|
503 |
if ( extension_loaded( 'gd' ) && function_exists( 'gd_info' ) )
|
504 |
{
|
505 |
$gd = '<div class="system-success"><span class="dashicons dashicons-yes"></span></div>';
|
@@ -513,59 +529,59 @@ else {
|
|
513 |
// Define array of values
|
514 |
$serverEnvironment = array(
|
515 |
1 => array(
|
516 |
-
__( "TLS Connection",
|
517 |
$tlsCheckValue
|
518 |
),
|
519 |
2 => array(
|
520 |
-
__( "TLS Rating",
|
521 |
$tlsRating
|
522 |
),
|
523 |
3 => array(
|
524 |
-
__( "Server Info",
|
525 |
$serverInfo
|
526 |
),
|
527 |
4 => array(
|
528 |
-
__( "PHP Version",
|
529 |
$phpVersion
|
530 |
),
|
531 |
5 => array(
|
532 |
-
__( "PHP Post Max Size",
|
533 |
$maxPostSize
|
534 |
),
|
535 |
6 => array(
|
536 |
-
__( "PHP Max Execution Time",
|
537 |
ini_get( 'max_execution_time' )
|
538 |
),
|
539 |
7 => array(
|
540 |
-
__( "PHP Max Input Vars",
|
541 |
ini_get( 'max_input_vars' )
|
542 |
),
|
543 |
8 => array(
|
544 |
-
__( "PHP Max Upload Size",
|
545 |
size_format( wp_max_upload_size() )
|
546 |
),
|
547 |
9 => array(
|
548 |
-
__( "cURL Version",
|
549 |
$cURLVersion
|
550 |
),
|
551 |
10 => array(
|
552 |
-
__( "MySQL Version",
|
553 |
$MySQLSVersion
|
554 |
),
|
555 |
11 => array(
|
556 |
-
__( "Default Timezone is UTC",
|
557 |
$defaultTimezone
|
558 |
),
|
559 |
12 => array(
|
560 |
-
__( "DOMDocument",
|
561 |
$DOMDocument
|
562 |
),
|
563 |
13 => array(
|
564 |
-
__( "gzip",
|
565 |
$gzip
|
566 |
),
|
567 |
14 => array(
|
568 |
-
__( "GD Graphics Library",
|
569 |
$gd
|
570 |
)
|
571 |
);
|
@@ -589,7 +605,7 @@ else {
|
|
589 |
<!-- Active Plugins -->
|
590 |
<table class="table table-sm table-hover table-striped system-info-table" style="font-size: 0.8em">
|
591 |
<thead style="background-color: #4688d2; color: #ffffff;">
|
592 |
-
<th style="textalilfe" class="text-left" colspan="2"><?php _e( 'Active Plugins', 'subscribe-reloaded' ) ?></th>
|
593 |
</thead>
|
594 |
|
595 |
<tbody>
|
@@ -616,7 +632,7 @@ else {
|
|
616 |
$plugin_name = sprintf(
|
617 |
'<a href="%s" title="%s">%s</a>',
|
618 |
esc_url( $plugin_data['PluginURI'] ),
|
619 |
-
esc_attr__( 'Visit plugin homepage', 'subscribe-reloaded' ),
|
620 |
$plugin_name
|
621 |
);
|
622 |
}
|
@@ -625,11 +641,11 @@ else {
|
|
625 |
$author_name = sprintf(
|
626 |
'<a href="%s" title="%s">%s</a>',
|
627 |
esc_url( $plugin_data['AuthorURI'] ),
|
628 |
-
esc_attr__( 'Visit author homepage', 'subscribe-reloaded' ),
|
629 |
$author_name
|
630 |
);
|
631 |
|
632 |
-
$author_name = sprintf( _x( 'by %s', 'by author', 'subscribe-reloaded' ),
|
633 |
wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) . ' – '
|
634 |
. esc_html( $plugin_data['Version'] );
|
635 |
}
|
@@ -646,7 +662,7 @@ else {
|
|
646 |
<!-- Inactive Plugins -->
|
647 |
<table class="table table-sm table-hover table-striped system-info-table" style="font-size: 0.8em">
|
648 |
<thead style="background-color: #4688d2; color: #ffffff;">
|
649 |
-
<th style="textalilfe" class="text-left" colspan="2"><?php _e( 'Inactive Plugins', 'subscribe-reloaded' ) ?></th>
|
650 |
</thead>
|
651 |
|
652 |
<tbody>
|
@@ -673,7 +689,7 @@ else {
|
|
673 |
$plugin_name = sprintf(
|
674 |
'<a href="%s" title="%s">%s</a>',
|
675 |
esc_url( $plugin_data['PluginURI'] ),
|
676 |
-
esc_attr__( 'Visit plugin homepage', 'subscribe-reloaded' ),
|
677 |
$plugin_name
|
678 |
);
|
679 |
}
|
@@ -682,11 +698,11 @@ else {
|
|
682 |
$author_name = sprintf(
|
683 |
'<a href="%s" title="%s">%s</a>',
|
684 |
esc_url( $plugin_data['AuthorURI'] ),
|
685 |
-
esc_attr__( 'Visit author homepage', 'subscribe-reloaded' ),
|
686 |
$author_name
|
687 |
);
|
688 |
|
689 |
-
$author_name = sprintf( _x( 'by %s', 'by author', 'subscribe-reloaded' ),
|
690 |
wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) . ' – '
|
691 |
. esc_html( $plugin_data['Version'] );
|
692 |
}
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Displays WP-admin -> StCR -> StCR System
|
4 |
+
*/
|
5 |
|
6 |
// Avoid direct access to this piece of code
|
7 |
if ( ! function_exists( 'is_admin' ) || ! is_admin() ) {
|
54 |
if( unlink($file_path) )
|
55 |
{
|
56 |
// show success message.
|
57 |
+
$message = __( 'The log file has been successfully deleted.', 'subscribe-to-comments-reloaded' );
|
58 |
$message_type = "notice-success";
|
59 |
}
|
60 |
else
|
61 |
{
|
62 |
+
$message = __( 'Can\'t delete the log file, check the file permissions.', 'subscribe-to-comments-reloaded' );
|
63 |
$message_type = "notice-warning";
|
64 |
}
|
65 |
}
|
66 |
else
|
67 |
{
|
68 |
+
$message = __( 'The log file does not exists.', 'subscribe-to-comments-reloaded' );
|
69 |
$message_type = "notice-warning";
|
70 |
}
|
71 |
echo "<div class='notice $message_type'><p>";
|
111 |
// Display an alert in the admin interface if something went wrong
|
112 |
echo '<div class="updated"><p>';
|
113 |
if ( sizeof( $faulty_fields ) == 0 ) {
|
114 |
+
_e( 'Your settings have been successfully updated.', 'subscribe-to-comments-reloaded' );
|
115 |
} else {
|
116 |
+
_e( 'There was an error updating the options.', 'subscribe-to-comments-reloaded' );
|
117 |
// echo ' <strong>' . substr( $faulty_fields, 0, - 2 ) . '</strong>';
|
118 |
}
|
119 |
echo "</p></div>";
|
138 |
<div class="col-sm-9">
|
139 |
<form action="" method="post">
|
140 |
|
141 |
+
<?php
|
142 |
+
// get the total number of subscribers and subscriptions
|
143 |
+
$total_subscribers = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}subscribe_reloaded_subscribers");
|
144 |
+
$total_subscriptions = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}postmeta where meta_key LIKE '_stcr@_%'");
|
145 |
+
?>
|
146 |
+
<div class="form-group row">
|
147 |
+
<label class="col-sm-3 col-form-label text-right"><?php _e( 'Subscribers Count', 'subscribe-to-comments-reloaded' ); ?></label>
|
148 |
+
<div class="col-sm-7">
|
149 |
+
<label class="col-form-label"><?php
|
150 |
+
echo sprintf( __( '%d subscribers with %d subscriptions', 'subscribe-to-comments-reloaded' ), $total_subscribers, $total_subscriptions );
|
151 |
+
?></label>
|
152 |
+
</div>
|
153 |
+
</div>
|
154 |
+
|
155 |
<div class="form-group row" style="margin-bottom: 0;">
|
156 |
+
<label for="enable_log_data" class="col-sm-3 col-form-label text-right"><?php _e( 'Enable Log Information', 'subscribe-to-comments-reloaded' ) ?></label>
|
157 |
<div class="col-sm-7">
|
158 |
<div class="switch">
|
159 |
<input type="radio" class="switch-input" name="options[enable_log_data]"
|
160 |
value="yes" id="enable_log_data-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_log_data' ) == 'yes' ) ? ' checked' : ''; ?> />
|
161 |
<label for="enable_log_data-yes" class="switch-label switch-label-off">
|
162 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
163 |
</label>
|
164 |
<input type="radio" class="switch-input" name="options[enable_log_data]" value="no" id="enable_log_data-no"
|
165 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'enable_log_data' ) == 'no' ) ? ' checked' : ''; ?> />
|
166 |
<label for="enable_log_data-no" class="switch-label switch-label-on">
|
167 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
168 |
</label>
|
169 |
<span class="switch-selection"></span>
|
170 |
</div>
|
171 |
|
172 |
<div class="helpDescription subsOptDescriptions"
|
173 |
+
data-content="<?php _e( "If enabled, will log information of the plugin. Helpful for debugging purposes.<p>The file is stored under the path <code>Plugins Dir>subscribe-to-comments-reloaded>utils>log.txt</code></code></p>", 'subscribe-to-comments-reloaded' ); ?>"
|
174 |
data-placement="right"
|
175 |
+
aria-label="<?php _e( "If enabled, will log information of the plugin. Helpful for debugging purposes.", 'subscribe-to-comments-reloaded' ); ?>">
|
176 |
<i class="fas fa-question-circle"></i>
|
177 |
</div>
|
178 |
</div>
|
179 |
</div>
|
180 |
|
181 |
<div class="form-group row" style="margin-bottom: 0;">
|
182 |
+
<label for="auto_clean_log_data" class="col-sm-3 col-form-label text-right"><?php _e( 'Enable Auto clean log data', 'subscribe-to-comments-reloaded' ) ?></label>
|
183 |
<div class="col-sm-7">
|
184 |
<div class="switch">
|
185 |
<input type="radio" class="switch-input" name="options[auto_clean_log_data]"
|
186 |
value="yes" id="auto_clean_log_data-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'auto_clean_log_data' ) == 'yes' ) ? ' checked' : ''; ?> />
|
187 |
<label for="auto_clean_log_data-yes" class="switch-label switch-label-off">
|
188 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
189 |
</label>
|
190 |
<input type="radio" class="switch-input" name="options[auto_clean_log_data]" value="no" id="auto_clean_log_data-no"
|
191 |
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'auto_clean_log_data' ) == 'no' ) ? ' checked' : ''; ?> />
|
192 |
<label for="auto_clean_log_data-no" class="switch-label switch-label-on">
|
193 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
194 |
</label>
|
195 |
<span class="switch-selection"></span>
|
196 |
</div>
|
197 |
|
198 |
<select class="auto_clean_log_frecuency form-control form-control-select" name="options[auto_clean_log_frecuency]">
|
199 |
+
<option value="hourly" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'auto_clean_log_frecuency' ) === 'hourly' ) ? "selected='selected'" : ''; ?>><?php _e( 'Hourly', 'subscribe-to-comments-reloaded' ); ?></option>
|
200 |
+
<option value="twicedaily" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'auto_clean_log_frecuency' ) === 'twicedaily' ) ? "selected='selected'" : ''; ?>><?php _e( 'Twice Daily', 'subscribe-to-comments-reloaded' ); ?></option>
|
201 |
+
<option value="daily" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'auto_clean_log_frecuency' ) === 'daily' ) ? "selected='selected'" : ''; ?>><?php _e( 'Daily', 'subscribe-to-comments-reloaded' ); ?></option>
|
202 |
</select>
|
203 |
|
204 |
<div class="helpDescription subsOptDescriptions"
|
205 |
+
data-content="<?php _e( "If enabled, StCR will auto clean your information according to the frequency that you defined on the dropdown.", 'subscribe-to-comments-reloaded' ); ?>"
|
206 |
data-placement="right"
|
207 |
+
aria-label="<?php _e( "If enabled, StCR will auto clean your information according to the frequency that you defined on the dropdown.", 'subscribe-to-comments-reloaded' ); ?>">
|
208 |
<i class="fas fa-question-circle"></i>
|
209 |
</div>
|
210 |
</div>
|
212 |
|
213 |
<div class="form-group row">
|
214 |
<label for="purge_log" class="col-sm-3 col-form-label text-right">
|
215 |
+
<?php _e( 'Clean Up Log Archive', 'subscribe-to-comments-reloaded' ) ?></label>
|
216 |
<div class="col-sm-7">
|
217 |
|
218 |
<span style="font-size: 0.9rem;"><?php _e(
|
219 |
"If you want to clean up the log archive please click the following button",
|
220 |
+
'subscribe-to-comments-reloaded'
|
221 |
); ?>
|
222 |
</span>
|
223 |
|
227 |
|
228 |
<div class="form-group row">
|
229 |
<label for="generate_system_info" class="col-sm-3 col-form-label text-right">
|
230 |
+
<?php _e( 'Download System Info File', 'subscribe-to-comments-reloaded' ) ?></label>
|
231 |
<div class="col-sm-7">
|
232 |
<a class="download_report btn btn-download subscribe-form-button" href="#">
|
233 |
+
<?php _e( 'Download', 'subscribe-to-comments-reloaded' ); ?>
|
234 |
</a>
|
235 |
</div>
|
236 |
</div>
|
238 |
<div class="form-group row">
|
239 |
<div class="col-sm-9 offset-sm-3">
|
240 |
<button type="submit" class="btn btn-primary subscribe-form-button" name="Submit">
|
241 |
+
<?php _e( 'Save Changes', 'subscribe-to-comments-reloaded' ) ?>
|
242 |
</button>
|
243 |
</div>
|
244 |
</div>
|
245 |
|
246 |
+
<h3><?php _e( 'System Information', 'subscribe-to-comments-reloaded' ) ?></h3>
|
247 |
|
248 |
<table class="table table-sm table-hover table-striped system-info-table" style="font-size: 0.8em">
|
249 |
<thead style="background-color: #4688d2; color: #ffffff;">
|
250 |
+
<th style="textalilfe" class="text-left" colspan="2"><?php _e( 'WordPress Environment', 'subscribe-to-comments-reloaded' ) ?></th>
|
251 |
</thead>
|
252 |
<?php
|
253 |
|
263 |
$wpPermalink = esc_html( get_option( 'permalink_structure' ) );
|
264 |
$wpTablePrefix = esc_html( $wpdb->prefix );
|
265 |
$wpTablePrefixLength = strlen( $wpdb->prefix );
|
266 |
+
$wpTablePrefixStatus = $wpTablePrefixLength > 16 ? esc_html( 'Error: Too long', 'subscribe-to-comments-reloaded' ) : esc_html( 'Acceptable', 'subscribe-to-comments-reloaded' );
|
267 |
$wpRegisteredPostStatuses = esc_html( implode( ', ', get_post_stati() ) );
|
268 |
|
269 |
$stcr_system_information['Wordpress Environment']["Home URL"] = $wpHome;
|
285 |
}
|
286 |
|
287 |
if ( $memory < 67108864 ) {
|
288 |
+
$memoryValue = '<div class="system-error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend setting memory to at least 64 MB. See: %s', 'subscribe-to-comments-reloaded' ), size_format( $memory ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">' . __( 'Increasing memory allocated to PHP', 'subscribe-to-comments-reloaded' ) . '</a>' ) . '</div>';
|
289 |
$stcr_system_information['Wordpress Environment']["Memory Limit"] = "Memory under 64MB";
|
290 |
}
|
291 |
else {
|
317 |
|
318 |
$wordpressEnvironment = array(
|
319 |
1 => array(
|
320 |
+
__( "Home URL", 'subscribe-to-comments-reloaded' ),
|
321 |
$wpHome
|
322 |
),
|
323 |
2 => array(
|
324 |
+
__( "Site URL", 'subscribe-to-comments-reloaded' ),
|
325 |
$wpsiteurl
|
326 |
),
|
327 |
3 => array(
|
328 |
+
__( "WordPress Version", 'subscribe-to-comments-reloaded' ),
|
329 |
$wpVersion
|
330 |
),
|
331 |
4 => array(
|
333 |
$wpMultisite ? '<span class="dashicons dashicons-yes"></span>' : 'No'
|
334 |
),
|
335 |
5 => array(
|
336 |
+
__( "Memory Limit", 'subscribe-to-comments-reloaded' ),
|
337 |
$memoryValue
|
338 |
),
|
339 |
6 => array(
|
340 |
+
__( "WP Debug Mode", 'subscribe-to-comments-reloaded' ),
|
341 |
$wpDebug
|
342 |
),
|
343 |
7 => array(
|
344 |
+
__( "WP Cron", 'subscribe-to-comments-reloaded' ),
|
345 |
$wpCron
|
346 |
),
|
347 |
8 => array(
|
348 |
+
__( "Language", 'subscribe-to-comments-reloaded' ),
|
349 |
$wpLanguage
|
350 |
),
|
351 |
9 => array(
|
352 |
+
__( "Permalink Structure", 'subscribe-to-comments-reloaded' ),
|
353 |
$wpPermalink
|
354 |
),
|
355 |
10 => array(
|
356 |
+
__( "Table Prefix", 'subscribe-to-comments-reloaded' ),
|
357 |
$wpTablePrefix
|
358 |
),
|
359 |
11 => array(
|
360 |
+
__( "Table Prefix Length", 'subscribe-to-comments-reloaded' ),
|
361 |
$wpTablePrefixLength
|
362 |
),
|
363 |
12 => array(
|
364 |
+
__( "Table Prefix Status", 'subscribe-to-comments-reloaded' ),
|
365 |
$wpTablePrefixStatus
|
366 |
),
|
367 |
13 => array(
|
368 |
+
__( "Registered Post Statuses", 'subscribe-to-comments-reloaded' ),
|
369 |
$wpRegisteredPostStatuses
|
370 |
)
|
371 |
);
|
386 |
<!-- Server Environment -->
|
387 |
<table class="table table-sm table-hover table-striped system-info-table" style="font-size: 0.8em">
|
388 |
<thead style="background-color: #4688d2; color: #ffffff;">
|
389 |
+
<th style="textalilfe" class="text-left" colspan="2"><?php _e( 'Server Environment', 'subscribe-to-comments-reloaded' ) ?></th>
|
390 |
</thead>
|
391 |
<?php
|
392 |
|
393 |
$tlsCheck = false;
|
394 |
+
$tlsCheckValue = __( 'Cannot Evaluate', 'subscribe-to-comments-reloaded' );
|
395 |
+
$tlsRating = __( 'Not Available', 'subscribe-to-comments-reloaded' );
|
396 |
+
$phpVersion = __( 'Not Available', 'subscribe-to-comments-reloaded' );
|
397 |
+
$cURLVersion = __( 'Not Available', 'subscribe-to-comments-reloaded' );
|
398 |
+
$MySQLSVersion = __( 'Not Available', 'subscribe-to-comments-reloaded' );
|
399 |
+
$defaultTimezone = __( 'Not Available', 'subscribe-to-comments-reloaded' );
|
400 |
$serverInfo = esc_html( $_SERVER['SERVER_SOFTWARE'] );
|
401 |
$maxPostSize = size_format( $wp_subscribe_reloaded->stcr->utils->to_num_ini_notation( ini_get( 'post_max_size' ) ) );
|
402 |
|
409 |
{
|
410 |
$tlsCheck = json_decode( $tlsCheck );
|
411 |
/* translators: %s: SSL connection response */
|
412 |
+
$tlsCheckValue = sprintf( __( 'Connection uses %s', 'subscribe-to-comments-reloaded' ), esc_html( $tlsCheck->tls_version ) );
|
413 |
}
|
414 |
$stcr_system_information['Server Environment']["TLS Connection"] = $tlsCheckValue;
|
415 |
// Check TSL Rating
|
426 |
|
427 |
if ( version_compare( $phpVersion, '5.6', '<' ) )
|
428 |
{
|
429 |
+
$phpVersion = '<div class="system-error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend a minimum PHP version of 5.6. See: %s', 'subscribe-to-comments-reloaded' ), esc_html( $phpVersion ), '<a href="http://subscribe-reloaded.com/about/" target="_blank">' . __( 'PHP Requirements in StCR', 'subscribe-to-comments-reloaded' ) . '</a>' ) . '</div>';
|
430 |
$stcr_system_information['Server Environment']["PHP Version"] = sprintf( '%s - We recommend a minimum PHP version of 5.6. See: %s', esc_html( $phpVersion ), '<a href="http://subscribe-reloaded.com/about/" target="_blank">PHP Requirements in StCR</a>' );
|
431 |
}
|
432 |
else
|
437 |
}
|
438 |
else
|
439 |
{
|
440 |
+
$phpVersion = __( "Couldn't determine PHP version because the function phpversion() doesn't exist.", 'subscribe-to-comments-reloaded' );
|
441 |
$stcr_system_information['Server Environment']["PHP Version"] = "Couldn't determine PHP version because the function phpversion() doesn't exist.";
|
442 |
}
|
443 |
|
455 |
|
456 |
if ( version_compare( $cURLVersionNumber, '7.40', '<' ) )
|
457 |
{
|
458 |
+
$cURLVersion = '<div class="system-error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend a minimum cURL version of 7.40.', 'subscribe-to-comments-reloaded' ), esc_html( $cURLVersionNumber . ', ' . $cURLSSLVersion ) ) . '</div>';
|
459 |
$stcr_system_information['Server Environment']["cURL Version"] = sprintf('%s - We recommend a minimum cURL version of 7.40.', esc_html( $cURLVersionNumber . ', ' . $cURLSSLVersion ) );
|
460 |
}
|
461 |
else
|
485 |
|
486 |
if ( 'UTC' !== $defaultTimezone )
|
487 |
{
|
488 |
+
$defaultTimezone = '<div class="system-error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( 'Default timezone is %s - it should be UTC', 'subscribe-to-comments-reloaded' ), $defaultTimezone ) . '</div>';
|
489 |
$stcr_system_information['Server Environment']["Default Timezone is UTC"] = sprintf('Default timezone is %s - it should be UTC', $defaultTimezone );
|
490 |
}
|
491 |
else
|
494 |
$stcr_system_information['Server Environment']["Default Timezone is UTC"] = "Yes";
|
495 |
}
|
496 |
// DOMDocument
|
497 |
+
$DOMDocument = __( 'Not Available', 'subscribe-to-comments-reloaded' );
|
498 |
if ( class_exists( 'DOMDocument' ) )
|
499 |
{
|
500 |
$DOMDocument = '<div class="system-success"><span class="dashicons dashicons-yes"></span></div>';
|
501 |
$stcr_system_information['Server Environment']["DOMDocument"] = "Yes";
|
502 |
}
|
503 |
else {
|
504 |
+
$DOMDocument = sprintf( __( 'Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument.', 'subscribe-to-comments-reloaded' ), '<a href="https://php.net/manual/en/class.domdocument.php">DOMDocument</a>' );
|
505 |
$stcr_system_information['Server Environment']["DOMDocument"] = sprintf( 'Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument.', '<a href="https://php.net/manual/en/class.domdocument.php">DOMDocument</a>' );
|
506 |
}
|
507 |
// Check gzip
|
508 |
+
$gzip = __( 'Not Available', 'subscribe-to-comments-reloaded' );
|
509 |
if ( is_callable( 'gzopen' ) )
|
510 |
{
|
511 |
$gzip = '<div class="system-success"><span class="dashicons dashicons-yes"></span></div>';
|
512 |
$stcr_system_information['Server Environment']["gzip"] = "Yes";
|
513 |
}
|
514 |
else {
|
515 |
+
$gzip = sprintf( __( 'Your server does not support the %s function - this is used for file compression and decompression.', 'subscribe-to-comments-reloaded' ), '<a href="https://php.net/manual/en/zlib.installation.php">gzopen</a>' );
|
516 |
$stcr_system_information['Server Environment']["gzip"] = sprintf( 'Your server does not support the %s function - this is used for file compression and decompression.', '<a href="https://php.net/manual/en/zlib.installation.php">gzopen</a>' );
|
517 |
}// Check GD
|
518 |
+
$gd = __( 'Not Available', 'subscribe-to-comments-reloaded' );
|
519 |
if ( extension_loaded( 'gd' ) && function_exists( 'gd_info' ) )
|
520 |
{
|
521 |
$gd = '<div class="system-success"><span class="dashicons dashicons-yes"></span></div>';
|
529 |
// Define array of values
|
530 |
$serverEnvironment = array(
|
531 |
1 => array(
|
532 |
+
__( "TLS Connection", 'subscribe-to-comments-reloaded' ),
|
533 |
$tlsCheckValue
|
534 |
),
|
535 |
2 => array(
|
536 |
+
__( "TLS Rating", 'subscribe-to-comments-reloaded' ),
|
537 |
$tlsRating
|
538 |
),
|
539 |
3 => array(
|
540 |
+
__( "Server Info", 'subscribe-to-comments-reloaded' ),
|
541 |
$serverInfo
|
542 |
),
|
543 |
4 => array(
|
544 |
+
__( "PHP Version", 'subscribe-to-comments-reloaded' ),
|
545 |
$phpVersion
|
546 |
),
|
547 |
5 => array(
|
548 |
+
__( "PHP Post Max Size", 'subscribe-to-comments-reloaded' ),
|
549 |
$maxPostSize
|
550 |
),
|
551 |
6 => array(
|
552 |
+
__( "PHP Max Execution Time", 'subscribe-to-comments-reloaded' ),
|
553 |
ini_get( 'max_execution_time' )
|
554 |
),
|
555 |
7 => array(
|
556 |
+
__( "PHP Max Input Vars", 'subscribe-to-comments-reloaded' ),
|
557 |
ini_get( 'max_input_vars' )
|
558 |
),
|
559 |
8 => array(
|
560 |
+
__( "PHP Max Upload Size", 'subscribe-to-comments-reloaded' ),
|
561 |
size_format( wp_max_upload_size() )
|
562 |
),
|
563 |
9 => array(
|
564 |
+
__( "cURL Version", 'subscribe-to-comments-reloaded' ),
|
565 |
$cURLVersion
|
566 |
),
|
567 |
10 => array(
|
568 |
+
__( "MySQL Version", 'subscribe-to-comments-reloaded' ),
|
569 |
$MySQLSVersion
|
570 |
),
|
571 |
11 => array(
|
572 |
+
__( "Default Timezone is UTC", 'subscribe-to-comments-reloaded' ),
|
573 |
$defaultTimezone
|
574 |
),
|
575 |
12 => array(
|
576 |
+
__( "DOMDocument", 'subscribe-to-comments-reloaded' ),
|
577 |
$DOMDocument
|
578 |
),
|
579 |
13 => array(
|
580 |
+
__( "gzip", 'subscribe-to-comments-reloaded' ),
|
581 |
$gzip
|
582 |
),
|
583 |
14 => array(
|
584 |
+
__( "GD Graphics Library", 'subscribe-to-comments-reloaded' ),
|
585 |
$gd
|
586 |
)
|
587 |
);
|
605 |
<!-- Active Plugins -->
|
606 |
<table class="table table-sm table-hover table-striped system-info-table" style="font-size: 0.8em">
|
607 |
<thead style="background-color: #4688d2; color: #ffffff;">
|
608 |
+
<th style="textalilfe" class="text-left" colspan="2"><?php _e( 'Active Plugins', 'subscribe-to-comments-reloaded' ) ?></th>
|
609 |
</thead>
|
610 |
|
611 |
<tbody>
|
632 |
$plugin_name = sprintf(
|
633 |
'<a href="%s" title="%s">%s</a>',
|
634 |
esc_url( $plugin_data['PluginURI'] ),
|
635 |
+
esc_attr__( 'Visit plugin homepage', 'subscribe-to-comments-reloaded' ),
|
636 |
$plugin_name
|
637 |
);
|
638 |
}
|
641 |
$author_name = sprintf(
|
642 |
'<a href="%s" title="%s">%s</a>',
|
643 |
esc_url( $plugin_data['AuthorURI'] ),
|
644 |
+
esc_attr__( 'Visit author homepage', 'subscribe-to-comments-reloaded' ),
|
645 |
$author_name
|
646 |
);
|
647 |
|
648 |
+
$author_name = sprintf( _x( 'by %s', 'by author', 'subscribe-to-comments-reloaded' ),
|
649 |
wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) . ' – '
|
650 |
. esc_html( $plugin_data['Version'] );
|
651 |
}
|
662 |
<!-- Inactive Plugins -->
|
663 |
<table class="table table-sm table-hover table-striped system-info-table" style="font-size: 0.8em">
|
664 |
<thead style="background-color: #4688d2; color: #ffffff;">
|
665 |
+
<th style="textalilfe" class="text-left" colspan="2"><?php _e( 'Inactive Plugins', 'subscribe-to-comments-reloaded' ) ?></th>
|
666 |
</thead>
|
667 |
|
668 |
<tbody>
|
689 |
$plugin_name = sprintf(
|
690 |
'<a href="%s" title="%s">%s</a>',
|
691 |
esc_url( $plugin_data['PluginURI'] ),
|
692 |
+
esc_attr__( 'Visit plugin homepage', 'subscribe-to-comments-reloaded' ),
|
693 |
$plugin_name
|
694 |
);
|
695 |
}
|
698 |
$author_name = sprintf(
|
699 |
'<a href="%s" title="%s">%s</a>',
|
700 |
esc_url( $plugin_data['AuthorURI'] ),
|
701 |
+
esc_attr__( 'Visit author homepage', 'subscribe-to-comments-reloaded' ),
|
702 |
$author_name
|
703 |
);
|
704 |
|
705 |
+
$author_name = sprintf( _x( 'by %s', 'by author', 'subscribe-to-comments-reloaded' ),
|
706 |
wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) ) . ' – '
|
707 |
. esc_html( $plugin_data['Version'] );
|
708 |
}
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Requires at least: 4.0
|
|
7 |
Requires PHP: 5.6
|
8 |
Requires MySQL: 5.6
|
9 |
Tested up to: 5.1
|
10 |
-
Stable tag:
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -100,6 +100,16 @@ Just go to the Options Panel and click the generate button. By generating a new
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
= v190412 =
|
104 |
|
105 |
* **Fix** Issue with JavaScript code that is supposed to show the form when "StCR Position" is enabled
|
7 |
Requires PHP: 5.6
|
8 |
Requires MySQL: 5.6
|
9 |
Tested up to: 5.1
|
10 |
+
Stable tag: 190426
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
100 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= v190426 =
|
104 |
+
* **New** Info on the amount of subscribers and subscriptions added in WP admin > StCR > StCR System
|
105 |
+
* **Fix** Text domain (for translations) has been changed to the correct domain (from subscribe-reloaded to subscribe-to-comments-reloaded)
|
106 |
+
* **Fix** Issue with undefined is_rtl function
|
107 |
+
* **Fix** Missing blank space between sentences (below comment form when subscribed)
|
108 |
+
* **Fix** Undefined variable notices for $order_status and $order_dt
|
109 |
+
* **Fix** Temporarily hidden an unused option in StCR > Management Page to avoid confusion.
|
110 |
+
* **Fix** Removed localization for non textual strings
|
111 |
+
* **Fix** Fixed incorrectly localized textual strings
|
112 |
+
|
113 |
= v190412 =
|
114 |
|
115 |
* **Fix** Issue with JavaScript code that is supposed to show the form when "StCR Position" is enabled
|
subscribe-to-comments-reloaded.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Subscribe to Comments Reloaded
|
4 |
* Description: Subscribe to Comments Reloaded is a robust plugin that enables commenters to sign up for e-mail notifications. It includes a full-featured subscription manager that your commenters can use to unsubscribe to certain posts or suspend all notifications.
|
5 |
-
* Version:
|
6 |
* Author: WPKube
|
7 |
* Author URI: http://wpkube.com/
|
8 |
* License: GPL-2.0+
|
2 |
/**
|
3 |
* Plugin Name: Subscribe to Comments Reloaded
|
4 |
* Description: Subscribe to Comments Reloaded is a robust plugin that enables commenters to sign up for e-mail notifications. It includes a full-featured subscription manager that your commenters can use to unsubscribe to certain posts or suspend all notifications.
|
5 |
+
* Version: 190426
|
6 |
* Author: WPKube
|
7 |
* Author URI: http://wpkube.com/
|
8 |
* License: GPL-2.0+
|
templates/author.php
CHANGED
@@ -22,23 +22,23 @@ if ( ! empty( $_POST['email_list'] ) ) {
|
|
22 |
switch ( $action ) {
|
23 |
case 'delete':
|
24 |
$rows_affected = $wp_subscribe_reloaded->stcr->delete_subscriptions( $post_ID, $email_list );
|
25 |
-
echo '<p class="updated">' . __( 'Subscriptions deleted:', 'subscribe-reloaded' ) . " $rows_affected</p>";
|
26 |
break;
|
27 |
case 'suspend':
|
28 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_ID, $email_list, 'C' );
|
29 |
-
echo '<p class="updated">' . __( 'Subscriptions suspended:', 'subscribe-reloaded' ) . " $rows_affected</p>";
|
30 |
break;
|
31 |
case 'activate':
|
32 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_ID, $email_list, '-C' );
|
33 |
-
echo '<p class="updated">' . __( 'Subscriptions activated:', 'subscribe-reloaded' ) . " $rows_affected</p>";
|
34 |
break;
|
35 |
case 'force_y':
|
36 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_ID, $email_list, 'Y' );
|
37 |
-
echo '<p class="updated">' . __( 'Subscriptions updated:', 'subscribe-reloaded' ) . " $rows_affected</p>";
|
38 |
break;
|
39 |
case 'force_r':
|
40 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_ID, $email_list, 'R' );
|
41 |
-
echo '<p class="updated">' . __( 'Subscriptions updated:', 'subscribe-reloaded' ) . " $rows_affected</p>";
|
42 |
break;
|
43 |
default:
|
44 |
break;
|
@@ -51,26 +51,26 @@ if ( function_exists( 'qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage' )
|
|
51 |
echo "<p>$message</p>";
|
52 |
?>
|
53 |
|
54 |
-
<form action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ) ?>" method="post" id="email_list_form" name="email_list_form" 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' ) ?>')">
|
55 |
<fieldset style="border:0">
|
56 |
<?php
|
57 |
$subscriptions = $wp_subscribe_reloaded->stcr->get_subscriptions( 'post_id', 'equals', $post_ID, 'dt', 'ASC' );
|
58 |
// Let us translate those status
|
59 |
$legend_translate = array(
|
60 |
-
'R' => __( 'Replies', 'subscribe-reloaded'),
|
61 |
-
'RC' => __( 'Replies Unconfirmed', 'subscribe-reloaded'),
|
62 |
-
'Y' => __( "All Comments",
|
63 |
-
'YC' => __( "Unconfirmed",
|
64 |
-
'C' => __( "Inactive",
|
65 |
-
'-C' => __( "Active",
|
66 |
);
|
67 |
if ( is_array( $subscriptions ) && ! empty( $subscriptions ) ) {
|
68 |
-
echo '<h1 id="subscribe-reloaded-title-p">' . __( 'Title', 'subscribe-reloaded' ) . ': <strong>' . $target_post->post_title . '</strong></h1>'; // $target_post comes from wp_subscribe_reloaded\subscribe_reloaded_manage
|
69 |
|
70 |
echo "<table class='stcr-subscription-list'><thead><tr>
|
71 |
-
<th style='width:30%; text-align: center;'><i class=\"fa fa-calendar\" aria-hidden=\"true\"></i> ". __('Subscription Date','subscribe-reloaded')."</th>
|
72 |
-
<th style='width:35%;'><i class=\"fa fa-envelope\" aria-hidden=\"true\"></i> ". __('Subscription Email','subscribe-reloaded')."</th>
|
73 |
-
<th style='width:20%; text-align: center;'><i class=\"fa fa-info\" aria-hidden=\"true\"></i> ". __('Subscription Status','subscribe-reloaded')."</th>
|
74 |
</tr></thead>";
|
75 |
echo "<tbody>";
|
76 |
|
@@ -89,26 +89,26 @@ if ( is_array( $subscriptions ) && ! empty( $subscriptions ) ) {
|
|
89 |
echo "</tbody>";
|
90 |
echo "</table>";
|
91 |
|
92 |
-
echo '<p id="subscribe-reloaded-select-all-p"><i class="fa fa-expand" aria-hidden="true"></i> <a class="subscribe-reloaded-small-button stcr-subs-select-all" href="#">' . __( 'Select all', 'subscribe-reloaded' ) . '</a> ';
|
93 |
-
echo ' <i class="fa fa-compress" aria-hidden="true"></i> <a class="subscribe-reloaded-small-button stcr-subs-select-none" href="#">' . __( 'Invert selection', 'subscribe-reloaded' ) . '</a></p>';
|
94 |
-
echo '<p id="subscribe-reloaded-action-p">' . __( 'Action:', 'subscribe-reloaded' );
|
95 |
echo ' <select name="sra">';
|
96 |
-
echo '<option value="">'. __( 'Choose your action', 'subscribe-reloaded' ) .'</option>';
|
97 |
-
echo '<option value="delete">'. __( 'Unsubscribe', 'subscribe-reloaded' ) .'</option>';
|
98 |
-
echo '<option value="suspend">'. __( 'Suspend', 'subscribe-reloaded' ) .'</option>';
|
99 |
-
echo '<option value="force_y">'. __( 'All comments', 'subscribe-reloaded' ) .'</option>';
|
100 |
-
echo '<option value="force_r">'. __( 'Replies to my comments', 'subscribe-reloaded' ) .'</option>';
|
101 |
-
// echo '<option value="activate">'. __( 'Activate', 'subscribe-reloaded' ) .'</option>';
|
102 |
echo '<select>';
|
103 |
-
echo ' <input type="submit" class="subscribe-form-button" value="' . __( 'Update subscriptions', 'subscribe-reloaded' ) . '" />
|
104 |
<input type="hidden" name="srp" value="' . intval( $post_ID ) . '"/></p>';
|
105 |
echo '<p id="subscribe-reloaded-update-p">
|
106 |
-
<a style="margin-right: 10px; text-decoration: none; box-shadow: unset;" href="'. esc_url(get_permalink( $post_ID )) .'"><i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true" style="vertical-align: middle;"></i> '. __('Return to Post','subscribe-reloaded').'</a>
|
107 |
</p>';
|
108 |
|
109 |
|
110 |
} else {
|
111 |
-
echo '<p>' . __( 'No subscriptions match your search criteria.', 'subscribe-reloaded' ) . '</p>';
|
112 |
}
|
113 |
?>
|
114 |
</fieldset>
|
22 |
switch ( $action ) {
|
23 |
case 'delete':
|
24 |
$rows_affected = $wp_subscribe_reloaded->stcr->delete_subscriptions( $post_ID, $email_list );
|
25 |
+
echo '<p class="updated">' . __( 'Subscriptions deleted:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p>";
|
26 |
break;
|
27 |
case 'suspend':
|
28 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_ID, $email_list, 'C' );
|
29 |
+
echo '<p class="updated">' . __( 'Subscriptions suspended:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p>";
|
30 |
break;
|
31 |
case 'activate':
|
32 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_ID, $email_list, '-C' );
|
33 |
+
echo '<p class="updated">' . __( 'Subscriptions activated:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p>";
|
34 |
break;
|
35 |
case 'force_y':
|
36 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_ID, $email_list, 'Y' );
|
37 |
+
echo '<p class="updated">' . __( 'Subscriptions updated:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p>";
|
38 |
break;
|
39 |
case 'force_r':
|
40 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_ID, $email_list, 'R' );
|
41 |
+
echo '<p class="updated">' . __( 'Subscriptions updated:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p>";
|
42 |
break;
|
43 |
default:
|
44 |
break;
|
51 |
echo "<p>$message</p>";
|
52 |
?>
|
53 |
|
54 |
+
<form action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ) ?>" method="post" id="email_list_form" name="email_list_form" 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' ) ?>')">
|
55 |
<fieldset style="border:0">
|
56 |
<?php
|
57 |
$subscriptions = $wp_subscribe_reloaded->stcr->get_subscriptions( 'post_id', 'equals', $post_ID, 'dt', 'ASC' );
|
58 |
// Let us translate those status
|
59 |
$legend_translate = array(
|
60 |
+
'R' => __( 'Replies', 'subscribe-to-comments-reloaded'),
|
61 |
+
'RC' => __( 'Replies Unconfirmed', 'subscribe-to-comments-reloaded'),
|
62 |
+
'Y' => __( "All Comments", 'subscribe-to-comments-reloaded'),
|
63 |
+
'YC' => __( "Unconfirmed", 'subscribe-to-comments-reloaded'),
|
64 |
+
'C' => __( "Inactive", 'subscribe-to-comments-reloaded'),
|
65 |
+
'-C' => __( "Active", 'subscribe-to-comments-reloaded')
|
66 |
);
|
67 |
if ( is_array( $subscriptions ) && ! empty( $subscriptions ) ) {
|
68 |
+
echo '<h1 id="subscribe-reloaded-title-p">' . __( 'Title', 'subscribe-to-comments-reloaded' ) . ': <strong>' . $target_post->post_title . '</strong></h1>'; // $target_post comes from wp_subscribe_reloaded\subscribe_reloaded_manage
|
69 |
|
70 |
echo "<table class='stcr-subscription-list'><thead><tr>
|
71 |
+
<th style='width:30%; text-align: center;'><i class=\"fa fa-calendar\" aria-hidden=\"true\"></i> ". __('Subscription Date','subscribe-to-comments-reloaded')."</th>
|
72 |
+
<th style='width:35%;'><i class=\"fa fa-envelope\" aria-hidden=\"true\"></i> ". __('Subscription Email','subscribe-to-comments-reloaded')."</th>
|
73 |
+
<th style='width:20%; text-align: center;'><i class=\"fa fa-info\" aria-hidden=\"true\"></i> ". __('Subscription Status','subscribe-to-comments-reloaded')."</th>
|
74 |
</tr></thead>";
|
75 |
echo "<tbody>";
|
76 |
|
89 |
echo "</tbody>";
|
90 |
echo "</table>";
|
91 |
|
92 |
+
echo '<p id="subscribe-reloaded-select-all-p"><i class="fa fa-expand" aria-hidden="true"></i> <a class="subscribe-reloaded-small-button stcr-subs-select-all" href="#">' . __( 'Select all', 'subscribe-to-comments-reloaded' ) . '</a> ';
|
93 |
+
echo ' <i class="fa fa-compress" aria-hidden="true"></i> <a class="subscribe-reloaded-small-button stcr-subs-select-none" href="#">' . __( 'Invert selection', 'subscribe-to-comments-reloaded' ) . '</a></p>';
|
94 |
+
echo '<p id="subscribe-reloaded-action-p">' . __( 'Action:', 'subscribe-to-comments-reloaded' );
|
95 |
echo ' <select name="sra">';
|
96 |
+
echo '<option value="">'. __( 'Choose your action', 'subscribe-to-comments-reloaded' ) .'</option>';
|
97 |
+
echo '<option value="delete">'. __( 'Unsubscribe', 'subscribe-to-comments-reloaded' ) .'</option>';
|
98 |
+
echo '<option value="suspend">'. __( 'Suspend', 'subscribe-to-comments-reloaded' ) .'</option>';
|
99 |
+
echo '<option value="force_y">'. __( 'All comments', 'subscribe-to-comments-reloaded' ) .'</option>';
|
100 |
+
echo '<option value="force_r">'. __( 'Replies to my comments', 'subscribe-to-comments-reloaded' ) .'</option>';
|
101 |
+
// echo '<option value="activate">'. __( 'Activate', 'subscribe-to-comments-reloaded' ) .'</option>';
|
102 |
echo '<select>';
|
103 |
+
echo ' <input type="submit" class="subscribe-form-button" value="' . __( 'Update subscriptions', 'subscribe-to-comments-reloaded' ) . '" />
|
104 |
<input type="hidden" name="srp" value="' . intval( $post_ID ) . '"/></p>';
|
105 |
echo '<p id="subscribe-reloaded-update-p">
|
106 |
+
<a style="margin-right: 10px; text-decoration: none; box-shadow: unset;" href="'. esc_url(get_permalink( $post_ID )) .'"><i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true" style="vertical-align: middle;"></i> '. __('Return to Post','subscribe-to-comments-reloaded').'</a>
|
107 |
</p>';
|
108 |
|
109 |
|
110 |
} else {
|
111 |
+
echo '<p>' . __( 'No subscriptions match your search criteria.', 'subscribe-to-comments-reloaded' ) . '</p>';
|
112 |
}
|
113 |
?>
|
114 |
</fieldset>
|
templates/confirm.php
CHANGED
@@ -25,7 +25,7 @@ if ( function_exists( 'qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage' )
|
|
25 |
if ( isset( $post_permalink ) )
|
26 |
{
|
27 |
$message .= '<p id="subscribe-reloaded-update-p">
|
28 |
-
<a style="margin-right: 10px; text-decoration: none; box-shadow: unset;" href="'. esc_url( $post_permalink ) .'"><i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true" style="vertical-align: middle;"></i> '. __('Return to Post','subscribe-reloaded').'</a>
|
29 |
</p>';
|
30 |
}
|
31 |
|
25 |
if ( isset( $post_permalink ) )
|
26 |
{
|
27 |
$message .= '<p id="subscribe-reloaded-update-p">
|
28 |
+
<a style="margin-right: 10px; text-decoration: none; box-shadow: unset;" href="'. esc_url( $post_permalink ) .'"><i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true" style="vertical-align: middle;"></i> '. __('Return to Post','subscribe-to-comments-reloaded').'</a>
|
29 |
</p>';
|
30 |
}
|
31 |
|
templates/key_expired.php
CHANGED
@@ -5,7 +5,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
5 |
exit;
|
6 |
}
|
7 |
|
8 |
-
$error_message = __( "Woohaa the link to manage your subscriptions has expired, don't worry, just enter your email below and a new link will be send.",
|
9 |
|
10 |
global $wp_subscribe_reloaded;
|
11 |
ob_start();
|
@@ -69,9 +69,9 @@ else
|
|
69 |
echo esc_url( $url . "&key_expired=1" );
|
70 |
?>" name="sub-form" method="post">
|
71 |
<fieldset style="border:0">
|
72 |
-
<p><label for="subscribe_reloaded_email"><?php _e( 'Email', 'subscribe-reloaded' ) ?></label>
|
73 |
<input id='subscribe_reloaded_email' type="text" class="subscribe-form-field" name="sre" value="<?php echo isset( $_COOKIE['comment_author_email_' . COOKIEHASH] ) ? $_COOKIE['comment_author_email_' . COOKIEHASH] : 'email'; ?>" size="22" onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue" />
|
74 |
-
<input name="submit" type="submit" class="subscribe-form-button" value="<?php _e( 'Send', 'subscribe-reloaded' ) ?>" />
|
75 |
</p>
|
76 |
</fieldset>
|
77 |
</form>
|
5 |
exit;
|
6 |
}
|
7 |
|
8 |
+
$error_message = __( "Woohaa the link to manage your subscriptions has expired, don't worry, just enter your email below and a new link will be send.", 'subscribe-to-comments-reloaded');
|
9 |
|
10 |
global $wp_subscribe_reloaded;
|
11 |
ob_start();
|
69 |
echo esc_url( $url . "&key_expired=1" );
|
70 |
?>" name="sub-form" method="post">
|
71 |
<fieldset style="border:0">
|
72 |
+
<p><label for="subscribe_reloaded_email"><?php _e( 'Email', 'subscribe-to-comments-reloaded' ) ?></label>
|
73 |
<input id='subscribe_reloaded_email' type="text" class="subscribe-form-field" name="sre" value="<?php echo isset( $_COOKIE['comment_author_email_' . COOKIEHASH] ) ? $_COOKIE['comment_author_email_' . COOKIEHASH] : 'email'; ?>" size="22" onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue" />
|
74 |
+
<input name="submit" type="submit" class="subscribe-form-button" value="<?php _e( 'Send', 'subscribe-to-comments-reloaded' ) ?>" />
|
75 |
</p>
|
76 |
</fieldset>
|
77 |
</form>
|
templates/one-click-unsubscribe.php
CHANGED
@@ -27,7 +27,7 @@ if ( is_object( $post ) ) {
|
|
27 |
$message = wpautop( $message ); // Let us add the <p> tag if need it.
|
28 |
echo "$message"; // TODO: Add management link with number of subscriptions.
|
29 |
} else {
|
30 |
-
echo '<p>' . __( 'No subscriptions match your search criteria.', 'subscribe-reloaded' ) . '</p>';
|
31 |
}
|
32 |
$output = ob_get_contents();
|
33 |
ob_end_clean();
|
27 |
$message = wpautop( $message ); // Let us add the <p> tag if need it.
|
28 |
echo "$message"; // TODO: Add management link with number of subscriptions.
|
29 |
} else {
|
30 |
+
echo '<p>' . __( 'No subscriptions match your search criteria.', 'subscribe-to-comments-reloaded' ) . '</p>';
|
31 |
}
|
32 |
$output = ob_get_contents();
|
33 |
ob_end_clean();
|
templates/request-management-link.php
CHANGED
@@ -110,9 +110,9 @@ else
|
|
110 |
<p><?php echo wpautop( $message ); ?></p>
|
111 |
<form action="<?php echo esc_url( $_SERVER[ 'REQUEST_URI' ]);?>" method="post" name="sub-form">
|
112 |
<fieldset style="border:0">
|
113 |
-
<p><label for="subscribe_reloaded_email"><?php _e( 'Email', 'subscribe-reloaded' ) ?></label>
|
114 |
<input id='subscribe_reloaded_email' type="text" class="subscribe-form-field" name="sre" value="<?php echo esc_attr( $email ); ?>" size="22" />
|
115 |
-
<input name="submit" type="submit" class="subscribe-form-button" value="<?php _e( 'Send', 'subscribe-reloaded' ) ?>" />
|
116 |
</p>
|
117 |
<p class="notice-email-error" style='color: #f55252;font-weight:bold; display: none;'></p>
|
118 |
</fieldset>
|
@@ -122,7 +122,7 @@ else
|
|
122 |
if ( isset( $post_permalink ) )
|
123 |
{
|
124 |
echo '<p id="subscribe-reloaded-update-p">
|
125 |
-
<a style="margin-right: 10px; text-decoration: none; box-shadow: unset;" href="'. esc_url( $post_permalink ) .'"><i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true" style="vertical-align: middle;"></i> '. __('Return to Post','subscribe-reloaded').'</a>
|
126 |
</p>';
|
127 |
}
|
128 |
|
@@ -136,11 +136,11 @@ if( ! $valid_email )
|
|
136 |
echo "<p> ". wpautop( $message ) . "</p>";?>
|
137 |
<form action="<?php echo esc_url( $_SERVER[ 'REQUEST_URI' ]);?>" method="post" name="sub-form">
|
138 |
<fieldset style="border:0">
|
139 |
-
<p><label for="subscribe_reloaded_email"><?php _e( 'Email', 'subscribe-reloaded' ) ?></label>
|
140 |
<input id='subscribe_reloaded_email' type="text" class="subscribe-form-field" name="sre" value="<?php echo esc_attr( $email ); ?>" size="22" />
|
141 |
-
<input name="submit" type="submit" class="subscribe-form-button" value="<?php _e( 'Send', 'subscribe-reloaded' ) ?>" />
|
142 |
</p>
|
143 |
-
<p class="notice-email-error" style='color: #f55252;font-weight:bold;'><i class="fa fa-exclamation-triangle"></i> <?php _e("Email address is not valid",
|
144 |
</fieldset>
|
145 |
</form>
|
146 |
<?php
|
@@ -163,12 +163,12 @@ if( ! $valid_email )
|
|
163 |
if( email.val() !== "email" && email.val() === "" )
|
164 |
{
|
165 |
event.preventDefault();
|
166 |
-
$(".notice-email-error").html("<i class=\"fa fa-exclamation-triangle\"></i> <?php _e("Please enter your email",
|
167 |
}
|
168 |
else if( emailRegex.test( email.val() ) === false )
|
169 |
{
|
170 |
event.preventDefault();
|
171 |
-
$(".notice-email-error").html("<i class=\"fa fa-exclamation-triangle\"></i> <?php _e("Email address is not valid",
|
172 |
}
|
173 |
});
|
174 |
|
110 |
<p><?php echo wpautop( $message ); ?></p>
|
111 |
<form action="<?php echo esc_url( $_SERVER[ 'REQUEST_URI' ]);?>" method="post" name="sub-form">
|
112 |
<fieldset style="border:0">
|
113 |
+
<p><label for="subscribe_reloaded_email"><?php _e( 'Email', 'subscribe-to-comments-reloaded' ) ?></label>
|
114 |
<input id='subscribe_reloaded_email' type="text" class="subscribe-form-field" name="sre" value="<?php echo esc_attr( $email ); ?>" size="22" />
|
115 |
+
<input name="submit" type="submit" class="subscribe-form-button" value="<?php _e( 'Send', 'subscribe-to-comments-reloaded' ) ?>" />
|
116 |
</p>
|
117 |
<p class="notice-email-error" style='color: #f55252;font-weight:bold; display: none;'></p>
|
118 |
</fieldset>
|
122 |
if ( isset( $post_permalink ) )
|
123 |
{
|
124 |
echo '<p id="subscribe-reloaded-update-p">
|
125 |
+
<a style="margin-right: 10px; text-decoration: none; box-shadow: unset;" href="'. esc_url( $post_permalink ) .'"><i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true" style="vertical-align: middle;"></i> '. __('Return to Post','subscribe-to-comments-reloaded').'</a>
|
126 |
</p>';
|
127 |
}
|
128 |
|
136 |
echo "<p> ". wpautop( $message ) . "</p>";?>
|
137 |
<form action="<?php echo esc_url( $_SERVER[ 'REQUEST_URI' ]);?>" method="post" name="sub-form">
|
138 |
<fieldset style="border:0">
|
139 |
+
<p><label for="subscribe_reloaded_email"><?php _e( 'Email', 'subscribe-to-comments-reloaded' ) ?></label>
|
140 |
<input id='subscribe_reloaded_email' type="text" class="subscribe-form-field" name="sre" value="<?php echo esc_attr( $email ); ?>" size="22" />
|
141 |
+
<input name="submit" type="submit" class="subscribe-form-button" value="<?php _e( 'Send', 'subscribe-to-comments-reloaded' ) ?>" />
|
142 |
</p>
|
143 |
+
<p class="notice-email-error" style='color: #f55252;font-weight:bold;'><i class="fa fa-exclamation-triangle"></i> <?php _e("Email address is not valid", 'subscribe-to-comments-reloaded') ?></p>
|
144 |
</fieldset>
|
145 |
</form>
|
146 |
<?php
|
163 |
if( email.val() !== "email" && email.val() === "" )
|
164 |
{
|
165 |
event.preventDefault();
|
166 |
+
$(".notice-email-error").html("<i class=\"fa fa-exclamation-triangle\"></i> <?php _e("Please enter your email", 'subscribe-to-comments-reloaded') ?>").show().delay(4000).fadeOut(1000);
|
167 |
}
|
168 |
else if( emailRegex.test( email.val() ) === false )
|
169 |
{
|
170 |
event.preventDefault();
|
171 |
+
$(".notice-email-error").html("<i class=\"fa fa-exclamation-triangle\"></i> <?php _e("Email address is not valid", 'subscribe-to-comments-reloaded') ?>").show().delay(4000).fadeOut(1000);
|
172 |
}
|
173 |
});
|
174 |
|
templates/subscribe.php
CHANGED
@@ -57,8 +57,8 @@ if ( ! empty( $email ) ) {
|
|
57 |
$from_name = stripslashes( get_option( 'subscribe_reloaded_from_name', 'admin' ) );
|
58 |
$from_email = get_option( 'subscribe_reloaded_from_email', get_bloginfo( 'admin_email' ) );
|
59 |
|
60 |
-
$subject = __( 'New subscription to', 'subscribe-reloaded' ) . " $target_post->post_title";
|
61 |
-
$message = __( 'New subscription to', 'subscribe-reloaded' ) . " $target_post->post_title\n" . __( 'User:', 'subscribe-reloaded' ) . " $clean_email";
|
62 |
// Prepare email settings
|
63 |
$email_settings = array(
|
64 |
'subject' => $subject,
|
@@ -104,7 +104,7 @@ else {
|
|
104 |
}
|
105 |
|
106 |
echo "<p>";
|
107 |
-
$message = str_replace( '[post_permalink]', $post_permalink,
|
108 |
if ( function_exists( 'qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage' ) ) {
|
109 |
$message = str_replace( '[post_title]', qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $target_post->post_title ), $message );
|
110 |
$message = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $message );
|
@@ -118,9 +118,9 @@ else {
|
|
118 |
echo esc_url( $_SERVER[ 'REQUEST_URI' ]);?>"
|
119 |
method="post" name="sub-form">
|
120 |
<fieldset style="border:0">
|
121 |
-
<p><label for="sre"><?php _e( 'Email', 'subscribe-reloaded' ) ?></label>
|
122 |
<input id='sre' type="text" class="subscribe-form-field" name="sre" value="<?php echo esc_attr( $email ); ?>" size="22" />
|
123 |
-
<input name="submit" type="submit" class="subscribe-form-button" value="<?php _e( 'Send', 'subscribe-reloaded' ) ?>" />
|
124 |
<p class="notice-email-error" style='color: #f55252;font-weight:bold; display: none;'></p>
|
125 |
</p>
|
126 |
</fieldset>
|
@@ -130,7 +130,7 @@ else {
|
|
130 |
if( ! $valid_email )
|
131 |
{
|
132 |
echo "<p>";
|
133 |
-
$message = str_replace( '[post_permalink]', $post_permalink,
|
134 |
if ( function_exists( 'qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage' ) ) {
|
135 |
$message = str_replace( '[post_title]', qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $target_post->post_title ), $message );
|
136 |
$message = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $message );
|
@@ -143,11 +143,11 @@ if( ! $valid_email )
|
|
143 |
?>
|
144 |
<form action="<?php echo esc_url( $_SERVER[ 'REQUEST_URI' ]);?>" method="post" name="sub-form">
|
145 |
<fieldset style="border:0">
|
146 |
-
<p><label for="sre"><?php _e( 'Email', 'subscribe-reloaded' ) ?></label>
|
147 |
<input id='sre' type="text" class="subscribe-form-field" name="sre" value="<?php echo esc_attr( $email ); ?>" size="22" onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue" />
|
148 |
-
<input name="submit" type="submit" class="subscribe-form-button" value="<?php _e( 'Send', 'subscribe-reloaded' ) ?>" />
|
149 |
</p>
|
150 |
-
<p style='color: #f55252;font-weight:bold;'><i class="fa fa-exclamation-triangle"></i> <?php _e("Email address is not valid",
|
151 |
</fieldset>
|
152 |
</form>
|
153 |
<?php
|
@@ -170,12 +170,12 @@ if( ! $valid_email )
|
|
170 |
if( email.val() !== "email" && email.val() === "" )
|
171 |
{
|
172 |
event.preventDefault();
|
173 |
-
$(".notice-email-error").html("<i class=\"fa fa-exclamation-triangle\"></i> <?php _e("Please enter your email",
|
174 |
}
|
175 |
else if( emailRegex.test( email.val() ) === false )
|
176 |
{
|
177 |
event.preventDefault();
|
178 |
-
$(".notice-email-error").html("<i class=\"fa fa-exclamation-triangle\"></i> <?php _e("Email address is not valid",
|
179 |
}
|
180 |
});
|
181 |
|
57 |
$from_name = stripslashes( get_option( 'subscribe_reloaded_from_name', 'admin' ) );
|
58 |
$from_email = get_option( 'subscribe_reloaded_from_email', get_bloginfo( 'admin_email' ) );
|
59 |
|
60 |
+
$subject = __( 'New subscription to', 'subscribe-to-comments-reloaded' ) . " $target_post->post_title";
|
61 |
+
$message = __( 'New subscription to', 'subscribe-to-comments-reloaded' ) . " $target_post->post_title\n" . __( 'User:', 'subscribe-to-comments-reloaded' ) . " $clean_email";
|
62 |
// Prepare email settings
|
63 |
$email_settings = array(
|
64 |
'subject' => $subject,
|
104 |
}
|
105 |
|
106 |
echo "<p>";
|
107 |
+
$message = str_replace( '[post_permalink]', $post_permalink, html_entity_decode( stripslashes( get_option( 'subscribe_reloaded_subscribe_without_commenting' ) ), ENT_QUOTES, 'UTF-8' ) );
|
108 |
if ( function_exists( 'qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage' ) ) {
|
109 |
$message = str_replace( '[post_title]', qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $target_post->post_title ), $message );
|
110 |
$message = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $message );
|
118 |
echo esc_url( $_SERVER[ 'REQUEST_URI' ]);?>"
|
119 |
method="post" name="sub-form">
|
120 |
<fieldset style="border:0">
|
121 |
+
<p><label for="sre"><?php _e( 'Email', 'subscribe-to-comments-reloaded' ) ?></label>
|
122 |
<input id='sre' type="text" class="subscribe-form-field" name="sre" value="<?php echo esc_attr( $email ); ?>" size="22" />
|
123 |
+
<input name="submit" type="submit" class="subscribe-form-button" value="<?php _e( 'Send', 'subscribe-to-comments-reloaded' ) ?>" />
|
124 |
<p class="notice-email-error" style='color: #f55252;font-weight:bold; display: none;'></p>
|
125 |
</p>
|
126 |
</fieldset>
|
130 |
if( ! $valid_email )
|
131 |
{
|
132 |
echo "<p>";
|
133 |
+
$message = str_replace( '[post_permalink]', $post_permalink, html_entity_decode( stripslashes( get_option( 'subscribe_reloaded_subscribe_without_commenting' ) ), ENT_QUOTES, 'UTF-8' ) );
|
134 |
if ( function_exists( 'qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage' ) ) {
|
135 |
$message = str_replace( '[post_title]', qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $target_post->post_title ), $message );
|
136 |
$message = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $message );
|
143 |
?>
|
144 |
<form action="<?php echo esc_url( $_SERVER[ 'REQUEST_URI' ]);?>" method="post" name="sub-form">
|
145 |
<fieldset style="border:0">
|
146 |
+
<p><label for="sre"><?php _e( 'Email', 'subscribe-to-comments-reloaded' ) ?></label>
|
147 |
<input id='sre' type="text" class="subscribe-form-field" name="sre" value="<?php echo esc_attr( $email ); ?>" size="22" onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue" />
|
148 |
+
<input name="submit" type="submit" class="subscribe-form-button" value="<?php _e( 'Send', 'subscribe-to-comments-reloaded' ) ?>" />
|
149 |
</p>
|
150 |
+
<p style='color: #f55252;font-weight:bold;'><i class="fa fa-exclamation-triangle"></i> <?php _e("Email address is not valid", 'subscribe-to-comments-reloaded') ?></p>
|
151 |
</fieldset>
|
152 |
</form>
|
153 |
<?php
|
170 |
if( email.val() !== "email" && email.val() === "" )
|
171 |
{
|
172 |
event.preventDefault();
|
173 |
+
$(".notice-email-error").html("<i class=\"fa fa-exclamation-triangle\"></i> <?php _e("Please enter your email", 'subscribe-to-comments-reloaded') ?>").show().delay(4000).fadeOut(1000);
|
174 |
}
|
175 |
else if( emailRegex.test( email.val() ) === false )
|
176 |
{
|
177 |
event.preventDefault();
|
178 |
+
$(".notice-email-error").html("<i class=\"fa fa-exclamation-triangle\"></i> <?php _e("Email address is not valid", 'subscribe-to-comments-reloaded') ?>").show().delay(4000).fadeOut(1000);
|
179 |
}
|
180 |
});
|
181 |
|
templates/user.php
CHANGED
@@ -31,23 +31,23 @@ if ( ! empty( $_POST['post_list'] ) ) {
|
|
31 |
switch ( $action ) {
|
32 |
case 'delete':
|
33 |
$rows_affected = $wp_subscribe_reloaded->stcr->delete_subscriptions( $post_list, $email );
|
34 |
-
echo '<p class="updated">' . __( 'Subscriptions deleted:', 'subscribe-reloaded' ) . " $rows_affected</p>";
|
35 |
break;
|
36 |
case 'suspend':
|
37 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email, 'C' );
|
38 |
-
echo '<p class="updated">' . __( 'Subscriptions suspended:', 'subscribe-reloaded' ) . " $rows_affected</p>";
|
39 |
break;
|
40 |
case 'activate':
|
41 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email, '-C' );
|
42 |
-
echo '<p class="updated">' . __( 'Subscriptions activated:', 'subscribe-reloaded' ) . " $rows_affected</p>";
|
43 |
break;
|
44 |
case 'force_y':
|
45 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email, 'Y' );
|
46 |
-
echo '<p class="updated">' . __( 'Subscriptions updated:', 'subscribe-reloaded' ) . " $rows_affected</p>";
|
47 |
break;
|
48 |
case 'force_r':
|
49 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email, 'R' );
|
50 |
-
echo '<p class="updated">' . __( 'Subscriptions updated:', 'subscribe-reloaded' ) . " $rows_affected</p>";
|
51 |
break;
|
52 |
default:
|
53 |
break;
|
@@ -63,26 +63,26 @@ echo "<p>$message</p>";
|
|
63 |
|
64 |
?>
|
65 |
|
66 |
-
<form action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ) ?>" method="post" id="post_list_form" name="post_list_form" 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' ) ?>')">
|
67 |
<fieldset style="border:0">
|
68 |
<?php
|
69 |
$subscriptions = $wp_subscribe_reloaded->stcr->get_subscriptions( 'email', 'equals', $email, 'dt', 'DESC' );
|
70 |
// Let us translate those status
|
71 |
$legend_translate = array(
|
72 |
-
'R' => __( 'Replies', 'subscribe-reloaded'),
|
73 |
-
'RC' => __( 'Replies Unconfirmed', 'subscribe-reloaded'),
|
74 |
-
'Y' => __( "All Comments",
|
75 |
-
'YC' => __( "Unconfirmed",
|
76 |
-
'C' => __( "Inactive",
|
77 |
-
'-C' => __( "Active",
|
78 |
);
|
79 |
if ( is_array( $subscriptions ) && ! empty( $subscriptions ) ) {
|
80 |
-
echo '<p id="subscribe-reloaded-email-p">' . __( 'Email to manage', 'subscribe-reloaded' ) . ': <strong>' . $email . '</strong></p>';
|
81 |
|
82 |
echo "<table class='stcr-subscription-list'><thead><tr>
|
83 |
-
<th style='width:24%; text-align: center;'><i class=\"fa fa-calendar\" aria-hidden=\"true\"></i> ". __('Subscription Date','subscribe-reloaded')."</th>
|
84 |
-
<th style='width:40%;'><i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i> ". __('Title','subscribe-reloaded')."</th>
|
85 |
-
<th style='width:20%; text-align: center;'><i class=\"fa fa-info\" aria-hidden=\"true\"></i> ". __('Subscription Status','subscribe-reloaded')."</th>
|
86 |
</tr></thead>";
|
87 |
echo "<tbody>";
|
88 |
|
@@ -105,31 +105,31 @@ if ( is_array( $subscriptions ) && ! empty( $subscriptions ) ) {
|
|
105 |
|
106 |
echo '<p id="subscribe-reloaded-select-all-p">
|
107 |
<i class="fa fa-expand" aria-hidden="true"></i>
|
108 |
-
<a class="subscribe-reloaded-small-button stcr-subs-select-all" href="#">' . __( 'Select all', 'subscribe-reloaded' ) . '</a> ';
|
109 |
echo ' <i class="fa fa-compress" aria-hidden="true"></i>
|
110 |
-
<a class="subscribe-reloaded-small-button stcr-subs-select-none" href="#">' . __( 'Invert selection', 'subscribe-reloaded' ) . '</a></p>';
|
111 |
-
echo '<p id="subscribe-reloaded-action-p">' . __( 'Action:', 'subscribe-reloaded' );
|
112 |
|
113 |
echo '<select name="sra">';
|
114 |
-
echo '<option value="">'. __( 'Choose your action', 'subscribe-reloaded' ) .'</option>';
|
115 |
-
echo '<option value="delete">'. __( 'Unsubscribe', 'subscribe-reloaded' ) .'</option>';
|
116 |
-
echo '<option value="suspend">'. __( 'Suspend', 'subscribe-reloaded' ) .'</option>';
|
117 |
-
echo '<option value="force_y">'. __( 'All comments', 'subscribe-reloaded' ) .'</option>';
|
118 |
-
echo '<option value="force_r">'. __( 'Replies to my comments', 'subscribe-reloaded' ) .'</option>';
|
119 |
-
// echo '<option value="activate">'. __( 'Activate', 'subscribe-reloaded' ) .'</option>';
|
120 |
echo '<select>';
|
121 |
|
122 |
-
echo ' <input type="submit" class="subscribe-form-button" value="' . __( 'Update subscriptions', 'subscribe-reloaded' ) . '" />
|
123 |
<input type="hidden" name="srek" value="' . $wp_subscribe_reloaded->stcr->utils->get_subscriber_key( $email ) . '"></p>';
|
124 |
|
125 |
if ( isset( $post_permalink ) )
|
126 |
{
|
127 |
echo '<p id="subscribe-reloaded-update-p">
|
128 |
-
<a style="margin-right: 10px; text-decoration: none; box-shadow: unset;" href="'. esc_url( $post_permalink ) .'"><i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true" style="vertical-align: middle;"></i> '. __('Return to Post','subscribe-reloaded').'</a>
|
129 |
</p>';
|
130 |
}
|
131 |
} else {
|
132 |
-
echo '<p>' . __( 'No subscriptions match your search criteria.', 'subscribe-reloaded' ) . '</p>';
|
133 |
}
|
134 |
?>
|
135 |
</fieldset>
|
31 |
switch ( $action ) {
|
32 |
case 'delete':
|
33 |
$rows_affected = $wp_subscribe_reloaded->stcr->delete_subscriptions( $post_list, $email );
|
34 |
+
echo '<p class="updated">' . __( 'Subscriptions deleted:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p>";
|
35 |
break;
|
36 |
case 'suspend':
|
37 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email, 'C' );
|
38 |
+
echo '<p class="updated">' . __( 'Subscriptions suspended:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p>";
|
39 |
break;
|
40 |
case 'activate':
|
41 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email, '-C' );
|
42 |
+
echo '<p class="updated">' . __( 'Subscriptions activated:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p>";
|
43 |
break;
|
44 |
case 'force_y':
|
45 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email, 'Y' );
|
46 |
+
echo '<p class="updated">' . __( 'Subscriptions updated:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p>";
|
47 |
break;
|
48 |
case 'force_r':
|
49 |
$rows_affected = $wp_subscribe_reloaded->stcr->update_subscription_status( $post_list, $email, 'R' );
|
50 |
+
echo '<p class="updated">' . __( 'Subscriptions updated:', 'subscribe-to-comments-reloaded' ) . " $rows_affected</p>";
|
51 |
break;
|
52 |
default:
|
53 |
break;
|
63 |
|
64 |
?>
|
65 |
|
66 |
+
<form action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ) ?>" method="post" id="post_list_form" name="post_list_form" 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' ) ?>')">
|
67 |
<fieldset style="border:0">
|
68 |
<?php
|
69 |
$subscriptions = $wp_subscribe_reloaded->stcr->get_subscriptions( 'email', 'equals', $email, 'dt', 'DESC' );
|
70 |
// Let us translate those status
|
71 |
$legend_translate = array(
|
72 |
+
'R' => __( 'Replies', 'subscribe-to-comments-reloaded'),
|
73 |
+
'RC' => __( 'Replies Unconfirmed', 'subscribe-to-comments-reloaded'),
|
74 |
+
'Y' => __( "All Comments", 'subscribe-to-comments-reloaded'),
|
75 |
+
'YC' => __( "Unconfirmed", 'subscribe-to-comments-reloaded'),
|
76 |
+
'C' => __( "Inactive", 'subscribe-to-comments-reloaded'),
|
77 |
+
'-C' => __( "Active", 'subscribe-to-comments-reloaded')
|
78 |
);
|
79 |
if ( is_array( $subscriptions ) && ! empty( $subscriptions ) ) {
|
80 |
+
echo '<p id="subscribe-reloaded-email-p">' . __( 'Email to manage', 'subscribe-to-comments-reloaded' ) . ': <strong>' . $email . '</strong></p>';
|
81 |
|
82 |
echo "<table class='stcr-subscription-list'><thead><tr>
|
83 |
+
<th style='width:24%; text-align: center;'><i class=\"fa fa-calendar\" aria-hidden=\"true\"></i> ". __('Subscription Date','subscribe-to-comments-reloaded')."</th>
|
84 |
+
<th style='width:40%;'><i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i> ". __('Title','subscribe-to-comments-reloaded')."</th>
|
85 |
+
<th style='width:20%; text-align: center;'><i class=\"fa fa-info\" aria-hidden=\"true\"></i> ". __('Subscription Status','subscribe-to-comments-reloaded')."</th>
|
86 |
</tr></thead>";
|
87 |
echo "<tbody>";
|
88 |
|
105 |
|
106 |
echo '<p id="subscribe-reloaded-select-all-p">
|
107 |
<i class="fa fa-expand" aria-hidden="true"></i>
|
108 |
+
<a class="subscribe-reloaded-small-button stcr-subs-select-all" href="#">' . __( 'Select all', 'subscribe-to-comments-reloaded' ) . '</a> ';
|
109 |
echo ' <i class="fa fa-compress" aria-hidden="true"></i>
|
110 |
+
<a class="subscribe-reloaded-small-button stcr-subs-select-none" href="#">' . __( 'Invert selection', 'subscribe-to-comments-reloaded' ) . '</a></p>';
|
111 |
+
echo '<p id="subscribe-reloaded-action-p">' . __( 'Action:', 'subscribe-to-comments-reloaded' );
|
112 |
|
113 |
echo '<select name="sra">';
|
114 |
+
echo '<option value="">'. __( 'Choose your action', 'subscribe-to-comments-reloaded' ) .'</option>';
|
115 |
+
echo '<option value="delete">'. __( 'Unsubscribe', 'subscribe-to-comments-reloaded' ) .'</option>';
|
116 |
+
echo '<option value="suspend">'. __( 'Suspend', 'subscribe-to-comments-reloaded' ) .'</option>';
|
117 |
+
echo '<option value="force_y">'. __( 'All comments', 'subscribe-to-comments-reloaded' ) .'</option>';
|
118 |
+
echo '<option value="force_r">'. __( 'Replies to my comments', 'subscribe-to-comments-reloaded' ) .'</option>';
|
119 |
+
// echo '<option value="activate">'. __( 'Activate', 'subscribe-to-comments-reloaded' ) .'</option>';
|
120 |
echo '<select>';
|
121 |
|
122 |
+
echo ' <input type="submit" class="subscribe-form-button" value="' . __( 'Update subscriptions', 'subscribe-to-comments-reloaded' ) . '" />
|
123 |
<input type="hidden" name="srek" value="' . $wp_subscribe_reloaded->stcr->utils->get_subscriber_key( $email ) . '"></p>';
|
124 |
|
125 |
if ( isset( $post_permalink ) )
|
126 |
{
|
127 |
echo '<p id="subscribe-reloaded-update-p">
|
128 |
+
<a style="margin-right: 10px; text-decoration: none; box-shadow: unset;" href="'. esc_url( $post_permalink ) .'"><i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true" style="vertical-align: middle;"></i> '. __('Return to Post','subscribe-to-comments-reloaded').'</a>
|
129 |
</p>';
|
130 |
}
|
131 |
} else {
|
132 |
+
echo '<p>' . __( 'No subscriptions match your search criteria.', 'subscribe-to-comments-reloaded' ) . '</p>';
|
133 |
}
|
134 |
?>
|
135 |
</fieldset>
|
templates/wrong-request.php
CHANGED
@@ -6,7 +6,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
6 |
}
|
7 |
|
8 |
ob_start();
|
9 |
-
echo '<p>' . __( 'You have request to manage another email address and this is forbidden.', 'subscribe-reloaded' ) . '</p>';
|
10 |
$output = ob_get_contents();
|
11 |
ob_end_clean();
|
12 |
|
6 |
}
|
7 |
|
8 |
ob_start();
|
9 |
+
echo '<p>' . __( 'You have request to manage another email address and this is forbidden.', 'subscribe-to-comments-reloaded' ) . '</p>';
|
10 |
$output = ob_get_contents();
|
11 |
ob_end_clean();
|
12 |
|
utils/stcr_manage.php
CHANGED
@@ -190,7 +190,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_manage') )
|
|
190 |
*/
|
191 |
public function _activate() {
|
192 |
// Load localization files
|
193 |
-
// load_plugin_textdomain( 'subscribe-reloaded', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
|
194 |
// Upgrade rountine
|
195 |
$this->upgrade();
|
196 |
|
@@ -352,32 +352,32 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_manage') )
|
|
352 |
add_menu_page( $page_title, $menu_title, $capability, $parent_slug, $function, $icon_url, $position );
|
353 |
|
354 |
add_submenu_page( $parent_slug ,
|
355 |
-
__( 'Manage subscriptions', 'subscribe-reloaded' ),
|
356 |
-
__( 'Manage subscriptions', 'subscribe-reloaded' ),
|
357 |
$capability,
|
358 |
"stcr_manage_subscriptions",
|
359 |
array( $this, "stcr_option_manage_subscriptions") );
|
360 |
add_submenu_page( $parent_slug ,
|
361 |
-
__( 'Comment Form', 'subscribe-reloaded' ),
|
362 |
-
__( 'Comment Form', 'subscribe-reloaded' ),
|
363 |
$capability,
|
364 |
"stcr_comment_form",
|
365 |
array( $this, "stcr_option_comment_form" ) );
|
366 |
add_submenu_page( $parent_slug ,
|
367 |
-
__( 'Management Page', 'subscribe-reloaded' ),
|
368 |
-
__( 'Management Page', 'subscribe-reloaded' ),
|
369 |
$capability,
|
370 |
"stcr_management_page",
|
371 |
array( $this, "stcr_option_management_page" ) );
|
372 |
add_submenu_page( $parent_slug ,
|
373 |
-
__( 'Notifications', 'subscribe-reloaded' ),
|
374 |
-
__( 'Notifications', 'subscribe-reloaded' ),
|
375 |
$capability,
|
376 |
"stcr_notifications",
|
377 |
array( $this, "stcr_option_notifications" ) );
|
378 |
add_submenu_page( $parent_slug ,
|
379 |
-
__( 'Options', 'subscribe-reloaded' ),
|
380 |
-
__( 'Options', 'subscribe-reloaded' ),
|
381 |
$capability,
|
382 |
"stcr_options",
|
383 |
array( $this, "stcr_option_options" ) );
|
@@ -386,27 +386,27 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_manage') )
|
|
386 |
// since this requires much effort this is pointe to go to the pro version. NO ETA avaiable.
|
387 |
//
|
388 |
// add_submenu_page( $parent_slug ,
|
389 |
-
// __( 'Subscribers Emails', 'subscribe-reloaded' ),
|
390 |
-
// __( 'Subscribers Emails', 'subscribe-reloaded' ),
|
391 |
// $capability,
|
392 |
// "stcr_subscribers_emails",
|
393 |
// array( $this, "stcr_option_subscribers_emails" ) );
|
394 |
|
395 |
add_submenu_page( $parent_slug ,
|
396 |
-
__( 'Support', 'subscribe-reloaded' ),
|
397 |
-
__( 'Support', 'subscribe-reloaded' ),
|
398 |
$capability,
|
399 |
"stcr_support",
|
400 |
array( $this, "stcr_option_support" ) );
|
401 |
// add_submenu_page( $parent_slug ,
|
402 |
-
// __( 'Donate', 'subscribe-reloaded' ),
|
403 |
-
// __( 'Donate', 'subscribe-reloaded' ),
|
404 |
// $capability,
|
405 |
// "stcr_donate",
|
406 |
// array( $this, "stcr_option_donate" ) );
|
407 |
add_submenu_page( $parent_slug ,
|
408 |
-
__( 'StCR System', 'subscribe-reloaded' ),
|
409 |
-
__( 'StCR System', 'subscribe-reloaded' ),
|
410 |
$capability,
|
411 |
"stcr_system",
|
412 |
array( $this, "stcr_option_system" ) );
|
@@ -672,7 +672,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_manage') )
|
|
672 |
*/
|
673 |
public function add_column_header( $_columns ) {
|
674 |
$image_url = ( is_ssl() ? str_replace( 'http://', 'https://', WP_PLUGIN_URL ) : WP_PLUGIN_URL ) . '/subscribe-to-comments-reloaded/images';
|
675 |
-
$image_tooltip = __( 'Subscriptions', 'subscribe-reloaded' );
|
676 |
$_columns['subscribe-reloaded'] = "<img src='$image_url/subscribe-to-comments-small.png' width='17' height='12' alt='" . $image_tooltip . "' title='" . $image_tooltip . "' />";
|
677 |
|
678 |
return $_columns;
|
@@ -701,7 +701,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_manage') )
|
|
701 |
), 'dt', 'DESC', 0, 1
|
702 |
);
|
703 |
if ( count( $subscription ) == 0 ) {
|
704 |
-
echo '<a href="admin.php?page=stcr_manage_subscriptions&subscribepanel=1&sra=add-subscription&srp=' . $comment->comment_post_ID . '&sre=' . urlencode( $comment->comment_author_email ) . '">' . __( 'No', 'subscribe-reloaded' ) . '</a>';
|
705 |
} else {
|
706 |
echo '<a href="admin.php?page=stcr_manage_subscriptions&subscribepanel=1&srf=email&srt=equals&srv=' . urlencode( $comment->comment_author_email ) . '">' . $subscription[0]->status . '</a>';
|
707 |
}
|
@@ -727,8 +727,8 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_manage') )
|
|
727 |
*/
|
728 |
public function contextual_help( $contextual_help, $screen_id, $screen ) {
|
729 |
if ( $screen_id == 'subscribe-to-comments-reloaded/options/index' ) {
|
730 |
-
load_plugin_textdomain( 'subscribe-reloaded', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
|
731 |
-
$contextual_help = __( 'Need help on how to use Subscribe to Comments Reloaded? Visit the official', 'subscribe-reloaded' ) . ' <a href="http://wordpress.org/tags/subscribe-to-comments-reloaded?forum_id=10" target="_blank">' . __( 'support forum', 'subscribe-reloaded' ) . '</a>. ';
|
732 |
}
|
733 |
|
734 |
return $contextual_help;
|
190 |
*/
|
191 |
public function _activate() {
|
192 |
// Load localization files
|
193 |
+
// load_plugin_textdomain( 'subscribe-to-comments-reloaded', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
|
194 |
// Upgrade rountine
|
195 |
$this->upgrade();
|
196 |
|
352 |
add_menu_page( $page_title, $menu_title, $capability, $parent_slug, $function, $icon_url, $position );
|
353 |
|
354 |
add_submenu_page( $parent_slug ,
|
355 |
+
__( 'Manage subscriptions', 'subscribe-to-comments-reloaded' ),
|
356 |
+
__( 'Manage subscriptions', 'subscribe-to-comments-reloaded' ),
|
357 |
$capability,
|
358 |
"stcr_manage_subscriptions",
|
359 |
array( $this, "stcr_option_manage_subscriptions") );
|
360 |
add_submenu_page( $parent_slug ,
|
361 |
+
__( 'Comment Form', 'subscribe-to-comments-reloaded' ),
|
362 |
+
__( 'Comment Form', 'subscribe-to-comments-reloaded' ),
|
363 |
$capability,
|
364 |
"stcr_comment_form",
|
365 |
array( $this, "stcr_option_comment_form" ) );
|
366 |
add_submenu_page( $parent_slug ,
|
367 |
+
__( 'Management Page', 'subscribe-to-comments-reloaded' ),
|
368 |
+
__( 'Management Page', 'subscribe-to-comments-reloaded' ),
|
369 |
$capability,
|
370 |
"stcr_management_page",
|
371 |
array( $this, "stcr_option_management_page" ) );
|
372 |
add_submenu_page( $parent_slug ,
|
373 |
+
__( 'Notifications', 'subscribe-to-comments-reloaded' ),
|
374 |
+
__( 'Notifications', 'subscribe-to-comments-reloaded' ),
|
375 |
$capability,
|
376 |
"stcr_notifications",
|
377 |
array( $this, "stcr_option_notifications" ) );
|
378 |
add_submenu_page( $parent_slug ,
|
379 |
+
__( 'Options', 'subscribe-to-comments-reloaded' ),
|
380 |
+
__( 'Options', 'subscribe-to-comments-reloaded' ),
|
381 |
$capability,
|
382 |
"stcr_options",
|
383 |
array( $this, "stcr_option_options" ) );
|
386 |
// since this requires much effort this is pointe to go to the pro version. NO ETA avaiable.
|
387 |
//
|
388 |
// add_submenu_page( $parent_slug ,
|
389 |
+
// __( 'Subscribers Emails', 'subscribe-to-comments-reloaded' ),
|
390 |
+
// __( 'Subscribers Emails', 'subscribe-to-comments-reloaded' ),
|
391 |
// $capability,
|
392 |
// "stcr_subscribers_emails",
|
393 |
// array( $this, "stcr_option_subscribers_emails" ) );
|
394 |
|
395 |
add_submenu_page( $parent_slug ,
|
396 |
+
__( 'Support', 'subscribe-to-comments-reloaded' ),
|
397 |
+
__( 'Support', 'subscribe-to-comments-reloaded' ),
|
398 |
$capability,
|
399 |
"stcr_support",
|
400 |
array( $this, "stcr_option_support" ) );
|
401 |
// add_submenu_page( $parent_slug ,
|
402 |
+
// __( 'Donate', 'subscribe-to-comments-reloaded' ),
|
403 |
+
// __( 'Donate', 'subscribe-to-comments-reloaded' ),
|
404 |
// $capability,
|
405 |
// "stcr_donate",
|
406 |
// array( $this, "stcr_option_donate" ) );
|
407 |
add_submenu_page( $parent_slug ,
|
408 |
+
__( 'StCR System', 'subscribe-to-comments-reloaded' ),
|
409 |
+
__( 'StCR System', 'subscribe-to-comments-reloaded' ),
|
410 |
$capability,
|
411 |
"stcr_system",
|
412 |
array( $this, "stcr_option_system" ) );
|
672 |
*/
|
673 |
public function add_column_header( $_columns ) {
|
674 |
$image_url = ( is_ssl() ? str_replace( 'http://', 'https://', WP_PLUGIN_URL ) : WP_PLUGIN_URL ) . '/subscribe-to-comments-reloaded/images';
|
675 |
+
$image_tooltip = __( 'Subscriptions', 'subscribe-to-comments-reloaded' );
|
676 |
$_columns['subscribe-reloaded'] = "<img src='$image_url/subscribe-to-comments-small.png' width='17' height='12' alt='" . $image_tooltip . "' title='" . $image_tooltip . "' />";
|
677 |
|
678 |
return $_columns;
|
701 |
), 'dt', 'DESC', 0, 1
|
702 |
);
|
703 |
if ( count( $subscription ) == 0 ) {
|
704 |
+
echo '<a href="admin.php?page=stcr_manage_subscriptions&subscribepanel=1&sra=add-subscription&srp=' . $comment->comment_post_ID . '&sre=' . urlencode( $comment->comment_author_email ) . '">' . __( 'No', 'subscribe-to-comments-reloaded' ) . '</a>';
|
705 |
} else {
|
706 |
echo '<a href="admin.php?page=stcr_manage_subscriptions&subscribepanel=1&srf=email&srt=equals&srv=' . urlencode( $comment->comment_author_email ) . '">' . $subscription[0]->status . '</a>';
|
707 |
}
|
727 |
*/
|
728 |
public function contextual_help( $contextual_help, $screen_id, $screen ) {
|
729 |
if ( $screen_id == 'subscribe-to-comments-reloaded/options/index' ) {
|
730 |
+
load_plugin_textdomain( 'subscribe-to-comments-reloaded', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
|
731 |
+
$contextual_help = __( 'Need help on how to use Subscribe to Comments Reloaded? Visit the official', 'subscribe-to-comments-reloaded' ) . ' <a href="http://wordpress.org/tags/subscribe-to-comments-reloaded?forum_id=10" target="_blank">' . __( 'support forum', 'subscribe-to-comments-reloaded' ) . '</a>. ';
|
732 |
}
|
733 |
|
734 |
return $contextual_help;
|
utils/stcr_upgrade.php
CHANGED
@@ -69,7 +69,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
69 |
$OK = $this->add_user_subscriber_table( $email->email );
|
70 |
if ( ! $OK) {
|
71 |
$notices = get_option( 'subscribe_reloaded_deferred_admin_notices', array() );
|
72 |
-
$notices[] = '<div class="error"><h3>' . __( 'Important Notice', 'subscribe-reloaded' ) . '</h3>' .
|
73 |
'<p>The creation of of the table <strong>' . $wpdb->prefix . 'subscribe_reloaded_subscribers</strong> failed</p></div>';
|
74 |
update_option( 'subscribe_reloaded_deferred_admin_notices', $notices );
|
75 |
break 1;
|
@@ -118,7 +118,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
118 |
'notify_update_sanitize_db_options',
|
119 |
'unread',
|
120 |
'<p>' . __( '<strong>Subscribe to Comments Reloaded:</strong> The information in your database has been sanitized to prevent the raw html messages. <a class="dismiss" href="#">Dismiss. </a>'
|
121 |
-
. '<img class="stcr-loading-animation" src="'. esc_url( admin_url() . '/images/loading.gif'). '" alt="Working...">' , 'subscribe-reloaded' )
|
122 |
. '</p>',
|
123 |
'updated'
|
124 |
);
|
@@ -172,11 +172,11 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
172 |
$this->stcr_create_admin_notice(
|
173 |
'notify_import_stc_data',
|
174 |
'unread',
|
175 |
-
'<p>' . __( '<strong>Subscribe to Comments Reloaded:</strong> Comment subscription data from the <strong>Subscribe to Comments</strong> plugin was detected and automatically imported into <strong>Subscribe to Comments Reloaded</strong>.', 'subscribe-reloaded' ) . ( is_plugin_active( 'subscribe-to-comments/subscribe-to-comments.php' ) ? __( ' It is recommended that you now <strong>deactivate</strong> Subscribe to Comments to prevent confusion between the two plugins.', 'subscribe-reloaded' ) : '' ) . '</p>' .
|
176 |
-
'<p>' . __( 'If you have subscription data from Subscribe to Comments Reloaded < v2.0 that you want to import, you\'ll need to import that data manually, as only one import routine will ever run to prevent data loss.', 'subscribe-reloaded' ) . '</p>' .
|
177 |
'<p>' . __( 'Please visit <a href="options-general.php?page=subscribe-to-comments-reloaded/options/index.php">Settings -> Subscribe to Comments</a> to review your configuration.'
|
178 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
179 |
-
. '<img class="stcr-loading-animation" src="'. esc_url( admin_url() . '/images/loading.gif'). '" alt="Working...">', 'subscribe-reloaded' ) . '</p>',
|
180 |
'updated'
|
181 |
);
|
182 |
}
|
@@ -247,10 +247,10 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
247 |
$this->stcr_create_admin_notice(
|
248 |
'notify_import_comment_reply',
|
249 |
'unread',
|
250 |
-
'<p>' . __( '<strong>Subscribe to Comments Reloaded:</strong> Comment subscription data from the <strong>Comment Reply Notification</strong> plugin was detected and automatically imported into <strong>Subscribe to Comments Reloaded</strong>.', 'subscribe-reloaded' ) . ( is_plugin_active( 'comment-reply-notification/comment-reply-notification.php' ) ? __( ' It is recommended that you now <strong>deactivate</strong> Comment Reply Notification to prevent confusion between the two plugins.', 'subscribe-reloaded' ) : '' ) . '</p>' .
|
251 |
'<p>' . __( 'Please visit <a href="options-general.php?page=subscribe-to-comments-reloaded/options/index.php">Settings -> Subscribe to Comments</a> to review your configuration.'
|
252 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
253 |
-
. '<img class="stcr-loading-animation" src="'. esc_url( admin_url() . '/images/loading.gif'). '" alt="Working...">', 'subscribe-reloaded' ) . '</p>',
|
254 |
'updated'
|
255 |
);
|
256 |
}
|
@@ -394,12 +394,12 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
394 |
$this->stcr_create_admin_notice(
|
395 |
'notify_import_wpcs_data',
|
396 |
'unread',
|
397 |
-
'<p>' . __( '<strong>Subscribe to Comments Reloaded:</strong> Plugin options and comment subscription data from the <strong>WP Comment Subscriptions</strong> plugin were detected and automatically imported into <strong>Subscribe to Comments Reloaded</strong>.', 'subscribe-reloaded' ) . ( is_plugin_active( 'wp-comment-subscriptions/wp-comment-subscriptions.php' ) ? __( ' It is recommended that you now <strong>deactivate</strong> WP Comment Subscriptions to prevent confusion between the two plugins.', 'subscribe-reloaded' ) : '' ) . '</p>' .
|
398 |
-
'<p>' . __( 'If you have subscription data from another plugin (such as Subscribe to Comments or Subscribe to Comments Reloaded < v2.0) that you want to import, you\'ll need to import that data manually, as only one import routine will ever run to prevent data loss.', 'subscribe-reloaded' ) . '</p>' .
|
399 |
-
'<p>' . __( '<strong>Note:</strong> If you were previously using the <code>wp_comment_subscriptions_show()</code> function or the <code>[wpcs-subscribe-url]</code> shortcode, you\'ll need to replace those with <code>subscribe_reloaded_show()</code> and <code>[subscribe-url]</code> respectively.', 'subscribe-reloaded' ) . '</p>' .
|
400 |
'<p>' . __( 'Please visit <a href="options-general.php?page=subscribe-to-comments-reloaded/options/index.php">Settings -> Subscribe to Comments</a> to review your configuration.'
|
401 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
402 |
-
. '<img class="stcr-loading-animation" src="'. esc_url( admin_url() . '/images/loading.gif'). '" alt="Working...">', 'subscribe-reloaded' ) . '</p>',
|
403 |
'updated'
|
404 |
);
|
405 |
}
|
@@ -407,8 +407,8 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
407 |
// end _import_wpcs_data
|
408 |
public function upgrade_notification( $_version, $_db_version, $_fresh_install ) {
|
409 |
|
410 |
-
$options_link = sprintf( '<a href="%s"> %s </a>', admin_url( 'admin.php?page=stcr_options' ), __( 'Settings', 'subscribe-reloaded' ) );
|
411 |
-
$system_link = sprintf( '<a href="%s"> %s </a>', admin_url( 'admin.php?page=stcr_system' ), __( 'Log Settings', 'subscribe-reloaded' ) );
|
412 |
|
413 |
if( ! $_fresh_install ) {
|
414 |
|
@@ -417,11 +417,11 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
417 |
$this->stcr_create_admin_notice(
|
418 |
'notify_update_' . $_version,
|
419 |
'unread',
|
420 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160106.', 'subscribe-reloaded') . '</p>' .
|
421 |
-
'<p>' . __('This version includes many changes and fixes to improve your experience with the plugin, including One Click Unsubscribe, Rich Text Editor to create HTML email templates, Subscription Checkbox position, and more!', 'subscribe-reloaded') . '</p>' .
|
422 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
423 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
424 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-reloaded') . '</p>',
|
425 |
'updated'
|
426 |
);
|
427 |
// Update the HTML emails option
|
@@ -432,11 +432,11 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
432 |
$this->stcr_create_admin_notice(
|
433 |
'notify_update_' . $_version,
|
434 |
'unread',
|
435 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160115.', 'subscribe-reloaded') . '</p>' .
|
436 |
-
'<p>' . __('This version includes fixes to broken links while managing your subscriptions', 'subscribe-reloaded') . '</p>' .
|
437 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
438 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
439 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-reloaded') . '</p>',
|
440 |
'updated'
|
441 |
);
|
442 |
// Update the HTML emails option
|
@@ -447,18 +447,18 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
447 |
$this->stcr_create_admin_notice(
|
448 |
'notify_update_' . $_version,
|
449 |
'unread',
|
450 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160831', 'subscribe-reloaded') . '</p>' .
|
451 |
-
'<p>' . __('This version includes fixes to many bugs and also new features, ', 'subscribe-reloaded') . '</p>' .
|
452 |
'<ul>' .
|
453 |
-
'<li>' . __("<strong>New Feature</strong> Add new option to set the Reply To email address. This will help the subscribers to use the Reply option in their email agents.", 'subscribe-reloaded') . '</li>'.
|
454 |
-
'<li>' . __("<strong>New Feature</strong> Improve the Admin Menu for StCR. Replace the StCR menu on the Settings Menu for a new Menu with sub menus for the pages.", 'subscribe-reloaded') . '</li>'.
|
455 |
-
'<li>' . __("<strong>New Feature</strong> Safely Uninstall option to Delete the plugin without loosing your subscriptions. You can use this option also for reset all the settings, see the FAQ.", 'subscribe-reloaded') . '</li>'.
|
456 |
-
'<li>' . __("<strong>New Feature</strong> Now the WordPress Authors can use the <strong>Subscribe authors</strong> option to autor subscribe to a Custom Post Type.", 'subscribe-reloaded') . '</li>'.
|
457 |
-
'<li>' . __("<strong>New Feature</strong> A new field was added under the notification options to and the management link only by email and not to display it on the request link page.", 'subscribe-reloaded') . '</li>'.
|
458 |
'</ul>' .
|
459 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
460 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
461 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-reloaded') . '</p>',
|
462 |
'updated'
|
463 |
);
|
464 |
// Update the HTML emails option
|
@@ -469,19 +469,19 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
469 |
$this->stcr_create_admin_notice(
|
470 |
'notify_update_' . $_version,
|
471 |
'unread',
|
472 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160902', 'subscribe-reloaded') . '</p>' .
|
473 |
-
'<p>' . __('This version includes fixes to many bugs and also new features, ', 'subscribe-reloaded') . '</p>' .
|
474 |
'<ul>' .
|
475 |
-
'<li>' . __("<strong>Fix update</strong> this version Fixes some issue trigger by the previous 160831 version.", 'subscribe-reloaded') . '</li>'.
|
476 |
-
'<li>' . __("<strong>New Feature</strong> Add new option to set the Reply To email address. This will help the subscribers to use the Reply option in their email agents.", 'subscribe-reloaded') . '</li>'.
|
477 |
-
'<li>' . __("<strong>New Feature</strong> Improve the Admin Menu for StCR. Replace the StCR menu on the Settings Menu for a new Menu with sub menus for the pages.", 'subscribe-reloaded') . '</li>'.
|
478 |
-
'<li>' . __("<strong>New Feature</strong> Safely Uninstall option to Delete the plugin without loosing your subscriptions. You can use this option also for reset all the settings, see the FAQ.", 'subscribe-reloaded') . '</li>'.
|
479 |
-
'<li>' . __("<strong>New Feature</strong> Now the WordPress Authors can use the <strong>Subscribe authors</strong> option to autor subscribe to a Custom Post Type.", 'subscribe-reloaded') . '</li>'.
|
480 |
-
'<li>' . __("<strong>New Feature</strong> A new field was added under the notification options to and the management link only by email and not to display it on the request link page.", 'subscribe-reloaded') . '</li>'.
|
481 |
'</ul>' .
|
482 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
483 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
484 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-reloaded') . '</p>',
|
485 |
'updated'
|
486 |
);
|
487 |
// Update the HTML emails option
|
@@ -489,20 +489,20 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
489 |
update_option( 'subscribe_reloaded_enable_html_emails', 'yes' );
|
490 |
break;
|
491 |
case '160915':
|
492 |
-
$options_link = sprintf( '<a href="%s"> %s </a>', admin_url( 'admin.php?page=stcr_options' ), __( 'Settings', 'subscribe-reloaded' ) );
|
493 |
$this->stcr_create_admin_notice(
|
494 |
'notify_update_' . $_version,
|
495 |
'unread',
|
496 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160915', 'subscribe-reloaded') . '</p>' .
|
497 |
-
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-reloaded') . '</p>' .
|
498 |
'<ul>' .
|
499 |
-
'<li>' . __("<strong>Fix</strong> StCR checkbox position issues with some WordPress themes, Go to the {$options_link} to activate it.", 'subscribe-reloaded') . '</li>'.
|
500 |
-
'<li>' . __("<strong>Change</strong> the radio buttons in the management page for a dropdown.", 'subscribe-reloaded') . '</li>'.
|
501 |
-
'<li>' . __("<strong>Improve</strong> Email validation for empty values and using a regex.", 'subscribe-reloaded') . '</li>'.
|
502 |
'</ul>' .
|
503 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
504 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
505 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-reloaded') . '</p>',
|
506 |
'updated'
|
507 |
);
|
508 |
// Update the HTML emails option
|
@@ -513,19 +513,19 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
513 |
$this->stcr_create_admin_notice(
|
514 |
'notify_update_' . $_version,
|
515 |
'unread',
|
516 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-reloaded') . '</p>' .
|
517 |
-
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-reloaded') . '</p>' .
|
518 |
|
519 |
'<ul>' .
|
520 |
-
'<li>' . __("<strong>Fix</strong> Wrong confirmation link when the double check option is enable.", 'subscribe-reloaded') . '</li>'.
|
521 |
-
'<li>' . __("<strong>Improve</strong> Manage subscription page. Take a look ;).", 'subscribe-reloaded') . '</li>'.
|
522 |
-
'<li>' . __("<strong>Improve</strong> Log file manipulation. Now you can control how the log behaves, take a look at the {$system_link}.", 'subscribe-reloaded') . '</li>'.
|
523 |
'</ul>' .
|
524 |
|
525 |
-
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-reloaded') . '</p>' .
|
526 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
527 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
528 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-reloaded') . '</p>',
|
529 |
'updated'
|
530 |
);
|
531 |
// Update the HTML emails option
|
@@ -536,18 +536,18 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
536 |
$this->stcr_create_admin_notice(
|
537 |
'notify_update_' . $_version,
|
538 |
'unread',
|
539 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-reloaded') . '</p>' .
|
540 |
-
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-reloaded') . '</p>' .
|
541 |
|
542 |
'<ul>' .
|
543 |
-
'<li>' . __("<strong>Fix Critical Bug</strong> This version fix a critical bug on fresh installation regarding a database table creation.", 'subscribe-reloaded') . '</li>'.
|
544 |
-
'<li>' . __("<strong>Add</strong> Option to control the inclusion of the style Font Awesome.", 'subscribe-reloaded') . '</li>'.
|
545 |
'</ul>' .
|
546 |
|
547 |
-
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-reloaded') . '</p>' .
|
548 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
549 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
550 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-reloaded') . '</p>',
|
551 |
'updated'
|
552 |
);
|
553 |
// Update the HTML emails option
|
@@ -558,19 +558,19 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
558 |
$this->stcr_create_admin_notice(
|
559 |
'notify_update_' . $_version,
|
560 |
'unread',
|
561 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-reloaded') . '</p>' .
|
562 |
-
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-reloaded') . '</p>' .
|
563 |
|
564 |
'<ul>' .
|
565 |
-
'<li>' . __("<strong>Security Patch</strong> This version add a patch for some security issues.", 'subscribe-reloaded') . '</li>'.
|
566 |
-
'<li>' . __("<strong>Add</strong> Option to reset all the plugin options", 'subscribe-reloaded') . '</li>'.
|
567 |
-
'<li>' . __("<strong>Fix</strong> issue regarding database collations", 'subscribe-reloaded') . '</li>'.
|
568 |
'</ul>' .
|
569 |
|
570 |
-
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-reloaded') . '</p>' .
|
571 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
572 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
573 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-reloaded') . '</p>',
|
574 |
'updated'
|
575 |
);
|
576 |
// Update the HTML emails option
|
@@ -581,12 +581,12 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
581 |
$this->stcr_create_admin_notice(
|
582 |
'notify_update_' . $_version,
|
583 |
'unread',
|
584 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-reloaded') . '</p>' .
|
585 |
-
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-reloaded') . '</p>' .
|
586 |
-
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-reloaded') . '</p>' .
|
587 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
588 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
589 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-reloaded') . '</p>',
|
590 |
'updated'
|
591 |
);
|
592 |
// Update the HTML emails option
|
@@ -597,13 +597,13 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
597 |
$this->stcr_create_admin_notice(
|
598 |
'notify_update_' . $_version,
|
599 |
'unread',
|
600 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-reloaded') . '</p>' .
|
601 |
-
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-reloaded') . '</p>' .
|
602 |
-
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-reloaded') . '</p>' .
|
603 |
-
'<p>' . __('You might need to clear you cache !!', 'subscribe-reloaded') . '</p>' .
|
604 |
'<p>' . __('Please visit the <a href="http://subscribe-reloaded.com/update/stcr-release-version-'.$_version.'/" target="_blank">Release Post</a> for a complete list of changes and guide about the new version.'
|
605 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
606 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-reloaded') . '</p>',
|
607 |
'updated'
|
608 |
);
|
609 |
break;
|
@@ -611,13 +611,13 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_upgrade') ) {
|
|
611 |
$this->stcr_create_admin_notice(
|
612 |
'notify_update_' . $_version,
|
613 |
'unread',
|
614 |
-
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-reloaded') . '</p>' .
|
615 |
-
'<p>' . __('This version includes fixes., ', 'subscribe-reloaded') . '</p>' .
|
616 |
-
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-reloaded') . '</p>' .
|
617 |
-
'<p>' . __('You might need to clear you cache !!', 'subscribe-reloaded') . '</p>' .
|
618 |
'<p>' . __('Please visit the <a href="http://subscribe-reloaded.com/update/stcr-release-version-'.$_version.'/" target="_blank">Release Post</a> for a complete list of changes and guide about the new version.'
|
619 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
620 |
-
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-reloaded') . '</p>',
|
621 |
'updated'
|
622 |
);
|
623 |
break;
|
69 |
$OK = $this->add_user_subscriber_table( $email->email );
|
70 |
if ( ! $OK) {
|
71 |
$notices = get_option( 'subscribe_reloaded_deferred_admin_notices', array() );
|
72 |
+
$notices[] = '<div class="error"><h3>' . __( 'Important Notice', 'subscribe-to-comments-reloaded' ) . '</h3>' .
|
73 |
'<p>The creation of of the table <strong>' . $wpdb->prefix . 'subscribe_reloaded_subscribers</strong> failed</p></div>';
|
74 |
update_option( 'subscribe_reloaded_deferred_admin_notices', $notices );
|
75 |
break 1;
|
118 |
'notify_update_sanitize_db_options',
|
119 |
'unread',
|
120 |
'<p>' . __( '<strong>Subscribe to Comments Reloaded:</strong> The information in your database has been sanitized to prevent the raw html messages. <a class="dismiss" href="#">Dismiss. </a>'
|
121 |
+
. '<img class="stcr-loading-animation" src="'. esc_url( admin_url() . '/images/loading.gif'). '" alt="Working...">' , 'subscribe-to-comments-reloaded' )
|
122 |
. '</p>',
|
123 |
'updated'
|
124 |
);
|
172 |
$this->stcr_create_admin_notice(
|
173 |
'notify_import_stc_data',
|
174 |
'unread',
|
175 |
+
'<p>' . __( '<strong>Subscribe to Comments Reloaded:</strong> Comment subscription data from the <strong>Subscribe to Comments</strong> plugin was detected and automatically imported into <strong>Subscribe to Comments Reloaded</strong>.', 'subscribe-to-comments-reloaded' ) . ( is_plugin_active( 'subscribe-to-comments/subscribe-to-comments.php' ) ? __( ' It is recommended that you now <strong>deactivate</strong> Subscribe to Comments to prevent confusion between the two plugins.', 'subscribe-to-comments-reloaded' ) : '' ) . '</p>' .
|
176 |
+
'<p>' . __( 'If you have subscription data from Subscribe to Comments Reloaded < v2.0 that you want to import, you\'ll need to import that data manually, as only one import routine will ever run to prevent data loss.', 'subscribe-to-comments-reloaded' ) . '</p>' .
|
177 |
'<p>' . __( 'Please visit <a href="options-general.php?page=subscribe-to-comments-reloaded/options/index.php">Settings -> Subscribe to Comments</a> to review your configuration.'
|
178 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
179 |
+
. '<img class="stcr-loading-animation" src="'. esc_url( admin_url() . '/images/loading.gif'). '" alt="Working...">', 'subscribe-to-comments-reloaded' ) . '</p>',
|
180 |
'updated'
|
181 |
);
|
182 |
}
|
247 |
$this->stcr_create_admin_notice(
|
248 |
'notify_import_comment_reply',
|
249 |
'unread',
|
250 |
+
'<p>' . __( '<strong>Subscribe to Comments Reloaded:</strong> Comment subscription data from the <strong>Comment Reply Notification</strong> plugin was detected and automatically imported into <strong>Subscribe to Comments Reloaded</strong>.', 'subscribe-to-comments-reloaded' ) . ( is_plugin_active( 'comment-reply-notification/comment-reply-notification.php' ) ? __( ' It is recommended that you now <strong>deactivate</strong> Comment Reply Notification to prevent confusion between the two plugins.', 'subscribe-to-comments-reloaded' ) : '' ) . '</p>' .
|
251 |
'<p>' . __( 'Please visit <a href="options-general.php?page=subscribe-to-comments-reloaded/options/index.php">Settings -> Subscribe to Comments</a> to review your configuration.'
|
252 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
253 |
+
. '<img class="stcr-loading-animation" src="'. esc_url( admin_url() . '/images/loading.gif'). '" alt="Working...">', 'subscribe-to-comments-reloaded' ) . '</p>',
|
254 |
'updated'
|
255 |
);
|
256 |
}
|
394 |
$this->stcr_create_admin_notice(
|
395 |
'notify_import_wpcs_data',
|
396 |
'unread',
|
397 |
+
'<p>' . __( '<strong>Subscribe to Comments Reloaded:</strong> Plugin options and comment subscription data from the <strong>WP Comment Subscriptions</strong> plugin were detected and automatically imported into <strong>Subscribe to Comments Reloaded</strong>.', 'subscribe-to-comments-reloaded' ) . ( is_plugin_active( 'wp-comment-subscriptions/wp-comment-subscriptions.php' ) ? __( ' It is recommended that you now <strong>deactivate</strong> WP Comment Subscriptions to prevent confusion between the two plugins.', 'subscribe-to-comments-reloaded' ) : '' ) . '</p>' .
|
398 |
+
'<p>' . __( 'If you have subscription data from another plugin (such as Subscribe to Comments or Subscribe to Comments Reloaded < v2.0) that you want to import, you\'ll need to import that data manually, as only one import routine will ever run to prevent data loss.', 'subscribe-to-comments-reloaded' ) . '</p>' .
|
399 |
+
'<p>' . __( '<strong>Note:</strong> If you were previously using the <code>wp_comment_subscriptions_show()</code> function or the <code>[wpcs-subscribe-url]</code> shortcode, you\'ll need to replace those with <code>subscribe_reloaded_show()</code> and <code>[subscribe-url]</code> respectively.', 'subscribe-to-comments-reloaded' ) . '</p>' .
|
400 |
'<p>' . __( 'Please visit <a href="options-general.php?page=subscribe-to-comments-reloaded/options/index.php">Settings -> Subscribe to Comments</a> to review your configuration.'
|
401 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
402 |
+
. '<img class="stcr-loading-animation" src="'. esc_url( admin_url() . '/images/loading.gif'). '" alt="Working...">', 'subscribe-to-comments-reloaded' ) . '</p>',
|
403 |
'updated'
|
404 |
);
|
405 |
}
|
407 |
// end _import_wpcs_data
|
408 |
public function upgrade_notification( $_version, $_db_version, $_fresh_install ) {
|
409 |
|
410 |
+
$options_link = sprintf( '<a href="%s"> %s </a>', admin_url( 'admin.php?page=stcr_options' ), __( 'Settings', 'subscribe-to-comments-reloaded' ) );
|
411 |
+
$system_link = sprintf( '<a href="%s"> %s </a>', admin_url( 'admin.php?page=stcr_system' ), __( 'Log Settings', 'subscribe-to-comments-reloaded' ) );
|
412 |
|
413 |
if( ! $_fresh_install ) {
|
414 |
|
417 |
$this->stcr_create_admin_notice(
|
418 |
'notify_update_' . $_version,
|
419 |
'unread',
|
420 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160106.', 'subscribe-to-comments-reloaded') . '</p>' .
|
421 |
+
'<p>' . __('This version includes many changes and fixes to improve your experience with the plugin, including One Click Unsubscribe, Rich Text Editor to create HTML email templates, Subscription Checkbox position, and more!', 'subscribe-to-comments-reloaded') . '</p>' .
|
422 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
423 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
424 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-to-comments-reloaded') . '</p>',
|
425 |
'updated'
|
426 |
);
|
427 |
// Update the HTML emails option
|
432 |
$this->stcr_create_admin_notice(
|
433 |
'notify_update_' . $_version,
|
434 |
'unread',
|
435 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160115.', 'subscribe-to-comments-reloaded') . '</p>' .
|
436 |
+
'<p>' . __('This version includes fixes to broken links while managing your subscriptions', 'subscribe-to-comments-reloaded') . '</p>' .
|
437 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
438 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
439 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-to-comments-reloaded') . '</p>',
|
440 |
'updated'
|
441 |
);
|
442 |
// Update the HTML emails option
|
447 |
$this->stcr_create_admin_notice(
|
448 |
'notify_update_' . $_version,
|
449 |
'unread',
|
450 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160831', 'subscribe-to-comments-reloaded') . '</p>' .
|
451 |
+
'<p>' . __('This version includes fixes to many bugs and also new features, ', 'subscribe-to-comments-reloaded') . '</p>' .
|
452 |
'<ul>' .
|
453 |
+
'<li>' . __("<strong>New Feature</strong> Add new option to set the Reply To email address. This will help the subscribers to use the Reply option in their email agents.", 'subscribe-to-comments-reloaded') . '</li>'.
|
454 |
+
'<li>' . __("<strong>New Feature</strong> Improve the Admin Menu for StCR. Replace the StCR menu on the Settings Menu for a new Menu with sub menus for the pages.", 'subscribe-to-comments-reloaded') . '</li>'.
|
455 |
+
'<li>' . __("<strong>New Feature</strong> Safely Uninstall option to Delete the plugin without loosing your subscriptions. You can use this option also for reset all the settings, see the FAQ.", 'subscribe-to-comments-reloaded') . '</li>'.
|
456 |
+
'<li>' . __("<strong>New Feature</strong> Now the WordPress Authors can use the <strong>Subscribe authors</strong> option to autor subscribe to a Custom Post Type.", 'subscribe-to-comments-reloaded') . '</li>'.
|
457 |
+
'<li>' . __("<strong>New Feature</strong> A new field was added under the notification options to and the management link only by email and not to display it on the request link page.", 'subscribe-to-comments-reloaded') . '</li>'.
|
458 |
'</ul>' .
|
459 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
460 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
461 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-to-comments-reloaded') . '</p>',
|
462 |
'updated'
|
463 |
);
|
464 |
// Update the HTML emails option
|
469 |
$this->stcr_create_admin_notice(
|
470 |
'notify_update_' . $_version,
|
471 |
'unread',
|
472 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160902', 'subscribe-to-comments-reloaded') . '</p>' .
|
473 |
+
'<p>' . __('This version includes fixes to many bugs and also new features, ', 'subscribe-to-comments-reloaded') . '</p>' .
|
474 |
'<ul>' .
|
475 |
+
'<li>' . __("<strong>Fix update</strong> this version Fixes some issue trigger by the previous 160831 version.", 'subscribe-to-comments-reloaded') . '</li>'.
|
476 |
+
'<li>' . __("<strong>New Feature</strong> Add new option to set the Reply To email address. This will help the subscribers to use the Reply option in their email agents.", 'subscribe-to-comments-reloaded') . '</li>'.
|
477 |
+
'<li>' . __("<strong>New Feature</strong> Improve the Admin Menu for StCR. Replace the StCR menu on the Settings Menu for a new Menu with sub menus for the pages.", 'subscribe-to-comments-reloaded') . '</li>'.
|
478 |
+
'<li>' . __("<strong>New Feature</strong> Safely Uninstall option to Delete the plugin without loosing your subscriptions. You can use this option also for reset all the settings, see the FAQ.", 'subscribe-to-comments-reloaded') . '</li>'.
|
479 |
+
'<li>' . __("<strong>New Feature</strong> Now the WordPress Authors can use the <strong>Subscribe authors</strong> option to autor subscribe to a Custom Post Type.", 'subscribe-to-comments-reloaded') . '</li>'.
|
480 |
+
'<li>' . __("<strong>New Feature</strong> A new field was added under the notification options to and the management link only by email and not to display it on the request link page.", 'subscribe-to-comments-reloaded') . '</li>'.
|
481 |
'</ul>' .
|
482 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
483 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
484 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-to-comments-reloaded') . '</p>',
|
485 |
'updated'
|
486 |
);
|
487 |
// Update the HTML emails option
|
489 |
update_option( 'subscribe_reloaded_enable_html_emails', 'yes' );
|
490 |
break;
|
491 |
case '160915':
|
492 |
+
$options_link = sprintf( '<a href="%s"> %s </a>', admin_url( 'admin.php?page=stcr_options' ), __( 'Settings', 'subscribe-to-comments-reloaded' ) );
|
493 |
$this->stcr_create_admin_notice(
|
494 |
'notify_update_' . $_version,
|
495 |
'unread',
|
496 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version 160915', 'subscribe-to-comments-reloaded') . '</p>' .
|
497 |
+
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-to-comments-reloaded') . '</p>' .
|
498 |
'<ul>' .
|
499 |
+
'<li>' . __("<strong>Fix</strong> StCR checkbox position issues with some WordPress themes, Go to the {$options_link} to activate it.", 'subscribe-to-comments-reloaded') . '</li>'.
|
500 |
+
'<li>' . __("<strong>Change</strong> the radio buttons in the management page for a dropdown.", 'subscribe-to-comments-reloaded') . '</li>'.
|
501 |
+
'<li>' . __("<strong>Improve</strong> Email validation for empty values and using a regex.", 'subscribe-to-comments-reloaded') . '</li>'.
|
502 |
'</ul>' .
|
503 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
504 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
505 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Working...">', 'subscribe-to-comments-reloaded') . '</p>',
|
506 |
'updated'
|
507 |
);
|
508 |
// Update the HTML emails option
|
513 |
$this->stcr_create_admin_notice(
|
514 |
'notify_update_' . $_version,
|
515 |
'unread',
|
516 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-to-comments-reloaded') . '</p>' .
|
517 |
+
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-to-comments-reloaded') . '</p>' .
|
518 |
|
519 |
'<ul>' .
|
520 |
+
'<li>' . __("<strong>Fix</strong> Wrong confirmation link when the double check option is enable.", 'subscribe-to-comments-reloaded') . '</li>'.
|
521 |
+
'<li>' . __("<strong>Improve</strong> Manage subscription page. Take a look ;).", 'subscribe-to-comments-reloaded') . '</li>'.
|
522 |
+
'<li>' . __("<strong>Improve</strong> Log file manipulation. Now you can control how the log behaves, take a look at the {$system_link}.", 'subscribe-to-comments-reloaded') . '</li>'.
|
523 |
'</ul>' .
|
524 |
|
525 |
+
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-to-comments-reloaded') . '</p>' .
|
526 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
527 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
528 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-to-comments-reloaded') . '</p>',
|
529 |
'updated'
|
530 |
);
|
531 |
// Update the HTML emails option
|
536 |
$this->stcr_create_admin_notice(
|
537 |
'notify_update_' . $_version,
|
538 |
'unread',
|
539 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-to-comments-reloaded') . '</p>' .
|
540 |
+
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-to-comments-reloaded') . '</p>' .
|
541 |
|
542 |
'<ul>' .
|
543 |
+
'<li>' . __("<strong>Fix Critical Bug</strong> This version fix a critical bug on fresh installation regarding a database table creation.", 'subscribe-to-comments-reloaded') . '</li>'.
|
544 |
+
'<li>' . __("<strong>Add</strong> Option to control the inclusion of the style Font Awesome.", 'subscribe-to-comments-reloaded') . '</li>'.
|
545 |
'</ul>' .
|
546 |
|
547 |
+
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-to-comments-reloaded') . '</p>' .
|
548 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
549 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
550 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-to-comments-reloaded') . '</p>',
|
551 |
'updated'
|
552 |
);
|
553 |
// Update the HTML emails option
|
558 |
$this->stcr_create_admin_notice(
|
559 |
'notify_update_' . $_version,
|
560 |
'unread',
|
561 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-to-comments-reloaded') . '</p>' .
|
562 |
+
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-to-comments-reloaded') . '</p>' .
|
563 |
|
564 |
'<ul>' .
|
565 |
+
'<li>' . __("<strong>Security Patch</strong> This version add a patch for some security issues.", 'subscribe-to-comments-reloaded') . '</li>'.
|
566 |
+
'<li>' . __("<strong>Add</strong> Option to reset all the plugin options", 'subscribe-to-comments-reloaded') . '</li>'.
|
567 |
+
'<li>' . __("<strong>Fix</strong> issue regarding database collations", 'subscribe-to-comments-reloaded') . '</li>'.
|
568 |
'</ul>' .
|
569 |
|
570 |
+
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-to-comments-reloaded') . '</p>' .
|
571 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
572 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
573 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-to-comments-reloaded') . '</p>',
|
574 |
'updated'
|
575 |
);
|
576 |
// Update the HTML emails option
|
581 |
$this->stcr_create_admin_notice(
|
582 |
'notify_update_' . $_version,
|
583 |
'unread',
|
584 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-to-comments-reloaded') . '</p>' .
|
585 |
+
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-to-comments-reloaded') . '</p>' .
|
586 |
+
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-to-comments-reloaded') . '</p>' .
|
587 |
'<p>' . __('Please visit the <a href="https://wordpress.org/plugins/subscribe-to-comments-reloaded/changelog/" target="_blank">Changelog</a> for a complete list of changes.'
|
588 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
589 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-to-comments-reloaded') . '</p>',
|
590 |
'updated'
|
591 |
);
|
592 |
// Update the HTML emails option
|
597 |
$this->stcr_create_admin_notice(
|
598 |
'notify_update_' . $_version,
|
599 |
'unread',
|
600 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-to-comments-reloaded') . '</p>' .
|
601 |
+
'<p>' . __('This version includes fixes and improvements, ', 'subscribe-to-comments-reloaded') . '</p>' .
|
602 |
+
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-to-comments-reloaded') . '</p>' .
|
603 |
+
'<p>' . __('You might need to clear you cache !!', 'subscribe-to-comments-reloaded') . '</p>' .
|
604 |
'<p>' . __('Please visit the <a href="http://subscribe-reloaded.com/update/stcr-release-version-'.$_version.'/" target="_blank">Release Post</a> for a complete list of changes and guide about the new version.'
|
605 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
606 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-to-comments-reloaded') . '</p>',
|
607 |
'updated'
|
608 |
);
|
609 |
break;
|
611 |
$this->stcr_create_admin_notice(
|
612 |
'notify_update_' . $_version,
|
613 |
'unread',
|
614 |
+
'<p>' . __('<strong>Subscribe to Comments Reloaded</strong> has been updated to version ' . $_version, 'subscribe-to-comments-reloaded') . '</p>' .
|
615 |
+
'<p>' . __('This version includes fixes., ', 'subscribe-to-comments-reloaded') . '</p>' .
|
616 |
+
'<p>' . __('If you find a bug or an issue you can report it <a href="https://github.com/stcr/subscribe-to-comments-reloaded/issues" target="_blank">here</a>.', 'subscribe-to-comments-reloaded') . '</p>' .
|
617 |
+
'<p>' . __('You might need to clear you cache !!', 'subscribe-to-comments-reloaded') . '</p>' .
|
618 |
'<p>' . __('Please visit the <a href="http://subscribe-reloaded.com/update/stcr-release-version-'.$_version.'/" target="_blank">Release Post</a> for a complete list of changes and guide about the new version.'
|
619 |
. '<a class="dismiss" href="#">Dismiss. </a>'
|
620 |
+
. '<img class="stcr-loading-animation" src="' . esc_url(admin_url() . '/images/loading.gif') . '" alt="Dismissing Message">', 'subscribe-to-comments-reloaded') . '</p>',
|
621 |
'updated'
|
622 |
);
|
623 |
break;
|
utils/stcr_utils.php
CHANGED
@@ -169,33 +169,33 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_utils') )
|
|
169 |
public function stcr_translate_month( $date_str )
|
170 |
{
|
171 |
$months_long = array (
|
172 |
-
"January" => __("January",
|
173 |
-
"February" => __("February",
|
174 |
-
"March" => __("March",
|
175 |
-
"April" => __("April",
|
176 |
-
"May" => __("May",
|
177 |
-
"June" => __("June",
|
178 |
-
"July" => __("July",
|
179 |
-
"August" => __("August",
|
180 |
-
"September" => __("September",
|
181 |
-
"October" => __("October",
|
182 |
-
"November" => __("November",
|
183 |
-
"December" => __("December",
|
184 |
);
|
185 |
|
186 |
$months_short = array (
|
187 |
-
"Jan" => __("Jan",
|
188 |
-
"Feb" => __("Feb",
|
189 |
-
"Mar" => __("Mar",
|
190 |
-
"Apr" => __("Apr",
|
191 |
-
"May" => __("May",
|
192 |
-
"Jun" => __("Jun",
|
193 |
-
"Jul" => __("Jul",
|
194 |
-
"Aug" => __("Aug",
|
195 |
-
"Sep" => __("Sep",
|
196 |
-
"Oct" => __("Oct",
|
197 |
-
"Nov" => __("Nov",
|
198 |
-
"Dec" => __("Dec",
|
199 |
);
|
200 |
|
201 |
// Replace String
|
@@ -337,32 +337,32 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_utils') )
|
|
337 |
add_option( 'subscribe_reloaded_checked_by_default_value', '0', '', 'yes' );
|
338 |
add_option( 'subscribe_reloaded_checkbox_inline_style', 'width:30px', '', 'yes' );
|
339 |
add_option( 'subscribe_reloaded_checkbox_html', "<p class='comment-form-subscriptions'><label for='subscribe-reloaded'>[checkbox_field] [checkbox_label]</label></p>", '', 'yes' );
|
340 |
-
add_option( 'subscribe_reloaded_checkbox_label', __( "Notify me of followup comments via e-mail. You can also <a href='[subscribe_link]'>subscribe</a> without commenting.", 'subscribe-reloaded' ), '', 'yes' );
|
341 |
-
add_option( 'subscribe_reloaded_subscribed_label', __( "You are subscribed to this post. <a href='[manager_link]'>Manage</a> your subscriptions.", 'subscribe-reloaded' ), '', 'yes' );
|
342 |
-
add_option( 'subscribe_reloaded_subscribed_waiting_label', __( "Your subscription to this post needs to be confirmed. <a href='[manager_link]'>Manage your subscriptions</a>.", 'subscribe-reloaded' ), '', 'yes' );
|
343 |
-
add_option( 'subscribe_reloaded_author_label', __( "You can <a href='[manager_link]'>manage the subscriptions</a> of this post.", 'subscribe-reloaded' ), '', 'yes' );
|
344 |
|
345 |
add_option( 'subscribe_reloaded_manager_page_enabled', 'yes', '', 'yes' );
|
346 |
add_option( 'subscribe_reloaded_virtual_manager_page_enabled', 'yes', '', 'yes' );
|
347 |
-
add_option( 'subscribe_reloaded_manager_page_title', __( 'Manage subscriptions', 'subscribe-reloaded' ), '', 'yes' );
|
348 |
add_option( 'subscribe_reloaded_custom_header_meta', "<meta name='robots' content='noindex,nofollow'>", '', 'yes' );
|
349 |
-
add_option( 'subscribe_reloaded_request_mgmt_link', __( 'To manage your subscriptions, please enter your email address here below. We will send you a message containing the link to access your personal management page.', 'subscribe-reloaded' ), '', 'yes' );
|
350 |
-
add_option( 'subscribe_reloaded_request_mgmt_link_thankyou', __( 'Thank you for using our subscription service. Your request has been completed, and you should receive an email with the management link in a few minutes.', 'subscribe-reloaded' ), '', 'yes' );
|
351 |
-
add_option( 'subscribe_reloaded_subscribe_without_commenting', __( "You can follow the discussion on <strong>[post_title]</strong> without having to leave a comment. Cool, huh? Just enter your email address in the form here below and you're all set.", 'subscribe-reloaded' ), '', 'yes' );
|
352 |
-
add_option( 'subscribe_reloaded_subscription_confirmed', __( "Thank you for using our subscription service. Your request has been completed. You will receive a notification email every time a new comment to this article is approved and posted by the administrator.", 'subscribe-reloaded' ), '', 'yes' );
|
353 |
-
add_option( 'subscribe_reloaded_subscription_confirmed_dci', __( "Thank you for using our subscription service. In order to confirm your request, please check your email for the verification message and follow the instructions.", 'subscribe-reloaded' ), '', 'yes' );
|
354 |
-
add_option( 'subscribe_reloaded_author_text', __( "In order to cancel or suspend one or more notifications, select the corresponding checkbox(es) and click on the button at the end of the list.", 'subscribe-reloaded' ), '', 'yes' );
|
355 |
-
add_option( 'subscribe_reloaded_user_text', __( "In order to cancel or suspend one or more notifications, select the corresponding checkbox(es) and click on the button at the end of the list. You are currently subscribed to:", 'subscribe-reloaded' ), '', 'yes' );
|
356 |
|
357 |
add_option( 'subscribe_reloaded_from_name', get_bloginfo( 'name' ), '', 'yes' );
|
358 |
add_option( 'subscribe_reloaded_from_email', get_bloginfo( 'admin_email' ), '', 'yes' );
|
359 |
-
add_option( 'subscribe_reloaded_notification_subject', __( 'There is a new comment to [post_title]', 'subscribe-reloaded' ), '', 'yes' );
|
360 |
-
add_option( 'subscribe_reloaded_notification_content', __( "<h1>There is a new comment on [post_title].</h1>\n\n<hr />\n<strong>Comment link:</strong> <a href=\"[comment_permalink]\">[comment_permalink]</a>\n<strong>Author:</strong> [comment_author]\n\n<strong>Comment:</strong>\n[comment_content]\n<div style=\"font-size: 0.8em;\"><strong>Permalink:</strong> <a href=\"[post_permalink]\">[post_permalink]</a>\n<a href=\"[manager_link]\">Manage your subscriptions</a> | <a href=\"[oneclick_link]\">One click unsubscribe</a></div>", 'subscribe-reloaded' ), '', 'yes' );
|
361 |
-
add_option( 'subscribe_reloaded_double_check_subject', __( 'Please confirm your subscription to [post_title]', 'subscribe-reloaded' ), '', 'yes' );
|
362 |
-
add_option( 'subscribe_reloaded_double_check_content', __( "You have requested to be notified every time a new comment is added to:\n<a href='[post_permalink]'>[post_permalink]</a>\n\nPlease confirm your request by clicking on this link:\n<a href='[confirm_link]'>[confirm_link]</a>", 'subscribe-reloaded' ), '', 'yes' );
|
363 |
-
add_option( 'subscribe_reloaded_management_subject', __( 'Manage your subscriptions on [blog_name]', 'subscribe-reloaded' ) );
|
364 |
-
add_option( 'subscribe_reloaded_management_content', __( "You have requested to manage your subscriptions to the articles on [blog_name]. Please check the Subscriptions management link in your email", 'subscribe-reloaded' ) );
|
365 |
-
add_option( 'subscribe_reloaded_management_email_content', __( "You have requested to manage your subscriptions to the articles on [blog_name]. Follow this link to access your personal page:\n<a href='[manager_link]'>[manager_link]</a>", 'subscribe-reloaded' ) );
|
366 |
|
367 |
add_option( 'subscribe_reloaded_purge_days', '30', '', 'yes' );
|
368 |
add_option( 'subscribe_reloaded_enable_double_check', 'yes', '', 'yes' );
|
@@ -478,7 +478,7 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\stcr_utils') )
|
|
478 |
'fromEmail' => $from_email,
|
479 |
'fromName' => $from_name,
|
480 |
'toEmail' => '',
|
481 |
-
'subject' => __('StCR Notification' ,'subscribe-reloaded'),
|
482 |
'message' => '',
|
483 |
'bcc' => '',
|
484 |
'reply_to' => $reply_to,
|
169 |
public function stcr_translate_month( $date_str )
|
170 |
{
|
171 |
$months_long = array (
|
172 |
+
"January" => __("January",'subscribe-to-comments-reloaded'),
|
173 |
+
"February" => __("February",'subscribe-to-comments-reloaded'),
|
174 |
+
"March" => __("March",'subscribe-to-comments-reloaded'),
|
175 |
+
"April" => __("April",'subscribe-to-comments-reloaded'),
|
176 |
+
"May" => __("May",'subscribe-to-comments-reloaded'),
|
177 |
+
"June" => __("June",'subscribe-to-comments-reloaded'),
|
178 |
+
"July" => __("July",'subscribe-to-comments-reloaded'),
|
179 |
+
"August" => __("August",'subscribe-to-comments-reloaded'),
|
180 |
+
"September" => __("September",'subscribe-to-comments-reloaded'),
|
181 |
+
"October" => __("October",'subscribe-to-comments-reloaded'),
|
182 |
+
"November" => __("November",'subscribe-to-comments-reloaded'),
|
183 |
+
"December" => __("December",'subscribe-to-comments-reloaded')
|
184 |
);
|
185 |
|
186 |
$months_short = array (
|
187 |
+
"Jan" => __("Jan",'subscribe-to-comments-reloaded'),
|
188 |
+
"Feb" => __("Feb",'subscribe-to-comments-reloaded'),
|
189 |
+
"Mar" => __("Mar",'subscribe-to-comments-reloaded'),
|
190 |
+
"Apr" => __("Apr",'subscribe-to-comments-reloaded'),
|
191 |
+
"May" => __("May",'subscribe-to-comments-reloaded'),
|
192 |
+
"Jun" => __("Jun",'subscribe-to-comments-reloaded'),
|
193 |
+
"Jul" => __("Jul",'subscribe-to-comments-reloaded'),
|
194 |
+
"Aug" => __("Aug",'subscribe-to-comments-reloaded'),
|
195 |
+
"Sep" => __("Sep",'subscribe-to-comments-reloaded'),
|
196 |
+
"Oct" => __("Oct",'subscribe-to-comments-reloaded'),
|
197 |
+
"Nov" => __("Nov",'subscribe-to-comments-reloaded'),
|
198 |
+
"Dec" => __("Dec",'subscribe-to-comments-reloaded')
|
199 |
);
|
200 |
|
201 |
// Replace String
|
337 |
add_option( 'subscribe_reloaded_checked_by_default_value', '0', '', 'yes' );
|
338 |
add_option( 'subscribe_reloaded_checkbox_inline_style', 'width:30px', '', 'yes' );
|
339 |
add_option( 'subscribe_reloaded_checkbox_html', "<p class='comment-form-subscriptions'><label for='subscribe-reloaded'>[checkbox_field] [checkbox_label]</label></p>", '', 'yes' );
|
340 |
+
add_option( 'subscribe_reloaded_checkbox_label', __( "Notify me of followup comments via e-mail. You can also <a href='[subscribe_link]'>subscribe</a> without commenting.", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
341 |
+
add_option( 'subscribe_reloaded_subscribed_label', __( "You are subscribed to this post. <a href='[manager_link]'>Manage</a> your subscriptions.", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
342 |
+
add_option( 'subscribe_reloaded_subscribed_waiting_label', __( "Your subscription to this post needs to be confirmed. <a href='[manager_link]'>Manage your subscriptions</a>.", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
343 |
+
add_option( 'subscribe_reloaded_author_label', __( "You can <a href='[manager_link]'>manage the subscriptions</a> of this post.", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
344 |
|
345 |
add_option( 'subscribe_reloaded_manager_page_enabled', 'yes', '', 'yes' );
|
346 |
add_option( 'subscribe_reloaded_virtual_manager_page_enabled', 'yes', '', 'yes' );
|
347 |
+
add_option( 'subscribe_reloaded_manager_page_title', __( 'Manage subscriptions', 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
348 |
add_option( 'subscribe_reloaded_custom_header_meta', "<meta name='robots' content='noindex,nofollow'>", '', 'yes' );
|
349 |
+
add_option( 'subscribe_reloaded_request_mgmt_link', __( 'To manage your subscriptions, please enter your email address here below. We will send you a message containing the link to access your personal management page.', 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
350 |
+
add_option( 'subscribe_reloaded_request_mgmt_link_thankyou', __( 'Thank you for using our subscription service. Your request has been completed, and you should receive an email with the management link in a few minutes.', 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
351 |
+
add_option( 'subscribe_reloaded_subscribe_without_commenting', __( "You can follow the discussion on <strong>[post_title]</strong> without having to leave a comment. Cool, huh? Just enter your email address in the form here below and you're all set.", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
352 |
+
add_option( 'subscribe_reloaded_subscription_confirmed', __( "Thank you for using our subscription service. Your request has been completed. You will receive a notification email every time a new comment to this article is approved and posted by the administrator.", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
353 |
+
add_option( 'subscribe_reloaded_subscription_confirmed_dci', __( "Thank you for using our subscription service. In order to confirm your request, please check your email for the verification message and follow the instructions.", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
354 |
+
add_option( 'subscribe_reloaded_author_text', __( "In order to cancel or suspend one or more notifications, select the corresponding checkbox(es) and click on the button at the end of the list.", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
355 |
+
add_option( 'subscribe_reloaded_user_text', __( "In order to cancel or suspend one or more notifications, select the corresponding checkbox(es) and click on the button at the end of the list. You are currently subscribed to:", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
356 |
|
357 |
add_option( 'subscribe_reloaded_from_name', get_bloginfo( 'name' ), '', 'yes' );
|
358 |
add_option( 'subscribe_reloaded_from_email', get_bloginfo( 'admin_email' ), '', 'yes' );
|
359 |
+
add_option( 'subscribe_reloaded_notification_subject', __( 'There is a new comment to [post_title]', 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
360 |
+
add_option( 'subscribe_reloaded_notification_content', __( "<h1>There is a new comment on [post_title].</h1>\n\n<hr />\n<strong>Comment link:</strong> <a href=\"[comment_permalink]\">[comment_permalink]</a>\n<strong>Author:</strong> [comment_author]\n\n<strong>Comment:</strong>\n[comment_content]\n<div style=\"font-size: 0.8em;\"><strong>Permalink:</strong> <a href=\"[post_permalink]\">[post_permalink]</a>\n<a href=\"[manager_link]\">Manage your subscriptions</a> | <a href=\"[oneclick_link]\">One click unsubscribe</a></div>", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
361 |
+
add_option( 'subscribe_reloaded_double_check_subject', __( 'Please confirm your subscription to [post_title]', 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
362 |
+
add_option( 'subscribe_reloaded_double_check_content', __( "You have requested to be notified every time a new comment is added to:\n<a href='[post_permalink]'>[post_permalink]</a>\n\nPlease confirm your request by clicking on this link:\n<a href='[confirm_link]'>[confirm_link]</a>", 'subscribe-to-comments-reloaded' ), '', 'yes' );
|
363 |
+
add_option( 'subscribe_reloaded_management_subject', __( 'Manage your subscriptions on [blog_name]', 'subscribe-to-comments-reloaded' ) );
|
364 |
+
add_option( 'subscribe_reloaded_management_content', __( "You have requested to manage your subscriptions to the articles on [blog_name]. Please check the Subscriptions management link in your email", 'subscribe-to-comments-reloaded' ) );
|
365 |
+
add_option( 'subscribe_reloaded_management_email_content', __( "You have requested to manage your subscriptions to the articles on [blog_name]. Follow this link to access your personal page:\n<a href='[manager_link]'>[manager_link]</a>", 'subscribe-to-comments-reloaded' ) );
|
366 |
|
367 |
add_option( 'subscribe_reloaded_purge_days', '30', '', 'yes' );
|
368 |
add_option( 'subscribe_reloaded_enable_double_check', 'yes', '', 'yes' );
|
478 |
'fromEmail' => $from_email,
|
479 |
'fromName' => $from_name,
|
480 |
'toEmail' => '',
|
481 |
+
'subject' => __('StCR Notification' ,'subscribe-to-comments-reloaded'),
|
482 |
'message' => '',
|
483 |
'bcc' => '',
|
484 |
'reply_to' => $reply_to,
|
utils/systemInformation.txt
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
a:4:{s:21:"Wordpress Environment";a:13:{s:8:"Home URL";s:31:"http://localhost/devesh/plugins";s:8:"Site URL";s:31:"http://localhost/devesh/plugins";s:17:"WordPress Version";s:5:"5.1.1";s:9:"Multisite";b:0;s:8:"Language";s:5:"en_US";s:19:"Permalink Structure";s:36:"/%year%/%monthnum%/%day%/%postname%/";s:12:"Table Prefix";s:3:"wp_";s:19:"Table Prefix Length";i:3;s:19:"Table Prefix Status";s:10:"Acceptable";s:24:"Registered Post Statuses";s:207:"publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, refunded, failed, revoked, abandoned, processing, active, inactive";s:12:"Memory Limit";s:6:"256 MB";s:13:"WP Debug Mode";b:1;s:7:"WP Cron";b:0;}s:18:"Server Environment";a:14:{s:14:"TLS Connection";s:23:"Connection uses TLS 1.3";s:10:"TLS Rating";s:13:"Probably Okay";s:11:"Server Info";s:32:"Apache/2.4.37 (Win64) PHP/7.2.14";s:11:"PHP Version";s:6:"7.2.14";s:17:"PHP Post Max Size";s:6:"200 MB";s:22:"PHP Max Execution Time";s:3:"120";s:18:"PHP Max Input Vars";s:4:"2500";s:19:"PHP Max Upload Size";s:6:"200 MB";s:12:"cURL Version";s:40:"<div class="system-success">7.61.1</div>";s:13:"MySQL Version";s:6:"5.7.24";s:23:"Default Timezone is UTC";s:3:"Yes";s:11:"DOMDocument";s:3:"Yes";s:4:"gzip";s:3:"Yes";s:19:"GD Graphics Library";s:3:"Yes";}s:24:"WordPress Active Plugins";a:9:{s:16:"Advanced Excerpt";a:12:{s:4:"Name";s:16:"Advanced Excerpt";s:9:"PluginURI";s:46:"http://wordpress.org/plugins/advanced-excerpt/";s:7:"Version";s:5:"4.2.8";s:11:"Description";s:49:"Control the appearance of WordPress post excerpts";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:18:"https://wpkube.com";s:10:"TextDomain";s:16:"advanced-excerpt";s:10:"DomainPath";s:0:"";s:7:"Network";b:0;s:5:"Title";s:16:"Advanced Excerpt";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:6:"active";}s:14:"Classic Editor";a:12:{s:4:"Name";s:14:"Classic Editor";s:9:"PluginURI";s:45:"https://wordpress.org/plugins/classic-editor/";s:7:"Version";s:3:"1.4";s:11:"Description";s:154:"Enables the WordPress classic editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports the older plugins that extend this screen.";s:6:"Author";s:22:"WordPress Contributors";s:9:"AuthorURI";s:44:"https://github.com/WordPress/classic-editor/";s:10:"TextDomain";s:14:"classic-editor";s:10:"DomainPath";s:10:"/languages";s:7:"Network";b:0;s:5:"Title";s:14:"Classic Editor";s:10:"AuthorName";s:22:"WordPress Contributors";s:6:"Status";s:6:"active";}s:19:"Custom Post Type UI";a:12:{s:4:"Name";s:19:"Custom Post Type UI";s:9:"PluginURI";s:53:"https://github.com/WebDevStudios/custom-post-type-ui/";s:7:"Version";s:5:"1.6.1";s:11:"Description";s:77:"Admin panel for creating custom post types and custom taxonomies in WordPress";s:6:"Author";s:13:"WebDevStudios";s:9:"AuthorURI";s:26:"https://webdevstudios.com/";s:10:"TextDomain";s:19:"custom-post-type-ui";s:10:"DomainPath";s:10:"/languages";s:7:"Network";b:0;s:5:"Title";s:19:"Custom Post Type UI";s:10:"AuthorName";s:13:"WebDevStudios";s:6:"Status";s:6:"active";}s:22:"Easy Digital Downloads";a:12:{s:4:"Name";s:22:"Easy Digital Downloads";s:9:"PluginURI";s:32:"https://easydigitaldownloads.com";s:7:"Version";s:6:"2.9.12";s:11:"Description";s:56:"The easiest way to sell digital products with WordPress.";s:6:"Author";s:22:"Easy Digital Downloads";s:9:"AuthorURI";s:32:"https://easydigitaldownloads.com";s:10:"TextDomain";s:22:"easy-digital-downloads";s:10:"DomainPath";s:9:"languages";s:7:"Network";b:0;s:5:"Title";s:22:"Easy Digital Downloads";s:10:"AuthorName";s:22:"Easy Digital Downloads";s:6:"Status";s:6:"active";}s:33:"Fancy Coming Plugin for WordPress";a:12:{s:4:"Name";s:33:"Fancy Coming Plugin for WordPress";s:9:"PluginURI";s:65:"https://wordpress.org/plugins/fancy-coming-soon-maintenance-mode/";s:7:"Version";s:5:"1.4.0";s:11:"Description";s:229:"Fancy Coming soon is a responsive coming soon WordPress plugin that comes with well designed coming soon page and lots of useful features including customization via Live Customizer, MailChimp integration, custom forms, and more.";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:23:"https://www.wpkube.com/";s:10:"TextDomain";s:17:"fancy-coming-soon";s:10:"DomainPath";s:10:"/languages";s:7:"Network";b:0;s:5:"Title";s:33:"Fancy Coming Plugin for WordPress";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:6:"active";}s:26:"Go Redirects URL Forwarder";a:12:{s:4:"Name";s:26:"Go Redirects URL Forwarder";s:9:"PluginURI";s:0:"";s:7:"Version";s:5:"2.0.1";s:11:"Description";s:39:"A super-simple URL forwarder WordPress.";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:23:"https://www.wpkube.com/";s:10:"TextDomain";s:12:"go-redirects";s:10:"DomainPath";s:0:"";s:7:"Network";b:0;s:5:"Title";s:26:"Go Redirects URL Forwarder";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:6:"active";}s:11:"Optin Forms";a:12:{s:4:"Name";s:11:"Optin Forms";s:9:"PluginURI";s:43:"http://fancythemes.com/plugins/optin-forms/";s:7:"Version";s:7:"1.2.9.2";s:11:"Description";s:133:"Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.";s:6:"Author";s:11:"FancyThemes";s:9:"AuthorURI";s:26:"http://www.fancythemes.com";s:10:"TextDomain";s:11:"optin-forms";s:10:"DomainPath";s:11:"/languages/";s:7:"Network";b:0;s:5:"Title";s:11:"Optin Forms";s:10:"AuthorName";s:11:"FancyThemes";s:6:"Status";s:6:"active";}s:30:"Subscribe to Comments Reloaded";a:12:{s:4:"Name";s:30:"Subscribe to Comments Reloaded";s:9:"PluginURI";s:0:"";s:7:"Version";s:6:"190426";s:11:"Description";s:250:"Subscribe to Comments Reloaded is a robust plugin that enables commenters to sign up for e-mail notifications. It includes a full-featured subscription manager that your commenters can use to unsubscribe to certain posts or suspend all notifications.";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:18:"http://wpkube.com/";s:10:"TextDomain";s:18:"subscribe-reloaded";s:10:"DomainPath";s:6:"/langs";s:7:"Network";b:0;s:5:"Title";s:30:"Subscribe to Comments Reloaded";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:6:"active";}s:15:"WP Mail Logging";a:12:{s:4:"Name";s:15:"WP Mail Logging";s:9:"PluginURI";s:52:"http://wordpress.org/extend/plugins/wp-mail-logging/";s:7:"Version";s:5:"1.9.1";s:11:"Description";s:34:"Logs each email sent by WordPress.";s:6:"Author";s:21:"Christian Zöller";s:9:"AuthorURI";s:15:"http://no3x.de/";s:10:"TextDomain";s:15:"wp-mail-logging";s:10:"DomainPath";s:0:"";s:7:"Network";b:0;s:5:"Title";s:15:"WP Mail Logging";s:10:"AuthorName";s:21:"Christian Zöller";s:6:"Status";s:6:"active";}}s:26:"WordPress Inactive Plugins";a:17:{s:17:"Akismet Anti-Spam";a:12:{s:4:"Name";s:17:"Akismet Anti-Spam";s:9:"PluginURI";s:20:"https://akismet.com/";s:7:"Version";s:5:"4.1.1";s:11:"Description";s:279:"Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.";s:6:"Author";s:10:"Automattic";s:9:"AuthorURI";s:41:"https://automattic.com/wordpress-plugins/";s:10:"TextDomain";s:7:"akismet";s:10:"DomainPath";s:0:"";s:7:"Network";b:0;s:5:"Title";s:17:"Akismet Anti-Spam";s:10:"AuthorName";s:10:"Automattic";s:6:"Status";s:8:"inactive";}s:10:"Author Box";a:12:{s:4:"Name";s:10:"Author Box";s:9:"PluginURI";s:0:"";s:7:"Version";s:5:"1.0.0";s:11:"Description";s:36:"Display information about the author";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:18:"http://wpkube.com/";s:10:"TextDomain";s:10:"author-box";s:10:"DomainPath";s:10:"/languages";s:7:"Network";b:0;s:5:"Title";s:10:"Author Box";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:8:"inactive";}s:12:"Authors List";a:12:{s:4:"Name";s:12:"Authors List";s:9:"PluginURI";s:0:"";s:7:"Version";s:5:"1.0.0";s:11:"Description";s:77:"Display a list or grid of post authors and links to their post archives page.";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:18:"http://wpkube.com/";s:10:"TextDomain";s:12:"authors-list";s:10:"DomainPath";s:10:"/languages";s:7:"Network";b:0;s:5:"Title";s:12:"Authors List";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:8:"inactive";}s:10:"BuddyPress";a:12:{s:4:"Name";s:10:"BuddyPress";s:9:"PluginURI";s:23:"https://buddypress.org/";s:7:"Version";s:5:"4.2.0";s:11:"Description";s:126:"BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!";s:6:"Author";s:24:"The BuddyPress Community";s:9:"AuthorURI";s:23:"https://buddypress.org/";s:10:"TextDomain";s:10:"buddypress";s:10:"DomainPath";s:14:"/bp-languages/";s:7:"Network";b:0;s:5:"Title";s:10:"BuddyPress";s:10:"AuthorName";s:24:"The BuddyPress Community";s:6:"Status";s:8:"inactive";}s:14:"Cool Tag Cloud";a:12:{s:4:"Name";s:14:"Cool Tag Cloud";s:9:"PluginURI";s:45:"https://wordpress.org/plugins/cool-tag-cloud/";s:7:"Version";s:4:"2.13";s:11:"Description";s:39:"A simple, yet very beautiful tag cloud.";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:23:"https://www.wpkube.com/";s:10:"TextDomain";s:14:"cool-tag-cloud";s:10:"DomainPath";s:0:"";s:7:"Network";b:0;s:5:"Title";s:14:"Cool Tag Cloud";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:8:"inactive";}s:33:"Fancy Coming Plugin for WordPress";a:12:{s:4:"Name";s:33:"Fancy Coming Plugin for WordPress";s:9:"PluginURI";s:43:"https://fancythemes.com/plugins/coming-soon";s:7:"Version";s:5:"1.3.0";s:11:"Description";s:229:"Fancy Coming soon is a responsive coming soon WordPress plugin that comes with well designed coming soon page and lots of useful features including customization via Live Customizer, MailChimp integration, custom forms, and more.";s:6:"Author";s:11:"FancyThemes";s:9:"AuthorURI";s:43:"https://profiles.wordpress.org/fancythemes/";s:10:"TextDomain";s:17:"fancy-coming-soon";s:10:"DomainPath";s:10:"/languages";s:7:"Network";b:0;s:5:"Title";s:33:"Fancy Coming Plugin for WordPress";s:10:"AuthorName";s:11:"FancyThemes";s:6:"Status";s:8:"inactive";}s:26:"Force Plugin Updates Check";a:12:{s:4:"Name";s:26:"Force Plugin Updates Check";s:9:"PluginURI";s:0:"";s:7:"Version";s:5:"1.0.2";s:11:"Description";s:103:"Adds a link to the toolbar that allows site admins to force WordPress to run a check for plugin updates";s:6:"Author";s:17:"Pippin Williamson";s:9:"AuthorURI";s:25:"http://pippinsplugins.com";s:10:"TextDomain";s:26:"force-plugin-updates-check";s:10:"DomainPath";s:0:"";s:7:"Network";b:0;s:5:"Title";s:26:"Force Plugin Updates Check";s:10:"AuthorName";s:17:"Pippin Williamson";s:6:"Status";s:8:"inactive";}s:11:"Hello Dolly";a:12:{s:4:"Name";s:11:"Hello Dolly";s:9:"PluginURI";s:41:"http://wordpress.org/plugins/hello-dolly/";s:7:"Version";s:5:"1.7.1";s:11:"Description";s:295:"This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.";s:6:"Author";s:14:"Matt Mullenweg";s:9:"AuthorURI";s:13:"http://ma.tt/";s:10:"TextDomain";s:0:"";s:10:"DomainPath";s:0:"";s:7:"Network";b:0;s:5:"Title";s:11:"Hello Dolly";s:10:"AuthorName";s:14:"Matt Mullenweg";s:6:"Status";s:8:"inactive";}s:24:"Instagram Feed Shortcode";a:12:{s:4:"Name";s:24:"Instagram Feed Shortcode";s:9:"PluginURI";s:0:"";s:7:"Version";s:5:"1.0.0";s:11:"Description";s:41:"Display instagram feed using a shortcode.";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:18:"http://wpkube.com/";s:10:"TextDomain";s:24:"instagram-feed-shortcode";s:10:"DomainPath";s:10:"/languages";s:7:"Network";b:0;s:5:"Title";s:24:"Instagram Feed Shortcode";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:8:"inactive";}s:54:"Kiwi Social Share - Social Media Share Buttons & Icons";a:12:{s:4:"Name";s:54:"Kiwi Social Share - Social Media Share Buttons & Icons";s:9:"PluginURI";s:0:"";s:7:"Version";s:6:"2.0.14";s:11:"Description";s:126:"Really beautiful & simple social media & share buttons + icons. Simplicity & speed is key with this social media share plugin.";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:23:"https://www.wpkube.com/";s:10:"TextDomain";s:17:"kiwi-social-share";s:10:"DomainPath";s:11:"/languages/";s:7:"Network";b:0;s:5:"Title";s:54:"Kiwi Social Share - Social Media Share Buttons & Icons";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:8:"inactive";}s:9:"Pig Latin";a:12:{s:4:"Name";s:9:"Pig Latin";s:9:"PluginURI";s:38:"http://wordpress.org/plugins/piglatin/";s:7:"Version";s:3:"0.2";s:11:"Description";s:182:"Overrides the current language and translates all messages into pig latin. This way you can easily spot, which messages were left untranslatable, while the interface is still usable.";s:6:"Author";s:17:"Nikolay Bachiyski";s:9:"AuthorURI";s:18:"http://nikolay.bg/";s:10:"TextDomain";s:8:"piglatin";s:10:"DomainPath";s:0:"";s:7:"Network";b:0;s:5:"Title";s:9:"Pig Latin";s:10:"AuthorName";s:17:"Nikolay Bachiyski";s:6:"Status";s:8:"inactive";}s:13:"Pirates Ahoy!";a:12:{s:4:"Name";s:13:"Pirates Ahoy!";s:9:"PluginURI";s:45:"http://urbangiraffe.com/plugins/pirates-ahoy/";s:7:"Version";s:3:"0.1";s:11:"Description";s:37:"Speak like a pirate, you land lubber!";s:6:"Author";s:11:"John Godley";s:9:"AuthorURI";s:23:"http://urbangiraffe.com";s:10:"TextDomain";s:12:"pirates-ahoy";s:10:"DomainPath";s:0:"";s:7:"Network";b:0;s:5:"Title";s:13:"Pirates Ahoy!";s:10:"AuthorName";s:11:"John Godley";s:6:"Status";s:8:"inactive";}s:25:"Simple Basic Contact Form";a:12:{s:4:"Name";s:25:"Simple Basic Contact Form";s:9:"PluginURI";s:56:"https://wordpress.org/plugins/simple-basic-contact-form/";s:7:"Version";s:8:"20190305";s:11:"Description";s:53:"A secure contact form that’s fast and flexible.";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:23:"https://www.wpkube.com/";s:10:"TextDomain";s:3:"scf";s:10:"DomainPath";s:10:"/languages";s:7:"Network";b:0;s:5:"Title";s:25:"Simple Basic Contact Form";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:8:"inactive";}s:28:"Title and Nofollow For Links";a:12:{s:4:"Name";s:28:"Title and Nofollow For Links";s:9:"PluginURI";s:58:"http://wordpress.org/plugins/title-and-nofollow-for-links/";s:7:"Version";s:4:"1.07";s:11:"Description";s:83:"The plugin adds a title and a rel="nofollow" checkbox to the insert link popup box.";s:6:"Author";s:6:"WPKube";s:9:"AuthorURI";s:23:"https://www.wpkube.com/";s:10:"TextDomain";s:28:"title-and-nofollow-for-links";s:10:"DomainPath";s:0:"";s:7:"Network";b:0;s:5:"Title";s:28:"Title and Nofollow For Links";s:10:"AuthorName";s:6:"WPKube";s:6:"Status";s:8:"inactive";}s:11:"WooCommerce";a:12:{s:4:"Name";s:11:"WooCommerce";s:9:"PluginURI";s:24:"https://woocommerce.com/";s:7:"Version";s:5:"3.5.7";s:11:"Description";s:63:"An eCommerce toolkit that helps you sell anything. Beautifully.";s:6:"Author";s:10:"Automattic";s:9:"AuthorURI";s:23:"https://woocommerce.com";s:10:"TextDomain";s:11:"woocommerce";s:10:"DomainPath";s:16:"/i18n/languages/";s:7:"Network";b:0;s:5:"Title";s:11:"WooCommerce";s:10:"AuthorName";s:10:"Automattic";s:6:"Status";s:8:"inactive";}s:35:"WooCommerce PayPal Checkout Gateway";a:12:{s:4:"Name";s:35:"WooCommerce PayPal Checkout Gateway";s:9:"PluginURI";s:77:"https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/";s:7:"Version";s:6:"1.6.10";s:11:"Description";s:94:"A payment gateway for PayPal Checkout (https://www.paypal.com/us/webapps/mpp/paypal-checkout).";s:6:"Author";s:11:"WooCommerce";s:9:"AuthorURI";s:23:"https://woocommerce.com";s:10:"TextDomain";s:43:"woocommerce-gateway-paypal-express-checkout";s:10:"DomainPath";s:10:"/languages";s:7:"Network";b:0;s:5:"Title";s:35:"WooCommerce PayPal Checkout Gateway";s:10:"AuthorName";s:11:"WooCommerce";s:6:"Status";s:8:"inactive";}s:16:"WP Fastest Cache";a:12:{s:4:"Name";s:16:"WP Fastest Cache";s:9:"PluginURI";s:46:"http://wordpress.org/plugins/wp-fastest-cache/";s:7:"Version";s:7:"0.8.9.2";s:11:"Description";s:40:"The simplest and fastest WP Cache system";s:6:"Author";s:9:"Emre Vona";s:9:"AuthorURI";s:34:"http://tr.linkedin.com/in/emrevona";s:10:"TextDomain";s:16:"wp-fastest-cache";s:10:"DomainPath";s:11:"/languages/";s:7:"Network";b:0;s:5:"Title";s:16:"WP Fastest Cache";s:10:"AuthorName";s:9:"Emre Vona";s:6:"Status";s:8:"inactive";}}}
|
wp_subscribe_reloaded.php
CHANGED
@@ -6,7 +6,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
6 |
exit;
|
7 |
}
|
8 |
|
9 |
-
define( __NAMESPACE__.'\\VERSION','
|
10 |
define( __NAMESPACE__.'\\DEVELOPMENT', true );
|
11 |
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
|
12 |
|
@@ -49,7 +49,7 @@ if(!class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded')) {
|
|
49 |
if ( DEVELOPMENT )
|
50 |
{
|
51 |
// Add subscriptions for tests
|
52 |
-
|
53 |
}
|
54 |
|
55 |
add_shortcode( 'stcr_management_page', array( $this, 'management_page_sc' ) );
|
@@ -161,13 +161,13 @@ if(!class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded')) {
|
|
161 |
$current_page = isset( $_GET['page'] ) ? $_GET['page'] : '';
|
162 |
// Define the panels
|
163 |
$array_pages = array(
|
164 |
-
"stcr_manage_subscriptions" => __( 'Manage subscriptions', 'subscribe-reloaded' ),
|
165 |
-
"stcr_comment_form" => __( 'Comment Form', 'subscribe-reloaded' ),
|
166 |
-
"stcr_management_page" => __( 'Management Page', 'subscribe-reloaded' ),
|
167 |
-
"stcr_notifications" => __( 'Notifications', 'subscribe-reloaded' ),
|
168 |
-
"stcr_options" => __( 'Options', 'subscribe-reloaded' ),
|
169 |
-
"stcr_support" => __( 'Support', 'subscribe-reloaded' ),
|
170 |
-
"stcr_system" => __( 'Options', 'subscribe-reloaded' )
|
171 |
);
|
172 |
|
173 |
|
@@ -193,9 +193,9 @@ if(!class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded')) {
|
|
193 |
'. $page_desc .'
|
194 |
</a>
|
195 |
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
196 |
-
<a class="dropdown-item" href="admin.php?page=' . $page . '">'. __("StCR Options",
|
197 |
<div class="dropdown-divider"></div>
|
198 |
-
<a class="dropdown-item" href="admin.php?page=stcr_system">'. __("StCR System",
|
199 |
</div>';
|
200 |
}
|
201 |
elseif ( $page == "stcr_system" )
|
@@ -226,7 +226,7 @@ if(!class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded')) {
|
|
226 |
* Load localization files
|
227 |
*/
|
228 |
function subscribe_reloaded_load_plugin_textdomain() {
|
229 |
-
load_plugin_textdomain( 'subscribe-reloaded', FALSE, SLUG . "/langs/" );
|
230 |
}
|
231 |
|
232 |
/*
|
@@ -234,7 +234,7 @@ if(!class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded')) {
|
|
234 |
*/
|
235 |
public function plugin_settings_link( $links, $file ) {
|
236 |
if ( $file == 'subscribe-to-comments-reloaded/subscribe-to-comments-reloaded.php' ) {
|
237 |
-
$links['settings'] = sprintf( '<a href="%s"> %s </a>', admin_url( 'admin.php?page=stcr_options' ), __( 'Settings', 'subscribe-reloaded' ) );
|
238 |
}
|
239 |
|
240 |
return $links;
|
@@ -645,7 +645,7 @@ if(!class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded')) {
|
|
645 |
if (function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
|
646 |
$manager_page_title = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($manager_page_title);
|
647 |
} else {
|
648 |
-
$manager_page_title =
|
649 |
}
|
650 |
|
651 |
$posts[] =
|
@@ -1198,15 +1198,15 @@ if(!class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded')) {
|
|
1198 |
"$user_link?" . $post_permalink;
|
1199 |
|
1200 |
if ( $wp_subscribe_reloaded->stcr->is_user_subscribed( $post->ID, '', 'C' ) ) {
|
1201 |
-
$html_to_show
|
1202 |
'[manager_link]', $user_link,
|
1203 |
-
|
1204 |
);
|
1205 |
$show_subscription_box = false;
|
1206 |
} elseif ( $wp_subscribe_reloaded->stcr->is_user_subscribed( $post->ID, '' ) ) {
|
1207 |
-
$html_to_show
|
1208 |
'[manager_link]', $user_link ,
|
1209 |
-
|
1210 |
);
|
1211 |
$show_subscription_box = false;
|
1212 |
}
|
@@ -1215,16 +1215,17 @@ if(!class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded')) {
|
|
1215 |
if ( get_option( 'subscribe_reloaded_admin_subscribe', 'no' ) == 'no' ) {
|
1216 |
$show_subscription_box = false;
|
1217 |
}
|
|
|
1218 |
$html_to_show .= str_replace(
|
1219 |
'[manager_link]', $manager_link,
|
1220 |
-
|
1221 |
);
|
1222 |
}
|
1223 |
|
1224 |
if ( $show_subscription_box ) {
|
1225 |
$checkbox_label = str_replace(
|
1226 |
'[subscribe_link]', "$manager_link&sra=s&srsrc=f",
|
1227 |
-
|
1228 |
);
|
1229 |
$checkbox_inline_style = get_option( 'subscribe_reloaded_checkbox_inline_style', 'width:30px' );
|
1230 |
if ( ! empty( $checkbox_inline_style ) ) {
|
@@ -1243,9 +1244,9 @@ if(!class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded')) {
|
|
1243 |
$checkbox_field = "<input$checkbox_inline_style type='checkbox' name='subscribe-reloaded' id='subscribe-reloaded' value='$checkbox_subscription_type'" . ( ( get_option( 'subscribe_reloaded_checked_by_default', 'no' ) == 'yes' ) ? " checked='checked'" : '' ) . " />";
|
1244 |
} else {
|
1245 |
$checkbox_field = "<select name='subscribe-reloaded' id='subscribe-reloaded'>
|
1246 |
-
<option value='none' " . ( ( get_option( 'subscribe_reloaded_default_subscription_type' ) === '0' ) ? "selected='selected'" : '' ) . ">" . __( "Don't subscribe", 'subscribe-reloaded' ) . "</option>
|
1247 |
-
<option value='yes' " . ( ( get_option( 'subscribe_reloaded_default_subscription_type' ) === '1' ) ? "selected='selected'" : '' ) . ">" . __( "All", 'subscribe-reloaded' ) . "</option>
|
1248 |
-
<option value='replies' " . ( ( get_option( 'subscribe_reloaded_default_subscription_type' ) === '2' ) ? "selected='selected'" : '' ) . ">" . __( "Replies to my comments", 'subscribe-reloaded' ) . "</option>
|
1249 |
</select>";
|
1250 |
}
|
1251 |
if ( empty( $checkbox_html_wrap ) ) {
|
6 |
exit;
|
7 |
}
|
8 |
|
9 |
+
define( __NAMESPACE__.'\\VERSION','190426' );
|
10 |
define( __NAMESPACE__.'\\DEVELOPMENT', true );
|
11 |
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
|
12 |
|
49 |
if ( DEVELOPMENT )
|
50 |
{
|
51 |
// Add subscriptions for tests
|
52 |
+
//$this->add_manual_subs( 10000, 18,'Y', 'dev', 30);
|
53 |
}
|
54 |
|
55 |
add_shortcode( 'stcr_management_page', array( $this, 'management_page_sc' ) );
|
161 |
$current_page = isset( $_GET['page'] ) ? $_GET['page'] : '';
|
162 |
// Define the panels
|
163 |
$array_pages = array(
|
164 |
+
"stcr_manage_subscriptions" => __( 'Manage subscriptions', 'subscribe-to-comments-reloaded' ),
|
165 |
+
"stcr_comment_form" => __( 'Comment Form', 'subscribe-to-comments-reloaded' ),
|
166 |
+
"stcr_management_page" => __( 'Management Page', 'subscribe-to-comments-reloaded' ),
|
167 |
+
"stcr_notifications" => __( 'Notifications', 'subscribe-to-comments-reloaded' ),
|
168 |
+
"stcr_options" => __( 'Options', 'subscribe-to-comments-reloaded' ),
|
169 |
+
"stcr_support" => __( 'Support', 'subscribe-to-comments-reloaded' ),
|
170 |
+
"stcr_system" => __( 'Options', 'subscribe-to-comments-reloaded' )
|
171 |
);
|
172 |
|
173 |
|
193 |
'. $page_desc .'
|
194 |
</a>
|
195 |
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
196 |
+
<a class="dropdown-item" href="admin.php?page=' . $page . '">'. __("StCR Options", 'subscribe-to-comments-reloaded') .'</a>
|
197 |
<div class="dropdown-divider"></div>
|
198 |
+
<a class="dropdown-item" href="admin.php?page=stcr_system">'. __("StCR System", 'subscribe-to-comments-reloaded') .'</a>
|
199 |
</div>';
|
200 |
}
|
201 |
elseif ( $page == "stcr_system" )
|
226 |
* Load localization files
|
227 |
*/
|
228 |
function subscribe_reloaded_load_plugin_textdomain() {
|
229 |
+
load_plugin_textdomain( 'subscribe-to-comments-reloaded', FALSE, SLUG . "/langs/" );
|
230 |
}
|
231 |
|
232 |
/*
|
234 |
*/
|
235 |
public function plugin_settings_link( $links, $file ) {
|
236 |
if ( $file == 'subscribe-to-comments-reloaded/subscribe-to-comments-reloaded.php' ) {
|
237 |
+
$links['settings'] = sprintf( '<a href="%s"> %s </a>', admin_url( 'admin.php?page=stcr_options' ), __( 'Settings', 'subscribe-to-comments-reloaded' ) );
|
238 |
}
|
239 |
|
240 |
return $links;
|
645 |
if (function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
|
646 |
$manager_page_title = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($manager_page_title);
|
647 |
} else {
|
648 |
+
$manager_page_title = $manager_page_title;
|
649 |
}
|
650 |
|
651 |
$posts[] =
|
1198 |
"$user_link?" . $post_permalink;
|
1199 |
|
1200 |
if ( $wp_subscribe_reloaded->stcr->is_user_subscribed( $post->ID, '', 'C' ) ) {
|
1201 |
+
$html_to_show = str_replace(
|
1202 |
'[manager_link]', $user_link,
|
1203 |
+
html_entity_decode( stripslashes( get_option( 'subscribe_reloaded_subscribed_waiting_label', __( "Your subscription to this post needs to be confirmed. <a href='[manager_link]'>Manage your subscriptions</a>.", 'subscribe-to-comments-reloaded' ) ) ), ENT_QUOTES, 'UTF-8' )
|
1204 |
);
|
1205 |
$show_subscription_box = false;
|
1206 |
} elseif ( $wp_subscribe_reloaded->stcr->is_user_subscribed( $post->ID, '' ) ) {
|
1207 |
+
$html_to_show = str_replace(
|
1208 |
'[manager_link]', $user_link ,
|
1209 |
+
html_entity_decode( stripslashes( get_option( 'subscribe_reloaded_subscribed_label', __( "You are subscribed to this post. <a href='[manager_link]'>Manage</a> your subscriptions.", 'subscribe-to-comments-reloaded' ) ) ), ENT_QUOTES, 'UTF-8' )
|
1210 |
);
|
1211 |
$show_subscription_box = false;
|
1212 |
}
|
1215 |
if ( get_option( 'subscribe_reloaded_admin_subscribe', 'no' ) == 'no' ) {
|
1216 |
$show_subscription_box = false;
|
1217 |
}
|
1218 |
+
$html_to_show .= ' ';
|
1219 |
$html_to_show .= str_replace(
|
1220 |
'[manager_link]', $manager_link,
|
1221 |
+
html_entity_decode( stripslashes( get_option( 'subscribe_reloaded_author_label', __( "You can <a href='[manager_link]'>manage the subscriptions</a> of this post.", 'subscribe-to-comments-reloaded' ) ) ), ENT_QUOTES, 'UTF-8' )
|
1222 |
);
|
1223 |
}
|
1224 |
|
1225 |
if ( $show_subscription_box ) {
|
1226 |
$checkbox_label = str_replace(
|
1227 |
'[subscribe_link]', "$manager_link&sra=s&srsrc=f",
|
1228 |
+
html_entity_decode( stripslashes( get_option( 'subscribe_reloaded_checkbox_label', __( "Notify me of followup comments via e-mail. You can also <a href='[subscribe_link]'>subscribe</a> without commenting.", 'subscribe-to-comments-reloaded' ) ) ), ENT_QUOTES, 'UTF-8' )
|
1229 |
);
|
1230 |
$checkbox_inline_style = get_option( 'subscribe_reloaded_checkbox_inline_style', 'width:30px' );
|
1231 |
if ( ! empty( $checkbox_inline_style ) ) {
|
1244 |
$checkbox_field = "<input$checkbox_inline_style type='checkbox' name='subscribe-reloaded' id='subscribe-reloaded' value='$checkbox_subscription_type'" . ( ( get_option( 'subscribe_reloaded_checked_by_default', 'no' ) == 'yes' ) ? " checked='checked'" : '' ) . " />";
|
1245 |
} else {
|
1246 |
$checkbox_field = "<select name='subscribe-reloaded' id='subscribe-reloaded'>
|
1247 |
+
<option value='none' " . ( ( get_option( 'subscribe_reloaded_default_subscription_type' ) === '0' ) ? "selected='selected'" : '' ) . ">" . __( "Don't subscribe", 'subscribe-to-comments-reloaded' ) . "</option>
|
1248 |
+
<option value='yes' " . ( ( get_option( 'subscribe_reloaded_default_subscription_type' ) === '1' ) ? "selected='selected'" : '' ) . ">" . __( "All", 'subscribe-to-comments-reloaded' ) . "</option>
|
1249 |
+
<option value='replies' " . ( ( get_option( 'subscribe_reloaded_default_subscription_type' ) === '2' ) ? "selected='selected'" : '' ) . ">" . __( "Replies to my comments", 'subscribe-to-comments-reloaded' ) . "</option>
|
1250 |
</select>";
|
1251 |
}
|
1252 |
if ( empty( $checkbox_html_wrap ) ) {
|