Changeset 3388800
- Timestamp:
- 11/03/2025 11:14:52 AM (5 months ago)
- Location:
- lueira
- Files:
-
- 2 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from lueira/trunk)
-
tags/1.0.1/lueira.php (modified) (4 diffs)
-
trunk/lueira.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lueira/tags/1.0.1/lueira.php
r3384166 r3388800 4 4 * Plugin URI: https://lueira.com 5 5 * Description: Provides a shortcode that outputs a button opening a modal with an embedded activity iframe. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Maladeta Studio 8 8 * Author URI: https://maladeta.studio … … 23 23 private const OPTION_HOST = 'lueira_embed_host'; 24 24 private const OPTION_DEFAULT_HOST = 'https://store.lueira.com'; 25 private const PLUGIN_VERSION = '1.0. 0';25 private const PLUGIN_VERSION = '1.0.1'; 26 26 private const ASSET_HANDLE = 'lueira-embed'; 27 27 … … 163 163 164 164 // Validate required parameters 165 if ($activity_id === '' || $module === '' || $product_type === '') {165 if ($activity_id === '' || $module === '') { 166 166 return ''; 167 167 } … … 220 220 221 221 private function build_iframe_url(string $activity_id, string $module, string $product_type, string $lang): string { 222 $base = rtrim($this->host, '/'); 223 return $base . '/' . rawurlencode($lang) . '/embed/' . rawurlencode($module) . '/' . rawurlencode($product_type) . '/' . rawurlencode($activity_id); 222 $parts = [ 223 rtrim($this->host, '/'), 224 rawurlencode($lang), 225 'embed', 226 rawurlencode($module), 227 ]; 228 229 if ($product_type !== '') { 230 $parts[] = rawurlencode($product_type); 231 } 232 233 $parts[] = rawurlencode($activity_id); 234 235 return implode('/', $parts); 224 236 } 225 237 -
lueira/trunk/lueira.php
r3384166 r3388800 4 4 * Plugin URI: https://lueira.com 5 5 * Description: Provides a shortcode that outputs a button opening a modal with an embedded activity iframe. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Maladeta Studio 8 8 * Author URI: https://maladeta.studio … … 23 23 private const OPTION_HOST = 'lueira_embed_host'; 24 24 private const OPTION_DEFAULT_HOST = 'https://store.lueira.com'; 25 private const PLUGIN_VERSION = '1.0. 0';25 private const PLUGIN_VERSION = '1.0.1'; 26 26 private const ASSET_HANDLE = 'lueira-embed'; 27 27 … … 163 163 164 164 // Validate required parameters 165 if ($activity_id === '' || $module === '' || $product_type === '') {165 if ($activity_id === '' || $module === '') { 166 166 return ''; 167 167 } … … 220 220 221 221 private function build_iframe_url(string $activity_id, string $module, string $product_type, string $lang): string { 222 $base = rtrim($this->host, '/'); 223 return $base . '/' . rawurlencode($lang) . '/embed/' . rawurlencode($module) . '/' . rawurlencode($product_type) . '/' . rawurlencode($activity_id); 222 $parts = [ 223 rtrim($this->host, '/'), 224 rawurlencode($lang), 225 'embed', 226 rawurlencode($module), 227 ]; 228 229 if ($product_type !== '') { 230 $parts[] = rawurlencode($product_type); 231 } 232 233 $parts[] = rawurlencode($activity_id); 234 235 return implode('/', $parts); 224 236 } 225 237
Note: See TracChangeset
for help on using the changeset viewer.