Changeset 2306325
- Timestamp:
- 05/16/2020 05:05:30 PM (6 years ago)
- Location:
- transact
- Files:
-
- 5 edited
- 12 copied
-
tags/4.2.4 (copied) (copied from transact/trunk)
-
tags/4.2.4/admin/controllers/transact-admin-settings-post.php (copied) (copied from transact/trunk/admin/controllers/transact-admin-settings-post.php)
-
tags/4.2.4/admin/controllers/transact-shortcode.php (copied) (copied from transact/trunk/admin/controllers/transact-shortcode.php)
-
tags/4.2.4/frontend/assets/style.css (copied) (copied from transact/trunk/frontend/assets/style.css) (1 diff)
-
tags/4.2.4/frontend/assets/transact_post.js (copied) (copied from transact/trunk/frontend/assets/transact_post.js) (1 diff)
-
tags/4.2.4/frontend/controllers/transact-api.php (copied) (copied from transact/trunk/frontend/controllers/transact-api.php)
-
tags/4.2.4/frontend/controllers/transact-handle-buttons-shortcode.php (copied) (copied from transact/trunk/frontend/controllers/transact-handle-buttons-shortcode.php)
-
tags/4.2.4/frontend/controllers/transact-handle-buttons.php (copied) (copied from transact/trunk/frontend/controllers/transact-handle-buttons.php)
-
tags/4.2.4/frontend/controllers/transact-single-post.php (copied) (copied from transact/trunk/frontend/controllers/transact-single-post.php) (2 diffs)
-
tags/4.2.4/readme.txt (copied) (copied from transact/trunk/readme.txt) (2 diffs)
-
tags/4.2.4/transact-plugin.php (copied) (copied from transact/trunk/transact-plugin.php) (1 diff)
-
tags/4.2.4/vendors/transact-io-php/transact-io.php (copied) (copied from transact/trunk/vendors/transact-io-php/transact-io.php)
-
trunk/frontend/assets/style.css (modified) (1 diff)
-
trunk/frontend/assets/transact_post.js (modified) (1 diff)
-
trunk/frontend/controllers/transact-single-post.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/transact-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
transact/tags/4.2.4/frontend/assets/style.css
r2264115 r2306325 6 6 z-index: 1; 7 7 text-align: center; 8 display: none; 9 } 10 .transact-purchase_button.active { 11 display: block; 8 12 } 9 13 .transact-purchase_button.transact-fade { -
transact/tags/4.2.4/frontend/assets/transact_post.js
r2264115 r2306325 141 141 reloadKnownScripts(); 142 142 } else { 143 if(data.has_premium) { 144 jQuery('.transact-purchase_button').addClass('active'); 145 } 146 143 147 gtmEvent('view-preview-content'); 144 148 } -
transact/tags/4.2.4/frontend/controllers/transact-single-post.php
r2266126 r2306325 46 46 protected $post_id; 47 47 48 protected $post_has_premium = false; 48 49 protected static $instance = NULL; 49 50 … … 337 338 $premium = $transact->is_premium(); 338 339 340 $post_object = get_post($post_id); 341 342 $premium_from_meta = $transact->get_premium_content(); 343 $has_premium = (isset($premium_from_meta) && $premium_from_meta !== '') || ($post_object && strpos($post_object->post_content, 'transact/premium-content') > -1); 344 339 345 $result = array( 340 'is_premium' => $premium 346 'is_premium' => $premium, 347 'has_premium' => $has_premium 341 348 ); 342 349 if($premium) { 343 350 $button_controller = new transactHandleButtons($post_id, $transact); 344 $premium_from_meta = $transact->get_premium_content();345 $post_object = get_post($post_id);346 351 global $post; 347 352 // Must set the global $post object here as well because some plugins rely on it to add data in their the_content filters -
transact/tags/4.2.4/readme.txt
r2269448 r2306325 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.3.2 8 Stable tag: 4.2. 38 Stable tag: 4.2.4 9 9 License: APACHE-2.0 10 10 License URI: https://www.apache.org/licenses/LICENSE-2.0 … … 81 81 == Changelog == 82 82 83 = 4.2.4 = 84 * Don't show purchase button if post has no premium blocks or premium content 85 83 86 = 4.2.3 = 84 87 * Fix with price of 0 -
transact/tags/4.2.4/transact-plugin.php
r2269448 r2306325 3 3 * Plugin Name: transact.io 4 4 * Description: Integrates transact.io services into WP 5 * Version: 4.2. 35 * Version: 4.2.4 6 6 * Author: transact.io 7 7 * Author URI: https://transact.io -
transact/trunk/frontend/assets/style.css
r2264115 r2306325 6 6 z-index: 1; 7 7 text-align: center; 8 display: none; 9 } 10 .transact-purchase_button.active { 11 display: block; 8 12 } 9 13 .transact-purchase_button.transact-fade { -
transact/trunk/frontend/assets/transact_post.js
r2264115 r2306325 141 141 reloadKnownScripts(); 142 142 } else { 143 if(data.has_premium) { 144 jQuery('.transact-purchase_button').addClass('active'); 145 } 146 143 147 gtmEvent('view-preview-content'); 144 148 } -
transact/trunk/frontend/controllers/transact-single-post.php
r2266126 r2306325 46 46 protected $post_id; 47 47 48 protected $post_has_premium = false; 48 49 protected static $instance = NULL; 49 50 … … 337 338 $premium = $transact->is_premium(); 338 339 340 $post_object = get_post($post_id); 341 342 $premium_from_meta = $transact->get_premium_content(); 343 $has_premium = (isset($premium_from_meta) && $premium_from_meta !== '') || ($post_object && strpos($post_object->post_content, 'transact/premium-content') > -1); 344 339 345 $result = array( 340 'is_premium' => $premium 346 'is_premium' => $premium, 347 'has_premium' => $has_premium 341 348 ); 342 349 if($premium) { 343 350 $button_controller = new transactHandleButtons($post_id, $transact); 344 $premium_from_meta = $transact->get_premium_content();345 $post_object = get_post($post_id);346 351 global $post; 347 352 // Must set the global $post object here as well because some plugins rely on it to add data in their the_content filters -
transact/trunk/readme.txt
r2269448 r2306325 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.3.2 8 Stable tag: 4.2. 38 Stable tag: 4.2.4 9 9 License: APACHE-2.0 10 10 License URI: https://www.apache.org/licenses/LICENSE-2.0 … … 81 81 == Changelog == 82 82 83 = 4.2.4 = 84 * Don't show purchase button if post has no premium blocks or premium content 85 83 86 = 4.2.3 = 84 87 * Fix with price of 0 -
transact/trunk/transact-plugin.php
r2269448 r2306325 3 3 * Plugin Name: transact.io 4 4 * Description: Integrates transact.io services into WP 5 * Version: 4.2. 35 * Version: 4.2.4 6 6 * Author: transact.io 7 7 * Author URI: https://transact.io
Note: See TracChangeset
for help on using the changeset viewer.