com web/master: Include the search stylesheet: include/functions.inc
| From: | Hannes Magnusson | Date: | Fri, 13 Dec 2013 01:04:18 +0000 |
| Subject: | com web/master: Include the search stylesheet: include/functions.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17566@lists.php.net to get a copy of this message | ||
Commit: ee75f3f2bf1d3e4dcc6e4f16ca870926cf3077db
Author: Hannes Magnusson <bjori@mongodb.com> Thu, 12 Dec 2013 17:04:18 -0800
Parents: ecf06fbb4385ff93defdff6c2751932d347b2ba1
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=ee75f3f2bf1d3e4dcc6e4f16ca870926cf3077db
Log:
Include the search stylesheet
Changed paths:
M include/functions.inc
Diff:
diff --git a/include/functions.inc b/include/functions.inc
index e1b4848..e624aac 100644
--- a/include/functions.inc
+++ b/include/functions.inc
@@ -27,9 +27,12 @@ function head($title="") {
array("href" => "/manage/github.php", "text" =>
"Github Repos"),
array("href" => "/login.php?action=logout", "text" =>
"Logout"),
);
+ $CSS = array();
$SEARCH = array();
+
if (strstr($_SERVER["SCRIPT_FILENAME"], "users.php")) {
$SEARCH = array("method" => "get", "action" =>
"/manage/users.php", "placeholder" => "Search profiles",
"name" => "search");
+ $CSS[] = "/shared/styles/user-autocomplete.css";
}
if (strstr($_SERVER["SCRIPT_FILENAME"], "event.php")) {
$SEARCH = array("method" => "get", "action" =>
"/manage/event.php", "placeholder" => "Search Events",
"name" => "search");