Révision 6b24a280
Ajouté par Assos Assos il y a presque 4 ans
drupal7/modules/block/block.module | ||
---|---|---|
263 | 263 |
$all_regions = system_region_list($theme); |
264 | 264 |
|
265 | 265 |
$item = menu_get_item(); |
266 |
if ($item['path'] != 'admin/structure/block/demo/' . $theme) { |
|
266 |
if ($item === FALSE || $item['path'] != 'admin/structure/block/demo/' . $theme) {
|
|
267 | 267 |
// Load all region content assigned via blocks. |
268 | 268 |
foreach (array_keys($all_regions) as $region) { |
269 | 269 |
// Assign blocks to region. |
... | ... | |
283 | 283 |
} |
284 | 284 |
else { |
285 | 285 |
// Append region description if we are rendering the regions demo page. |
286 |
$item = menu_get_item(); |
|
287 | 286 |
if ($item['path'] == 'admin/structure/block/demo/' . $theme) { |
288 | 287 |
foreach (system_region_list($theme, REGIONS_VISIBLE, FALSE) as $region) { |
289 | 288 |
$description = '<div class="block-region">' . $all_regions[$region] . '</div>'; |
Formats disponibles : Unified diff
-a