Version Description
Download this release
Release Info
| Developer | wpkube |
| Plugin | |
| Version | 210126 |
| Comparing to | |
| See all releases | |
Code changes from version 210110 to 210126
- options/options_template.php +2 -0
- options/stcr_management_page.php +54 -1
- readme.txt +4 -1
- subscribe-to-comments-reloaded.php +1 -1
- templates/not-allowed.php +20 -0
- wp_subscribe_reloaded.php +13 -3
options/options_template.php
CHANGED
|
@@ -31,6 +31,8 @@ $options = array(
|
|
| 31 |
'use_captcha' => 'yesno',
|
| 32 |
'captcha_site_key' => 'text',
|
| 33 |
'captcha_secret_key' => 'text',
|
|
|
|
|
|
|
| 34 |
);
|
| 35 |
|
| 36 |
// Update options
|
| 31 |
'use_captcha' => 'yesno',
|
| 32 |
'captcha_site_key' => 'text',
|
| 33 |
'captcha_secret_key' => 'text',
|
| 34 |
+
'allow_subscribe_without_comment' => 'yesno',
|
| 35 |
+
'allow_request_management_link' => 'yesno',
|
| 36 |
);
|
| 37 |
|
| 38 |
// Update options
|
options/stcr_management_page.php
CHANGED
|
@@ -18,7 +18,9 @@ $options = array(
|
|
| 18 |
"subscription_confirmed" => "text-html",
|
| 19 |
"subscription_confirmed_dci" => "text-html",
|
| 20 |
"author_text" => "text-html",
|
| 21 |
-
"user_text" => "text-html"
|
|
|
|
|
|
|
| 22 |
);
|
| 23 |
|
| 24 |
$options_readable = array(
|
|
@@ -68,6 +70,7 @@ wp_print_scripts( 'quicktags' );
|
|
| 68 |
<div class="row">
|
| 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">
|
|
@@ -153,6 +156,56 @@ wp_print_scripts( 'quicktags' );
|
|
| 153 |
</div>
|
| 154 |
</div>
|
| 155 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
<h3><?php _e( 'Messages', 'subscribe-to-comments-reloaded' ) ?></h3>
|
| 157 |
|
| 158 |
<div class="form-group row">
|
| 18 |
"subscription_confirmed" => "text-html",
|
| 19 |
"subscription_confirmed_dci" => "text-html",
|
| 20 |
"author_text" => "text-html",
|
| 21 |
+
"user_text" => "text-html",
|
| 22 |
+
'allow_subscribe_without_comment' => 'yesno',
|
| 23 |
+
'allow_request_management_link' => 'yesno',
|
| 24 |
);
|
| 25 |
|
| 26 |
$options_readable = array(
|
| 70 |
<div class="row">
|
| 71 |
<div class="col-sm-9">
|
| 72 |
<form class="management_page_form" action="" method="post">
|
| 73 |
+
|
| 74 |
<div class="form-group row">
|
| 75 |
<label for="manager_page_enabled" class="col-sm-3 col-form-label text-right"><?php _e( 'Virtual Management Page', 'subscribe-to-comments-reloaded' ) ?></label>
|
| 76 |
<div class="col-sm-7">
|
| 156 |
</div>
|
| 157 |
</div>
|
| 158 |
|
| 159 |
+
<div class="form-group row">
|
| 160 |
+
<label for="allow_subscribe_without_comment" class="col-sm-3 col-form-label text-right"><?php _e( 'Allow "Subscribe Without Comment"', 'subscribe-to-comments-reloaded' ) ?></label>
|
| 161 |
+
<div class="col-sm-7">
|
| 162 |
+
<div class="switch">
|
| 163 |
+
<input type="radio" class="switch-input" name="options[allow_subscribe_without_comment]"
|
| 164 |
+
value="yes" id="allow_subscribe_without_comment-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'allow_subscribe_without_comment', 'yes' ) == 'yes' ) ? ' checked' : ''; ?> />
|
| 165 |
+
<label for="allow_subscribe_without_comment-yes" class="switch-label switch-label-off">
|
| 166 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
| 167 |
+
</label>
|
| 168 |
+
<input type="radio" class="switch-input" name="options[allow_subscribe_without_comment]" value="no" id="allow_subscribe_without_comment-no"
|
| 169 |
+
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'allow_subscribe_without_comment', 'yes' ) == 'no' ) ? ' checked' : ''; ?> />
|
| 170 |
+
<label for="allow_subscribe_without_comment-no" class="switch-label switch-label-on">
|
| 171 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
| 172 |
+
</label>
|
| 173 |
+
<span class="switch-selection"></span>
|
| 174 |
+
</div>
|
| 175 |
+
<div class="helpDescription subsOptDescriptions"
|
| 176 |
+
data-content="<?php _e( "Enable or disable the form that allows visitors to subscribe to comments notifications without commenting.", 'subscribe-to-comments-reloaded' ); ?>"
|
| 177 |
+
data-placement="right"
|
| 178 |
+
aria-label="<?php _e( "Enable or disable the form that allows visitors to subscribe to comments notifications without commenting.", 'subscribe-to-comments-reloaded' ); ?>">
|
| 179 |
+
<i class="fas fa-question-circle"></i>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
|
| 184 |
+
<div class="form-group row">
|
| 185 |
+
<label for="allow_request_management_link" class="col-sm-3 col-form-label text-right"><?php _e( 'Allow "Request Management Link"', 'subscribe-to-comments-reloaded' ) ?></label>
|
| 186 |
+
<div class="col-sm-7">
|
| 187 |
+
<div class="switch">
|
| 188 |
+
<input type="radio" class="switch-input" name="options[allow_request_management_link]"
|
| 189 |
+
value="yes" id="allow_request_management_link-yes" <?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'allow_request_management_link', 'yes' ) == 'yes' ) ? ' checked' : ''; ?> />
|
| 190 |
+
<label for="allow_request_management_link-yes" class="switch-label switch-label-off">
|
| 191 |
+
<?php _e( 'Yes', 'subscribe-to-comments-reloaded' ) ?>
|
| 192 |
+
</label>
|
| 193 |
+
<input type="radio" class="switch-input" name="options[allow_request_management_link]" value="no" id="allow_request_management_link-no"
|
| 194 |
+
<?php echo ( $wp_subscribe_reloaded->stcr->utils->stcr_get_menu_options( 'allow_request_management_link', 'yes' ) == 'no' ) ? ' checked' : ''; ?> />
|
| 195 |
+
<label for="allow_request_management_link-no" class="switch-label switch-label-on">
|
| 196 |
+
<?php _e( 'No', 'subscribe-to-comments-reloaded' ) ?>
|
| 197 |
+
</label>
|
| 198 |
+
<span class="switch-selection"></span>
|
| 199 |
+
</div>
|
| 200 |
+
<div class="helpDescription subsOptDescriptions"
|
| 201 |
+
data-content="<?php _e( "Enable or disable the form that allows visitors to to request a subscription management link.", 'subscribe-to-comments-reloaded' ); ?>"
|
| 202 |
+
data-placement="right"
|
| 203 |
+
aria-label="<?php _e( "Enable or disable the form that allows visitors to to request a subscription management link.", 'subscribe-to-comments-reloaded' ); ?>">
|
| 204 |
+
<i class="fas fa-question-circle"></i>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
</div>
|
| 208 |
+
|
| 209 |
<h3><?php _e( 'Messages', 'subscribe-to-comments-reloaded' ) ?></h3>
|
| 210 |
|
| 211 |
<div class="form-group row">
|
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.6
|
| 10 |
-
Stable tag:
|
| 11 |
License: GPLv2 or later
|
| 12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 13 |
|
|
@@ -95,6 +95,9 @@ Just go to the Options Panel and click the generate button. By generating a new
|
|
| 95 |
7. Manage the subscriptions on the Frontend Side.
|
| 96 |
|
| 97 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 98 |
= v210110 =
|
| 99 |
* **Fix** Limit subscription types on the management page when only a specific subscription is allowed
|
| 100 |
* **Fix** JS error on front-end
|
| 7 |
Requires PHP: 5.6
|
| 8 |
Requires MySQL: 5.6
|
| 9 |
Tested up to: 5.6
|
| 10 |
+
Stable tag: 210126
|
| 11 |
License: GPLv2 or later
|
| 12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 13 |
|
| 95 |
7. Manage the subscriptions on the Frontend Side.
|
| 96 |
|
| 97 |
== Changelog ==
|
| 98 |
+
= v210126 =
|
| 99 |
+
* **New** Option to disable the "subscribe without commenting" and "request management link" pages. ( WP Admin > StCR > Management Page )
|
| 100 |
+
|
| 101 |
= v210110 =
|
| 102 |
* **Fix** Limit subscription types on the management page when only a specific subscription is allowed
|
| 103 |
* **Fix** JS error on front-end
|
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: 210126
|
| 6 |
* Author: WPKube
|
| 7 |
* Author URI: http://wpkube.com/
|
| 8 |
* License: GPL-2.0+
|
templates/not-allowed.php
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
// Avoid direct access to this piece of code
|
| 3 |
+
if ( ! function_exists( 'add_action' ) ) {
|
| 4 |
+
header( 'Location: /' );
|
| 5 |
+
exit;
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
$error_message = __( 'You are not allowed to access this page.', 'subscribe-to-comments-reloaded' );
|
| 9 |
+
|
| 10 |
+
global $wp_subscribe_reloaded;
|
| 11 |
+
|
| 12 |
+
ob_start();
|
| 13 |
+
|
| 14 |
+
?><p><?php echo wpautop( $error_message ); ?></p><?php
|
| 15 |
+
|
| 16 |
+
$output = ob_get_contents();
|
| 17 |
+
ob_end_clean();
|
| 18 |
+
return $output;
|
| 19 |
+
|
| 20 |
+
?>
|
wp_subscribe_reloaded.php
CHANGED
|
@@ -8,7 +8,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
| 8 |
}
|
| 9 |
|
| 10 |
// globals
|
| 11 |
-
define( __NAMESPACE__.'\\VERSION','
|
| 12 |
define( __NAMESPACE__.'\\DEVELOPMENT', false );
|
| 13 |
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
|
| 14 |
|
|
@@ -810,7 +810,11 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded') ) {
|
|
| 810 |
$key_expired != "1"
|
| 811 |
) {
|
| 812 |
|
| 813 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 814 |
|
| 815 |
// post author
|
| 816 |
} elseif (
|
|
@@ -867,7 +871,13 @@ if( ! class_exists('\\'.__NAMESPACE__.'\\wp_subscribe_reloaded') ) {
|
|
| 867 |
|
| 868 |
// request management link
|
| 869 |
if (empty($include_post_content)) {
|
| 870 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 871 |
}
|
| 872 |
|
| 873 |
}
|
| 8 |
}
|
| 9 |
|
| 10 |
// globals
|
| 11 |
+
define( __NAMESPACE__.'\\VERSION','210126' );
|
| 12 |
define( __NAMESPACE__.'\\DEVELOPMENT', false );
|
| 13 |
define( __NAMESPACE__.'\\SLUG', "subscribe-to-comments-reloaded" );
|
| 14 |
|
| 810 |
$key_expired != "1"
|
| 811 |
) {
|
| 812 |
|
| 813 |
+
if ( get_option( 'subscribe_reloaded_allow_subscribe_without_comment', 'yes' ) == 'yes' ) {
|
| 814 |
+
$include_post_content = include WP_PLUGIN_DIR . '/subscribe-to-comments-reloaded/templates/subscribe.php';
|
| 815 |
+
} else {
|
| 816 |
+
$include_post_content = include WP_PLUGIN_DIR . '/subscribe-to-comments-reloaded/templates/not-allowed.php';
|
| 817 |
+
}
|
| 818 |
|
| 819 |
// post author
|
| 820 |
} elseif (
|
| 871 |
|
| 872 |
// request management link
|
| 873 |
if (empty($include_post_content)) {
|
| 874 |
+
|
| 875 |
+
if ( get_option( 'subscribe_reloaded_allow_request_management_link', 'yes' ) == 'yes' ) {
|
| 876 |
+
$include_post_content = include WP_PLUGIN_DIR . '/subscribe-to-comments-reloaded/templates/request-management-link.php';
|
| 877 |
+
} else {
|
| 878 |
+
$include_post_content = include WP_PLUGIN_DIR . '/subscribe-to-comments-reloaded/templates/not-allowed.php';
|
| 879 |
+
}
|
| 880 |
+
|
| 881 |
}
|
| 882 |
|
| 883 |
}
|
