Changeset 1056940
- Timestamp:
- 12/30/2014 03:26:02 PM (11 years ago)
- Location:
- opensearchserver-search/trunk
- Files:
-
- 3 edited
-
index.php (modified) (1 diff)
-
opensearchserver_admin.php (modified) (5 diffs)
-
template/opensearchserver_search.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
opensearchserver-search/trunk/index.php
r1056902 r1056940 168 168 delete_option($check_taxonomy_name); 169 169 } 170 $custom_field_lab les = opensearchserver_get_all_custom_fields();171 foreach($custom_field_lab les as $custom_field_label => $key) {170 $custom_field_labels = opensearchserver_get_all_custom_fields(); 171 foreach($custom_field_labels as $custom_field_label => $key) { 172 172 $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label)); 173 173 delete_option($check_custom_field_label); -
opensearchserver-search/trunk/opensearchserver_admin.php
r1056834 r1056940 102 102 } 103 103 //Add custom fields schema 104 $custom_field_lab les = opensearchserver_get_all_custom_fields();105 foreach($custom_field_lab les as $custom_field_label => $key) {104 $custom_field_labels = opensearchserver_get_all_custom_fields(); 105 foreach($custom_field_labels as $custom_field_label => $key) { 106 106 $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label)); 107 107 if(get_option($check_custom_field_label)==1) { … … 162 162 } 163 163 } 164 $custom_field_lab les = opensearchserver_get_all_custom_fields();165 foreach($custom_field_lab les as $custom_field_label => $key) {164 $custom_field_labels = opensearchserver_get_all_custom_fields(); 165 foreach($custom_field_labels as $custom_field_label => $key) { 166 166 $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label)); 167 167 if(get_option($check_custom_field_label)==1) { … … 448 448 449 449 // Handling custom fields 450 $custom_field_lab les = opensearchserver_get_all_custom_fields();451 foreach($custom_field_lab les as $custom_field_label => $key) {450 $custom_field_labels = opensearchserver_get_all_custom_fields(); 451 foreach($custom_field_labels as $custom_field_label => $key) { 452 452 $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label)); 453 453 if(get_option($check_custom_field_label)==1) { … … 754 754 update_option('oss_taxonomy_'.$taxonomy, $check_taxonomy_name); 755 755 } 756 $custom_field_lab les = opensearchserver_get_all_custom_fields();757 foreach($custom_field_lab les as $custom_field_label => $key) {756 $custom_field_labels = opensearchserver_get_all_custom_fields(); 757 foreach($custom_field_labels as $custom_field_label => $key) { 758 758 $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label)); 759 759 $check_custom_field_value = (int)$_POST[$check_custom_field_label]; … … 1261 1261 <legend>Custom Fields to index</legend> 1262 1262 <?php 1263 $custom_field_lab les = opensearchserver_get_all_custom_fields();1264 foreach($custom_field_lab les as $custom_field_label => $key) {1263 $custom_field_labels = opensearchserver_get_all_custom_fields(); 1264 foreach($custom_field_labels as $custom_field_label => $key) { 1265 1265 $check_custom_field_label = 'oss_custom_field_'.strtolower(str_replace(' ', '_', $custom_field_label)); 1266 1266 ?> -
opensearchserver-search/trunk/template/opensearchserver_search.php
r937843 r1056940 258 258 print $content.'<br/>'; 259 259 } 260 $custom_fields_array = opensearchserver_get_custom_fields();261 foreach($custom_fields_array as $field) {262 $value = stripslashes($oss_results->getField($i, "custom_".opensearchserver_clean_field($field), false));263 if($value) {264 print '<b>'. $field.'</b> : '.$value.'<br/>';265 }266 }267 260 ?> 268 261 </div>
Note: See TracChangeset
for help on using the changeset viewer.