Location: PHPKode > projects > Teampopor > teampopor-0.5/teampopor/themes/default/extra-network-profile.tpl.php
<?php
/**
 * #extra for network/%network/profile/%profile
 */

global $user;
$network = network_load(arg(1));
$profile = user_load(arg(3));
?>
<div id="extra">
  <?php if ($profile->uid == $user->uid) { ?>
  <div class="profile-actions-primary">
    <a class="btn-secondary" href="<?php print url('account/basics') ?>">
      <span><?php print t('Edit Profile') ?></span>
    </a>
  </div>
  <?php } ?>

  <div class="panel">
    <div class="leo-module mod-util">
      <div class="header">
        <h3>
          <strong><?php print t('Info') ?></strong>
        </h3>
        <ul>
          <li class="debug"><?php print l(t('download vcard'), '') ?></li>
        </ul>
      </div>
      <div class="content">
        <dl id="overview">
          <dt><?php print t('Department') ?></dt>
          <dd><?php print empty($profile->department) ? '&nbsp;' : $profile->department ?></dd>
          <dt><?php print t('Location') ?></dt>
          <dd><?php print empty($profile->location) ? '&nbsp;' : $profile->location ?></dd>
          <dt><?php print t('Email') ?></dt>
          <dd><?php print $profile->mail ?></dd>
        </dl>
      </div>
    </div>

    <div class="leo-module mod-util">
      <div class="header">
        <h3>
          <strong><?php print t('Followers') ?></strong>
        </h3>
      </div>
      <div class="content">
        <?php $result = db_query("SELECT f.uid FROM {follows} f INNER JOIN {network_members} nm ON nm.uid = f.uid WHERE f.followee_uid = %d AND nm.nid = %d", $profile->uid, $network->nid); ?>
        <?php print theme('user_thumbs', $result) ?>
      </div>
    </div>

    <div class="leo-module mod-util">
      <div class="header">
        <h3>
          <strong><?php print t('Following') ?></strong>
        </h3>
      </div>
      <div class="content">
        <div class="thumbs">
          <ul>
            <?php $result = db_query("SELECT f.followee_uid FROM {follows} f INNER JOIN {network_members} nm ON nm.uid = f.followee_uid WHERE f.uid = %d AND nm.nid = %d", $profile->uid, $network->nid); ?>
            <?php while ($row = db_fetch_object($result)) { ?>
            <?php $u = user_load($row->followee_uid); ?>
            <li class="thumb-li">
              <a class="sidebar-thumb" href="<?php print url('network/' . $network->nid . '/profile/' . $u->uid) ?>">
                <img class="sidebar-thumb-img" title="<?php print $u->name ?>" src="<?php print $u->picture ?>" alt="<?php print $u->name ?>">
              </a>
            </li>
            <?php } ?>
          </ul>
        </div>
      </div>
    </div>

    <div class="leo-module mod-util">
      <div class="header">
        <h3>
          <strong><?php print t('Org Chart') ?></strong>
        </h3>
      </div>
      <div class="content">
      </div>
    </div>

    <div class="leo-module mod-util">
      <div class="header">
        <h3>
          <strong><?php print t('Groups') ?></strong>
        </h3>
      </div>
      <div class="content">
      </div>
    </div>

    <div class="leo-module mod-util">
      <div class="header">
        <h3>
          <strong><?php print t('External Networks') ?></strong>
        </h3>
      </div>
      <div class="content">
      </div>
    </div>

    <div class="leo-module mod-util">
      <div class="header">
        <h3>
          <strong><?php print t('Following Topics') ?></strong>
        </h3>
      </div>
      <div class="content">
      </div>
    </div>

    <?php $network_member = network_member_load(array('nid' => $network->nid, 'uid' => $user->uid)); ?>
    <?php if ($network_member->role == 1) { ?>
    <div class="leo-module mod-util">
      <div class="header">
        <h3>
          <strong><?php print t('Admin') ?></strong>
        </h3>
      </div>
      <div class="content">
      </div>
    </div>
    <?php } ?>

  </div> <!-- .panel -->
</div> <!-- #extra -->
Return current item: Teampopor