Changeset 3236574
- Timestamp:
- 02/07/2025 12:33:51 PM (13 months ago)
- Location:
- iteras/trunk
- Files:
-
- 8 edited
-
README.txt (modified) (1 diff)
-
admin/iteras-admin.php (modified) (1 diff)
-
admin/views/admin.php (modified) (10 diffs)
-
admin/views/post-meta-box.php (modified) (1 diff)
-
iteras.php (modified) (1 diff)
-
languages/iteras-da_DK.mo (modified) (previous)
-
languages/iteras-da_DK.po (modified) (12 diffs)
-
public/iteras-public.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
iteras/trunk/README.txt
r3235962 r3236574 3 3 Requires at least: 3.5.1 4 4 Tested up to: 6.7.1 5 Stable tag: 1.8. 05 Stable tag: 1.8.1 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
iteras/trunk/admin/iteras-admin.php
r3235962 r3236574 281 281 282 282 $this->save_settings_form(); 283 284 array_push($messages, array( 285 "text" => __( "Configuration has been saved", $this->plugin_slug ), 286 "type" => 'success' 287 )); 283 288 } 284 289 -
iteras/trunk/admin/views/admin.php
r3235962 r3236574 10 10 <form method="post" action=""> 11 11 <?php wp_nonce_field( 'iteras_plugin_settings', 'iteras_plugin_settings_nonce' ); ?> 12 <input name="paywall" type="hidden" value="<?= $settings['paywall_id']; ?>">12 <input name="paywall" type="hidden" value="<?= esc_attr($settings['paywall_id']); ?>"> 13 13 <table class="form-table"> 14 14 <tr> 15 15 <th scope="row"><label for="profile"><?php _e('ITERAS URL-id', $domain); ?></label></th> 16 16 <td> 17 <input class="regular-text" name="profile" placeholder="<?php _e('e.g. sportsmanden', $domain); ?>" type="text" value="<?= $settings['profile_name']; ?>">17 <input class="regular-text" name="profile" placeholder="<?php _e('e.g. sportsmanden', $domain); ?>" type="text" value="<?= esc_attr($settings['profile_name']); ?>"> 18 18 <p class="description"><?php _e('You can find your URL-id on the customer service settings page under the general settings section in the top right menu in ITERAS.', $domain); ?></p> 19 19 </td> … … 23 23 <th scope="row"><label for="signingkey"><?php _e('ITERAS signing key', $domain); ?></label></th> 24 24 <td> 25 <input class="regular-text" id="signingkey" name="signing_key" placeholder="<?php _e('e.g.', $domain); ?> j8kau2v3lzp0n12ilw1d0hurr6059gyo" type="text" value="<?= $settings['signing_key']; ?>">25 <input class="regular-text" id="signingkey" name="signing_key" placeholder="<?php _e('e.g.', $domain); ?> j8kau2v3lzp0n12ilw1d0hurr6059gyo" type="text" value="<?= esc_attr($settings['signing_key']); ?>"> 26 26 <p class="description"><?php _e('You can find your signing key in the general settings section in the top right menu in ITERAS.', $domain); ?></p> 27 27 </td> … … 31 31 <th scope="row"><label for="apikey"><?php _e('ITERAS API key', $domain); ?></label></th> 32 32 <td> 33 <input class="regular-text" id="apikey" name="api_key" placeholder="<?php _e('e.g.', $domain); ?> drurhphapaikr5fcywk158n93ghat0vz" type="text" value="<?= $settings['api_key']; ?>">33 <input class="regular-text" id="apikey" name="api_key" placeholder="<?php _e('e.g.', $domain); ?> drurhphapaikr5fcywk158n93ghat0vz" type="text" value="<?= esc_attr($settings['api_key']); ?>"> 34 34 <p class="description"><?php _e('You can create an API key under integrations in the top right menu in ITERAS.', $domain); ?></p> 35 35 </td> … … 47 47 <ul class="paywall-list"> 48 48 <?php foreach ($settings['paywalls'] as $paywall) { ?> 49 <li><?= $paywall['name']?> <span class="muted">(ID: <?=$paywall['paywall_id']?>)</span></li>49 <li><?= esc_html($paywall['name']); ?> <span class="muted">(ID: <?= esc_html($paywall['paywall_id']); ?>)</span></li> 50 50 <?php } ?> 51 51 </ul> … … 61 61 <select id="defaultaccess" name="default_access"> 62 62 <?php foreach ($access_levels as $level => $label) { ?> 63 <option value="<?= $level?>" <?php if ($settings['default_access'] == $level) echo 'selected="selected"' ?> ><?=$label?></option>63 <option value="<?= esc_html($level); ?>" <?php if ($settings['default_access'] == $level) echo 'selected="selected"' ?> ><?= esc_html($label); ?></option> 64 64 <?php } ?> 65 65 </select> … … 74 74 <select id="paywall_display_type" name="paywall_display_type"> 75 75 <?php foreach ($this->paywall_display_types as $type => $label) { ?> 76 <option value="<?= $type?>" <?php if ($settings['paywall_display_type'] == $type) echo 'selected="selected"' ?> ><?=$label?></option>76 <option value="<?= esc_attr($type); ?>" <?php if ($settings['paywall_display_type'] == $type) echo 'selected="selected"' ?> ><?= esc_html($label); ?></option> 77 77 <?php } ?> 78 78 </select> … … 85 85 <th scope="row"><label for="subscribeurl"><?php _e('Subscribe landing page', $domain); ?></label></th> 86 86 <td> 87 <input class="regular-text" id="subscribeurl" name="subscribe_url" placeholder="<?php _e('e.g. /?page_id=1', $domain); ?>" type="text" value="<?= $settings['subscribe_url']; ?>">87 <input class="regular-text" id="subscribeurl" name="subscribe_url" placeholder="<?php _e('e.g. /?page_id=1', $domain); ?>" type="text" value="<?= esc_url($settings['subscribe_url']); ?>"> 88 88 <p class="description"><?php _e('URL to the landing page for logging in or becoming a <b>paying subscriber</b>.', $domain); ?></p> 89 89 </td> … … 93 93 <th scope="row"><label for="userurl"><?php _e('User landing page', $domain); ?></label></th> 94 94 <td> 95 <input class="regular-text" id="userurl" name="user_url" placeholder="<?php _e('e.g. /?page_id=2', $domain); ?>" type="text" value="<?= $settings['user_url']; ?>">95 <input class="regular-text" id="userurl" name="user_url" placeholder="<?php _e('e.g. /?page_id=2', $domain); ?>" type="text" value="<?= esc_attr($settings['user_url']); ?>"> 96 96 <p class="description"><?php _e('URL to the landing page for logging in or registering as a <b>user</b>. The subscribe and user landing page can point to the same Wordpress page.', $domain); ?></p> 97 97 </td> … … 101 101 <th scope="row"><label for="paywall_snippet_size"><?php _e('Cut text at', $domain); ?></label></th> 102 102 <td> 103 <input class="regular-text" name="paywall_snippet_size" style="width:6em;" placeholder="<?php _e('e.g. 30', $domain); ?>" type="text" value="<?= $settings['paywall_snippet_size']; ?>"> <?php _e('characters', $domain); ?>103 <input class="regular-text" name="paywall_snippet_size" style="width:6em;" placeholder="<?php _e('e.g. 30', $domain); ?>" type="text" value="<?= esc_attr($settings['paywall_snippet_size']); ?>"> <?php _e('characters', $domain); ?> 104 104 </td> 105 105 </tr> … … 128 128 <select id="paywall_integration_method" name="paywall_integration_method"> 129 129 <?php foreach ($this->paywall_integration_methods as $method => $label) { ?> 130 <option value="<?= $method?>" <?php if ($settings['paywall_integration_method'] == $method) echo 'selected="selected"' ?> ><?=$label?></option>130 <option value="<?= esc_attr($method); ?>" <?php if ($settings['paywall_integration_method'] == $method) echo 'selected="selected"' ?> ><?= esc_html($label); ?></option> 131 131 <?php } ?> 132 132 </select> -
iteras/trunk/admin/views/post-meta-box.php
r3016412 r3236574 15 15 $i = 1; 16 16 foreach ($settings['paywalls'] as $paywall) { 17 echo '<input id="iteras-paywall-checkbox'.$i.'" type="checkbox" name="iteras-paywall[]" value="'. $paywall['paywall_id'].'" '. (in_array($paywall['paywall_id'], $enabled_paywalls) ? 'checked="checked"' : "").'>';18 echo '<label for="iteras-paywall-checkbox'.$i.'">'. $paywall['name'].'</label><br>';17 echo '<input id="iteras-paywall-checkbox'.$i.'" type="checkbox" name="iteras-paywall[]" value="'.esc_attr($paywall['paywall_id']).'" '. (in_array($paywall['paywall_id'], $enabled_paywalls) ? 'checked="checked"' : "").'>'; 18 echo '<label for="iteras-paywall-checkbox'.$i.'">'.esc_html($paywall['name']).'</label><br>'; 19 19 $i += 1; 20 20 } -
iteras/trunk/iteras.php
r3235962 r3236574 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. 015 * Version: 1.8.1 16 16 * Author: ITERAS 17 17 * Author URI: https://www.iteras.dk -
iteras/trunk/languages/iteras-da_DK.po
r3016412 r3236574 6 6 "Project-Id-Version: iteras\n" 7 7 "Report-Msgid-Bugs-To: team@iteras.dk\n" 8 "POT-Creation-Date: 202 4-01-02 13:05+0100\n"9 "PO-Revision-Date: 202 4-01-02 13:05+0100\n"8 "POT-Creation-Date: 2025-02-07 13:30+0100\n" 9 "PO-Revision-Date: 2025-02-07 13:30+0100\n" 10 10 "Last-Translator: Ole Laursen <olau@iteras.dk>\n" 11 11 "Language-Team: da\n" … … 15 15 "Content-Transfer-Encoding: 8bit\n" 16 16 17 #: admin/iteras-admin.php:6 117 #: admin/iteras-admin.php:65 18 18 msgid "Everybody" 19 19 msgstr "Alle" 20 20 21 #: admin/iteras-admin.php: 6721 #: admin/iteras-admin.php:71 22 22 msgid "Redirect to subscribe landing page" 23 23 msgstr "Omdiriger til abonnér-landingsside" 24 24 25 #: admin/iteras-admin.php: 6825 #: admin/iteras-admin.php:72 26 26 msgid "Cut text and add call-to-action box" 27 27 msgstr "Beskær tekst og tilføj call to action-boks" 28 28 29 #: admin/iteras-admin.php:7 229 #: admin/iteras-admin.php:76 30 30 msgid "Automatic" 31 31 msgstr "Automatisk" 32 32 33 #: admin/iteras-admin.php:7 333 #: admin/iteras-admin.php:77 34 34 msgid "Custom" 35 35 msgstr "Specialudviklet" 36 36 37 #: admin/iteras-admin.php:9 037 #: admin/iteras-admin.php:94 38 38 msgid "ITERAS Paywall" 39 39 msgstr "ITERAS-paywall" 40 40 41 #: admin/iteras-admin.php:9 541 #: admin/iteras-admin.php:99 42 42 msgid "Paywall" 43 43 msgstr "Betalingsmur" 44 44 45 #: admin/iteras-admin.php:14 045 #: admin/iteras-admin.php:144 46 46 msgid "Does not restrict visitors, everyone can see the content" 47 47 msgstr "Begrænser ingen besøgende, alle kan se indholdet" 48 48 49 #: admin/iteras-admin.php:14 149 #: admin/iteras-admin.php:145 50 50 msgid "" 51 51 "Content restricted to visitors who are in the subscriber database (but they " … … 55 55 "have et aktivt abonnement)" 56 56 57 #: admin/iteras-admin.php:14 257 #: admin/iteras-admin.php:146 58 58 msgid "Content restricted to visitors with an active subscription" 59 59 msgstr "Indhold begrænset til besøgende i abonnentdatabasen" 60 60 61 #: admin/iteras-admin.php:1 8461 #: admin/iteras-admin.php:192 62 62 msgid "Add paywall" 63 63 msgstr "Tilføj betalingsmur" 64 64 65 #: admin/iteras-admin.php:1 8765 #: admin/iteras-admin.php:195 66 66 msgid "Remove paywalls" 67 67 msgstr "Fjern betalingsmure" 68 68 69 #: admin/iteras-admin.php:2 4669 #: admin/iteras-admin.php:254 70 70 msgid "ITERAS configuration" 71 71 msgstr "ITERAS-konfiguration" 72 72 73 #: admin/iteras-admin.php:2 4773 #: admin/iteras-admin.php:255 74 74 msgid "ITERAS" 75 75 msgstr "ITERAS" 76 76 77 #: admin/iteras-admin.php:286 77 #: admin/iteras-admin.php:279 78 msgid "Security check failed" 79 msgstr "Sikkerhedstjek mislykkedes" 80 81 #: admin/iteras-admin.php:285 82 msgid "Configuration has been saved" 83 msgstr "Konfigurationen blev gemt" 84 85 #: admin/iteras-admin.php:304 78 86 msgid "Synchronization of paywalls from ITERAS complete" 79 87 msgstr "Synkronisering af betalingsmure fra ITERAS gennemført" 80 88 81 #: admin/iteras-admin.php: 29289 #: admin/iteras-admin.php:310 82 90 msgid "Couldn't synchronize paywalls from ITERAS" 83 91 msgstr "Kunne ikke synkronisere betalingsmure fra ITERAS" 84 92 85 #: admin/iteras-admin.php:3 2493 #: admin/iteras-admin.php:341 86 94 msgid "Settings" 87 95 msgstr "Indstillinger" 88 96 89 #: admin/views/admin.php:14 97 #: admin/iteras-admin.php:350 98 msgid "You do not have sufficient permissions to access this page." 99 msgstr "Du har ikke nok rettigheder til at se denne side." 100 101 #: admin/views/admin.php:15 90 102 msgid "ITERAS URL-id" 91 103 msgstr "ITERAS URL-id" 92 104 93 #: admin/views/admin.php:1 6105 #: admin/views/admin.php:17 94 106 msgid "e.g. sportsmanden" 95 107 msgstr "f.eks. sportsmanden" 96 108 97 #: admin/views/admin.php:1 7109 #: admin/views/admin.php:18 98 110 msgid "" 99 111 "You can find your URL-id on the customer service settings page under the " … … 103 115 "grundindstillingerne i menuen øverst til højre i ITERAS." 104 116 105 #: admin/views/admin.php:2 2117 #: admin/views/admin.php:23 106 118 msgid "ITERAS signing key" 107 119 msgstr "ITERAS signeringsnøgle" 108 120 109 #: admin/views/admin.php:2 4 admin/views/admin.php:32121 #: admin/views/admin.php:25 admin/views/admin.php:33 110 122 msgid "e.g." 111 123 msgstr "f.eks." 112 124 113 #: admin/views/admin.php:2 5125 #: admin/views/admin.php:26 114 126 msgid "" 115 127 "You can find your signing key in the general settings section in the top " … … 119 131 "til højre i ITERAS." 120 132 121 #: admin/views/admin.php:3 0133 #: admin/views/admin.php:31 122 134 msgid "ITERAS API key" 123 135 msgstr "ITERAS API-nøgle" 124 136 125 #: admin/views/admin.php:3 3137 #: admin/views/admin.php:34 126 138 msgid "" 127 139 "You can create an API key under integrations in the top right menu in ITERAS." … … 130 142 "ITERAS." 131 143 132 #: admin/views/admin.php:3 8144 #: admin/views/admin.php:39 133 145 msgid "Available paywalls" 134 146 msgstr "Tilgængelige betalingsmure" 135 147 136 #: admin/views/admin.php:4 2148 #: admin/views/admin.php:43 137 149 msgid "No paywalls available" 138 150 msgstr "Ingen betalingsmure tilgængelig" 139 151 140 #: admin/views/admin.php:5 2152 #: admin/views/admin.php:53 141 153 msgid "Synchronize" 142 154 msgstr "Synkronisér" 143 155 144 #: admin/views/admin.php:5 3156 #: admin/views/admin.php:54 145 157 msgid "" 146 158 "You can configure paywalls in ITERAS in the paywalls section under " … … 152 164 "knappen her bagefter." 153 165 154 #: admin/views/admin.php:5 8166 #: admin/views/admin.php:59 155 167 msgid "Default paywall access" 156 168 msgstr "Forvalgt paywall-adgang" 157 169 158 #: admin/views/admin.php:6 6170 #: admin/views/admin.php:67 159 171 msgid "Default paywall access for new posts." 160 172 msgstr "Betalingsmur-indstilling som nye indlæg og sider får som forvalg." 161 173 162 #: admin/views/admin.php:7 1174 #: admin/views/admin.php:72 163 175 msgid "Access restriction" 164 176 msgstr "Adgangsbegrænsning" 165 177 166 #: admin/views/admin.php: 79178 #: admin/views/admin.php:80 167 179 msgid "How users will be greeted on an article they don't have access to." 168 180 msgstr "" 169 181 "Hvordan besøgende bliver modtaget på en artikel som de ikke har adgang til." 170 182 171 #: admin/views/admin.php:8 4183 #: admin/views/admin.php:85 172 184 msgid "Subscribe landing page" 173 185 msgstr "Abonnér-landingsside" 174 186 175 #: admin/views/admin.php:8 6187 #: admin/views/admin.php:87 176 188 msgid "e.g. /?page_id=1" 177 189 msgstr "f.eks. /?page_id=1" 178 190 179 #: admin/views/admin.php:8 7191 #: admin/views/admin.php:88 180 192 msgid "" 181 193 "URL to the landing page for logging in or becoming a <b>paying subscriber</" … … 185 197 "b>." 186 198 187 #: admin/views/admin.php:9 2199 #: admin/views/admin.php:93 188 200 msgid "User landing page" 189 201 msgstr "Bruger-landingsside" 190 202 191 #: admin/views/admin.php:9 4203 #: admin/views/admin.php:95 192 204 msgid "e.g. /?page_id=2" 193 205 msgstr "f.eks. /?page_id=2" 194 206 195 #: admin/views/admin.php:9 5207 #: admin/views/admin.php:96 196 208 msgid "" 197 209 "URL to the landing page for logging in or registering as a <b>user</b>. The " … … 201 213 "b>. Abonnér- og bruger-landingssiderne kan pege på den samme Wordpress-side." 202 214 203 #: admin/views/admin.php:10 0215 #: admin/views/admin.php:101 204 216 msgid "Cut text at" 205 217 msgstr "Beskær tekst ved" 206 218 207 #: admin/views/admin.php:10 2219 #: admin/views/admin.php:103 208 220 msgid "characters" 209 221 msgstr "tegn" 210 222 211 #: admin/views/admin.php:10 2223 #: admin/views/admin.php:103 212 224 msgid "e.g. 30" 213 225 msgstr "f.eks. 30" 214 226 215 #: admin/views/admin.php:10 7227 #: admin/views/admin.php:108 216 228 msgid "Call-to-action content" 217 229 msgstr "Call to action-indhold" 218 230 219 #: admin/views/admin.php:11 0231 #: admin/views/admin.php:111 220 232 msgid "" 221 233 "Present ordering offers and a login option. If you link to separate ordering " … … 231 243 "side efter at have bestilt eller logget ind." 232 244 233 #: admin/views/admin.php:11 5245 #: admin/views/admin.php:116 234 246 msgid "Validation method" 235 247 msgstr "Verifikationsmåde" 236 248 237 #: admin/views/admin.php:11 7249 #: admin/views/admin.php:118 238 250 msgid "Enable server-side validation of access pass cookie" 239 251 msgstr "Aktiver serverkontrol af adgangstegn-cookie" 240 252 241 #: admin/views/admin.php:12 0253 #: admin/views/admin.php:121 242 254 msgid "" 243 255 "With server-side validation, the ITERAS API key will be used to check the " … … 258 270 "serverkontrol." 259 271 260 #: admin/views/admin.php:12 5272 #: admin/views/admin.php:126 261 273 msgid "Paywall integration method" 262 274 msgstr "Integrationsmåde for betalingsmur" 263 275 264 #: admin/views/admin.php:13 3276 #: admin/views/admin.php:134 265 277 msgid "" 266 278 "For custom integration use either <code>[iteras-paywall-content]...[/iteras-" … … 272 284 "<code>Iteras::get_instance().potentially_paywall_content(...)</code>." 273 285 274 #: admin/views/admin.php:14 5286 #: admin/views/admin.php:146 275 287 msgid "" 276 288 "For more information about the ITERAS API check out the <a target=\"_blank\" " -
iteras/trunk/public/iteras-public.php
r3235962 r3236574 16 16 class Iteras { 17 17 18 const VERSION = '1.8. 0';18 const VERSION = '1.8.1'; 19 19 20 20 const SETTINGS_KEY = "iteras_settings";
Note: See TracChangeset
for help on using the changeset viewer.