| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file profile-listing.tpl.php 5 * Default theme implementation for displaying a user and their profile data 6 * for member listing pages. 7 * 8 * @see profile-wrapper.tpl.php 9 * where all the data is collected and printed out. 10 * 11 * Available variables: 12 * - $picture: Image configured for the account linking to the users page. 13 * - $name: User's account name linking to the users page. 14 * - $profile: Keyed array of all profile fields that are set as visible 15 * in member list pages (configured by site administrators). It also needs 16 * to have a value in order to be present. 17 * 18 * Each $field in $profile contains: 19 * - $field->title: Title of the profile field. 20 * - $field->value: Value of the profile field. 21 * - $field->type: Type of the profile field, i.e., checkbox, textfield, 22 * textarea, selection, list, url or date. 23 * 24 * Since $profile is keyed, a direct print of the field is possible. Not 25 * all accounts may have a value for a profile so do a check first. If a field 26 * of "last_name" was set for the site, the following can be used. 27 * 28 * <?php if (isset($profile['last_name'])): ?> 29 * <div class="field last-name"> 30 * <?php print $profile['last_name']->title; ?>:<br /> 31 * <?php print $profile['last_name']->value; ?> 32 * </div> 33 * <?php endif; ?> 34 * 35 * @see template_preprocess_profile_listing() 36 */ 37 ?> 38 <div class="profile"> 39 <?php print $picture; ?> 40 41 <div class="name"> 42 <?php print $name; ?> 43 </div> 44 45 <?php foreach ($profile as $field) : ?> 46 <div class="field"> 47 <?php print $field->value; ?> 48 </div> 49 <?php endforeach; ?> 50 51 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |