equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 /** |
|
4 * @file |
|
5 * Default theme implementation to display a region. |
|
6 * |
|
7 * Available variables: |
|
8 * - $content: The content for this region, typically blocks. |
|
9 * - $classes: String of classes that can be used to style contextually through |
|
10 * CSS. It can be manipulated through the variable $classes_array from |
|
11 * preprocess functions. The default values can be one or more of the following: |
|
12 * - region: The current template type, i.e., "theming hook". |
|
13 * - region-[name]: The name of the region with underscores replaced with |
|
14 * dashes. For example, the page_top region would have a region-page-top class. |
|
15 * - $region: The name of the region variable as defined in the theme's .info file. |
|
16 * |
|
17 * Helper variables: |
|
18 * - $classes_array: Array of html class attribute values. It is flattened |
|
19 * into a string within the variable $classes. |
|
20 * - $is_admin: Flags true when the current user is an administrator. |
|
21 * - $is_front: Flags true when presented in the front page. |
|
22 * - $logged_in: Flags true when the current user is a logged-in member. |
|
23 * |
|
24 * @see template_preprocess() |
|
25 * @see template_preprocess_region() |
|
26 * @see template_process() |
|
27 * |
|
28 * @ingroup themeable |
|
29 */ |
|
30 ?> |
|
31 <?php if ($content): ?> |
|
32 <div class="<?php print $classes; ?>"> |
|
33 <?php print $content; ?> |
|
34 </div> |
|
35 <?php endif; ?> |