/[drupal]/drupal/modules/profile/profile-listing.tpl.php
ViewVC logotype

Contents of /drupal/modules/profile/profile-listing.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download) (as text)
Thu Aug 6 05:05:59 2009 UTC (3 months, 3 weeks ago) by webchick
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-10, DRUPAL-7-0-UNSTABLE-9, HEAD
Changes since 1.6: +3 -3 lines
File MIME type: text/x-php
#382870 by geerlingguy, jmburnz, EclipseGc, JohnAlbin, sun, et al: Update and Polish default node.tpl.php output.
1 <?php
2 // $Id: profile-listing.tpl.php,v 1.6 2009/05/07 10:39:38 dries Exp $
3
4 /**
5 * @file
6 * Default theme implementation for displaying a user and their profile data
7 * for member listing pages.
8 *
9 * @see profile-wrapper.tpl.php
10 * where all the data is collected and printed out.
11 *
12 * Available variables:
13 * - $account: User's account object.
14 * - $user_picture: Image configured for the account linking to the users page.
15 * - $name: User's account name linking to the users page.
16 * - $profile: Keyed array of all profile fields that are set as visible
17 * in member list pages (configured by site administrators). It also needs
18 * to have a value in order to be present.
19 *
20 * Each $field in $profile contains:
21 * - $field->title: Title of the profile field.
22 * - $field->value: Value of the profile field.
23 * - $field->type: Type of the profile field, i.e., checkbox, textfield,
24 * textarea, selection, list, url or date.
25 *
26 * Since $profile is keyed, a direct print of the field is possible. Not
27 * all accounts may have a value for a profile so do a check first. If a field
28 * of "last_name" was set for the site, the following can be used.
29 *
30 * <?php if (isset($profile['last_name'])): ?>
31 * <div class="field last-name">
32 * <?php print $profile['last_name']->title; ?>:<br />
33 * <?php print $profile['last_name']->value; ?>
34 * </div>
35 * <?php endif; ?>
36 *
37 * @see template_preprocess_profile_listing()
38 */
39 ?>
40 <div class="profile clearfix">
41 <?php print $user_picture; ?>
42
43 <div class="name">
44 <?php print $name; ?>
45 </div>
46
47 <?php foreach ($profile as $field) : ?>
48 <div class="field">
49 <?php print $field->value; ?>
50 </div>
51 <?php endforeach; ?>
52
53 </div>

  ViewVC Help
Powered by ViewVC 1.1.2