Changeset 2716874
- Timestamp:
- 05/01/2022 02:53:04 PM (4 years ago)
- Location:
- registerone-event-forms/trunk
- Files:
-
- 5 edited
-
admin/classes/RegisteroneIframes.php (modified) (2 diffs)
-
admin/classes/RegisteroneShortcodes.php (modified) (9 diffs)
-
front-end/assets/css/form-custom.css (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
registerone-wordpress-client.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
registerone-event-forms/trunk/admin/classes/RegisteroneIframes.php
r2506863 r2716874 64 64 </p> 65 65 66 <h3><strong> FIXING CUT OFF FORMS (HEIGHT)</strong></h3>66 <h3><strong>ADDING BOTTOM PADDING (optional)</strong></h3> 67 67 <h3>Use "padding_px" to add more space to the bottom of the form. Defaults to 100.</h3> 68 68 <p style="padding-left: 20px;">If your iframed form appears to be cut off at the bottom, you can add more space to the bottom like the example below.<br> … … 70 70 <p style="padding-left: 40px;">Example iframe shortcode with 300px of padding:<br> 71 71 <input style="width:700px" name="" type="text" id="" value="[registerone-iframe page_url=https://www.yoursite.com/form_page_with_shortcode/ padding_px=300]" class="regular-text"> 72 </p> 73 74 <h3><strong>SETTING FIXED HEIGHT (optional)</strong></h3> 75 <h3>Use "height" to set a hard height to your iframe. Defaults to auto-height.</h3> 76 <p style="padding-left: 20px;">If your iframed form appears to be cut off or display partially, you can set the height like the example below.<br> 77 </p> 78 <p style="padding-left: 40px;">Example iframe shortcode with 800px height:<br> 79 <input style="width:700px" name="" type="text" id="" value="[registerone-iframe page_url=https://www.yoursite.com/form_page_with_shortcode/ height=800]" class="regular-text"> 72 80 </p> 73 81 -
registerone-event-forms/trunk/admin/classes/RegisteroneShortcodes.php
r2705647 r2716874 285 285 } 286 286 287 // echo $request_url_event_attributes;287 // echo $request_url_event_attributes; 288 288 $this->event_attributes = wp_remote_retrieve_body(wp_remote_request($request_url_event_attributes, $request_args)); 289 289 //echo "<pre>"; … … 691 691 $formData = json_decode($data, true); 692 692 693 $error_code_a = ['503', '401', '404', '405', '409', '410', '411', '402','0']; 693 // print_r($formData); die; 694 $error_code_a = ['503', '401', '404', '405', '407', '409', '410', '411', '402','0']; 694 695 695 696 /* … … 3265 3266 <div id="var_deposit_form_block" style="margin-top:10px; display:none"> 3266 3267 <form class="" id="var_deposit_form" name="var_deposit_form" action="<?php echo admin_url('admin-ajax.php'); ?>" id="clients-form" method="post" enctype="multipart/form-data"> 3267 <button type="submit" id="var_deposit_submit" class="btn btn-discount-bottom">Change Amount</button>3268 3268 <input type="hidden" name="_csrf" value=""> 3269 3269 <input type="hidden" name="dwc_screen_name" value="payment"> … … 3277 3277 <input type="hidden" id="var_deposit_maximum" name="maximum" value="<?php echo number_format($max_deposit,2) ?>"> 3278 3278 <input type="text" id="var_deposit_amount" class="form-control-inline" value="<?php echo number_format($max_deposit,2) ?>" name="var_deposit_amount" style="width:100px"> 3279 <button type="submit" id="var_deposit_submit" class="btn btn-discount-bottom">Set Amount</button> 3279 3280 </form> 3280 <h5>Enter the amount you want to pay. Any applicable fees will be added to this amount.</h5>3281 <h5>Enter a different amount and click <strong>Set Amount</strong>.<br>Any applicable fees will be added.</h5> 3281 3282 </div> 3282 3283 … … 6359 6360 echo "<h3><span style='color:red'>Application Closed</span></h3> 6360 6361 This form is no longer accepting new applications.<br>"; 6361 6362 echo "Status Code: {$formData['status']}"; 6363 6364 }elseif($formData['code'] == 407) { 6365 echo "<h3><span style='color:red'>Missing Privacy Policy</span></h3> 6366 This form is missing an important privacy policy link in the event setup and cannot continue.<br>Please contact the event organizer.<br>"; 6362 6367 echo "Status Code: {$formData['status']}"; 6363 6368 … … 7072 7077 <span class="red-alert">*</span> = required field 7073 7078 </div> 7079 7080 <?php if(!empty($formData['event_a']['privacy_policy_url'])): ?> 7081 <div class="form-group field-event"> 7082 <div class="col-lg-offset-2 col-lg-10"> 7083 <div class="block_text well"> 7084 By submitting this form, I acknowledge that I have read and agree to the event organizer's 7085 <a title="Open in new tab <br><?= $formData['event_a']['privacy_policy_url'] ?>" class="tooltip" href="<?= $formData['event_a']['privacy_policy_url'] ?>" target="_blank">Privacy Policy</a>. 7086 If you do not agree, do not submit this form. 7087 </div> 7088 </div> 7089 </div> 7090 <?php endif; ?> 7074 7091 7075 7092 <div class="form-group"> … … 8788 8805 $attributes = json_decode( $this->event_attributes, true); 8789 8806 8807 // print_r($attributes); die; 8808 8790 8809 if (isset($attributes['event_a']['logo_img_url']) && !empty($attributes['event_a']['logo_img_url'])) { 8791 8810 $logo_image = "<img class='logo-image' src='{$attributes['event_a']['logo_img_url']}'>"; … … 8824 8843 8825 8844 if(isset($attributes['applicant_a'])): 8826 if($pk = $attributes['applicant_a']['profile_key']): 8827 8828 $pdf_link = "<a title='View Ticket' class='btn-nav btn-red' href='" . esc_url($this->base_site_url . "/ticket/" . $pk) . "'> 8829 <i aria-hidden='true' class='fa fa-1x fa-ticket'></i> Ticket</a> 8830 </a>"; 8831 8845 // if notticket holder, continue 8846 if($attributes['applicant_a']['rec_type'] == 1): 8847 if($pk = $attributes['applicant_a']['profile_key']): 8848 8849 if($attributes['fee_total'] > 0): 8850 8851 $fee_total_formatted = $attributes['currency_symbol'].number_format($attributes['fee_total'],2); 8852 $pdf_link = "<a title='Due: {$fee_total_formatted}' class='tooltip btn-nav btn-blue' href='" . esc_url($this->base_site_url . "/invoice/" . $pk) . "'> 8853 <i style='color:#c45353' aria-hidden='true' class='fa fa-1x fa-circle'></i> Invoice</a> 8854 </a>"; 8855 else: 8856 $pdf_link = "<a title='View Invoice' class='btn-nav btn-blue' href='" . esc_url($this->base_site_url . "/invoice/" . $pk) . "'> 8857 <i style='color:#aad05e' aria-hidden='true' class='fa fa-1x fa-circle'></i> Invoice</a> 8858 </a>"; 8859 endif; 8860 endif; 8861 elseif($attributes['applicant_a']['rec_type'] > 1): 8862 if($pk = $attributes['applicant_a']['profile_key']): 8863 8864 if($attributes['fee_total'] > 0): 8865 8866 $fee_total_formatted = $attributes['currency_symbol'].number_format($attributes['fee_total'],2); 8867 $pdf_link = "<a title='Due: {$fee_total_formatted}' class='tooltip btn-nav btn-red' href='" . esc_url($this->base_site_url . "/ticket/" . $pk) . "'> 8868 <i aria-hidden='true' class='fa fa-1x fa-ticket'></i> Ticket</a> 8869 </a>"; 8870 else: 8871 $pdf_link = "<a title='View Ticket' class='btn-nav btn-red' href='" . esc_url($this->base_site_url . "/ticket/" . $pk) . "'> 8872 <i aria-hidden='true' class='fa fa-1x fa-ticket'></i> Ticket</a> 8873 </a>"; 8874 endif; 8875 endif; 8832 8876 endif; 8833 8877 endif; … … 9162 9206 } 9163 9207 ?> 9164 v3. 4.159208 v3.5.0 9165 9209 : <a href="https://app.registerone.com/privacy-policy" target="_blank">Privacy Policy</a> 9166 9210 <?php -
registerone-event-forms/trunk/front-end/assets/css/form-custom.css
r2705647 r2716874 144 144 145 145 #submit-apply { 146 margin-top: 20px;146 margin-top: 5px; 147 147 } 148 148 149 149 .file-caption-name { 150 150 overflow: inherit; 151 } 152 153 /* jBox theme: TooltipDark */ 154 .jBox-container { 155 background: unset; 156 box-shadow: unset; 157 } 158 .jBox-Tooltip .jBox-container, 159 .jBox-Mouse .jBox-container { 160 box-shadow: unset; 151 161 } 152 162 … … 607 617 608 618 .btn-nav-inactive { 609 /* color: #fff; */ 610 /* background-color: #e6e6e6; */ 611 /* border-color: #ccc; */ 619 background-color: #f7f7f7; 620 border-color: #ccc; 612 621 } 613 622 -
registerone-event-forms/trunk/readme.txt
r2705647 r2716874 7 7 Requires at least: 5 8 8 Tested up to: 5.9 9 Version 3. 4.1510 Stable tag: 3. 4.159 Version 3.5.0 10 Stable tag: 3.5.0 11 11 Requires PHP: 5.6 12 12 License: GPLv2 or later … … 133 133 == Changelog == 134 134 135 = 3.5.0 = 136 * NEW: External privacy policy link added to profile page 137 * UPDATE: Add extra notes for iframe setup 138 * UPDATE: Split payment form mods to clarify action 139 * UPDATE: Add border to inactive top nav buttons for better UX 140 135 141 = 3.4.15 = 136 142 * UPDATE: Add Ticket button to top of form -
registerone-event-forms/trunk/registerone-wordpress-client.php
r2705647 r2716874 4 4 Plugin URI: https://www.registerone.com 5 5 Description: Event registration and digital profile builder, conference video streaming, booth mapping, meetings & ticketing 6 Version: 3. 4.156 Version: 3.5.0 7 7 Author: RegisterONE 8 8 Author URI: http://www.registerone.com … … 131 131 132 132 public function switch_template_directory_uri( $template_dir_uri ) { 133 $new_theme_root_uri = $this->plugin_url . '/registerone-event-forms/src/assets/' . $this->r1_theme_name . '/';133 $new_theme_root_uri = $this->plugin_url . '/registerone-event-forms/src/assets/' . $this->r1_theme_name; 134 134 wp_register_style( 'theme-styles', $new_theme_root_uri . 'site.css'); 135 135
Note: See TracChangeset
for help on using the changeset viewer.