Changeset 3079140
- Timestamp:
- 04/30/2024 07:15:21 AM (11 months ago)
- Location:
- sesamy
- Files:
-
- 12 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
sesamy/tags/2.0.7/README.txt
r3078700 r3079140 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4.2 7 Stable tag: 2.0. 67 Stable tag: 2.0.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 103 103 == Changelog == 104 104 105 = 2.0.7 = 106 * Fix to always display the content for "None" lock mode 107 105 108 = 2.0.6 = 106 * Fix to display content if "Locked Content"for "Event" and "Signed URL" lock modes109 * Fix to display the content if "Locked Content" is false for "Event" and "Signed URL" lock modes 107 110 108 111 = 2.0.5 = … … 110 113 111 114 = 2.0.4 = 112 * Fix to display the content in "Public" access for "Event" and "Signed URL" lock modes115 * Fix to display the content in "Public" access level for "Event" and "Signed URL" lock modes 113 116 * Fix to hide the paywall if the content is public 114 117 -
sesamy/tags/2.0.7/public/class-sesamy-content-container.php
r3077290 r3079140 76 76 $paywall_seo = apply_filters( 'sesamy_paywall_seo', $this->show_seo_paywall_data( $post ), $post ); 77 77 78 $lock_mode = get_option( 'sesamy_lock_mode' ); 79 78 80 // Check if the post is unlocked or if the access level is public. If so, only return the content container. 79 if ( ! $is_locked || $access_level == 'public') { 81 $is_public = !$is_locked || $access_level === 'public' || $lock_mode === 'none'; 82 if ( $is_public ) { 80 83 return $paywall_seo . get_sesamy_content_container( $atts, $content ); 81 84 } -
sesamy/tags/2.0.7/public/sesamy-global-functions.php
r3078700 r3079140 78 78 ); 79 79 80 // If the article isn't locked, then add the "public" attribute to the container. 81 if ( ! Sesamy_Post_Properties::is_locked( $post_id ) || $access_level == 'public') { 80 // If the article is in lock mode None, it's not locked or it has access level public, treat it as embed and public. 81 $is_public = $atts['lock_mode'] === 'none' || !Sesamy_Post_Properties::is_locked( $post_id ) || $access_level === 'public'; 82 if ( $is_public ) { 83 $atts['lock_mode'] = 'embed'; 82 84 $atts['public'] = 'true'; 83 85 } … … 89 91 90 92 // Only the 'entitlement' access level is supported to use with the 'signedUrl' and 'event' lock modes. 91 // If the content is public or the access level isnot 'entitlement', we change the lock mode to 'embed', so that the content unlocks correctly.92 if ( ( 'signedUrl' === $atts['lock_mode'] || 'event' === $atts['lock_mode'] ) && ( isset( $atts['public'] ) || $access_level != 'entitlement' )) {93 // If the content is not 'entitlement', we change the lock mode to 'embed', so that the content unlocks correctly. 94 if ( ( 'signedUrl' === $atts['lock_mode'] || 'event' === $atts['lock_mode'] ) && $access_level != 'entitlement' ) { 93 95 $atts['lock_mode'] = 'embed'; 94 96 } -
sesamy/tags/2.0.7/sesamy.php
r3078700 r3079140 16 16 * Plugin URI: https://sesamy.com 17 17 * Description: Add paywall functionality with Sesamy (sesamy.com) to your WordPress website. 18 * Version: 2.0. 618 * Version: 2.0.7 19 19 * Author: Sesamy AB 20 20 * Author URI: https://sesamy.com … … 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define( 'SESAMY_VERSION', '2.0. 6' );37 define( 'SESAMY_VERSION', '2.0.7' ); 38 38 39 39 /** -
sesamy/tags/2.0.7/vendor/composer/installed.php
r3078700 r3079140 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => '2.0. 6',5 'version' => '2.0. 6.0',6 'reference' => 'b d34f8a0cd6760511fef9701e9f60d9212d94d0d',4 'pretty_version' => '2.0.7', 5 'version' => '2.0.7.0', 6 'reference' => 'baf442e77023ccc8bab3588f8cb281b13412319b', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => '2.0. 6',15 'version' => '2.0. 6.0',16 'reference' => 'b d34f8a0cd6760511fef9701e9f60d9212d94d0d',14 'pretty_version' => '2.0.7', 15 'version' => '2.0.7.0', 16 'reference' => 'baf442e77023ccc8bab3588f8cb281b13412319b', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
sesamy/tags/2.0.7/version.php
r3078700 r3079140 9 9 */ 10 10 11 define( 'SESAMY_VERSION', '2.0. 6' );11 define( 'SESAMY_VERSION', '2.0.7' ); -
sesamy/trunk/README.txt
r3078700 r3079140 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4.2 7 Stable tag: 2.0. 67 Stable tag: 2.0.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 103 103 == Changelog == 104 104 105 = 2.0.7 = 106 * Fix to always display the content for "None" lock mode 107 105 108 = 2.0.6 = 106 * Fix to display content if "Locked Content"for "Event" and "Signed URL" lock modes109 * Fix to display the content if "Locked Content" is false for "Event" and "Signed URL" lock modes 107 110 108 111 = 2.0.5 = … … 110 113 111 114 = 2.0.4 = 112 * Fix to display the content in "Public" access for "Event" and "Signed URL" lock modes115 * Fix to display the content in "Public" access level for "Event" and "Signed URL" lock modes 113 116 * Fix to hide the paywall if the content is public 114 117 -
sesamy/trunk/public/class-sesamy-content-container.php
r3077290 r3079140 76 76 $paywall_seo = apply_filters( 'sesamy_paywall_seo', $this->show_seo_paywall_data( $post ), $post ); 77 77 78 $lock_mode = get_option( 'sesamy_lock_mode' ); 79 78 80 // Check if the post is unlocked or if the access level is public. If so, only return the content container. 79 if ( ! $is_locked || $access_level == 'public') { 81 $is_public = !$is_locked || $access_level === 'public' || $lock_mode === 'none'; 82 if ( $is_public ) { 80 83 return $paywall_seo . get_sesamy_content_container( $atts, $content ); 81 84 } -
sesamy/trunk/public/sesamy-global-functions.php
r3078700 r3079140 78 78 ); 79 79 80 // If the article isn't locked, then add the "public" attribute to the container. 81 if ( ! Sesamy_Post_Properties::is_locked( $post_id ) || $access_level == 'public') { 80 // If the article is in lock mode None, it's not locked or it has access level public, treat it as embed and public. 81 $is_public = $atts['lock_mode'] === 'none' || !Sesamy_Post_Properties::is_locked( $post_id ) || $access_level === 'public'; 82 if ( $is_public ) { 83 $atts['lock_mode'] = 'embed'; 82 84 $atts['public'] = 'true'; 83 85 } … … 89 91 90 92 // Only the 'entitlement' access level is supported to use with the 'signedUrl' and 'event' lock modes. 91 // If the content is public or the access level isnot 'entitlement', we change the lock mode to 'embed', so that the content unlocks correctly.92 if ( ( 'signedUrl' === $atts['lock_mode'] || 'event' === $atts['lock_mode'] ) && ( isset( $atts['public'] ) || $access_level != 'entitlement' )) {93 // If the content is not 'entitlement', we change the lock mode to 'embed', so that the content unlocks correctly. 94 if ( ( 'signedUrl' === $atts['lock_mode'] || 'event' === $atts['lock_mode'] ) && $access_level != 'entitlement' ) { 93 95 $atts['lock_mode'] = 'embed'; 94 96 } -
sesamy/trunk/sesamy.php
r3078700 r3079140 16 16 * Plugin URI: https://sesamy.com 17 17 * Description: Add paywall functionality with Sesamy (sesamy.com) to your WordPress website. 18 * Version: 2.0. 618 * Version: 2.0.7 19 19 * Author: Sesamy AB 20 20 * Author URI: https://sesamy.com … … 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define( 'SESAMY_VERSION', '2.0. 6' );37 define( 'SESAMY_VERSION', '2.0.7' ); 38 38 39 39 /** -
sesamy/trunk/vendor/composer/installed.php
r3078700 r3079140 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => '2.0. 6',5 'version' => '2.0. 6.0',6 'reference' => 'b d34f8a0cd6760511fef9701e9f60d9212d94d0d',4 'pretty_version' => '2.0.7', 5 'version' => '2.0.7.0', 6 'reference' => 'baf442e77023ccc8bab3588f8cb281b13412319b', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => '2.0. 6',15 'version' => '2.0. 6.0',16 'reference' => 'b d34f8a0cd6760511fef9701e9f60d9212d94d0d',14 'pretty_version' => '2.0.7', 15 'version' => '2.0.7.0', 16 'reference' => 'baf442e77023ccc8bab3588f8cb281b13412319b', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
sesamy/trunk/version.php
r3078700 r3079140 9 9 */ 10 10 11 define( 'SESAMY_VERSION', '2.0. 6' );11 define( 'SESAMY_VERSION', '2.0.7' );
Note: See TracChangeset
for help on using the changeset viewer.