Changeset 3443362
- Timestamp:
- 01/20/2026 03:08:28 PM (7 weeks ago)
- Location:
- iteras/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (3 diffs)
-
iteras.php (modified) (1 diff)
-
public/assets/js/box.js (modified) (1 diff)
-
public/assets/js/truncate.js (modified) (3 diffs)
-
public/iteras-public.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
iteras/trunk/README.txt
r3236574 r3443362 2 2 Tags: paywall, subscribe, subscriptions, subscription, subscribers, access-control, paid content, premium, premium content, monetize, magazine, media pass, registration, billing, membership, member, earn money 3 3 Requires at least: 3.5.1 4 Tested up to: 6. 7.15 Stable tag: 1.8. 14 Tested up to: 6.9 5 Stable tag: 1.8.2 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 If you publish a printed publication in Denmark and Norway you will likely need to be able to send "indbetalingskort"/"girokort" which we have fully automated. We also integrate with the Danish NemHandel (EAN). Therefore, Iteras is a one-stop solution for Danish and Norwegian magazines and others with similar needs (foreninger, software providers, etc.). 16 16 17 For more information, check out [iteras. dk](https://www.iteras.dk/).17 For more information, check out [iteras.com](https://www.iteras.com/). 18 18 19 19 This plugin allows you to integrate the ordering and self-service parts of ITERAS easily, and set up a paywall in WordPress to only allow access to certain posts to your ITERAS subscribers. … … 115 115 116 116 == Changelog == 117 = 1.8.2 = 118 * Keep images when truncating in the front-end 119 117 120 = 1.8.0 = 118 121 * Paywall bulk actions and paywall column available on pages overview -
iteras/trunk/iteras.php
r3236574 r3443362 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.8. 115 * Version: 1.8.2 16 16 * Author: ITERAS 17 17 * Author URI: https://www.iteras.dk -
iteras/trunk/public/assets/js/box.js
r2323090 r3443362 5 5 var content = $(".iteras-content-wrapper"); 6 6 if (!content.hasClass("iteras-content-truncated")) 7 content.html(truncate(content.html(), box.data("snippet-size") || 300 ));7 content.html(truncate(content.html(), box.data("snippet-size") || 300, {keepImageTag: true})); 8 8 }; 9 9 })(jQuery); -
iteras/trunk/public/assets/js/truncate.js
r1169354 r3443362 33 33 HTML_TAG_REGEX = new RegExp('<\\/?\\w+\\s*' + KEY_VALUE_REGEX + IS_CLOSE_REGEX + '>'), 34 34 URL_REGEX = /(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w\-]+@([\w][\w\-]+\.)+[a-zA-Z]{2,3})/g, // Simple regexp 35 IMAGE_TAG_REGEX = new RegExp('< img\\s*' + KEY_VALUE_REGEX + IS_CLOSE_REGEX + '>'),35 IMAGE_TAG_REGEX = new RegExp('<(img|picture)\\s*' + KEY_VALUE_REGEX + IS_CLOSE_REGEX + '>'), 36 36 WORD_BREAK_REGEX = new RegExp('\\W+', 'g'), 37 37 matches = true, … … 63 63 64 64 return string.substring(0, index) + string.substring(index + len); 65 } 66 67 /** 68 * Remove figure elements (including img tags inside them) 69 * 70 * @private 71 * @method _removeFigureElements 72 * @param {String} string not-yet-processed string 73 * @return {String} string without figure elements 74 */ 75 function _removeFigureElements(string) { 76 // Match <figure>...</figure> elements (including nested content) 77 var figureRegex = /<figure[^>]*>[\s\S]*?<\/figure>/gi; 78 return string.replace(figureRegex, ''); 65 79 } 66 80 … … 232 246 if (!options.keepImageTag) { 233 247 content = _removeImageTag(content); 248 content = _removeFigureElements(content); 234 249 } 235 250 -
iteras/trunk/public/iteras-public.php
r3236574 r3443362 16 16 class Iteras { 17 17 18 const VERSION = '1.8. 1';18 const VERSION = '1.8.2'; 19 19 20 20 const SETTINGS_KEY = "iteras_settings";
Note: See TracChangeset
for help on using the changeset viewer.