]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Interface fix: move welcome message to index page
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 14 May 2008 08:55:38 +0000 (08:55 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 14 May 2008 08:55:38 +0000 (08:55 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@127 b3834d28-1941-0410-a4f8-b48e95affb8f

bookmarks.php
config.inc.php.example
constants.inc.php
index.php
scuttle.css
templates/bookmarks.tpl.php
templates/top.inc.php

index eca291d71a91743c12a4a09918c6055118d597b6..61e2aac687de49599a5d4ffcbb7e215fa2ccb2d0 100644 (file)
@@ -224,6 +224,7 @@ if ($templatename == 'editbookmark.tpl') {
 }
 
 $tplVars['summarizeLinkedTags'] = true;
+$tplVars['pageName'] = PAGE_BOOKMARKS;
 
 $templateservice->loadTemplate($templatename, $tplVars);
 
index bf3fd2b971349f8ff6eec7d87b9b967fe23db4db..56b567498b0ce5b9a1f7834448a9456ed3d34681 100644 (file)
@@ -8,7 +8,7 @@
 
 #### System ####
 $sitename           = 'SemanticScuttle'; #The name of this site.
-$welcomeMessage     = 'More than tags...'; # The welcome message of this site
+$welcomeMessage     = 'Welcome to SemanticScuttle! More than a social bookmarking tool.'; # The welcome message of this site
 $root               = NULL; # Set to NULL to autodetect the root url of the website
 $locale             = 'en_GB'; #locale used in /locales/ {de_DE  en_GB  fr_FR  ...}
 $cookieprefix       = 'SEMANTICSCUTTLE'; # cookieprefix : The prefix to use for the cookies on the site
index 257638582734e4690c2742a702bf59864f4e9ab6..256ea2acbf5eaf1104b8585a91684fc66f279608 100644 (file)
@@ -6,6 +6,11 @@ define('GENERAL_ERROR', 202);
 define('CRITICAL_MESSAGE', 203);
 define('CRITICAL_ERROR', 204);
 
+// Page name
+define('PAGE_INDEX', "index");
+define('PAGE_BOOKMARKS', "bookmarks");
+
+
 // Miscellanous
 
 // INSTALLATION_ID is based on directory  path and used as prefix (in session and cookie) to prevent mutual login for different installations on the same host server
index a4ce6a7b8e1815683629588c6ed2e093ede47056..b4bbe925f81b404ef8c717076ed7fc4f8550eb49 100644 (file)
--- a/index.php
+++ b/index.php
@@ -79,6 +79,7 @@ $tplVars['bookmarks'] =& $bookmarks['bookmarks'];
 $tplVars['cat_url'] = createURL('bookmarks', '%1$s/%2$s');
 $tplVars['nav_url'] = createURL('index', '%3$s');
 $tplVars['summarizeLinkedTags'] = true;
+$tplVars['pageName'] = PAGE_INDEX;
 
 $templateservice->loadTemplate('bookmarks.tpl', $tplVars);
 
index 1e80cb152cf61b1239c1a6226cb8c74b1dc11221..ca711457028cef3dca85d34bdc99aada1b6e950c 100644 (file)
@@ -104,10 +104,19 @@ html > body div#header.popup h1 {
     background: url('logo_24.png') no-repeat 10px;
     padding: 0.5em 0.5em 0.5em 50px;
 }
-html > body div#header #welcome {
+/*html > body div#header #welcome {
     position:absolute;
     left:75px;
+}*/
+#welcome {
+    border: 10px solid #FFCC00;
+    width: 66%;
+    padding: 10px;
+    text-align:center;
+    font-size: medium;
 }
+
+
 h1 a {
     color: #000;
 }
index f7cc45bc96c919613600ede81a19eb19bca73e1f..c9a80f1f8535aad92ace4578038bceb374bfdf6d 100644 (file)
@@ -7,12 +7,18 @@ $cdservice =& ServiceFactory::getServiceInstance('CommonDescriptionService');
 $logged_on_userid = $userservice->getCurrentUserId();
 $currentUser = $userservice->getCurrentUser();
 $currentUsername = $currentUser[$userservice->getFieldName('username')];
+$pageName = isset($pageName)?$pageName:"";
 
 $this->includeTemplate($GLOBALS['top_include']);
 
 include('search.inc.php');
 ?>
 
+<?php if($pageName == PAGE_INDEX):?>
+<p id="welcome"><?php echo $GLOBALS['welcomeMessage'];?></p>
+<?php endif?>
+
+
 <?php 
 if((isset($currenttag) && $GLOBALS['enableCommonTagDescription'])
  || (isset($hash) && $GLOBALS['enableCommonBookmarkDescription'])):?>
index 707af8b444ecf436f556aa61f119a96f764ae27b..4d08b3f076bc2d7e53f9d023d9ed9854e8d9deb7 100644 (file)
@@ -35,7 +35,7 @@ if(isset($_GET['popup'])) {
     }
     ?>
 <? if(!isset($_GET['popup'])):?>
-<span id="welcome"><?php echo $GLOBALS['welcomeMessage'];?></span>
+<!--span id="welcome"><?php echo $GLOBALS['welcomeMessage'];?></span-->
 <?php endif; ?>
 </div>