Changeset 3144029
- Timestamp:
- 08/30/2024 04:07:21 AM (19 months ago)
- Location:
- content-restriction
- Files:
-
- 20 edited
- 1 copied
-
tags/1.1.1 (copied) (copied from content-restriction/trunk)
-
tags/1.1.1/app/Admin/Controllers/ModuleController.php (modified) (1 diff)
-
tags/1.1.1/app/Integrations/Directorist/Hide.php (modified) (2 diffs)
-
tags/1.1.1/app/Integrations/EasyDigitalDownloads/Hide.php (modified) (2 diffs)
-
tags/1.1.1/app/Integrations/WooCommerce/Hide.php (modified) (1 diff)
-
tags/1.1.1/app/Modules/LoginBack/Frontend.php (modified) (1 diff)
-
tags/1.1.1/config.php (modified) (1 diff)
-
tags/1.1.1/content-restriction.php (modified) (1 diff)
-
tags/1.1.1/languages/content-restriction.pot (modified) (2 diffs)
-
tags/1.1.1/readme.txt (modified) (3 diffs)
-
tags/1.1.1/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/app/Admin/Controllers/ModuleController.php (modified) (1 diff)
-
trunk/app/Integrations/Directorist/Hide.php (modified) (2 diffs)
-
trunk/app/Integrations/EasyDigitalDownloads/Hide.php (modified) (2 diffs)
-
trunk/app/Integrations/WooCommerce/Hide.php (modified) (1 diff)
-
trunk/app/Modules/LoginBack/Frontend.php (modified) (1 diff)
-
trunk/config.php (modified) (1 diff)
-
trunk/content-restriction.php (modified) (1 diff)
-
trunk/languages/content-restriction.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
content-restriction/tags/1.1.1/app/Admin/Controllers/ModuleController.php
r3142420 r3144029 50 50 $param_value = $request->get_param( $filter_key ); 51 51 $condition_values = $module['conditions'][$filter_key] ?? []; 52 if ( 53 ! empty( $param_value ) 54 && ! empty( $condition_values ) 55 && ! in_array( $param_value, $condition_values ) 56 ) { 52 $compare = $module['conditions']['compare'] ?? 'has_any'; 53 54 if ( empty( $param_value ) || empty( $condition_values ) ) { 55 continue; 56 } 57 58 // If compare is 'not_in' and the value is in the condition_values, unset the module 59 if ( 'not_in' === $compare && in_array( $param_value, $condition_values ) ) { 57 60 unset( $modules[$key] ); 58 continue 2; 61 continue 2; // Skip to the next module 62 } 63 64 // If compare is 'has_any' (default) and the value is not in the condition_values, unset the module 65 if ( 'has_any' === $compare && ! in_array( $param_value, $condition_values ) ) { 66 unset( $modules[$key] ); 67 continue 2; // Skip to the next module 59 68 } 60 69 } -
content-restriction/tags/1.1.1/app/Integrations/Directorist/Hide.php
r3142420 r3144029 13 13 14 14 public function single_view_hide() { 15 if ( ! isset( $this->what_content_type ) ) { 16 return; 17 } 18 15 19 if ( is_front_page() || is_archive() || is_home() ) { 16 20 return; … … 42 46 43 47 public function hide( $query, $post_type, $what_content_type, $options ) { 48 44 49 if ( $this->post_type !== $post_type ) { 45 50 return; 46 51 } 47 52 48 $this->options = $options;53 $this->options = $options; 49 54 $this->what_content_type = $what_content_type; 50 55 -
content-restriction/tags/1.1.1/app/Integrations/EasyDigitalDownloads/Hide.php
r3142420 r3144029 13 13 14 14 public function single_view_hide() { 15 if ( ! isset( $this->what_content_type ) ) { 16 return; 17 } 18 15 19 if ( is_front_page() || is_archive() || is_home() ) { 16 20 return; … … 41 45 } 42 46 43 $this->options = $options;47 $this->options = $options; 44 48 $this->what_content_type = $what_content_type; 45 49 -
content-restriction/tags/1.1.1/app/Integrations/WooCommerce/Hide.php
r3137277 r3144029 13 13 14 14 public function single_view_hide() { 15 if ( ! isset( $this->what_content_type ) ) { 16 return; 17 } 18 15 19 if ( is_front_page() || is_archive() || is_home() ) { 16 20 return; -
content-restriction/tags/1.1.1/app/Modules/LoginBack/Frontend.php
r3137277 r3144029 22 22 'icon' => $this->get_icon( 'LoginBack' ), 23 23 'desc' => __( 'Redirect back to the current post or page after the user logged in.', 'content-restriction' ), 24 //'conditions' => apply_filters(25 //'content_restriction_module_login_and_back_conditions',26 //[27 //'who_can_see' => [28 //'user_not_logged_in',29 //],30 // 'compare' => 'has_any',31 //],32 //),24 'conditions' => apply_filters( 25 'content_restriction_module_login_and_back_conditions', 26 [ 27 'who_can_see' => [ 28 'user_not_logged_in', 29 ], 30 'compare' => 'not_in', 31 ], 32 ), 33 33 ]; 34 34 -
content-restriction/tags/1.1.1/config.php
r3142420 r3144029 9 9 10 10 return [ 11 'version' => '1.1. 0',11 'version' => '1.1.1', 12 12 'min_php' => '7.4', 13 13 'db_version' => '1.0.0', -
content-restriction/tags/1.1.1/content-restriction.php
r3142420 r3144029 3 3 4 4 /** 5 * Plugin Name: All-in-OneContent Restriction5 * Plugin Name: Content Restriction 6 6 * Plugin URI: https://wordpress.org/plugins/content-restriction/ 7 7 * Description: Content Restriction - A simple and user-friendly plugin to restrict users / visitors from viewing posts by restricting access, as simple as that. 8 * Version: 1.1. 08 * Version: 1.1.1 9 9 * Author: Pluginly 10 10 * Author URI: https://profiles.wordpress.org/pluginly/ -
content-restriction/tags/1.1.1/languages/content-restriction.pot
r3142420 r3144029 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: All-in-One Content Restriction 1.1.0\n"5 "Project-Id-Version: Content Restriction 1.1.1\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/content-restriction\n" 8 "POT-Creation-Date: 2024-08- 27 17:03:10+00:00\n"8 "POT-Creation-Date: 2024-08-30 04:07:05+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 39 39 msgstr "" 40 40 41 #: app/Admin/Enqueuer.php:66 app/Admin/Menu.php:31 42 #: app/Providers/AdminServiceProviders.php:51 41 #. Plugin Name of the plugin/theme 43 42 msgid "Content Restriction" 44 43 msgstr "" 45 44 46 # . Plugin Name of the plugin/theme45 #: app/Admin/Menu.php:28 47 46 msgid "All-in-One Content Restriction" 48 47 msgstr "" -
content-restriction/tags/1.1.1/readme.txt
r3142420 r3144029 1 === All-in-OneContent Restriction – Conditional Content Visibility & Access Control for WordPress ===1 === Content Restriction – Conditional Content Visibility & Access Control for WordPress === 2 2 Contributors: Pluginly, HeyMehedi 3 3 Tags: content restriction, access control, private, permission, restrict access … … 5 5 Tested up to: 6.6 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 All-in-OneContent Restriction is a comprehensive, easy to use & feature-packed WordPress content restriction plugin.11 Content Restriction is a comprehensive, easy to use & feature-packed WordPress content restriction plugin. 12 12 13 13 == Description == 14 All-in-OneContent Restriction is a comprehensive, easy to use & feature-packed WordPress content restriction plugin to set content access rules for any user - whether logged in, holding specific user role, or a visitor.14 Content Restriction is a comprehensive, easy to use & feature-packed WordPress content restriction plugin to set content access rules for any user - whether logged in, holding specific user role, or a visitor. 15 15 16 16 Decide who gets to see what content – be it pages, posts , taxonomy or any custom post type by setting up content visibility rules. … … 118 118 == Changelog == 119 119 120 = 1.1.1 – Aug 30, 2024 = 121 * Fix: Hide Issue 122 120 123 = 1.1.0 – Aug 27, 2024 = 121 124 * Add: WooCommerce Integration -
content-restriction/tags/1.1.1/vendor/composer/installed.php
r3142420 r3144029 2 2 'root' => array( 3 3 'name' => 'pluginly/content-restriction', 4 'pretty_version' => '1.1. 0',5 'version' => '1.1. 0.0',6 'reference' => ' fe6a8a1cf01198a4e24eeb533e429f60e82a2cf8',4 'pretty_version' => '1.1.1', 5 'version' => '1.1.1.0', 6 'reference' => 'ade25357ee7169471a0f486c1fdfba24a4d5b042', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'pluginly/content-restriction' => array( 14 'pretty_version' => '1.1. 0',15 'version' => '1.1. 0.0',16 'reference' => ' fe6a8a1cf01198a4e24eeb533e429f60e82a2cf8',14 'pretty_version' => '1.1.1', 15 'version' => '1.1.1.0', 16 'reference' => 'ade25357ee7169471a0f486c1fdfba24a4d5b042', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
content-restriction/trunk/app/Admin/Controllers/ModuleController.php
r3142420 r3144029 50 50 $param_value = $request->get_param( $filter_key ); 51 51 $condition_values = $module['conditions'][$filter_key] ?? []; 52 if ( 53 ! empty( $param_value ) 54 && ! empty( $condition_values ) 55 && ! in_array( $param_value, $condition_values ) 56 ) { 52 $compare = $module['conditions']['compare'] ?? 'has_any'; 53 54 if ( empty( $param_value ) || empty( $condition_values ) ) { 55 continue; 56 } 57 58 // If compare is 'not_in' and the value is in the condition_values, unset the module 59 if ( 'not_in' === $compare && in_array( $param_value, $condition_values ) ) { 57 60 unset( $modules[$key] ); 58 continue 2; 61 continue 2; // Skip to the next module 62 } 63 64 // If compare is 'has_any' (default) and the value is not in the condition_values, unset the module 65 if ( 'has_any' === $compare && ! in_array( $param_value, $condition_values ) ) { 66 unset( $modules[$key] ); 67 continue 2; // Skip to the next module 59 68 } 60 69 } -
content-restriction/trunk/app/Integrations/Directorist/Hide.php
r3142420 r3144029 13 13 14 14 public function single_view_hide() { 15 if ( ! isset( $this->what_content_type ) ) { 16 return; 17 } 18 15 19 if ( is_front_page() || is_archive() || is_home() ) { 16 20 return; … … 42 46 43 47 public function hide( $query, $post_type, $what_content_type, $options ) { 48 44 49 if ( $this->post_type !== $post_type ) { 45 50 return; 46 51 } 47 52 48 $this->options = $options;53 $this->options = $options; 49 54 $this->what_content_type = $what_content_type; 50 55 -
content-restriction/trunk/app/Integrations/EasyDigitalDownloads/Hide.php
r3142420 r3144029 13 13 14 14 public function single_view_hide() { 15 if ( ! isset( $this->what_content_type ) ) { 16 return; 17 } 18 15 19 if ( is_front_page() || is_archive() || is_home() ) { 16 20 return; … … 41 45 } 42 46 43 $this->options = $options;47 $this->options = $options; 44 48 $this->what_content_type = $what_content_type; 45 49 -
content-restriction/trunk/app/Integrations/WooCommerce/Hide.php
r3137277 r3144029 13 13 14 14 public function single_view_hide() { 15 if ( ! isset( $this->what_content_type ) ) { 16 return; 17 } 18 15 19 if ( is_front_page() || is_archive() || is_home() ) { 16 20 return; -
content-restriction/trunk/app/Modules/LoginBack/Frontend.php
r3137277 r3144029 22 22 'icon' => $this->get_icon( 'LoginBack' ), 23 23 'desc' => __( 'Redirect back to the current post or page after the user logged in.', 'content-restriction' ), 24 //'conditions' => apply_filters(25 //'content_restriction_module_login_and_back_conditions',26 //[27 //'who_can_see' => [28 //'user_not_logged_in',29 //],30 // 'compare' => 'has_any',31 //],32 //),24 'conditions' => apply_filters( 25 'content_restriction_module_login_and_back_conditions', 26 [ 27 'who_can_see' => [ 28 'user_not_logged_in', 29 ], 30 'compare' => 'not_in', 31 ], 32 ), 33 33 ]; 34 34 -
content-restriction/trunk/config.php
r3142420 r3144029 9 9 10 10 return [ 11 'version' => '1.1. 0',11 'version' => '1.1.1', 12 12 'min_php' => '7.4', 13 13 'db_version' => '1.0.0', -
content-restriction/trunk/content-restriction.php
r3142420 r3144029 3 3 4 4 /** 5 * Plugin Name: All-in-OneContent Restriction5 * Plugin Name: Content Restriction 6 6 * Plugin URI: https://wordpress.org/plugins/content-restriction/ 7 7 * Description: Content Restriction - A simple and user-friendly plugin to restrict users / visitors from viewing posts by restricting access, as simple as that. 8 * Version: 1.1. 08 * Version: 1.1.1 9 9 * Author: Pluginly 10 10 * Author URI: https://profiles.wordpress.org/pluginly/ -
content-restriction/trunk/languages/content-restriction.pot
r3142420 r3144029 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: All-in-One Content Restriction 1.1.0\n"5 "Project-Id-Version: Content Restriction 1.1.1\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/content-restriction\n" 8 "POT-Creation-Date: 2024-08- 27 17:03:10+00:00\n"8 "POT-Creation-Date: 2024-08-30 04:07:05+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 39 39 msgstr "" 40 40 41 #: app/Admin/Enqueuer.php:66 app/Admin/Menu.php:31 42 #: app/Providers/AdminServiceProviders.php:51 41 #. Plugin Name of the plugin/theme 43 42 msgid "Content Restriction" 44 43 msgstr "" 45 44 46 # . Plugin Name of the plugin/theme45 #: app/Admin/Menu.php:28 47 46 msgid "All-in-One Content Restriction" 48 47 msgstr "" -
content-restriction/trunk/readme.txt
r3142420 r3144029 1 === All-in-OneContent Restriction – Conditional Content Visibility & Access Control for WordPress ===1 === Content Restriction – Conditional Content Visibility & Access Control for WordPress === 2 2 Contributors: Pluginly, HeyMehedi 3 3 Tags: content restriction, access control, private, permission, restrict access … … 5 5 Tested up to: 6.6 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 All-in-OneContent Restriction is a comprehensive, easy to use & feature-packed WordPress content restriction plugin.11 Content Restriction is a comprehensive, easy to use & feature-packed WordPress content restriction plugin. 12 12 13 13 == Description == 14 All-in-OneContent Restriction is a comprehensive, easy to use & feature-packed WordPress content restriction plugin to set content access rules for any user - whether logged in, holding specific user role, or a visitor.14 Content Restriction is a comprehensive, easy to use & feature-packed WordPress content restriction plugin to set content access rules for any user - whether logged in, holding specific user role, or a visitor. 15 15 16 16 Decide who gets to see what content – be it pages, posts , taxonomy or any custom post type by setting up content visibility rules. … … 118 118 == Changelog == 119 119 120 = 1.1.1 – Aug 30, 2024 = 121 * Fix: Hide Issue 122 120 123 = 1.1.0 – Aug 27, 2024 = 121 124 * Add: WooCommerce Integration -
content-restriction/trunk/vendor/composer/installed.php
r3142420 r3144029 2 2 'root' => array( 3 3 'name' => 'pluginly/content-restriction', 4 'pretty_version' => '1.1. 0',5 'version' => '1.1. 0.0',6 'reference' => ' fe6a8a1cf01198a4e24eeb533e429f60e82a2cf8',4 'pretty_version' => '1.1.1', 5 'version' => '1.1.1.0', 6 'reference' => 'ade25357ee7169471a0f486c1fdfba24a4d5b042', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'pluginly/content-restriction' => array( 14 'pretty_version' => '1.1. 0',15 'version' => '1.1. 0.0',16 'reference' => ' fe6a8a1cf01198a4e24eeb533e429f60e82a2cf8',14 'pretty_version' => '1.1.1', 15 'version' => '1.1.1.0', 16 'reference' => 'ade25357ee7169471a0f486c1fdfba24a4d5b042', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.