Dotclear

Changeset 480:fb49141a31de


Ignore:
Timestamp:
07/01/11 22:15:56 (11 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Message:

Ajout d'un behaviour adminDashboardContents (fonctionnement identique à adminDashboardItems) pour ajouter du contenu sous les favoris (et le billet rapide s'il est actif). Fixes #560

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r471 r480  
    177177$core->callBehavior('adminDashboardItems', $core, $__dashboard_items); 
    178178 
     179# Dashboard content 
     180$dashboardContents = ''; 
     181$__dashboard_contents = new ArrayObject(array(new ArrayObject,new ArrayObject)); 
     182$core->callBehavior('adminDashboardContents', $core, $__dashboard_contents); 
     183 
    179184/* DISPLAY 
    180185-------------------------------------------------------- */ 
     
    337342} 
    338343 
     344foreach ($__dashboard_contents as $i) 
     345{     
     346     if ($i->count() > 0) 
     347     { 
     348          $dashboardContents .= '<div>'; 
     349          foreach ($i as $v) { 
     350               $dashboardContents .= $v; 
     351          } 
     352          $dashboardContents .= '</div>'; 
     353     } 
     354} 
     355echo ($dashboardContents ? '<div id="dashboard-contents">'.$dashboardContents.'</div>' : ''); 
     356 
    339357echo '</div>'; 
    340358 
Note: See TracChangeset for help on using the changeset viewer.

Sites map