From ceeb4db6e304c26ebe56311743eb9baca69f7066 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 24 Oct 2012 19:13:29 -0700 Subject: Give the UI a little love after all the backend mods --- include/nav.php | 24 ++++++++++++++++++++++-- index.php | 4 +++- mod/abook.php | 1 - mod/acl.php | 21 +++++++++++++++++---- mod/contacts.php | 1 - mod/message.php | 1 - mod/network.php | 2 -- mod/poke.php | 1 - mod/profile.php | 2 +- version.inc | 2 +- view/php/theme_init.php | 1 + view/theme/duepuntozero/css/style.css | 35 +++++++++++++++++++++++++++++++---- view/tpl/nav.tpl | 23 ++++++++++++++--------- 13 files changed, 90 insertions(+), 28 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 + + +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 .= 'logo'; - +// $banner .= 'logo'; + $banner = ''; $tpl = get_markup_template('nav.tpl'); diff --git a/index.php b/index.php index 3d9886a29..a0903fe63 100644 --- a/index.php +++ b/index.php @@ -384,12 +384,14 @@ if($a->is_mobile || $a->is_tablet) { else { $link = $a->get_baseurl() . '/toggle_mobile?off=1&address=' . curPageURL(); } - $a->page['footer'] = replace_macros(get_markup_template("toggle_mobile_footer.tpl"), array( + $a->page['footer'] .= replace_macros(get_markup_template("toggle_mobile_footer.tpl"), array( '$toggle_link' => $link, '$toggle_text' => t('toggle mobile') )); } +$a->page['footer'] .= '
' . t("Friendica Red") . '
'; + $page = $a->page; $profile = $a->profile; diff --git a/mod/abook.php b/mod/abook.php index 7aa4e9e05..5ef43a653 100644 --- a/mod/abook.php +++ b/mod/abook.php @@ -45,7 +45,6 @@ function abook_init(&$a) { $base = $a->get_baseurl(); - $a->page['htmlhead'] .= ''; $a->page['htmlhead'] .= <<< EOT '; $a->page['htmlhead'] .= <<< EOT '; $a->page['htmlhead'] .= <<< EOT '; - $a->page['htmlhead'] .= <<< EOT '; $a->page['htmlhead'] .= <<< EOT