Dotclear

Changeset 1728:509991b301ef for admin


Ignore:
Timestamp:
09/05/13 08:54:15 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

(j'en avais oublié des bouts)
Amélioration de l'affichage des modules additionnels du tableau de bord (à améliorer encore)
Listes-tableaux : présentation plus aérée.
Pagination plus discrète (okazou, en attendant le ticket #1607)
Barre d'outil de l'éditeur : suppression des dégradés, éclaircissement, cassededi to html-edition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r1719 r1728  
    144144          if ($feed) 
    145145          { 
    146                $latest_news = '<h3>'.__('Latest news').'</h3><dl id="news">'; 
     146               $latest_news = '<h3>'.__('Dotclear news').'</h3><dl id="news">'; 
    147147               $i = 1; 
    148148               foreach ($feed->items as $item) 
    149149               { 
    150                     $dt = isset($item->link) ? '<a href="'.$item->link.'" title="'.$item->title.' '.__('(external link)').'">'. 
    151                          $item->title.'</a>' : $item->title; 
     150                    $dt = isset($item->link) ? '<a href="'.$item->link.'" title="'.$item->title.' ('.__('new window').')">'. 
     151                         $item->title.' <img src="images/outgoing-blue.png" alt="" /></a>' : $item->title; 
    152152                
    153153                    if ($i < 3) { 
     
    179179      
    180180          foreach ($__resources['doc'] as $k => $v) { 
    181                $doc_links .= '<li><a href="'.$v.'" title="'.$k.' '.__('(external link)').'">'.$k.'</a></li>'; 
     181               $doc_links .= '<li><a href="'.$v.'" title="'.$k.' ('.__('new window').')">'.$k. 
     182               ' <img src="images/outgoing-blue.png" alt="" /></a></li>'; 
    182183          } 
    183184      
     
    342343     if ($i->count() > 0) 
    343344     { 
    344           $dashboardItems .= '<div class="db-item">'; 
     345          $dashboardItems .= '<div class="db-box">'; 
    345346          foreach ($i as $v) { 
    346347               $dashboardItems .= $v; 
     
    351352 
    352353# Dashboard icons 
    353 echo '<div id="dashboard-main"'.($dashboardItems ? '' : ' class="fullwidth"').'><div id="icons">'; 
     354echo '<div id="dashboard-main"><div id="icons">'; 
    354355foreach ($__dashboard_icons as $i) 
    355356{ 
     
    413414     if ($i->count() > 0) 
    414415     { 
    415           $dashboardContents .= '<div>'; 
     416          $dashboardContents .= '<div class="db-box">'; 
    416417          foreach ($i as $v) { 
    417418               $dashboardContents .= $v; 
     
    420421     } 
    421422} 
    422 echo ($dashboardContents ? '<div id="dashboard-contents">'.$dashboardContents.'</div>' : ''); 
     423 
     424$class = ' '.(($dashboardItems != '') && ($dashboardContents != '') ? 'two-db' : 'one-db'); 
     425 
     426if ($dashboardContents != '' || $dashboardItems != '') { 
     427     echo  
     428     '<div id="dashboard-widgets">'; 
     429          echo ($dashboardContents ? '<div class="db-contents'.$class.'">'.$dashboardContents.'</div>' : ''); 
     430          echo ($dashboardItems ? '<div class="db-items'.$class.'">'.$dashboardItems.'</div>' : ''); 
     431     echo 
     432     '</div>';       
     433} 
    423434 
    424435echo '</div>'; 
    425  
    426 echo ($dashboardItems ? '<div id="dashboard-items">'.$dashboardItems.'</div>' : ''); 
    427436 
    428437dcPage::close(); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map