Changeset 495067
- Timestamp:
- 01/25/2012 08:03:40 AM (14 years ago)
- Location:
- indeed-api/trunk
- Files:
-
- 4 edited
-
indeed-api.php (modified) (3 diffs)
-
indeed_api_options.php (modified) (3 diffs)
-
indeedsearchjs.html (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indeed-api/trunk/indeed-api.php
r303362 r495067 77 77 $fieldtype = get_option('indeed_api_field_type'); 78 78 $fieldvalue = get_option('indeed_api_field_value'); 79 $defaultlocation = get_option('indeed_api_default_location'); 80 $autosearch = get_option('indeed_api_auto_search'); 79 81 $apiversion = get_option('indeed_api_version'); 80 82 if( $apiversion === FALSE ) $apiversion = '2'; … … 90 92 $apiview .= 'var wpajaxurl = "'.admin_url('admin-ajax.php').'"'."\r\n"; 91 93 $apiview .= 'var wpsiteurl = "'.get_option('siteurl').'"'."\r\n"; 94 if( $autosearch ) $apiview .= 'var autosearch = true;'."\r\n"; 92 95 $apiview .= "</script>\r\n"; 93 96 … … 124 127 125 128 $trendform .= ''. 126 '<span class="indeedinput"><input style="margin:0;" type="text" name="l" /></span>'.129 '<span class="indeedinput"><input style="margin:0;" type="text" name="l" value="'.$defaultlocation.'" /></span>'. 127 130 '<span class="indeedinput2"><input style="margin:0;" type="button" name="indeedsearchbutton" value="Search"></span></div>'. 128 131 '<span class="indeedlabel2">Job title, keywords or company name</span>'. -
indeed-api/trunk/indeed_api_options.php
r303362 r495067 25 25 $fieldvalue = $_POST['indeed_api_field_value']; 26 26 update_option('indeed_api_field_value', $fieldvalue); 27 $defaultlocation = $_POST['indeed_api_default_location']; 28 update_option('indeed_api_default_location', $defaultlocation); 29 if( isset($_POST['indeed_api_auto_search']) ) $autosearch = $_POST['indeed_api_auto_search']; 30 else $autosearch = 0; 31 update_option('indeed_api_auto_search', $autosearch); 27 32 $apiversion = $_POST['indeed_api_version']; 28 33 update_option('indeed_api_version', $apiversion); … … 48 53 $fieldtype = get_option('indeed_api_field_type'); 49 54 $fieldvalue = get_option('indeed_api_field_value'); 55 $defaultlocation = get_option('indeed_api_default_location'); 56 $autosearch = get_option('indeed_api_auto_search'); 50 57 $apiversion = get_option('indeed_api_version'); 51 58 if( $apiversion === FALSE ) $apiversion = '2'; … … 142 149 143 150 <tr valign="top"> 151 <th scope="row"><?php _e("Default Location"); ?></th> 152 <td> 153 <input type="text" name="indeed_api_default_location" value="<?php echo $defaultlocation; ?>" >(optional)Specify a default search location when the page is loaded. 154 </td> 155 </tr> 156 157 <tr valign="top"> 158 <th scope="row"><?php _e("Auto Search"); ?></th> 159 <td> 160 <input type="checkbox" name="indeed_api_auto_search" value="1" <?php echo ($autosearch ? 'checked' : ''); ?>>(optional)Specify that an auto search should be started when the page loads. 161 </td> 162 </tr> 163 164 <tr valign="top"> 144 165 <th scope="row"><?php _e("API Version"); ?></th> 145 166 <td> -
indeed-api/trunk/indeedsearchjs.html
r303362 r495067 20 20 jQuery("input[name='start']").val(1) 21 21 }) 22 23 if( autosearch ) { 24 indeedsearchbusy() 25 indeedsearchcall() 26 } 22 27 }) 23 28 -
indeed-api/trunk/readme.txt
r303362 r495067 5 5 Requires at least: 3.0 6 6 Tested up to: 3.0 7 Stable tag: 0. 17 Stable tag: 0.2 8 8 9 9 Provides simple integration of a WordPress site with the indeed.com API for … … 104 104 105 105 == Changelog == 106 No changes. 106 107 = 0.2 = 108 Added a default location option in settings and the option to auto search on 109 page load. 107 110 108 111
Note: See TracChangeset
for help on using the changeset viewer.