Changeset 2323090
- Timestamp:
- 06/12/2020 01:48:20 PM (6 years ago)
- Location:
- iteras/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (3 diffs)
-
iteras.php (modified) (1 diff)
-
public/assets/js/box.js (modified) (1 diff)
-
public/iteras-public.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iteras/trunk/README.txt
r2186069 r2323090 3 3 Requires at least: 3.5.1 4 4 Tested up to: 5.2.4 5 Stable tag: 1.3. 35 Stable tag: 1.3.4 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 You can insert a selfservice iframe to allow subscribers to manage their subscriptions with the shortcode `[iteras-selfservice]`. 50 50 51 ` [iteras-return-to-page url='/some/url/?p=123']` is useful if you need to link to another page in the call to action content. It will append the current page to the given URL so that the visitor is redirected back to the original page after having completed an ordering flow or having logged in. NOTE: due to limitations in the WordPress parser, when you put [iteras-return-to-page] in an HTML tag attribute, you need to be aware of single quotes and double quotes. `<a href="[iteras-return-to-page url='/some/url/?p=123']">sign up!</a>` works while `<a href="[iteras-return-to-page url="/some/url/?p=123"]">sign up!</a>` doesn't!51 ``[iteras-return-to-page url='/some/url/?p=123']`` is useful if you need to link to another page in the call to action content. It will append the current page to the given URL so that the visitor is redirected back to the original page after having completed an ordering flow or having logged in. NOTE: due to limitations in the WordPress parser, when you put [iteras-return-to-page] in an HTML tag attribute, you need to be aware of single quotes and double quotes. ``<a href="[iteras-return-to-page url='/some/url/?p=123']">sign up!</a>`` works while ``<a href="[iteras-return-to-page url="/some/url/?p=123"]">sign up!</a>`` doesn't! 52 52 53 53 These shortcodes, except [iteras-return-to-page], are internally converted to calls to the ITERAS Javascript API. You can pass more parameters if you need to, e.g. `next`, see the [API documentation](https://app.iteras.dk/api/) for more details. The profile parameter is implicit and comes from your plugin settings. … … 70 70 71 71 == Changelog == 72 = 1.3.4 = 73 * Render paywall box during document render to make sure Iteras shortcodes are inserted at the proper position 74 72 75 = 1.3.2 = 73 76 * Fixed problem related to older Wordpress versions -
iteras/trunk/iteras.php
r2186069 r2323090 13 13 * Plugin URI: https://app.iteras.dk 14 14 * Description: Integration with ITERAS, a cloud-based state-of-the-art system for managing subscriptions/memberships and payments. 15 * Version: 1.3. 315 * Version: 1.3.4 16 16 * Author: ITERAS 17 17 * Author URI: https://www.iteras.dk -
iteras/trunk/public/assets/js/box.js
r1872759 r2323090 2 2 var truncate = require("truncate"); 3 3 window.iterasPaywallContent = function(wall) { 4 var box = $(iterasBoxContent); 5 box.show(); 4 var box = $(".iteras-paywall-box").show(); 6 5 var content = $(".iteras-content-wrapper"); 7 6 if (!content.hasClass("iteras-content-truncated")) 8 7 content.html(truncate(content.html(), box.data("snippet-size") || 300)); 9 content.after(box);10 8 }; 11 9 })(jQuery); -
iteras/trunk/public/iteras-public.php
r2186069 r2323090 16 16 class Iteras { 17 17 18 const VERSION = '1.3. 3';18 const VERSION = '1.3.4'; 19 19 20 20 const SETTINGS_KEY = "iteras_settings"; … … 414 414 ); 415 415 416 $extra = '<script>var iterasBoxContent = '.json_encode($box).';Iteras.wall({ unauthorized: iterasPaywallContent, paywallid: '.json_encode($paywall_ids).' });</script>';416 $extra = $box.'<script>Iteras.wall({ unauthorized: iterasPaywallContent, paywallid: '.json_encode($paywall_ids).' });</script>'; 417 417 } 418 418 else {
Note: See TracChangeset
for help on using the changeset viewer.