Location: PHPKode > projects > Teampopor > teampopor-0.5/teampopor/modules/network/network-members.tpl.php
<?php
/**
 * page callback:
 * network/%network/members
 * network/%network/group/%group/members
 *
 * arguments: $network, $group
 */

add_js(get_path('module', 'network') . '/network-members.js');

global $theme;
add_css(get_path('theme', $theme) . '/anet_member.css');
?>
<ul class="member-list">
  <?php
  if ($group) {
    $result = db_query("SELECT uid FROM {group_members} WHERE gid = %d", $group->gid);
  }
  else {
    $result = db_query("SELECT uid FROM {network_members} WHERE nid = %d", $network->nid);
  }
  ?>
  <?php while ($row = db_fetch_object($result)) { ?>
  <?php $profile = user_load($row->uid) ?>
  <li class="member">
    <a href="<?php print url('network/' . $network->nid . '/profile/' . $profile->uid . '/messages') ?>">
      <img class="photo" width="40" height="40" alt="<?php print $profile->name ?>" src="<?php print $profile->picture ?>">
    </a>
    <div class="content">
      <h4>
        <?php print l($profile->name, 'network/' . $network->nid . '/profile/' . $profile->uid . '/messages') ?>
      </h4>
      <?php
      $headline = array();
      if (!empty($profile->title)) {
        $headline[] = $profile->title;
      }
      if (!empty($profile->department)) {
        $headline[] = $profile->department;
      }
      if (!empty($profile->location)) {
        $headline[] = $profile->location;
      }
      ?>
      <p class="headline"><?php print implode(', ', $headline) ?></p>
      <p class="actions">
        <?php
        $actions = array();
        if ($profile->follower_count) {
          $actions[] = l(t('@count followers', array('@count' => $profile->follower_count)), 'network/' . $network->nid . '/profile/' . $profile->uid . '/followers');
        }
        if ($profile->uid != $user->uid) {
          $actions[] = '<span class="follow ' . ($profile->followed ? 'active' : 'inactive') . '">'
              . '<a class="is-following" title="' . t("Stop seeing %user's activity", array('%user' => $profile->name)) . '" href="' . url('network/' . $network->nid . '/profile/' . $profile->uid . '/js/unfollow') . '">' . t('Unfollow') . '</a>'
              . '<a class="is-not-following" title="' . t("See %name's activity", array('%name' => $profile->name)) . '" href="' . url('network/' . $network->nid . '/profile/' . $profile->uid . '/js/follow') . '">' . t('Follow') . '</a>'
            . '</span>';
        }
        print implode(' | ', $actions);
        ?>
      </p>
    </div>
  </li>
  <?php } ?>
</ul>
Return current item: Teampopor