Projet

Général

Profil

Paste
Télécharger (2,06 ko) Statistiques
| Branche: | Révision:

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

1
<?php
2
/**
3
 * @file
4
 * Adaptivetheme implementation to present all user profile data.
5
 *
6
 * This template is used when viewing a registered member's profile page,
7
 * e.g., example.com/user/123. 123 being the users ID.
8
 *
9
 * Use render($user_profile) to print all profile items, or print a subset
10
 * such as render($user_profile['user_picture']). Always call
11
 * render($user_profile) at the end in order to print all remaining items. If
12
 * the item is a category, it will contain all its profile items. By default,
13
 * $user_profile['summary'] is provided, which contains data on the user's
14
 * history. Other data can be included by modules. $user_profile['user_picture']
15
 * is available for showing the account picture.
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
 *   - $user_profile: An array of profile items. Use render() to print them.
26
 *   - Field variables: for each field instance attached to the user a
27
 *     corresponding variable is defined; e.g., $account->field_example has a
28
 *     variable $field_example defined. When needing to access a field's raw
29
 *     values, developers/themers are strongly encouraged to use these
30
 *     variables. Otherwise they will have to explicitly specify the desired
31
 *     field language, e.g. $account->field_example['en'], thus overriding any
32
 *     language negotiation rule that was previously applied.
33
 *
34
 * @see user-profile-category.tpl.php
35
 *   Where the html is handled for the group.
36
 * @see user-profile-item.tpl.php
37
 *   Where the html is handled for each item in the group.
38
 * @see template_preprocess_user_profile()
39
 */
40
?>
41
<article id="user-<?php print $user->uid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
42
  <?php print render($user_profile); ?>
43
</article>