Plugin Directory

Changeset 2716874


Ignore:
Timestamp:
05/01/2022 02:53:04 PM (4 years ago)
Author:
registerone
Message:

v3.5.0

Location:
registerone-event-forms/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • registerone-event-forms/trunk/admin/classes/RegisteroneIframes.php

    r2506863 r2716874  
    6464        </p>
    6565
    66         <h3><strong>FIXING CUT OFF FORMS (HEIGHT)</strong></h3>
     66        <h3><strong>ADDING BOTTOM PADDING (optional)</strong></h3>
    6767        <h3>Use "padding_px" to add more space to the bottom of the form. Defaults to 100.</h3>
    6868        <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>
     
    7070        <p style="padding-left: 40px;">Example iframe shortcode with 300px of padding:<br>
    7171            <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">
    7280        </p>
    7381
  • registerone-event-forms/trunk/admin/classes/RegisteroneShortcodes.php

    r2705647 r2716874  
    285285                }
    286286
    287                 //echo $request_url_event_attributes;
     287                // echo $request_url_event_attributes;
    288288                $this->event_attributes = wp_remote_retrieve_body(wp_remote_request($request_url_event_attributes, $request_args));
    289289                //echo "<pre>";
     
    691691        $formData = json_decode($data, true);
    692692
    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'];
    694695
    695696        /*
     
    32653266                                                <div id="var_deposit_form_block" style="margin-top:10px; display:none">
    32663267                                                <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>
    32683268                                                    <input type="hidden" name="_csrf" value="">
    32693269                                                    <input type="hidden" name="dwc_screen_name" value="payment">
     
    32773277                                                    <input type="hidden" id="var_deposit_maximum" name="maximum" value="<?php echo number_format($max_deposit,2) ?>">
    32783278                                                    <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>
    32793280                                                </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>
    32813282                                                </div>
    32823283
     
    63596360                            echo "<h3><span style='color:red'>Application Closed</span></h3>
    63606361                            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>";
    63626367                            echo "Status Code: {$formData['status']}";
    63636368
     
    70727077                    <span class="red-alert">*</span> = required field
    70737078                </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; ?>
    70747091
    70757092                <div class="form-group">
     
    87888805                $attributes = json_decode( $this->event_attributes, true);
    87898806
     8807                // print_r($attributes); die;
     8808
    87908809                if (isset($attributes['event_a']['logo_img_url']) && !empty($attributes['event_a']['logo_img_url'])) {
    87918810                    $logo_image = "<img class='logo-image' src='{$attributes['event_a']['logo_img_url']}'>";
     
    88248843
    88258844                    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;
    88328876                        endif;
    88338877                    endif;
     
    91629206                    }
    91639207                    ?>
    9164                     v3.4.15
     9208                    v3.5.0
    91659209                    : <a href="https://app.registerone.com/privacy-policy" target="_blank">Privacy Policy</a>
    91669210                    <?php
  • registerone-event-forms/trunk/front-end/assets/css/form-custom.css

    r2705647 r2716874  
    144144
    145145#submit-apply {
    146     margin-top: 20px;
     146    margin-top: 5px;
    147147}
    148148
    149149.file-caption-name {
    150150    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;
    151161}
    152162
     
    607617
    608618.btn-nav-inactive {
    609     /* color: #fff; */
    610     /* background-color: #e6e6e6; */
    611     /* border-color: #ccc; */
     619    background-color: #f7f7f7;
     620    border-color: #ccc;
    612621}
    613622
  • registerone-event-forms/trunk/readme.txt

    r2705647 r2716874  
    77Requires at least: 5
    88Tested up to: 5.9
    9 Version 3.4.15
    10 Stable tag: 3.4.15
     9Version 3.5.0
     10Stable tag: 3.5.0
    1111Requires PHP: 5.6
    1212License: GPLv2 or later
     
    133133== Changelog ==
    134134
     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
    135141= 3.4.15 =
    136142* UPDATE: Add Ticket button to top of form
  • registerone-event-forms/trunk/registerone-wordpress-client.php

    r2705647 r2716874  
    44Plugin URI: https://www.registerone.com
    55Description: Event registration and digital profile builder, conference video streaming, booth mapping, meetings & ticketing
    6 Version: 3.4.15
     6Version: 3.5.0
    77Author: RegisterONE
    88Author URI: http://www.registerone.com
     
    131131
    132132        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;
    134134            wp_register_style( 'theme-styles', $new_theme_root_uri . 'site.css');
    135135
Note: See TracChangeset for help on using the changeset viewer.