Plugin Directory

Changeset 2323090


Ignore:
Timestamp:
06/12/2020 01:48:20 PM (6 years ago)
Author:
iteras
Message:

Changed rendering of paywall box

Location:
iteras/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • iteras/trunk/README.txt

    r2186069 r2323090  
    33Requires at least: 3.5.1
    44Tested up to: 5.2.4
    5 Stable tag: 1.3.3
     5Stable tag: 1.3.4
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949You can insert a selfservice iframe to allow subscribers to manage their subscriptions with the shortcode `[iteras-selfservice]`.
    5050
    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!
    5252
    5353These 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.
     
    7070
    7171== Changelog ==
     72= 1.3.4 =
     73* Render paywall box during document render to make sure Iteras shortcodes are inserted at the proper position
     74
    7275= 1.3.2 =
    7376* Fixed problem related to older Wordpress versions
  • iteras/trunk/iteras.php

    r2186069 r2323090  
    1313 * Plugin URI:        https://app.iteras.dk
    1414 * Description:       Integration with ITERAS, a cloud-based state-of-the-art system for managing subscriptions/memberships and payments.
    15  * Version:           1.3.3
     15 * Version:           1.3.4
    1616 * Author:            ITERAS
    1717 * Author URI:        https://www.iteras.dk
  • iteras/trunk/public/assets/js/box.js

    r1872759 r2323090  
    22    var truncate = require("truncate");
    33    window.iterasPaywallContent = function(wall) {
    4         var box = $(iterasBoxContent);
    5         box.show();
     4        var box = $(".iteras-paywall-box").show();
    65        var content = $(".iteras-content-wrapper");
    76        if (!content.hasClass("iteras-content-truncated"))
    87            content.html(truncate(content.html(), box.data("snippet-size") || 300));
    9         content.after(box);
    108    };
    119})(jQuery);
  • iteras/trunk/public/iteras-public.php

    r2186069 r2323090  
    1616class Iteras {
    1717
    18   const VERSION = '1.3.3';
     18  const VERSION = '1.3.4';
    1919
    2020  const SETTINGS_KEY = "iteras_settings";
     
    414414        );
    415415
    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>';
    417417      }
    418418      else {
Note: See TracChangeset for help on using the changeset viewer.