From 1cffecd1bed6856dd40eddd8b0e6cd870d287762 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 12 Dec 2010 17:40:23 -0800 Subject: [PATCH] footer is serving no useful purpose. --- include/nav.php | 5 ++--- index.php | 5 ++++- mod/home.php | 10 ++++++---- view/theme/default/style.css | 33 +++++++++++++++++---------------- 4 files changed, 29 insertions(+), 24 deletions(-) diff --git a/include/nav.php b/include/nav.php index dd2655e84a..77cffc3ab1 100644 --- a/include/nav.php +++ b/include/nav.php @@ -1,8 +1,5 @@ page,'nav')) - $a->page['nav'] = ''; - $a->page['nav'] .= '' ; if(local_user()) { @@ -56,7 +53,9 @@ $banner = get_config('system','banner'); + if($banner === false) $banner .= 'logoFriendika'; + $a->page['nav'] .= ''; diff --git a/index.php b/index.php index f2c43a8b3d..e91603a30a 100644 --- a/index.php +++ b/index.php @@ -120,6 +120,9 @@ else * "module"_afterpost * "module"_content - the string return of this function contains our page body * + * Modules which emit other serialisations besides HTML (XML,JSON, etc.) should do + * so within the module init and/or post functions and then invoke killme() to terminate + * further processing. */ if(strlen($a->module)) { @@ -193,7 +196,7 @@ $a->page['content'] .= '
'; */ if($a->module != 'install') - require_once("nav.php"); + require_once('nav.php'); /** * diff --git a/mod/home.php b/mod/home.php index b8f16158eb..59cc31d3b0 100644 --- a/mod/home.php +++ b/mod/home.php @@ -14,12 +14,14 @@ if(! function_exists('home_content')) { function home_content(&$a) { $o = ''; - if(! (x($a->page,'footer'))) - $a->page['footer'] = ''; - $a->page['footer'] .= "
Powered by friendika
"; +/* + * if(! (x($a->page,'footer'))) + * $a->page['footer'] = ''; + * $a->page['footer'] .= "
Powered by friendika
"; + */ $o .= '

Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '

'; if(file_exists('home.html')) - $o .= file_get_contents('home.html'); + $o .= file_get_contents('home.html'); $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); return $o; diff --git a/view/theme/default/style.css b/view/theme/default/style.css index c5f5355276..f20341dd69 100644 --- a/view/theme/default/style.css +++ b/view/theme/default/style.css @@ -178,10 +178,13 @@ img.photo { font-weight: bold; margin-left: 280px; } -#page-footer { - height: 20px; -/* border-bottom: 3px dashed #15607B; */ -} + +/* + * #page-footer { + * height: 20px; + * + * } + */ .heart { color: #FF0000; @@ -224,18 +227,16 @@ nav { background: #15607B; } -footer { - /*position: absolute;*/ - left: 0px; - /*right: 0px;*/ - bottom: 0px; - /*margin: 20px 20px 20px 20px;*/ - - position: fixed; - background-color: #0CBEFE; - width: 100%; - padding: 2px 3%; -} +/* + * footer { + * left: 0px; + * bottom: 0px; + * position: fixed; + * background-color: #0CBEFE; + * width: 100%; + * padding: 2px 3%; + * } + */ .fn { font-size: 1.4em;