Location: PHPKode > projects > Teampopor > teampopor-0.5/teampopor/themes/default/sidebar.tpl.php
<?php
/**
 * #sidebar
 */

global $user;

if (!$user->uid) {
  return false;
}

$menu_item = menu_get_item();
if (!$menu_item['access']) {
  return;
}

global $theme;
add_css(get_path('theme', $theme) . '/sidebar.css');

$network = get_current_network();
?>

<div id="sidebar">
  <div id="uni-network-heading" class="network-title">
    <div id="network-logo">
      <h1><?php print l($network->name, 'network/' . $network->nid) ?></h1>
    </div>
  </div>
  <div class="mod-simple">
    <ul class="nav-list">
      <li>
        <a class="nav-list-link" href="<?php print url('network/' . $network->nid, array('query' => 'type=following')) ?>">
          <span class="nav-icon house-icon"></span>
          <?php print t('My Feed') ?>
        </a>
      </li>
      <li>
        <a class="nav-list-link" href="<?php print url('network/' . $network->nid . '/private') ?>">
          <span class="nav-icon messages-icon"></span>
          <?php print t('Private Messages') ?>
        </a>
      </li>
      <li>
        <a class="nav-list-link" href="<?php print url('network/' . $network->nid . '/profile/' . $user->uid) ?>">
          <span class="nav-icon my-profile-icon"></span>
          <?php print t('My Profile') ?>
        </a>
      </li>
      <li>
        <a class="nav-list-link" href="<?php print url('network/' . $network->nid . '/members') ?>">
          <span class="nav-icon members-icon"></span>
          <?php print t('Members') ?>
        </a>
      </li>
    </ul>
    <ul class="nav-list separator">
      <li class="nav-title">
        <h4><?php print l(t('Groups'), 'network/' . $network->nid . '/groups') ?></h4>
        <a class="lightbox" title="<?php print t('Create New Internal Group') ?>" href="<?php print url('network/' . $network->nid . '/groups/create/group') ?>">
          <span class="inline-icon add-icon"></span>
          <span class="text"><?php print t('create group') ?></span>
        </a>
      </li>
      <?php $result = db_query("SELECT gm.gid FROM {group_members} gm LEFT JOIN {groups} g ON g.gid = gm.gid WHERE gm.uid = %d AND g.nid = %d ORDER BY gm.created", $user->uid, $network->nid) ?>
      <?php while ($row = db_fetch_object($result)) { ?>
      <?php $group = group_load($row->gid) ?>
      <li>
        <a class="nav-list-link" href="<?php print url('network/' . $network->nid . '/group/' . $group->gid) ?>">
          <span class="nav-icon group-group-icon"></span>
          <?php print $group->name ?>
        </a>
      </li>
      <?php } ?>
    </ul>
    <ul class="nav-list separator">
      <li class="nav-title debug">
        <h4><?php print l(t('Apps'), 'network/' . $network->nid . '/apps') ?></h4>
      </li>
      <li>
        <a class="nav-list-link" href="<?php print url('network/' . $network->nid . '/files') ?>">
          <span class="nav-icon file-icon"></span>
          <?php print t('Files') ?>
        </a>
      </li>
      <li class="debug">
        <a class="nav-list-link" href="<?php print url('network/' . $network->nid . '/pages') ?>">
          <span class="nav-icon page-pen-icon"></span>
          <?php print t('Pages') ?>
        </a>
      </li>
      <li>
        <a class="nav-list-link" href="<?php print url('network/' . $network->nid . '/invite') ?>">
          <span class="nav-icon add-members-icon"></span>
          <?php print t('Invite') ?>
        </a>
      </li>
      <?php $network_member = network_member_load(array('nid' => $network->nid, 'uid' => $user->uid)); ?>
      <?php if($network_member->role) { ?>
      <li>
        <a class="nav-list-link" href="<?php print url('network/' . $network->nid . '/admin') ?>">
          <span class="nav-icon admin-icon"></span>
          <?php print t('Admin') ?>
        </a>
      </li>
      <?php } ?>
    </ul>
  </div>
</div>
Return current item: Teampopor