annotate modules/user/user-profile.tpl.php @ 0:ff03f76ab3fe

initial version
author danieleb <danielebarchiesi@me.com>
date Wed, 21 Aug 2013 18:51:11 +0100
parents
children
rev   line source
danielebarchiesi@0 1 <?php
danielebarchiesi@0 2
danielebarchiesi@0 3 /**
danielebarchiesi@0 4 * @file
danielebarchiesi@0 5 * Default theme implementation to present all user profile data.
danielebarchiesi@0 6 *
danielebarchiesi@0 7 * This template is used when viewing a registered member's profile page,
danielebarchiesi@0 8 * e.g., example.com/user/123. 123 being the users ID.
danielebarchiesi@0 9 *
danielebarchiesi@0 10 * Use render($user_profile) to print all profile items, or print a subset
danielebarchiesi@0 11 * such as render($user_profile['user_picture']). Always call
danielebarchiesi@0 12 * render($user_profile) at the end in order to print all remaining items. If
danielebarchiesi@0 13 * the item is a category, it will contain all its profile items. By default,
danielebarchiesi@0 14 * $user_profile['summary'] is provided, which contains data on the user's
danielebarchiesi@0 15 * history. Other data can be included by modules. $user_profile['user_picture']
danielebarchiesi@0 16 * is available for showing the account picture.
danielebarchiesi@0 17 *
danielebarchiesi@0 18 * Available variables:
danielebarchiesi@0 19 * - $user_profile: An array of profile items. Use render() to print them.
danielebarchiesi@0 20 * - Field variables: for each field instance attached to the user a
danielebarchiesi@0 21 * corresponding variable is defined; e.g., $account->field_example has a
danielebarchiesi@0 22 * variable $field_example defined. When needing to access a field's raw
danielebarchiesi@0 23 * values, developers/themers are strongly encouraged to use these
danielebarchiesi@0 24 * variables. Otherwise they will have to explicitly specify the desired
danielebarchiesi@0 25 * field language, e.g. $account->field_example['en'], thus overriding any
danielebarchiesi@0 26 * language negotiation rule that was previously applied.
danielebarchiesi@0 27 *
danielebarchiesi@0 28 * @see user-profile-category.tpl.php
danielebarchiesi@0 29 * Where the html is handled for the group.
danielebarchiesi@0 30 * @see user-profile-item.tpl.php
danielebarchiesi@0 31 * Where the html is handled for each item in the group.
danielebarchiesi@0 32 * @see template_preprocess_user_profile()
danielebarchiesi@0 33 *
danielebarchiesi@0 34 * @ingroup themeable
danielebarchiesi@0 35 */
danielebarchiesi@0 36 ?>
danielebarchiesi@0 37 <div class="profile"<?php print $attributes; ?>>
danielebarchiesi@0 38 <?php print render($user_profile); ?>
danielebarchiesi@0 39 </div>