Dotclear

Changeset 489:2e9dba880461 for inc/admin


Ignore:
Timestamp:
07/02/11 16:07:33 (14 years ago)
Author:
kozlika
Branch:
default
Message:

Ergo : déplacement du lien dashboard dans le header, stylage de l'item actif dans le header…

… et une petite fantaisie pour le titre de boîte des favoris (après tout le nom de code est bien All You Need Is Love, non ?). J'attends les tomates pourries de pied ferme.

Location:
inc/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r485 r489  
    123123          '">'."\n". 
    124124           
     125          '<div id=header>'. 
    125126          '<ul id="prelude"><li><a href="#content">Aller au contenu</a></li><li><a href="#main-menu">Aller au menu</a></li></ul>'."\n". 
    126           '<div id="top"><h1><a href="index.php">'.DC_VENDOR_NAME.'</a></h1></div>'."\n"; 
    127            
    128            
    129           echo 
    130           '<div id="info-box">'. 
    131           '<form action="index.php" method="post"><div>'. 
     127          '<div id="top"><h1><a href="index.php">'.DC_VENDOR_NAME.'</a></h1></div>'."\n";  
     128           
     129          echo 
     130          '<div id="info-boxes">'. 
     131          '<div id="info-box1">'. 
     132          '<form action="index.php" method="post">'. 
    132133          $blog_box. 
    133134          '<a href="'.$core->blog->url.'" onclick="window.open(this.href);return false;" title="'.__('Go to site').' ('.__('new window').')'.'">'.__('Go to site').' <img src="images/outgoing.png" alt="" /></a>'. 
    134           '</div></form>'. 
     135          '</form>'. 
    135136          '</div>'. 
    136           '<div id="info-box2"><div>'. 
    137           ' <a'.(preg_match('/preferences.php(\?.*)?$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="preferences.php">'.__('My preferences').'</a>'. 
    138           ' | <a href="index.php?logout=1" class="logout">'.sprintf(__('Logout %s'),$core->auth->userID()).' <img src="images/logout.png" alt="" /></a>'. 
     137          '<div id="info-box2">'. 
     138          '<a'.(preg_match('/index.php$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="index.php">'.__('My dashboard').'</a>'. 
     139          '<span> | </span><a'.(preg_match('/preferences.php(\?.*)?$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="preferences.php">'.__('My preferences').'</a>'. 
     140          '<span> | </span><a href="index.php?logout=1" class="logout">'.sprintf(__('Logout %s'),$core->auth->userID()).' <img src="images/logout.png" alt="" /></a>'. 
     141          '</div>'. 
    139142          '</div>'. 
    140143          '</div>'; 
  • inc/admin/prepend.php

    r484 r489  
    267267     } 
    268268*/ 
    269      $_menu['Dashboard']->prependItem(__('Dashboard'),'index.php','images/menu/dashboard.png', 
    270           preg_match('/index.php$/',$_SERVER['REQUEST_URI']), 
    271           $core->auth->check('usage,contentadmin',$core->blog->id)); 
    272       
    273269     $_menu['Blog']->prependItem(__('Blog appearance'),'blog_theme.php','images/menu/themes.png', 
    274270          preg_match('/blog_theme.php(\?.*)?$/',$_SERVER['REQUEST_URI']), 
Note: See TracChangeset for help on using the changeset viewer.

Sites map