diff options
author | friendica <info@friendica.com> | 2012-10-24 19:13:29 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-10-24 19:13:29 -0700 |
commit | ceeb4db6e304c26ebe56311743eb9baca69f7066 (patch) | |
tree | f0707fdd2e1ed786a39f2e0491f275fd2e3982a3 /include/nav.php | |
parent | 2b95ce9f07bcf2d85eeb410f6d9bc4b3f2b54b86 (diff) | |
download | volse-hubzilla-ceeb4db6e304c26ebe56311743eb9baca69f7066.tar.gz volse-hubzilla-ceeb4db6e304c26ebe56311743eb9baca69f7066.tar.bz2 volse-hubzilla-ceeb4db6e304c26ebe56311743eb9baca69f7066.zip |
Give the UI a little love after all the backend mods
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php index c3ef7f52d..a71f97457 100644 --- a/include/nav.php +++ b/include/nav.php @@ -13,6 +13,25 @@ function nav(&$a) { if(!(x($a->page,'nav'))) $a->page['nav'] = ''; + $base = $a->get_baseurl($ssl_state); + $a->page['htmlhead'] .= <<< EOT + +<script>$(document).ready(function() { + var a; + a = $("#nav-search-text").autocomplete({ + serviceUrl: '$base/acl', + minChars: 2, + width: 250, + }); + a.setOptions({ params: { type: 'x' }}); + +}); + +</script> +EOT; + + + /** * Placeholder div for popup panel */ @@ -53,6 +72,7 @@ function nav(&$a) { // user menu $nav['usermenu'][] = Array('profile/' . $channel['channel_address'], t('Status'), "", t('Your posts and conversations')); $nav['usermenu'][] = Array('profile/' . $channel['channel_address']. '?tab=profile', t('Profile'), "", t('Your profile page')); + $nav['usermenu'][] = Array('photos/' . $channel['channel_address'], t('Photos'), "", t('Your photos')); $nav['usermenu'][] = Array('events/', t('Events'), "", t('Your events')); @@ -153,8 +173,8 @@ function nav(&$a) { $banner = get_config('system','banner'); if($banner === false) - $banner .= '<a href="http://friendica.com"><img id="logo-img" src="images/fred-32.png" alt="logo" /></a>'; - +// $banner .= '<a href="http://friendica.com"><img id="logo-img" src="images/fred-32.png" alt="logo" /></a>'; + $banner = ''; $tpl = get_markup_template('nav.tpl'); |