|
@@ 3886-3897 (lines=12) @@
|
| 3883 |
|
$sql = "SELECT site_title, asc_title, desc_title FROM " . GEODIR_CUSTOM_SORT_FIELDS_TABLE;
|
| 3884 |
|
$rows = $wpdb->get_results($sql);
|
| 3885 |
|
|
| 3886 |
|
if (!empty($rows)) {
|
| 3887 |
|
foreach($rows as $row) {
|
| 3888 |
|
if (!empty($row->site_title))
|
| 3889 |
|
$translation_texts[] = stripslashes_deep($row->site_title);
|
| 3890 |
|
|
| 3891 |
|
if (!empty($row->asc_title))
|
| 3892 |
|
$translation_texts[] = stripslashes_deep($row->asc_title);
|
| 3893 |
|
|
| 3894 |
|
if (!empty($row->desc_title))
|
| 3895 |
|
$translation_texts[] = stripslashes_deep($row->desc_title);
|
| 3896 |
|
}
|
| 3897 |
|
}
|
| 3898 |
|
|
| 3899 |
|
// Advance search filter fields table
|
| 3900 |
|
if (defined('GEODIR_ADVANCE_SEARCH_TABLE')) {
|
|
@@ 3904-3915 (lines=12) @@
|
| 3901 |
|
$sql = "SELECT field_site_name, front_search_title, field_desc FROM " . GEODIR_ADVANCE_SEARCH_TABLE;
|
| 3902 |
|
$rows = $wpdb->get_results($sql);
|
| 3903 |
|
|
| 3904 |
|
if (!empty($rows)) {
|
| 3905 |
|
foreach($rows as $row) {
|
| 3906 |
|
if (!empty($row->field_site_name))
|
| 3907 |
|
$translation_texts[] = stripslashes_deep($row->field_site_name);
|
| 3908 |
|
|
| 3909 |
|
if (!empty($row->front_search_title))
|
| 3910 |
|
$translation_texts[] = stripslashes_deep($row->front_search_title);
|
| 3911 |
|
|
| 3912 |
|
if (!empty($row->field_desc))
|
| 3913 |
|
$translation_texts[] = stripslashes_deep($row->field_desc);
|
| 3914 |
|
}
|
| 3915 |
|
}
|
| 3916 |
|
}
|
| 3917 |
|
|
| 3918 |
|
$translation_texts = !empty($translation_texts) ? array_unique($translation_texts) : $translation_texts;
|