]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
move image and css files to theme folder
authorChristian Weiske <cweiske@cweiske.de>
Mon, 23 May 2011 16:10:51 +0000 (18:10 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 23 May 2011 16:10:51 +0000 (18:10 +0200)
19 files changed:
data/templates/default/bookmarks.tpl.php
data/templates/default/top.inc.php
www/jsScuttle.php
www/themes/default/icon.png [moved from www/icon.png with 100% similarity]
www/themes/default/images/b_edit.png [moved from www/images/b_edit.png with 100% similarity]
www/themes/default/images/bg_admin.png [moved from www/images/bg_admin.png with 100% similarity]
www/themes/default/images/bg_bar.png [moved from www/images/bg_bar.png with 100% similarity]
www/themes/default/images/bg_header.png [moved from www/images/bg_header.png with 100% similarity]
www/themes/default/images/bg_sidebar.png [moved from www/images/bg_sidebar.png with 100% similarity]
www/themes/default/images/loading.gif [moved from www/images/loading.gif with 100% similarity]
www/themes/default/images/logo.png [moved from www/images/logo.png with 100% similarity]
www/themes/default/images/logo_24.gif [moved from www/images/logo_24.gif with 100% similarity]
www/themes/default/images/rss.gif [moved from www/images/rss.gif with 100% similarity]
www/themes/default/images/thumbs_up.orig.png [moved from www/images/thumbs_up.orig.png with 100% similarity]
www/themes/default/images/vote-against-voted.png [moved from www/images/vote-against-voted.png with 100% similarity]
www/themes/default/images/vote-against.png [moved from www/images/vote-against.png with 100% similarity]
www/themes/default/images/vote-for-voted.png [moved from www/images/vote-for-voted.png with 100% similarity]
www/themes/default/images/vote-for.png [moved from www/images/vote-for.png with 100% similarity]
www/themes/default/scuttle.css [moved from www/scuttle.css with 100% similarity]

index 55d6a0f6e862e4914a71c284f3b697dc34148db8..93bcf5322d8e5f4b73f2b7a5550a421b31364cab 100644 (file)
@@ -39,7 +39,7 @@ include('search.menu.php');
 
 <?php if($GLOBALS['enableAdminColors']!=false && isset($userid) && $userservice->isAdmin($userid) && $pageName != PAGE_WATCHLIST) : ?>
 <div style="width:70%;text-align:center;">
-<img src="<?php echo ROOT ?>images/logo_24.gif" width="12px"/> <?php echo T_('Bookmarks on this page are managed by an admin user.'); ?><img src="<?php echo ROOT ?>images/logo_24.gif" width="12px"/>
+<img src="<?php echo ROOT . 'themes/' . $GLOBALS['theme']; ?>/images/logo_24.gif" width="12px"/> <?php echo T_('Bookmarks on this page are managed by an admin user.'); ?><img src="<?php echo ROOT . 'themes/' . $GLOBALS['theme']; ?>/images/logo_24.gif" width="12px"/>
 </div>
 <?php endif?>
 
@@ -70,7 +70,7 @@ if ($userservice->isLoggedOn()) {
     ) {
                echo ' <a href="'. createURL('tagcommondescriptionedit', $currenttag).'" title="'.T_('Edit the common description of this tag').'">';
                echo !is_array($cDescription) || strlen($cDescription['cdDescription'])==0?T_('Edit the common description of this tag'):'';
-               echo ' <img src="'.ROOT.'images/b_edit.png" /></a>';
+               echo ' <img src="'.ROOT . 'themes/' . $GLOBALS['theme'] . '/images/b_edit.png" /></a>';
        } else if (isset($hash)) {
                echo ' (<a href="'.createURL('bookmarkcommondescriptionedit', $hash).'" title="'.T_('Edit the common description of this bookmark').'">';
                echo T_('Edit the common description of this bookmark').'</a>)';
@@ -95,7 +95,7 @@ if($userservice->isLoggedOn()) {
        if($currenttag!= '') {
                echo ' <a href="'. createURL('tagedit', $currenttag).'" title="'.T_('Edit your personal description of this tag').'" >';
                echo strlen($pDescription['tDescription'])==0?T_('Edit your personal description of this tag'):'';
-               echo ' <img src="'.ROOT.'images/b_edit.png" /></a>';
+               echo ' <img src="' . ROOT . 'themes/' . $GLOBALS['theme'] . '/images/b_edit.png" /></a>';
        }
 }
 ?></p>
@@ -221,7 +221,7 @@ if ($currenttag!= '') {
        for ($i = 0; $i < $size; $i++) {
                $brss =  '<a style="background:#FFFFFF" href="'. htmlspecialchars($rsschannels[$i][1]) . '"'
             . ' title="' . htmlspecialchars($rsschannels[$i][0]) . '">'
-            . '<img src="' . ROOT . 'images/rss.gif" width="16" height="16" alt="' . htmlspecialchars($rsschannels[$i][0]) .'"/>'
+            . '<img src="' . ROOT . 'themes/' . $GLOBALS['theme'] . '/images/rss.gif" width="16" height="16" alt="' . htmlspecialchars($rsschannels[$i][0]) .'"/>'
             . '</a>';
        }
 
@@ -363,7 +363,7 @@ if ($currenttag!= '') {
                // Admin specific design
                if ($userservice->isAdmin($row['username']) && $GLOBALS['enableAdminColors']) {
                        $adminBgClass = ' class="adminBackground"';
-                       $adminStar    = ' <img src="'. ROOT .'images/logo_24.gif" width="12px" title="'. T_('This bookmark is certified by an admin user.') .'" />';
+                       $adminStar    = ' <img src="' . ROOT . 'themes/' . $GLOBALS['theme'] . '/images/logo_24.gif" width="12px" title="'. T_('This bookmark is certified by an admin user.') .'" />';
                } else {
                        $adminBgClass = '';
                        $adminStar    = '';
index bdd4b1a9a53d68623f2b6f23aa1b1c5db54b799d..6ad2df2b4942bea0c8d0fe1f75cb109f48d531a2 100644 (file)
@@ -4,8 +4,8 @@
  <head>
   <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
   <title><?php echo filter($GLOBALS['sitename'] .(isset($pagetitle) ? ' ยป ' . $pagetitle : '')); ?></title>
-  <link rel="icon" type="image/png" href="<?php echo ROOT ?>icon.png" />
-  <link rel="stylesheet" type="text/css" href="<?php echo ROOT ?>scuttle.css" />
+  <link rel="icon" type="image/png" href="<?php echo ROOT ?>themes/<?php echo $GLOBALS['theme']; ?>/icon.png" />
+  <link rel="stylesheet" type="text/css" href="<?php echo ROOT ?>themes/<?php echo $GLOBALS['theme']; ?>/scuttle.css" />
   <link rel="search" type="application/opensearchdescription+xml" href="<?php echo ROOT ?>api/opensearch.php" title="<?php echo htmlspecialchars($GLOBALS['sitename']) ?>"/>
 <?php
 if (isset($rsschannels)) {
index c16675535b2c9769620f4ed679b27f9f2549ae70..4f9d3b7222a5cee6676c2285e6c424d293af92c2 100644 (file)
@@ -62,7 +62,7 @@ function isAvailable(input, response){
     username = username.trim();
     var availability = document.getElementById("availability");
     if (username != '') {
-        usernameField.style.backgroundImage = 'url(<?php echo ROOT; ?>images/loading.gif)';
+        usernameField.style.backgroundImage = 'url(<?php echo ROOT . 'themes/' . $GLOBALS['theme']; ?>/images/loading.gif)';
         if (response != '') {
             usernameField.style.backgroundImage = 'none';
             if (response == 'true') {
@@ -92,7 +92,7 @@ function useAddress(ele) {
 function getTitle(input, response){
     var title = document.getElementById('titleField');
     if (title.value == '') {
-        title.style.backgroundImage = 'url(<?php echo ROOT; ?>images/loading.gif)';
+        title.style.backgroundImage = 'url(<?php echo ROOT . 'themes/' . $GLOBALS['theme']; ?>/images/loading.gif)';
         if (response != null) {
             title.style.backgroundImage = 'none';
             title.value = response;
similarity index 100%
rename from www/icon.png
rename to www/themes/default/icon.png