Changeset 3412:a07474dc68c1 for admin/index.php
- Timestamp:
- 11/19/16 10:56:00 (9 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r3390 r3412 173 173 174 174 # Dashboard content 175 $dashboardContents = '';176 175 $__dashboard_contents = new ArrayObject(array(new ArrayObject,new ArrayObject)); 177 176 $core->callBehavior('adminDashboardContents', $core, $__dashboard_contents); … … 312 311 } 313 312 314 # Dashboard columns (processed first, as we need to know the result before displaying the icons.)313 # Dashboard items and contents (processed first, as we need to know the result before displaying the icons.) 315 314 $dashboardItems = ''; 316 317 315 foreach ($__dashboard_items as $i) 318 316 { 319 if ($i->count() > 0) 320 { 321 $dashboardItems .= ''; 322 foreach ($i as $v) { 323 $dashboardItems .= $v; 324 } 325 $dashboardItems .= ''; 326 } 327 } 328 329 # Dashboard elements 317 foreach ($i as $v) { 318 $dashboardItems .= $v; 319 } 320 } 321 $dashboardContents = ''; 322 foreach ($__dashboard_contents as $i) 323 { 324 foreach ($i as $v) { 325 $dashboardContents .= $v; 326 } 327 } 328 329 # Dashboard elements: icons then boxes (items then contents) 330 330 echo '<div id="dashboard-main">'; 331 331 … … 391 391 } 392 392 393 foreach ($__dashboard_contents as $i)394 {395 if ($i->count() > 0)396 {397 $dashboardContents .= '';398 foreach ($i as $v) {399 $dashboardContents .= $v;400 }401 $dashboardContents .= '';402 }403 }404 405 393 if ($dashboardContents != '' || $dashboardItems != '') { 406 394 echo 407 395 '<div id="dashboard-boxes">'. 408 '<div class="db-items">'.$dashboardItems.$dashboardContents.'</div>'. 396 '<div class="db-items">'.$dashboardItems.'</div>'. 397 '<div class="db-contents">'.$dashboardContents.'</div>'. 409 398 '</div>'; 410 399 }
Note: See TracChangeset
for help on using the changeset viewer.