Projet

Général

Profil

Paste
Télécharger (1,43 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / adaptivetheme / at_core / templates / user-profile-category.tpl.php @ 74f6bef0

1
<?php
2
/**
3
 * @file
4
 * Adaptivetheme implementation to present profile categories (groups of
5
 * profile items).
6
 *
7
 * Categories are defined when configuring user profile fields for the site.
8
 * It can also be defined by modules. All profile items for a category will be
9
 * output through the $profile_items variable.
10
 *
11
 * @see user-profile-item.tpl.php
12
 *      where each profile item is rendered. It is implemented as a definition
13
 *      list by default.
14
 * @see user-profile.tpl.php
15
 *      where all items and categories are collected and printed out.
16
 *
17
 * Adaptivetheme variables:
18
 * - $is_mobile: Mixed, requires the Mobile Detect or Browscap module to return
19
 *   TRUE for mobile.  Note that tablets are also considered mobile devices.  
20
 *   Returns NULL if the feature could not be detected.
21
 * - $is_tablet: Mixed, requires the Mobile Detect to return TRUE for tablets.
22
 *   Returns NULL if the feature could not be detected.
23
 *
24
 * Available variables:
25
 * - $title: Category title for the group of items.
26
 * - $profile_items: All the items for the group rendered through
27
 *   user-profile-item.tpl.php.
28
 * - $attributes: HTML attributes. Usually renders classes.
29
 *
30
 * @see template_preprocess_user_profile_category()
31
 */
32
?>
33
<section class="<?php print drupal_html_class($title); ?>">
34

    
35
  <?php if ($title) : ?>
36
    <h3><?php print $title; ?></h3>
37
  <?php endif; ?>
38

    
39
  <dl<?php print $attributes; ?>>
40
    <?php print $profile_items; ?>
41
  </dl>
42

    
43
</section>