Plugin Directory

Changeset 1951693


Ignore:
Timestamp:
10/04/2018 07:22:32 PM (7 years ago)
Author:
thrivehive
Message:

render with https

Location:
thrivehive/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • thrivehive/trunk/templates/form_generator.php

    r899760 r1951693  
    7272</style>
    7373 
    74 <form class="hiveform" action="//'.$env.'/Webform/FormHandler" method="post" id="thrivehive-contactform">
     74<form class="hiveform" action="https://'.$env.'/Webform/FormHandler" method="post" id="thrivehive-contactform">
    7575      <label for="input1-contactform">First Name<span class="required-star">*</span></label><input type="text" name="list.first_name" id="input1-contactform" />
    7676    <div id="input1-contactform-errors" class="error-block"></div>
  • thrivehive/trunk/templates/landing-page-thrivehive.php

    r1477861 r1951693  
    272272                <a name="contact-form"></a>
    273273
    274                 <form class="hiveform" action="//<?php echo $env; ?>/Webform/FormHandler" method="post"
     274                <form class="hiveform" action="https://<?php echo $env; ?>/Webform/FormHandler" method="post"
    275275                      id="thrivehive-form278">
    276276                    <label for="input5-form278">First Name<span class="required-star">*</span></label><input type="text"
  • thrivehive/trunk/thrivehive.php

    r1951087 r1951693  
    137137  register_setting( 'thrivehive-settings-group', 'th_javascript_header');
    138138  register_setting( 'thrivehive-settings-group', 'th_javascript');
     139  register_setting( 'thrivehive-settings-group', 'th_header_html');
    139140  register_setting( 'thrivehive-settings-group', 'th_css');
    140141  register_setting( 'thrivehive-settings-group', 'th_landingform_id' );
     
    259260        <textarea rows="15" cols="100" name="th_javascript" /><?php echo htmlentities(get_option('th_javascript')); ?></textarea>
    260261      </td>
    261         </tr>
     262    </tr>
     263    <tr valign="top">
     264      <th scope="row">ThriveHive Custom Header HTML</th>
     265      <td>
     266        <textarea rows="15" cols="100" name="th_header_html" /><?php echo htmlentities(get_option('th_header_html')); ?></textarea>
     267      </td>
     268    </tr>
     269
    262270         <tr valign="top">
    263271          <th scope="row">ThriveHive Custom CSS</th>
     
    476484  if($js){
    477485    echo "<script type='text/javascript'>$js</script>";
     486  }
     487}
     488
     489function thrivehive_header_html(){
     490  $html = get_option('th_header_html');
     491  if($html){
     492    echo "$html";
    478493  }
    479494}
     
    634649add_action('wp_head', 'create_option_css');
    635650add_action('wp_head','thrivehive_custom_css');
     651add_action('wp_head', 'thrivehive_header_html');
    636652add_action('wp_head', 'thrivehive_custom_javascript_header');
    637653
Note: See TracChangeset for help on using the changeset viewer.