Commit: c88e67f0a9118fa05fb272ef5ed05a8d1291b3b3 Author: Hannes Magnusson <[email protected]> Thu, 12 Dec 2013 18:07:35 -0800 Parents: 2842639b2d6c635b3ef2c4ccd8437ad5277aaa8a Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=c88e67f0a9118fa05fb272ef5ed05a8d1291b3b3 Log: Use the layout from the new shared module Changed paths: A .gitmodules M include/layout.php A shared Diff: diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..10615a7 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "shared"] + path = shared + url = git://git.php.net/web/shared.git diff --git a/include/layout.php b/include/layout.php index a3d1f66..ba3e8f8 100644 --- a/include/layout.php +++ b/include/layout.php @@ -2,11 +2,25 @@ /* $Id$ */ function site_header($title) { - include dirname(__FILE__) . "/header.inc"; + $SUBDOMAIN = "people"; + $TITLE = "Header"; + $LINKS = array( + array("href" => "/user.php", "text" => "Users"), + array("href" => "https://master.php.net/manage/users.php", "text" => "Master"), + ); + $CSS[] = "/shared/styles/user-autocomplete.css"; + $SEARCH = array("method" => "get", "action" => "user.php", "placeholder" => "Search profiles", "name" => "username"); + include dirname(__FILE__) . "/../shared/templates/header.inc"; } function site_footer() { - include dirname(__FILE__) . "/footer.inc"; + $JS = array( + "//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js", + "//people.php.net/js/jquery.autocomplete.min.js", + "//people.php.net/js/userlisting.php", + "//people.php.net/js/search.js", + ); + include dirname(__FILE__) . "/../shared/templates/footer.inc"; } function site_panel($data) { diff --git a/shared b/shared new file mode 160000 index 0000000..c3d617d --- /dev/null +++ b/shared @@ -0,0 +1 @@ +Subproject commit c3d617d0fa492d39f50840059bc37d23d1d043af -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
