Changeset 458324
- Timestamp:
- 11/01/2011 04:10:53 PM (14 years ago)
- Location:
- search-simple-fields
- Files:
-
- 7 added
- 3 edited
-
tags/0.2 (added)
-
tags/0.2/css (added)
-
tags/0.2/css/style.css (added)
-
tags/0.2/functions_admin.php (added)
-
tags/0.2/functions_post.php (added)
-
tags/0.2/readme.txt (added)
-
tags/0.2/search_simple_fields.php (added)
-
trunk/functions_admin.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/search_simple_fields.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
search-simple-fields/trunk/functions_admin.php
r458180 r458324 19 19 $media_function = (isset($_POST[SSF_MEDIA_FUNCTION])) ? $_POST[SSF_MEDIA_FUNCTION] : ''; 20 20 $media_fields = (isset($_POST['media_fields']) && array_filter($_POST['media_fields'])) ? $_POST['media_fields'] : null; 21 $wp_fields = (isset($_POST['wp_fields']) && trim($_POST['wp_fields']) != '') ? explode(';', $_POST['wp_fields']) : null; 21 22 if(!is_null($post_types_for_search)) 22 23 update_option(SSF_POST_TYPES_FOR_SEARCH, $post_types_for_search); … … 36 37 else 37 38 delete_option(SSF_MEDIA_FIELDS_FOR_SEARCH); 39 40 if(!is_null($wp_fields)) 41 update_option(SSF_WP_FIELDS_FOR_SEARCH, $wp_fields); 42 else 43 delete_option(SSF_WP_FIELDS_FOR_SEARCH); 38 44 endif; 39 45 $old_post_types = get_option(SSF_POST_TYPES_FOR_SEARCH); … … 108 114 <?php endif; 109 115 endif; ?> 110 <?php _e('Custom function you use to define custom media fields');?>: <input type="text" name="<?php echo SSF_MEDIA_FUNCTION;?>" size="40" value="<?php echo $media_function;?>"/> 116 <?php _e('Custom function you use to define custom media fields');?>: <input type="text" name="<?php echo SSF_MEDIA_FUNCTION;?>" size="40" value="<?php echo $media_function;?>"/> 111 117 </div> 118 <div class="ssf-horizontal-line"><!-- --></div> 119 <?php $old_wp_fields = get_option(SSF_WP_FIELDS_FOR_SEARCH); ?> 120 <div class="ssf-list-title"><?php _e('WordPress custom fields'); ?></div> 121 <p class="ssf-paragraph"><?php _e('Please write the custom fields\' names separated by semicolo (;).');?></p> 122 <textarea cols="50" rows="2" name="wp_fields"><?php echo (isset($old_wp_fields) && is_array($old_wp_fields)) ? implode(';', $old_wp_fields): ''; ?></textarea> 112 123 <input type="submit" value="Save Changes" name="save-changes"/> 113 124 </form> -
search-simple-fields/trunk/readme.txt
r458180 r458324 5 5 Requires at least: 3.2.1 6 6 Tested up to: 3.2.1 7 Stable tag: 0. 17 Stable tag: 0.2 8 8 9 9 Set custom fields to apply the Wordpress Search on. … … 53 53 - First beta version. 54 54 55 = 0.2 = 56 - Added possibility to search in WordPress custom fields too 57 -
search-simple-fields/trunk/search_simple_fields.php
r458180 r458324 4 4 Plugin URI: http://elfdreamer.blogspot.com/2011/10/new-wordpress-plugin-search-simple.html 5 5 Description: Allows user to search in different cusomt fields. It extends this plugin: <a href='http://eskapism.se/code-playground/simple-fields/' target='_blank'>Simple Fields</a>. Also let the user choose from Media custom fields or Wordpress custom fields. 6 Version: 0. 16 Version: 0.2 7 7 Author: SimonaIlie 8 8 Author URI: http://elfdreamer.blogspot.com/
Note: See TracChangeset
for help on using the changeset viewer.