]> git.mxchange.org Git - friendica.git/commitdiff
Merge branch 'master' of git://github.com/friendika/friendika
authorroot <root@diekershoff.homeunix.net>
Mon, 13 Dec 2010 05:50:06 +0000 (06:50 +0100)
committerroot <root@diekershoff.homeunix.net>
Mon, 13 Dec 2010 05:50:06 +0000 (06:50 +0100)
include/nav.php
index.php
mod/dfrn_request.php
mod/directory.php
mod/display.php
mod/home.php
mod/search.php
view/theme/default/style.css

index dd2655e84a1f55f75325d28d68af781e865a9109..77cffc3ab16a1c3081369e008381a63b9a14a89b 100644 (file)
@@ -1,8 +1,5 @@
 <?php
 
-       if(! x($a->page,'nav'))
-               $a->page['nav'] = '';
-
        $a->page['nav'] .= '<div id="panel" style="display: none;"></div>' ;
 
        if(local_user()) {
@@ -56,7 +53,9 @@
 
        $banner = get_config('system','banner');
 
+
        if($banner === false) 
                $banner .= '<img id="logo-img" src="images/ff-32.jpg" alt="logo" /><span id="logo-text">Friendika</span>';
 
+
        $a->page['nav'] .= '<span id="banner">' . $banner . '</span>';
index f2c43a8b3d009b5f42f726596a1d5e998fb67bf1..e91603a30a78cd5cd294c38900180dd6140fb246 100644 (file)
--- 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'] .=  '<div id="pause"></div>';
  */
 
 if($a->module != 'install')
-       require_once("nav.php");
+       require_once('nav.php');
 
 /**
  *
index ce422aa9f9cbf9f5cf0a5c0c992ef60ecdd90b07..e1370dfd82621b8769881ecdab7bf113fcb68883 100644 (file)
@@ -6,7 +6,7 @@ function dfrn_request_init(&$a) {
        if($a->argc > 1)
                $which = $a->argv[1];
 
-       profile_init($a,$which);
+       profile_load($a,$which);
 
        return;
 }}
index 703c08ce1bec37bfdd1add92c130fd5b812f05e4..e9bbf47ab7aaa7dc02a4fdae03fc62e17ca1afaf 100644 (file)
@@ -3,11 +3,22 @@ function directory_init(&$a) {
        $a->set_pager_itemspage(60);
 }
 
+
+function directory_post(&$a) {
+       if(x($_POST,'search'))
+               $a->data['search'] = $_POST['search'];
+}
+
+
+
 function directory_content(&$a) {
        $o = '';
        $o .= '<script> $(document).ready(function() { $(\'#nav-directory-link\').addClass(\'nav-selected\'); });</script>';
 
-       $search = ((x($_GET,'search')) ? notags(trim($_GET['search'])) : '');
+       if(x($a->data,'search'))
+               $search = notags(trim($a->data['search']));
+       else
+               $search = ((x($_GET,'search')) ? notags(trim($_GET['search'])) : '');
 
        $tpl = load_view_file('view/directory_header.tpl');
 
index 1049b28a0919e3391d96f93105586c1ecf691bc5..990d0b431b06acdda54c0e390840f77989ab5250 100644 (file)
@@ -5,7 +5,8 @@ function display_content(&$a) {
 
        $o = '<div id="live-display"></div>' . "\r\n";
 
-       profile_init($a);
+       $nick = (($a->argc > 1) ? $a->argv[1] : '');
+       profile_load($a,$nick);
 
        $item_id = (($a->argc > 2) ? intval($a->argv[2]) : 0);
 
index b8f16158eb01f67c2f2f81069431df073324b681..59cc31d3b00095f1e2eb21e6a8e27b807dd1df58 100644 (file)
@@ -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'] .= "<div class=\"powered\" >Powered by <a href=\"http://friendika.com\" title=\"friendika\" >friendika</a></div>";
+/*
+ *     if(! (x($a->page,'footer')))
+ *             $a->page['footer'] = '';
+ *     $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://friendika.com\" title=\"friendika\" >friendika</a></div>";
+ */
        $o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>';
        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;
index 78a4a3d53f61de99c70a668ee85eaaaff0ddceef..7605e9ae264f646ec3066df5d37347e373984cd4 100644 (file)
@@ -1,13 +1,22 @@
 <?php
 
 
+function search_post(&$a) {
+       if(x($_POST,'search'))
+               $a->data['search'] = $_POST['search'];
+}
+
+
 function search_content(&$a) {
 
        $o = '<div id="live-search"></div>' . "\r\n";
 
        $o .= '<h3>' . t('Search') . '</h3>';
 
-       $search = ((x($_GET,'search')) ? rawurldecode($_GET['search']) : '');
+       if(x($a->data,'search'))
+               $search = notags(trim($a->data['search']));
+       else
+               $search = ((x($_GET,'search')) ? notags(trim(rawurldecode($_GET['search']))) : '');
 
        $o .= search($search);
 
index c5f5355276bdac3a00a8d0e49093b4e42aa9d24e..f20341dd6925b4d68d0728f5fc8b16cba137484d 100644 (file)
@@ -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;