Changeset 3693621 for seatreg/trunk/php/seatreg_shortcode.php
- Timestamp:
- 09/13/2026 12:06:51 PM (6 weeks ago)
- File:
-
- 1 edited
-
seatreg/trunk/php/seatreg_shortcode.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seatreg/trunk/php/seatreg_shortcode.php
r3641857 r3693621 32 32 } 33 33 34 $roomQueryParam = ''; 34 $queryArgs = array( 35 'seatreg' => 'registration', 36 'c' => $atts['code'], 37 ); 35 38 36 39 if ( !empty($atts['room']) ) { … … 47 50 } 48 51 49 $ roomQueryParam = '&room=' . urlencode( $atts['room'] );52 $queryArgs['room'] = $atts['room']; 50 53 } 51 54 52 $seatregRegistrationUrl = esc_url(SeatregLinksService::getRegistrationURL() . "?seatreg=registration&c=". $atts['code'] . $roomQueryParam); 55 $queryArgs['page_id'] = SEATREG_PAGE_ID; 56 57 //Added as arguments, as the address may already carry the language the page is read in 58 $seatregRegistrationUrl = esc_url( add_query_arg( $queryArgs, SeatregLinksService::getRegistrationURLInCurrentLanguage() ) ); 53 59 $height = (int) esc_attr($atts['height']); 54 60 $mobileHeight = (int) esc_attr($atts['mobile_height']); 55 61 $breakpoint = (int) esc_attr($atts['mobile_max_width']); 56 $pageId = esc_attr(SEATREG_PAGE_ID);57 62 $iframeId = esc_attr('seatreg-shortcode-' . uniqid()); 58 63 $styleHandle = 'seatreg-inline-' . $iframeId; … … 79 84 wp_add_inline_style($styleHandle, $css); 80 85 81 return "<iframe id='{$iframeId}' src='{$seatregRegistrationUrl} &page_id={$pageId}'></iframe>";86 return "<iframe id='{$iframeId}' src='{$seatregRegistrationUrl}'></iframe>"; 82 87 } 83 88 add_shortcode( 'seatreg', 'seatreg_shortcode' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)