Version Description
Download this release
Release Info
Developer | dancameron |
Plugin | Search Everything |
Version | 6.9.2 |
Comparing to | |
See all releases |
Code changes from version 6.9.1 to 6.9.2
- lang/se-da_DK.mo +0 -0
- lang/se-da_DK.po +255 -0
- readme.txt +1 -1
- search-everything.php +20 -19
- views/options.php +93 -91
lang/se-da_DK.mo
ADDED
Binary file
|
lang/se-da_DK.po
ADDED
@@ -0,0 +1,255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Search Everything 6.1\n"
|
4 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/search-everything\n"
|
5 |
+
"POT-Creation-Date: 2009-06-11 23:25+0000\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Thomas Clausen <kontakt@thomasclausen.dk>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=n != 1\n"
|
13 |
+
"X-Poedit-Language: Norwegian Nynorsk\n"
|
14 |
+
"X-Poedit-Country: NORWAY\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
16 |
+
"X-Poedit-Basepath: .\n"
|
17 |
+
"X-Poedit-SearchPath-0: ..\n"
|
18 |
+
"X-Poedit-SearchPath-1: ../views\n"
|
19 |
+
|
20 |
+
#: views/options.php:54
|
21 |
+
#: views/options.php:61
|
22 |
+
msgid "Your default search settings have been <strong>updated</strong> by Search Everything. </p><p> What are you waiting for? Go check out the new search results!"
|
23 |
+
msgstr "Dine indstillinger for søgninger er blevet <strong>opdateret</strong> af Search Everything.</p><p>Hvad venter du på? Prøv at lave en søgning for at se resultatet!"
|
24 |
+
|
25 |
+
#: views/options.php:71
|
26 |
+
msgid "Search Everything Version:"
|
27 |
+
msgstr "Search Everything version:"
|
28 |
+
|
29 |
+
#: views/options.php:76
|
30 |
+
#: views/options.php:278
|
31 |
+
msgid "Update Options"
|
32 |
+
msgstr "Gem ændringer"
|
33 |
+
|
34 |
+
#: views/options.php:84
|
35 |
+
msgid "Basic Configuration"
|
36 |
+
msgstr "Generelle indstillinger"
|
37 |
+
|
38 |
+
#: views/options.php:90
|
39 |
+
msgid "Search every page"
|
40 |
+
msgstr "Søg på alle sider"
|
41 |
+
|
42 |
+
#: views/options.php:90
|
43 |
+
msgid "(non-password protected)"
|
44 |
+
msgstr "(ikke kodeordsbeskyttet)"
|
45 |
+
|
46 |
+
#: views/options.php:94
|
47 |
+
#: views/options.php:105
|
48 |
+
#: views/options.php:118
|
49 |
+
#: views/options.php:132
|
50 |
+
#: views/options.php:143
|
51 |
+
#: views/options.php:153
|
52 |
+
#: views/options.php:163
|
53 |
+
#: views/options.php:173
|
54 |
+
#: views/options.php:186
|
55 |
+
#: views/options.php:197
|
56 |
+
#: views/options.php:207
|
57 |
+
#: views/options.php:217
|
58 |
+
#: views/options.php:227
|
59 |
+
msgid "Yes"
|
60 |
+
msgstr "Ja"
|
61 |
+
|
62 |
+
#: views/options.php:101
|
63 |
+
msgid "Search approved pages only"
|
64 |
+
msgstr "Søg kun efter godkendte sider"
|
65 |
+
|
66 |
+
#: views/options.php:114
|
67 |
+
msgid "Search every tag name"
|
68 |
+
msgstr "Søg efter alle tag navne"
|
69 |
+
|
70 |
+
#: views/options.php:128
|
71 |
+
msgid "Search every category name and description"
|
72 |
+
msgstr "Søg i alle kategorinavne og -beskrivelser"
|
73 |
+
|
74 |
+
#: views/options.php:139
|
75 |
+
msgid "Search every comment"
|
76 |
+
msgstr "Søg i alle kommentarer"
|
77 |
+
|
78 |
+
#: views/options.php:149
|
79 |
+
msgid "Search comment authors"
|
80 |
+
msgstr "Søg efter kommentarforfattere"
|
81 |
+
|
82 |
+
#: views/options.php:159
|
83 |
+
msgid "Search approved comments only"
|
84 |
+
msgstr "Søg kun efter godkendte kommentarer"
|
85 |
+
|
86 |
+
#: views/options.php:169
|
87 |
+
msgid "Search every excerpt"
|
88 |
+
msgstr "Søg i alle uddrag"
|
89 |
+
|
90 |
+
#: views/options.php:182
|
91 |
+
msgid "Search every draft"
|
92 |
+
msgstr "Søg i alle kladder"
|
93 |
+
|
94 |
+
#: views/options.php:193
|
95 |
+
msgid "Search every attachment"
|
96 |
+
msgstr "Søg efter alle medier"
|
97 |
+
|
98 |
+
#: views/options.php:193
|
99 |
+
msgid "(post type = attachment)"
|
100 |
+
msgstr "(indlægstype = medie)"
|
101 |
+
|
102 |
+
#: views/options.php:203
|
103 |
+
msgid "Search every custom field"
|
104 |
+
msgstr "Søg i alle egne felter"
|
105 |
+
|
106 |
+
#: views/options.php:203
|
107 |
+
msgid "(metadata)"
|
108 |
+
msgstr "(metadata)"
|
109 |
+
|
110 |
+
#: views/options.php:213
|
111 |
+
msgid "Search every author"
|
112 |
+
msgstr "Søg efter alle forfattere"
|
113 |
+
|
114 |
+
#: views/options.php:223
|
115 |
+
msgid "Highlight Search Terms"
|
116 |
+
msgstr "Fremhæv søgeord"
|
117 |
+
|
118 |
+
#: views/options.php:233
|
119 |
+
msgid "Highlight Background Color"
|
120 |
+
msgstr "Fremhæv baggrundfarve"
|
121 |
+
|
122 |
+
#: views/options.php:236
|
123 |
+
msgid "Examples:<br/>'#FFF984' or 'red'"
|
124 |
+
msgstr "Eksempel:<br />'#FFF984' eller 'red'"
|
125 |
+
|
126 |
+
#: views/options.php:246
|
127 |
+
msgid "Advanced Configuration - Exclusion"
|
128 |
+
msgstr "Avancerede indstillinger - Eksklusion"
|
129 |
+
|
130 |
+
#: views/options.php:252
|
131 |
+
msgid "Exclude some post or page IDs"
|
132 |
+
msgstr "Ekskluder nogle indlæg og sider ID'er"
|
133 |
+
|
134 |
+
#: views/options.php:255
|
135 |
+
msgid "Comma separated Post IDs (example: 1, 5, 9)"
|
136 |
+
msgstr "Kommaseparerede indlægs ID'er (eksempel: 1, 5, 9)"
|
137 |
+
|
138 |
+
#: views/options.php:259
|
139 |
+
msgid "Exclude Categories"
|
140 |
+
msgstr "Ekskluder katagorier"
|
141 |
+
|
142 |
+
#: views/options.php:262
|
143 |
+
msgid "Comma separated category IDs (example: 1, 4)"
|
144 |
+
msgstr "Kommaseparerede kategori ID'er (eksempel: 1, 4)"
|
145 |
+
|
146 |
+
#: views/options.php:266
|
147 |
+
msgid "Full Highlight Style"
|
148 |
+
msgstr "Udvidet fremhævning"
|
149 |
+
|
150 |
+
#: views/options.php:268
|
151 |
+
msgid "Important: 'Highlight Background Color' must be blank to use this advanced styling."
|
152 |
+
msgstr "Vigtigt: 'Fremhæv baggrundfarve' skal være tomt for at benytte denne indstilling."
|
153 |
+
|
154 |
+
#: views/options.php:270
|
155 |
+
msgid "Example:<br/>background-color: #FFF984; font-weight: bold; color: #000; padding: 0 1px;"
|
156 |
+
msgstr "Eksempel:<br />background-color: #FFF984; font-weight: bold; color: #000; padding: 0 1px;"
|
157 |
+
|
158 |
+
#: views/options.php:283
|
159 |
+
msgid "Developed by Dan Cameron of"
|
160 |
+
msgstr "Udviklet af Dan Cameron fra"
|
161 |
+
|
162 |
+
#: views/options.php:283
|
163 |
+
msgid "Sprout Venture"
|
164 |
+
msgstr "Sprout Venture"
|
165 |
+
|
166 |
+
#: views/options.php:283
|
167 |
+
msgid "We Provide custom WordPress Plugins and Themes and a whole lot more."
|
168 |
+
msgstr "Vi tilbyder egne WordPress plugins, temaer og meget andet."
|
169 |
+
|
170 |
+
#: views/options.php:287
|
171 |
+
msgid "Reset Button"
|
172 |
+
msgstr "Nulstil"
|
173 |
+
|
174 |
+
#: views/options.php:295
|
175 |
+
msgid "Find a bug?"
|
176 |
+
msgstr "Fundet en fejl?"
|
177 |
+
|
178 |
+
#: views/options.php:295
|
179 |
+
msgid "Post it as a new issue"
|
180 |
+
msgstr "Beskriv problemet"
|
181 |
+
|
182 |
+
#: views/options.php:302
|
183 |
+
msgid "Test Search Form"
|
184 |
+
msgstr "Test søgning"
|
185 |
+
|
186 |
+
#: views/options.php:309
|
187 |
+
msgid "Use this search form to run a live search test."
|
188 |
+
msgstr "benyt denne søgeformular for at afprøve søgningen."
|
189 |
+
|
190 |
+
#: views/options.php:315
|
191 |
+
msgid "Run Test Search"
|
192 |
+
msgstr "Kør test søgning"
|
193 |
+
|
194 |
+
#: views/options.php:326
|
195 |
+
msgid "News"
|
196 |
+
msgstr "Nyheder"
|
197 |
+
|
198 |
+
#: views/options.php:327
|
199 |
+
msgid "Development Support"
|
200 |
+
msgstr "Hjulpet med udvikling"
|
201 |
+
|
202 |
+
#: views/options.php:328
|
203 |
+
msgid "Localization Support"
|
204 |
+
msgstr "Hjulpet med oversættelser"
|
205 |
+
|
206 |
+
#: views/options.php:334
|
207 |
+
msgid "LOCALIZATION SUPPORT:"
|
208 |
+
msgstr "UNDERSTØTTELSE AF SPROG:"
|
209 |
+
|
210 |
+
#: views/options.php:334
|
211 |
+
msgid "Version 6 was a major update and a few areas need new localization support. If you can help send me your translations by posting them as a new issue, "
|
212 |
+
msgstr "Version 6 var en større opdatering og nogle få områder kræver nye oversættelser. Hvis du vil hjælpe kan du sende din oversættelse ved at beskrive et nyt problem, "
|
213 |
+
|
214 |
+
#: views/options.php:334
|
215 |
+
msgid "here"
|
216 |
+
msgstr "her"
|
217 |
+
|
218 |
+
#: views/options.php:335
|
219 |
+
msgid "Thank You!"
|
220 |
+
msgstr "Tak for hjælpen!"
|
221 |
+
|
222 |
+
#: views/options.php:335
|
223 |
+
msgid "The development of Search Everything since Version one has primarily come from the WordPress community, I’m grateful for their dedicated and continued support."
|
224 |
+
msgstr "Udviklingen af Search Everything har siden første version primært kommet fra WordPress-fællesskabet. Jeg er taknemlig for deres dedikerede og vedvarende støtte."
|
225 |
+
|
226 |
+
#: views/options.php:345
|
227 |
+
msgid "and many more..."
|
228 |
+
msgstr "og mange andre..."
|
229 |
+
|
230 |
+
#: views/options.php:345
|
231 |
+
msgid "how about you?"
|
232 |
+
msgstr "hva' med dig?"
|
233 |
+
|
234 |
+
#. Plugin Name of an extension
|
235 |
+
msgid "Search Everything"
|
236 |
+
msgstr "Search Everything"
|
237 |
+
|
238 |
+
#. Plugin URI of an extension
|
239 |
+
msgid "https://core.sproutventure.com/projects/show/search-everything"
|
240 |
+
msgstr "https://core.sproutventure.com/projects/show/search-everything"
|
241 |
+
|
242 |
+
#. Description of an extension
|
243 |
+
msgid "Adds search functionality without modifying any template pages: Activate, Configure and Search. Options Include: search highlight, search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content."
|
244 |
+
msgstr "Tilføjer søgfunktion uden du behøver ændre nogle temafiler: Aktiver, indstil og søg. Indstillingsmuligheder: fremhæv søgeresultat, søg i sider, uddrag, medier, kladder, kommentarer, tags og egne felter (metadata). Der er også mulighed for at undlade specifikke sider og indlæg. Søger ikke i kodeordsbeskyttet indhold."
|
245 |
+
|
246 |
+
#. Author of an extension
|
247 |
+
msgid "Dan Cameron of Sprout Venture"
|
248 |
+
msgstr "Dan Cameron fra Sprout Venture"
|
249 |
+
|
250 |
+
#. Author URI of an extension
|
251 |
+
msgid "http://sproutventure.com/"
|
252 |
+
msgstr "http://sproutventure.com/"
|
253 |
+
|
254 |
+
#~ msgid "Your settings have been reset"
|
255 |
+
#~ msgstr "Nullstilte innstillingane dine"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bit.ly/plugin-donations
|
|
4 |
Tags: search, search highlight, tag search, category search, category exclusion, comment search, page search, admin, seo, post filter
|
5 |
Requires at least: 3
|
6 |
Tested up to: 3.3
|
7 |
-
Stable tag: 6.9.
|
8 |
|
9 |
Increases Wordpress' default search functionality in three easy steps.
|
10 |
|
4 |
Tags: search, search highlight, tag search, category search, category exclusion, comment search, page search, admin, seo, post filter
|
5 |
Requires at least: 3
|
6 |
Tested up to: 3.3
|
7 |
+
Stable tag: 6.9.2
|
8 |
|
9 |
Increases Wordpress' default search functionality in three easy steps.
|
10 |
|
search-everything.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Search Everything
|
4 |
Plugin URI: https://github.com/sproutventure/search-everything-wordpress-plugin/
|
5 |
Description: Adds search functionality without modifying any template pages: Activate, Configure and Search. Options Include: search highlight, search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content.
|
6 |
-
Version: 6.9.
|
7 |
Author: Dan Cameron of Sprout Venture
|
8 |
Author URI: http://sproutventure.com/
|
9 |
*/
|
@@ -13,7 +13,7 @@ Author URI: http://sproutventure.com/
|
|
13 |
|
14 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
15 |
*/
|
16 |
-
|
17 |
if ( !defined('WP_CONTENT_DIR') )
|
18 |
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
19 |
|
@@ -126,7 +126,7 @@ Class SearchEverything {
|
|
126 |
$this->se_log("searching authors");
|
127 |
}
|
128 |
|
129 |
-
add_filter('posts_search', array(&$this, 'se_search_where'));
|
130 |
|
131 |
add_filter('posts_where', array(&$this, 'se_no_revisions'));
|
132 |
|
@@ -148,8 +148,8 @@ Class SearchEverything {
|
|
148 |
function se_get_search_terms()
|
149 |
{
|
150 |
global $wp_query, $wpdb;
|
151 |
-
$s = $wp_query->query_vars['s'];
|
152 |
-
$sentence = $wp_query->query_vars['sentence'];
|
153 |
$search_terms = array();
|
154 |
|
155 |
if ( !empty($s) )
|
@@ -168,9 +168,13 @@ Class SearchEverything {
|
|
168 |
}
|
169 |
|
170 |
// add where clause to the search query
|
171 |
-
function se_search_where($where)
|
172 |
-
|
173 |
-
|
|
|
|
|
|
|
|
|
174 |
$searchQuery = $this->se_search_default();
|
175 |
|
176 |
//add filters based upon option settings
|
@@ -224,12 +228,11 @@ Class SearchEverything {
|
|
224 |
|
225 |
$n = (isset($wp_query->query_vars['exact']) && $wp_query->query_vars['exact']) ? '' : '%';
|
226 |
$search = '';
|
227 |
-
|
228 |
$terms = $this->se_get_search_terms();
|
229 |
|
230 |
// if it's not a sentance add other terms
|
231 |
$search .= '(';
|
232 |
-
if(!$wp_query->query_vars['sentence']){
|
233 |
foreach($terms as $term){
|
234 |
$search .= $seperator;
|
235 |
|
@@ -239,7 +242,7 @@ Class SearchEverything {
|
|
239 |
|
240 |
$seperator = ' AND ';
|
241 |
}
|
242 |
-
|
243 |
$search .= ')';
|
244 |
return $search;
|
245 |
}
|
@@ -299,7 +302,7 @@ Class SearchEverything {
|
|
299 |
global $wp_query, $wpdb;
|
300 |
if (!empty($wp_query->query_vars['s']))
|
301 |
{
|
302 |
-
if (strstr($
|
303 |
{}
|
304 |
else
|
305 |
{
|
@@ -474,13 +477,12 @@ Class SearchEverything {
|
|
474 |
global $wp_query, $wpdb;
|
475 |
$s = $wp_query->query_vars['s'];
|
476 |
$search_terms = $this->se_get_search_terms();
|
477 |
-
$
|
478 |
$search = '';
|
|
|
479 |
|
480 |
if ( !empty($search_terms) ) {
|
481 |
// Building search query
|
482 |
-
$n = ($exact) ? '' : '%';
|
483 |
-
$searchor = '';
|
484 |
foreach($search_terms as $term) {
|
485 |
$term = addslashes_gpc($term);
|
486 |
if ($this->wp_ver23)
|
@@ -492,7 +494,7 @@ Class SearchEverything {
|
|
492 |
$searchand = ' OR ';
|
493 |
}
|
494 |
$sentence_term = $wpdb->escape($s);
|
495 |
-
if (
|
496 |
{
|
497 |
if ($this->wp_ver23)
|
498 |
{
|
@@ -519,12 +521,11 @@ Class SearchEverything {
|
|
519 |
global $wp_query, $wpdb;
|
520 |
$s = $wp_query->query_vars['s'];
|
521 |
$search_terms = $this->se_get_search_terms();
|
522 |
-
$
|
523 |
$search = '';
|
524 |
|
525 |
if ( !empty($search_terms) ) {
|
526 |
// Building search query
|
527 |
-
$n = ($exact) ? '' : '%';
|
528 |
$searchand = '';
|
529 |
foreach($search_terms as $term) {
|
530 |
$term = addslashes_gpc($term);
|
@@ -537,7 +538,7 @@ Class SearchEverything {
|
|
537 |
$searchand = ' AND ';
|
538 |
}
|
539 |
$sentence_term = $wpdb->escape($s);
|
540 |
-
if (
|
541 |
{
|
542 |
if ($this->wp_ver23)
|
543 |
{
|
3 |
Plugin Name: Search Everything
|
4 |
Plugin URI: https://github.com/sproutventure/search-everything-wordpress-plugin/
|
5 |
Description: Adds search functionality without modifying any template pages: Activate, Configure and Search. Options Include: search highlight, search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content.
|
6 |
+
Version: 6.9.2
|
7 |
Author: Dan Cameron of Sprout Venture
|
8 |
Author URI: http://sproutventure.com/
|
9 |
*/
|
13 |
|
14 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
15 |
*/
|
16 |
+
error_reporting(E_ALL);
|
17 |
if ( !defined('WP_CONTENT_DIR') )
|
18 |
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
19 |
|
126 |
$this->se_log("searching authors");
|
127 |
}
|
128 |
|
129 |
+
add_filter('posts_search', array(&$this, 'se_search_where'), 10, 2);
|
130 |
|
131 |
add_filter('posts_where', array(&$this, 'se_no_revisions'));
|
132 |
|
148 |
function se_get_search_terms()
|
149 |
{
|
150 |
global $wp_query, $wpdb;
|
151 |
+
$s = isset($wp_query->query_vars['s']) ? $wp_query->query_vars['s'] : '';
|
152 |
+
$sentence = isset($wp_query->query_vars['sentence']) ? $wp_query->query_vars['sentence'] : false;
|
153 |
$search_terms = array();
|
154 |
|
155 |
if ( !empty($s) )
|
168 |
}
|
169 |
|
170 |
// add where clause to the search query
|
171 |
+
function se_search_where($where, $wp_query){
|
172 |
+
|
173 |
+
if(!$wp_query->is_search())
|
174 |
+
return $where;
|
175 |
+
|
176 |
+
global $wpdb;
|
177 |
+
|
178 |
$searchQuery = $this->se_search_default();
|
179 |
|
180 |
//add filters based upon option settings
|
228 |
|
229 |
$n = (isset($wp_query->query_vars['exact']) && $wp_query->query_vars['exact']) ? '' : '%';
|
230 |
$search = '';
|
231 |
+
$seperator = '';
|
232 |
$terms = $this->se_get_search_terms();
|
233 |
|
234 |
// if it's not a sentance add other terms
|
235 |
$search .= '(';
|
|
|
236 |
foreach($terms as $term){
|
237 |
$search .= $seperator;
|
238 |
|
242 |
|
243 |
$seperator = ' AND ';
|
244 |
}
|
245 |
+
|
246 |
$search .= ')';
|
247 |
return $search;
|
248 |
}
|
302 |
global $wp_query, $wpdb;
|
303 |
if (!empty($wp_query->query_vars['s']))
|
304 |
{
|
305 |
+
if (strstr($query, 'DISTINCT'))
|
306 |
{}
|
307 |
else
|
308 |
{
|
477 |
global $wp_query, $wpdb;
|
478 |
$s = $wp_query->query_vars['s'];
|
479 |
$search_terms = $this->se_get_search_terms();
|
480 |
+
$n = (isset($wp_query->query_vars['exact']) && $wp_query->query_vars['exact']) ? '' : '%';
|
481 |
$search = '';
|
482 |
+
$searchand = '';
|
483 |
|
484 |
if ( !empty($search_terms) ) {
|
485 |
// Building search query
|
|
|
|
|
486 |
foreach($search_terms as $term) {
|
487 |
$term = addslashes_gpc($term);
|
488 |
if ($this->wp_ver23)
|
494 |
$searchand = ' OR ';
|
495 |
}
|
496 |
$sentence_term = $wpdb->escape($s);
|
497 |
+
if (count($search_terms) > 1 && $search_terms[0] != $sentence_term )
|
498 |
{
|
499 |
if ($this->wp_ver23)
|
500 |
{
|
521 |
global $wp_query, $wpdb;
|
522 |
$s = $wp_query->query_vars['s'];
|
523 |
$search_terms = $this->se_get_search_terms();
|
524 |
+
$n = (isset($wp_query->query_vars['exact']) && $wp_query->query_vars['exact']) ? '' : '%';
|
525 |
$search = '';
|
526 |
|
527 |
if ( !empty($search_terms) ) {
|
528 |
// Building search query
|
|
|
529 |
$searchand = '';
|
530 |
foreach($search_terms as $term) {
|
531 |
$term = addslashes_gpc($term);
|
538 |
$searchand = ' AND ';
|
539 |
}
|
540 |
$sentence_term = $wpdb->escape($s);
|
541 |
+
if (count($search_terms) > 1 && $search_terms[0] != $sentence_term )
|
542 |
{
|
543 |
if ($this->wp_ver23)
|
544 |
{
|
views/options.php
CHANGED
@@ -18,51 +18,53 @@ Class se_admin {
|
|
18 |
}
|
19 |
|
20 |
function se_add_options_panel() {
|
21 |
-
|
|
|
|
|
22 |
}
|
23 |
|
24 |
//build admin interface
|
25 |
-
function se_option_page()
|
26 |
{
|
27 |
global $wpdb, $table_prefix, $wp_version;
|
28 |
-
|
29 |
$new_options = array(
|
30 |
-
'se_exclude_categories' => $_POST[
|
31 |
-
'se_exclude_categories_list' => $_POST[
|
32 |
-
'se_exclude_posts' => $_POST[
|
33 |
-
'se_exclude_posts_list' => $_POST[
|
34 |
-
'se_use_page_search' => $_POST[
|
35 |
-
'se_use_comment_search' => $_POST[
|
36 |
-
'se_use_tag_search' => $_POST[
|
37 |
-
'se_use_tax_search' => $_POST[
|
38 |
-
'se_use_category_search' => $_POST[
|
39 |
-
'se_approved_comments_only' => $_POST[
|
40 |
-
'se_approved_pages_only' => $_POST[
|
41 |
-
'se_use_excerpt_search' => $_POST[
|
42 |
-
'se_use_draft_search' => $_POST[
|
43 |
-
'se_use_attachment_search' => $_POST[
|
44 |
-
'se_use_authors' => $_POST[
|
45 |
-
'se_use_cmt_authors' => $_POST[
|
46 |
-
'se_use_metadata_search' => $_POST[
|
47 |
-
'se_use_highlight' => $_POST[
|
48 |
-
'se_highlight_color' => $_POST[
|
49 |
-
'se_highlight_style' => $_POST[
|
50 |
|
51 |
);
|
52 |
-
|
53 |
-
if($_POST['action'] == "save")
|
54 |
{
|
55 |
echo "<div class=\"updated fade\" id=\"limitcatsupdatenotice\"><p>" . __('Your default search settings have been <strong>updated</strong> by Search Everything. </p><p> What are you waiting for? Go check out the new search results!', 'SearchEverything') . "</p></div>";
|
56 |
update_option("se_options", $new_options);
|
57 |
|
58 |
}
|
59 |
-
|
60 |
-
if($_POST['action'] == "reset")
|
61 |
-
{
|
62 |
echo "<div class=\"updated fade\" id=\"limitcatsupdatenotice\"><p>" . __('Your default search settings have been <strong>updated</strong> by Search Everything. </p><p> What are you waiting for? Go check out the new search results!', 'SearchEverything') . "</p></div>";
|
63 |
delete_option("se_options", $new_options);
|
64 |
}
|
65 |
-
|
66 |
|
67 |
$options = get_option('se_options');
|
68 |
|
@@ -71,13 +73,13 @@ Class se_admin {
|
|
71 |
<div class="wrap">
|
72 |
<h2><?php _e('Search Everything Version:', 'SearchEverything'); ?> <?php echo $this->version; ?></h2>
|
73 |
<form method="post">
|
74 |
-
|
75 |
<div style="float: right; margin-bottom:10px; padding:0; " id="top-update" class="submit">
|
76 |
<input type="hidden" name="action" value="save" />
|
77 |
<input type="submit" value="<?php _e('Update Options', 'SearchEverything') ?>" />
|
78 |
</div>
|
79 |
|
80 |
-
|
81 |
<table style="margin-bottom: 20px;"></table>
|
82 |
<table class="widefat fixed">
|
83 |
<thead>
|
@@ -89,23 +91,23 @@ Class se_admin {
|
|
89 |
<?php
|
90 |
// Show options for 2.5 and below
|
91 |
if ($wp_version <= '2.5') : ?>
|
92 |
-
<tr class="mainrow">
|
93 |
<td class="titledesc"><?php _e('Search every page','SearchEverything'); ?>:<br/><small></small></td>
|
94 |
<td class="forminp">
|
95 |
<select id="search_pages" name="search_pages">
|
96 |
-
<option<?php
|
97 |
-
<option<?php
|
98 |
</select>
|
99 |
-
|
100 |
</td>
|
101 |
</tr>
|
102 |
-
|
103 |
-
<tr class="mainrow">
|
104 |
<td class="titledesc"> <?php _e('Search approved pages only','SearchEverything'); ?>:</td>
|
105 |
<td class="forminp">
|
106 |
<select id="appvd_pages" name="appvd_pages">
|
107 |
-
<option<?php
|
108 |
-
<option<?php
|
109 |
</select>
|
110 |
<br/><small></small>
|
111 |
</td>
|
@@ -114,12 +116,12 @@ Class se_admin {
|
|
114 |
<?php
|
115 |
// Show tags only for WP 2.3+
|
116 |
if ($wp_version >= '2.3') : ?>
|
117 |
-
<tr class="mainrow">
|
118 |
<td class="titledesc"><?php _e('Search every tag name','SearchEverything'); ?>:</td>
|
119 |
<td class="forminp">
|
120 |
<select id="search_tags" name="search_tags" >
|
121 |
-
<option<?php
|
122 |
-
<option<?php
|
123 |
</select>
|
124 |
<br/><small></small>
|
125 |
</td>
|
@@ -128,12 +130,12 @@ Class se_admin {
|
|
128 |
<?php
|
129 |
// Show taxonomies only for WP 2.3+
|
130 |
if ($wp_version >= '2.3') : ?>
|
131 |
-
<tr class="mainrow">
|
132 |
<td class="titledesc"><?php _e('Search custom taxonomies','SearchEverything'); ?>:</td>
|
133 |
<td class="forminp">
|
134 |
<select id="search_tags" name="search_taxonomies" >
|
135 |
-
<option<?php
|
136 |
-
<option<?php
|
137 |
</select>
|
138 |
<br/><small></small>
|
139 |
</td>
|
@@ -146,49 +148,49 @@ Class se_admin {
|
|
146 |
<td class="titledesc"><?php _e('Search every category name and description','SearchEverything'); ?>:</td>
|
147 |
<td class="forminp">
|
148 |
<select id="search_categories" name="search_categories">
|
149 |
-
<option<?php
|
150 |
-
<option<?php
|
151 |
</select>
|
152 |
<br/><small></small>
|
153 |
</td>
|
154 |
</tr>
|
155 |
<?php endif; ?>
|
156 |
-
<tr class="mainrow">
|
157 |
<td class="titledesc"><?php _e('Search every comment','SearchEverything'); ?>:</td>
|
158 |
<td class="forminp">
|
159 |
<select name="search_comments" id="search_comments">
|
160 |
-
<option<?php
|
161 |
-
<option<?php
|
162 |
</select>
|
163 |
<br/><small></small>
|
164 |
</td>
|
165 |
</tr>
|
166 |
-
<tr class="mainrow">
|
167 |
<td class="titledesc"> <?php _e('Search comment authors','SearchEverything'); ?>:</td>
|
168 |
<td class="forminp">
|
169 |
<select id="search_cmt_authors" name="search_cmt_authors">
|
170 |
-
<option<?php
|
171 |
-
<option<?php
|
172 |
</select>
|
173 |
<br/><small></small>
|
174 |
</td>
|
175 |
</tr>
|
176 |
-
<tr class="mainrow">
|
177 |
<td class="titledesc"> <?php _e('Search approved comments only','SearchEverything'); ?>:</td>
|
178 |
<td class="forminp">
|
179 |
<select id="appvd_comments" name="appvd_comments">
|
180 |
-
<option<?php
|
181 |
-
<option<?php
|
182 |
</select>
|
183 |
<br/><small></small>
|
184 |
</td>
|
185 |
</tr>
|
186 |
-
<tr class="mainrow">
|
187 |
<td class="titledesc"><?php _e('Search every excerpt','SearchEverything'); ?>:</td>
|
188 |
<td class="forminp">
|
189 |
<select id="search_excerpt" name="search_excerpt">
|
190 |
-
<option<?php
|
191 |
-
<option<?php
|
192 |
</select>
|
193 |
<br/><small></small>
|
194 |
</td>
|
@@ -196,67 +198,67 @@ Class se_admin {
|
|
196 |
<?php
|
197 |
// Show categories only for WP 2.5+
|
198 |
if ($wp_version >= '2.5') : ?>
|
199 |
-
<tr class="mainrow">
|
200 |
<td class="titledesc"><?php _e('Search every draft','SearchEverything'); ?>:</td>
|
201 |
<td class="forminp">
|
202 |
<select id="search_drafts" name="search_drafts">
|
203 |
-
<option<?php
|
204 |
-
<option<?php
|
205 |
</select>
|
206 |
<br/><small></small>
|
207 |
</td>
|
208 |
</tr>
|
209 |
<?php endif; ?>
|
210 |
-
<tr class="mainrow">
|
211 |
<td class="titledesc"><?php _e('Search every attachment','SearchEverything'); ?>:<br/><small><?php _e('(post type = attachment)','SearchEverything'); ?></small></td>
|
212 |
<td class="forminp">
|
213 |
<select id="search_attachments" name="search_attachments">
|
214 |
-
<option<?php
|
215 |
-
<option<?php
|
216 |
</select>
|
217 |
<br/><small></small>
|
218 |
</td>
|
219 |
</tr>
|
220 |
-
<tr class="mainrow">
|
221 |
<td class="titledesc"><?php _e('Search every custom field','SearchEverything'); ?>:<br/><small><?php _e('(metadata)','SearchEverything'); ?></small></td>
|
222 |
<td class="forminp">
|
223 |
<select id="search_metadata" name="search_metadata">
|
224 |
-
<option<?php
|
225 |
-
<option<?php
|
226 |
</select>
|
227 |
-
|
228 |
</td>
|
229 |
</tr>
|
230 |
-
<tr class="mainrow">
|
231 |
<td class="titledesc"><?php _e('Search every author','SearchEverything'); ?>:</td>
|
232 |
<td class="forminp">
|
233 |
<select id="search_authors" name="search_authors">
|
234 |
-
<option<?php
|
235 |
-
<option<?php
|
236 |
</select>
|
237 |
</td>
|
238 |
</tr>
|
239 |
-
<tr class="mainrow">
|
240 |
<td class="titledesc"><?php _e('Highlight Search Terms','SearchEverything'); ?>:</td>
|
241 |
<td class="forminp">
|
242 |
<select id="search_highlight" name="search_highlight">
|
243 |
-
<option<?php
|
244 |
-
<option<?php
|
245 |
</select>
|
246 |
<br/><small></small>
|
247 |
</td>
|
248 |
</tr>
|
249 |
-
<tr class="mainrow">
|
250 |
<td class="titledesc"> <?php _e('Highlight Background Color','SearchEverything'); ?>:</td>
|
251 |
<td class="forminp">
|
252 |
<input type="text" id="highlight_color" name="highlight_color" value="<?php echo $options['se_highlight_color'];?>" />
|
253 |
<br/><small><?php _e('Examples:<br/>\'#FFF984\' or \'red\'','SearchEverything'); ?></small>
|
254 |
</td>
|
255 |
</tr>
|
256 |
-
|
257 |
</table>
|
258 |
<table style="margin-bottom: 20px;"></table>
|
259 |
-
|
260 |
<table class="widefat">
|
261 |
<thead>
|
262 |
<tr class="title">
|
@@ -264,22 +266,22 @@ Class se_admin {
|
|
264 |
<th scope="col" class="manage-column"></th>
|
265 |
</tr>
|
266 |
</thead>
|
267 |
-
|
268 |
-
<tr class="mainrow">
|
269 |
<td class="titledesc"><?php _e('Exclude some post or page IDs','SearchEverything'); ?>:</td>
|
270 |
<td class="forminp">
|
271 |
<input type="text" id="exclude_posts_list" name="exclude_posts_list" value="<?php echo $options['se_exclude_posts_list'];?>" />
|
272 |
<br/><small><?php _e('Comma separated Post IDs (example: 1, 5, 9)','SearchEverything'); ?></small>
|
273 |
</td>
|
274 |
</tr>
|
275 |
-
<tr class="mainrow">
|
276 |
<td class="titledesc"><?php _e('Exclude Categories','SearchEverything'); ?>:</td>
|
277 |
<td class="forminp">
|
278 |
<input type="text" id="exclude_categories_list" name="exclude_categories_list" value="<?php echo $options['se_exclude_categories_list'];?>" />
|
279 |
<br/><small><?php _e('Comma separated category IDs (example: 1, 4)','SearchEverything'); ?></small>
|
280 |
</td>
|
281 |
</tr>
|
282 |
-
<tr class="mainrow">
|
283 |
<td class="titledesc"><?php _e('Full Highlight Style','SearchEverything'); ?>:</td>
|
284 |
<td class="forminp">
|
285 |
<small><?php _e('Important: \'Highlight Background Color\' must be blank to use this advanced styling.', 'SearchEverything') ?></small><br/>
|
@@ -310,7 +312,7 @@ Class se_admin {
|
|
310 |
<div style="clear: both;"></div>
|
311 |
|
312 |
<small><?php _e('Find a bug?', 'SearchEverything') ?> <a href="https://core.sproutventure.com/projects/search-everything/issues" target="blank"><?php _e('Post it as a new issue','SearchEverything')?></a>.</small>
|
313 |
-
</div>
|
314 |
|
315 |
<table style="margin-bottom: 20px;"></table>
|
316 |
<table class="widefat">
|
@@ -320,22 +322,22 @@ Class se_admin {
|
|
320 |
<th scope="col" class="manage-column"></th>
|
321 |
</tr>
|
322 |
</thead>
|
323 |
-
|
324 |
-
<tr class="mainrow">
|
325 |
<td class="thanks">
|
326 |
<p><?php _e('Use this search form to run a live search test.', 'SearchEverything'); ?></p>
|
327 |
</td>
|
328 |
<td>
|
329 |
-
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>">
|
330 |
<p class="srch submit">
|
331 |
-
<input type="text" class="srch-txt" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="30" />
|
332 |
<input type="submit" class="SE5_btn" id="searchsubmit" value="<?php _e('Run Test Search', 'SearchEverything'); ?>" />
|
333 |
</p>
|
334 |
</form>
|
335 |
</td>
|
336 |
</tr>
|
337 |
</table>
|
338 |
-
|
339 |
<table style="margin-bottom: 20px;"></table>
|
340 |
<table class="widefat">
|
341 |
<thead>
|
@@ -345,8 +347,8 @@ Class se_admin {
|
|
345 |
<th scope="col" class="manage-column"><?php _e('Localization Support', 'SearchEverything'); ?></th>
|
346 |
</tr>
|
347 |
</thead>
|
348 |
-
|
349 |
-
<tr class="mainrow">
|
350 |
<td class="thanks">
|
351 |
<p><strong><?php _e('LOCALIZATION SUPPORT:', 'SearchEverything'); ?></strong><br/><?php _e('Version 6 was a major update and a few areas need new localization support. If you can help send me your translations by posting them as a new issue, ', 'SearchEverything') ?><a href="https://github.com/sproutventure/search-everything-wordpress-plugin/issues?sort=created&direction=desc&state=open&page=1" target="blank"><strong><?php _e('here','SearchEverything')?></strong></a>.</p>
|
352 |
<p><strong><?php _e('Thank You!', 'SearchEverything'); ?></strong><br/><?php _e('The development of Search Everything since Version one has primarily come from the WordPress community, I’m grateful for their dedicated and continued support.', 'SearchEverything'); ?></p>
|
@@ -378,7 +380,7 @@ Class se_admin {
|
|
378 |
<li><a href="#">Baris Unver (TR)</a></li>
|
379 |
</ul>
|
380 |
</td>
|
381 |
-
|
382 |
</tr>
|
383 |
</table>
|
384 |
</div>
|
18 |
}
|
19 |
|
20 |
function se_add_options_panel() {
|
21 |
+
global $wp_version;
|
22 |
+
$cap = version_compare('2.0', $wp_version, '<') ? 'publish_posts' : 7;
|
23 |
+
add_options_page('Search', 'Search Everything', $cap, 'extend_search', array(&$this, 'se_option_page'));
|
24 |
}
|
25 |
|
26 |
//build admin interface
|
27 |
+
function se_option_page()
|
28 |
{
|
29 |
global $wpdb, $table_prefix, $wp_version;
|
30 |
+
|
31 |
$new_options = array(
|
32 |
+
'se_exclude_categories' => (isset($_POST['exclude_categories']) && !empty($_POST['exclude_categories'])) ? $_POST['exclude_categories'] : '',
|
33 |
+
'se_exclude_categories_list' => (isset($_POST['exclude_categories_list']) && !empty($_POST['exclude_categories_list'])) ? $_POST['exclude_categories_list'] : '',
|
34 |
+
'se_exclude_posts' => (isset($_POST['exclude_posts'])) ? $_POST['exclude_posts'] : '',
|
35 |
+
'se_exclude_posts_list' => (isset($_POST['exclude_posts_list']) && !empty($_POST['exclude_posts_list'])) ? $_POST['exclude_posts_list'] : '',
|
36 |
+
'se_use_page_search' => (isset($_POST['search_pages']) && $_POST['search_pages'] == 'Yes') ? 'Yes' : 'No',
|
37 |
+
'se_use_comment_search' => (isset($_POST['search_comments']) && $_POST['search_comments'] == 'Yes') ? 'Yes' : 'No',
|
38 |
+
'se_use_tag_search' => (isset($_POST['search_tags']) && $_POST['search_tags'] == 'Yes') ? 'Yes' : 'No',
|
39 |
+
'se_use_tax_search' => (isset($_POST['search_taxonomies']) && $_POST['search_taxonomies'] == 'Yes') ? 'Yes' : 'No',
|
40 |
+
'se_use_category_search' => (isset($_POST['search_categories']) && $_POST['search_categories'] == 'Yes') ? 'Yes' : 'No',
|
41 |
+
'se_approved_comments_only' => (isset($_POST['appvd_comments']) && $_POST['appvd_comments'] == 'Yes') ? 'Yes' : 'No',
|
42 |
+
'se_approved_pages_only' => (isset($_POST['appvd_pages']) && $_POST['appvd_pages'] == 'Yes') ? 'Yes' : 'No',
|
43 |
+
'se_use_excerpt_search' => (isset($_POST['search_excerpt']) && $_POST['search_excerpt'] == 'Yes') ? 'Yes' : 'No',
|
44 |
+
'se_use_draft_search' => (isset($_POST['search_drafts']) && $_POST['search_drafts'] == 'Yes') ? 'Yes' : 'No',
|
45 |
+
'se_use_attachment_search' => (isset($_POST['search_attachments']) && $_POST['search_attachments'] == 'Yes') ? 'Yes' : 'No',
|
46 |
+
'se_use_authors' => (isset($_POST['search_authors']) && $_POST['search_authors'] == 'Yes') ? 'Yes' : 'No',
|
47 |
+
'se_use_cmt_authors' => (isset($_POST['search_cmt_authors']) && $_POST['search_cmt_authors'] == 'Yes') ? 'Yes' : 'No',
|
48 |
+
'se_use_metadata_search' => (isset($_POST['search_metadata']) && $_POST['search_metadata'] == 'Yes') ? 'Yes' : 'No',
|
49 |
+
'se_use_highlight' => (isset($_POST['search_highlight']) && $_POST['search_highlight'] == 'Yes') ? 'Yes' : 'No',
|
50 |
+
'se_highlight_color' => (isset($_POST['highlight_color']) && $_POST['highlight_color'] == 'Yes') ? 'Yes' : 'No',
|
51 |
+
'se_highlight_style' => (isset($_POST['highlight_style']) && $_POST['highlight_style'] == 'Yes') ? 'Yes' : 'No'
|
52 |
|
53 |
);
|
54 |
+
|
55 |
+
if(isset($_POST['action']) && $_POST['action'] == "save")
|
56 |
{
|
57 |
echo "<div class=\"updated fade\" id=\"limitcatsupdatenotice\"><p>" . __('Your default search settings have been <strong>updated</strong> by Search Everything. </p><p> What are you waiting for? Go check out the new search results!', 'SearchEverything') . "</p></div>";
|
58 |
update_option("se_options", $new_options);
|
59 |
|
60 |
}
|
61 |
+
|
62 |
+
if(isset($_POST['action']) && $_POST['action'] == "reset")
|
63 |
+
{
|
64 |
echo "<div class=\"updated fade\" id=\"limitcatsupdatenotice\"><p>" . __('Your default search settings have been <strong>updated</strong> by Search Everything. </p><p> What are you waiting for? Go check out the new search results!', 'SearchEverything') . "</p></div>";
|
65 |
delete_option("se_options", $new_options);
|
66 |
}
|
67 |
+
|
68 |
|
69 |
$options = get_option('se_options');
|
70 |
|
73 |
<div class="wrap">
|
74 |
<h2><?php _e('Search Everything Version:', 'SearchEverything'); ?> <?php echo $this->version; ?></h2>
|
75 |
<form method="post">
|
76 |
+
|
77 |
<div style="float: right; margin-bottom:10px; padding:0; " id="top-update" class="submit">
|
78 |
<input type="hidden" name="action" value="save" />
|
79 |
<input type="submit" value="<?php _e('Update Options', 'SearchEverything') ?>" />
|
80 |
</div>
|
81 |
|
82 |
+
|
83 |
<table style="margin-bottom: 20px;"></table>
|
84 |
<table class="widefat fixed">
|
85 |
<thead>
|
91 |
<?php
|
92 |
// Show options for 2.5 and below
|
93 |
if ($wp_version <= '2.5') : ?>
|
94 |
+
<tr class="mainrow">
|
95 |
<td class="titledesc"><?php _e('Search every page','SearchEverything'); ?>:<br/><small></small></td>
|
96 |
<td class="forminp">
|
97 |
<select id="search_pages" name="search_pages">
|
98 |
+
<option<?php selected($options['se_use_page_search'], 'No'); ?> value="No"> </option>
|
99 |
+
<option<?php selected($options['se_use_page_search'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
100 |
</select>
|
101 |
+
|
102 |
</td>
|
103 |
</tr>
|
104 |
+
|
105 |
+
<tr class="mainrow">
|
106 |
<td class="titledesc"> <?php _e('Search approved pages only','SearchEverything'); ?>:</td>
|
107 |
<td class="forminp">
|
108 |
<select id="appvd_pages" name="appvd_pages">
|
109 |
+
<option<?php selected($options['se_approved_pages_only'], 'No'); ?> value="No"> </option>
|
110 |
+
<option<?php selected($options['se_approved_pages_only'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
111 |
</select>
|
112 |
<br/><small></small>
|
113 |
</td>
|
116 |
<?php
|
117 |
// Show tags only for WP 2.3+
|
118 |
if ($wp_version >= '2.3') : ?>
|
119 |
+
<tr class="mainrow">
|
120 |
<td class="titledesc"><?php _e('Search every tag name','SearchEverything'); ?>:</td>
|
121 |
<td class="forminp">
|
122 |
<select id="search_tags" name="search_tags" >
|
123 |
+
<option<?php selected($options['se_use_tag_search'], 'No'); ?> value="No"> </option>
|
124 |
+
<option<?php selected($options['se_use_tag_search'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
125 |
</select>
|
126 |
<br/><small></small>
|
127 |
</td>
|
130 |
<?php
|
131 |
// Show taxonomies only for WP 2.3+
|
132 |
if ($wp_version >= '2.3') : ?>
|
133 |
+
<tr class="mainrow">
|
134 |
<td class="titledesc"><?php _e('Search custom taxonomies','SearchEverything'); ?>:</td>
|
135 |
<td class="forminp">
|
136 |
<select id="search_tags" name="search_taxonomies" >
|
137 |
+
<option<?php selected($options['se_use_tax_search'], 'No'); ?> value="No"> </option>
|
138 |
+
<option<?php selected($options['se_use_tax_search'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
139 |
</select>
|
140 |
<br/><small></small>
|
141 |
</td>
|
148 |
<td class="titledesc"><?php _e('Search every category name and description','SearchEverything'); ?>:</td>
|
149 |
<td class="forminp">
|
150 |
<select id="search_categories" name="search_categories">
|
151 |
+
<option<?php selected($options['se_use_category_search'], 'No'); ?> value="No"> </option>
|
152 |
+
<option<?php selected($options['se_use_category_search'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
153 |
</select>
|
154 |
<br/><small></small>
|
155 |
</td>
|
156 |
</tr>
|
157 |
<?php endif; ?>
|
158 |
+
<tr class="mainrow">
|
159 |
<td class="titledesc"><?php _e('Search every comment','SearchEverything'); ?>:</td>
|
160 |
<td class="forminp">
|
161 |
<select name="search_comments" id="search_comments">
|
162 |
+
<option<?php selected($options['se_use_comment_search'], 'No'); ?> value="No"> </option>
|
163 |
+
<option<?php selected($options['se_use_comment_search'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
164 |
</select>
|
165 |
<br/><small></small>
|
166 |
</td>
|
167 |
</tr>
|
168 |
+
<tr class="mainrow">
|
169 |
<td class="titledesc"> <?php _e('Search comment authors','SearchEverything'); ?>:</td>
|
170 |
<td class="forminp">
|
171 |
<select id="search_cmt_authors" name="search_cmt_authors">
|
172 |
+
<option<?php selected($options['se_use_cmt_authors'], 'No'); ?> value="No"> </option>
|
173 |
+
<option<?php selected($options['se_use_cmt_authors'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
174 |
</select>
|
175 |
<br/><small></small>
|
176 |
</td>
|
177 |
</tr>
|
178 |
+
<tr class="mainrow">
|
179 |
<td class="titledesc"> <?php _e('Search approved comments only','SearchEverything'); ?>:</td>
|
180 |
<td class="forminp">
|
181 |
<select id="appvd_comments" name="appvd_comments">
|
182 |
+
<option<?php selected($options['se_approved_comments_only'], 'No'); ?> value="No"> </option>
|
183 |
+
<option<?php selected($options['se_approved_comments_only'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
184 |
</select>
|
185 |
<br/><small></small>
|
186 |
</td>
|
187 |
</tr>
|
188 |
+
<tr class="mainrow">
|
189 |
<td class="titledesc"><?php _e('Search every excerpt','SearchEverything'); ?>:</td>
|
190 |
<td class="forminp">
|
191 |
<select id="search_excerpt" name="search_excerpt">
|
192 |
+
<option<?php selected($options['se_use_excerpt_search'], 'No'); ?> value="No"> </option>
|
193 |
+
<option<?php selected($options['se_use_excerpt_search'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
194 |
</select>
|
195 |
<br/><small></small>
|
196 |
</td>
|
198 |
<?php
|
199 |
// Show categories only for WP 2.5+
|
200 |
if ($wp_version >= '2.5') : ?>
|
201 |
+
<tr class="mainrow">
|
202 |
<td class="titledesc"><?php _e('Search every draft','SearchEverything'); ?>:</td>
|
203 |
<td class="forminp">
|
204 |
<select id="search_drafts" name="search_drafts">
|
205 |
+
<option<?php selected($options['se_use_draft_search'], 'No'); ?> value="No"> </option>
|
206 |
+
<option<?php selected($options['se_use_draft_search'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
207 |
</select>
|
208 |
<br/><small></small>
|
209 |
</td>
|
210 |
</tr>
|
211 |
<?php endif; ?>
|
212 |
+
<tr class="mainrow">
|
213 |
<td class="titledesc"><?php _e('Search every attachment','SearchEverything'); ?>:<br/><small><?php _e('(post type = attachment)','SearchEverything'); ?></small></td>
|
214 |
<td class="forminp">
|
215 |
<select id="search_attachments" name="search_attachments">
|
216 |
+
<option<?php selected($options['se_use_attachment_search'], 'No'); ?> value="No"> </option>
|
217 |
+
<option<?php selected($options['se_use_attachment_search'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
218 |
</select>
|
219 |
<br/><small></small>
|
220 |
</td>
|
221 |
</tr>
|
222 |
+
<tr class="mainrow">
|
223 |
<td class="titledesc"><?php _e('Search every custom field','SearchEverything'); ?>:<br/><small><?php _e('(metadata)','SearchEverything'); ?></small></td>
|
224 |
<td class="forminp">
|
225 |
<select id="search_metadata" name="search_metadata">
|
226 |
+
<option<?php selected($options['se_use_metadata_search'], 'No'); ?> value="No"> </option>
|
227 |
+
<option<?php selected($options['se_use_metadata_search'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
228 |
</select>
|
229 |
+
|
230 |
</td>
|
231 |
</tr>
|
232 |
+
<tr class="mainrow">
|
233 |
<td class="titledesc"><?php _e('Search every author','SearchEverything'); ?>:</td>
|
234 |
<td class="forminp">
|
235 |
<select id="search_authors" name="search_authors">
|
236 |
+
<option<?php selected($options['se_use_authors'],'No'); ?> value="No"> </option>
|
237 |
+
<option<?php selected($options['se_use_authors'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
238 |
</select>
|
239 |
</td>
|
240 |
</tr>
|
241 |
+
<tr class="mainrow">
|
242 |
<td class="titledesc"><?php _e('Highlight Search Terms','SearchEverything'); ?>:</td>
|
243 |
<td class="forminp">
|
244 |
<select id="search_highlight" name="search_highlight">
|
245 |
+
<option<?php selected($options['se_use_highlight'], 'No'); ?> value="No"> </option>
|
246 |
+
<option<?php selected($options['se_use_highlight'], 'Yes'); ?> value="Yes"><?php _e('Yes', 'SearchEverything'); ?></option>
|
247 |
</select>
|
248 |
<br/><small></small>
|
249 |
</td>
|
250 |
</tr>
|
251 |
+
<tr class="mainrow">
|
252 |
<td class="titledesc"> <?php _e('Highlight Background Color','SearchEverything'); ?>:</td>
|
253 |
<td class="forminp">
|
254 |
<input type="text" id="highlight_color" name="highlight_color" value="<?php echo $options['se_highlight_color'];?>" />
|
255 |
<br/><small><?php _e('Examples:<br/>\'#FFF984\' or \'red\'','SearchEverything'); ?></small>
|
256 |
</td>
|
257 |
</tr>
|
258 |
+
|
259 |
</table>
|
260 |
<table style="margin-bottom: 20px;"></table>
|
261 |
+
|
262 |
<table class="widefat">
|
263 |
<thead>
|
264 |
<tr class="title">
|
266 |
<th scope="col" class="manage-column"></th>
|
267 |
</tr>
|
268 |
</thead>
|
269 |
+
|
270 |
+
<tr class="mainrow">
|
271 |
<td class="titledesc"><?php _e('Exclude some post or page IDs','SearchEverything'); ?>:</td>
|
272 |
<td class="forminp">
|
273 |
<input type="text" id="exclude_posts_list" name="exclude_posts_list" value="<?php echo $options['se_exclude_posts_list'];?>" />
|
274 |
<br/><small><?php _e('Comma separated Post IDs (example: 1, 5, 9)','SearchEverything'); ?></small>
|
275 |
</td>
|
276 |
</tr>
|
277 |
+
<tr class="mainrow">
|
278 |
<td class="titledesc"><?php _e('Exclude Categories','SearchEverything'); ?>:</td>
|
279 |
<td class="forminp">
|
280 |
<input type="text" id="exclude_categories_list" name="exclude_categories_list" value="<?php echo $options['se_exclude_categories_list'];?>" />
|
281 |
<br/><small><?php _e('Comma separated category IDs (example: 1, 4)','SearchEverything'); ?></small>
|
282 |
</td>
|
283 |
</tr>
|
284 |
+
<tr class="mainrow">
|
285 |
<td class="titledesc"><?php _e('Full Highlight Style','SearchEverything'); ?>:</td>
|
286 |
<td class="forminp">
|
287 |
<small><?php _e('Important: \'Highlight Background Color\' must be blank to use this advanced styling.', 'SearchEverything') ?></small><br/>
|
312 |
<div style="clear: both;"></div>
|
313 |
|
314 |
<small><?php _e('Find a bug?', 'SearchEverything') ?> <a href="https://core.sproutventure.com/projects/search-everything/issues" target="blank"><?php _e('Post it as a new issue','SearchEverything')?></a>.</small>
|
315 |
+
</div>
|
316 |
|
317 |
<table style="margin-bottom: 20px;"></table>
|
318 |
<table class="widefat">
|
322 |
<th scope="col" class="manage-column"></th>
|
323 |
</tr>
|
324 |
</thead>
|
325 |
+
|
326 |
+
<tr class="mainrow">
|
327 |
<td class="thanks">
|
328 |
<p><?php _e('Use this search form to run a live search test.', 'SearchEverything'); ?></p>
|
329 |
</td>
|
330 |
<td>
|
331 |
+
<form method="get" id="searchform" action="<?php bloginfo($cap = version_compare('2.2', $wp_version, '<') ? 'url' : 'home'); ?>">
|
332 |
<p class="srch submit">
|
333 |
+
<input type="text" class="srch-txt" value="<?php echo (isset($S)) ? wp_specialchars($s, 1) : ''; ?>" name="s" id="s" size="30" />
|
334 |
<input type="submit" class="SE5_btn" id="searchsubmit" value="<?php _e('Run Test Search', 'SearchEverything'); ?>" />
|
335 |
</p>
|
336 |
</form>
|
337 |
</td>
|
338 |
</tr>
|
339 |
</table>
|
340 |
+
|
341 |
<table style="margin-bottom: 20px;"></table>
|
342 |
<table class="widefat">
|
343 |
<thead>
|
347 |
<th scope="col" class="manage-column"><?php _e('Localization Support', 'SearchEverything'); ?></th>
|
348 |
</tr>
|
349 |
</thead>
|
350 |
+
|
351 |
+
<tr class="mainrow">
|
352 |
<td class="thanks">
|
353 |
<p><strong><?php _e('LOCALIZATION SUPPORT:', 'SearchEverything'); ?></strong><br/><?php _e('Version 6 was a major update and a few areas need new localization support. If you can help send me your translations by posting them as a new issue, ', 'SearchEverything') ?><a href="https://github.com/sproutventure/search-everything-wordpress-plugin/issues?sort=created&direction=desc&state=open&page=1" target="blank"><strong><?php _e('here','SearchEverything')?></strong></a>.</p>
|
354 |
<p><strong><?php _e('Thank You!', 'SearchEverything'); ?></strong><br/><?php _e('The development of Search Everything since Version one has primarily come from the WordPress community, I’m grateful for their dedicated and continued support.', 'SearchEverything'); ?></p>
|
380 |
<li><a href="#">Baris Unver (TR)</a></li>
|
381 |
</ul>
|
382 |
</td>
|
383 |
+
|
384 |
</tr>
|
385 |
</table>
|
386 |
</div>
|