Changeset 129089
- Timestamp:
- 06/24/2009 03:29:21 PM (17 years ago)
- File:
-
- 1 edited
-
visitorcontact/trunk/visitor-contact.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
visitorcontact/trunk/visitor-contact.php
r129085 r129089 19 19 wp_enqueue_script('visitor_contact_script', 'http://visitorcontact.com/scripts/wordpress'); 20 20 } else { 21 wp_enqueue_script('visitor_contact_script', 'http://visitorcontact.com/scripts/'.get_option('visitor_contact_form_id').'.js'); 21 if (get_option('visitor_contact_sticky_button') == "true") { 22 wp_enqueue_script('visitor_contact_script', 'http://visitorcontact.com/scripts/'.get_option('visitor_contact_form_id').'.js'); 23 } 22 24 } 23 25 } … … 69 71 update_option("visitor_contact_page_id", ""); 70 72 } 73 // Sticky Button 74 if ($_POST['visitor_contact_sticky_button']) { 75 update_option("visitor_contact_sticky_button", "true"); 76 } else { 77 update_option("visitor_contact_sticky_button", "false"); 78 } 71 79 } else { 72 80 update_option("visitor_contact_form_id", ""); … … 88 96 </div> 89 97 <?php 90 if ( !$_POST['visitor_contact_form_id']) {98 if ($_POST && !$_POST['visitor_contact_form_id']) { 91 99 ?> 92 100 <div class="redBox"> … … 101 109 <input type="text" id="visitor_contact_form_id" name="visitor_contact_form_id" style="border: 1px solid #CCC; width: 200px;" value="<?php echo get_option('visitor_contact_form_id') ; ?>"> 102 110 <br /><br /> 103 <input type="checkbox" name="visitor_contact_publish_page" id="visitor_contact_publish_page" style="border: 0px;" /> <label for="visitor_contact_publish_page"> Make a Contact page</label> 111 <input type="checkbox" name="visitor_contact_sticky_button" id="visitor_contact_sticky_button" style="border: 0px;" <?php if (get_option('visitor_contact_sticky_button') != "false") { ?>checked<?php } ?> /> <label for="visitor_contact_sticky_button"> Sticky Contact Button</label><br /> 112 <input type="checkbox" name="visitor_contact_publish_page" id="visitor_contact_publish_page" style="border: 0px;" <?php if (get_option('visitor_contact_publish_page') != "false") { ?>checked<?php } ?> /> <label for="visitor_contact_publish_page"> Make a Contact page</label> 104 113 <br /> 105 114 <p class="submit">
Note: See TracChangeset
for help on using the changeset viewer.