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

if (arg(2) == 'group' && is_numeric(arg(3))) {
  $group = group_load(arg(3));
}
else {
  return;
}

if (!$group->is_public && !$group->joined) {
  set_message(t('This group is private. Request to join to view its messages'));
}
if ($group->requested) {
  set_message(t('Your request to join is still pending.'), 'success');
}

global $theme;
add_css(get_path('theme', $theme) . '/section-header.css', 'theme');
add_css(get_path('theme', $theme) . '/section-header-network-group.css', 'theme');

?>
<div id="section-header" class="sub">
  <div class="group-icon">
    <a href="<?php print url('network/' . $group->nid . '/group/' . $group->gid) ?>">
      <?php
      $picture = $group->picture;
      if (empty($picture)) {
        $picture = url("misc/icon_group_100x50_v2.png");
      }
      ?>
      <img width="100" height="50" title="<?php print $group->name ?>" alt="<?php print $group->name ?>" src="<?php print $picture ?>">
    </a>
  </div>
  <h1 class="group-name">
    <a class="<?php print $group->is_public ? 'public' : 'private' ?>" title="<?php print $group->is_public ? t('This is an open group') : t('This group is members only') ?>" href="<?php print url('network/' . $group->nid . '/group/' . $group->gid) ?>"><?php print $group->name ?></a>
  </h1>
  <div class="group-description"><?php print $group->description ?></div>

  <?php if ($group->is_public || $group->joined) { ?>
  <ul id="anet-nav-extra" class="nav-extra">
    <li>
      <a href="<?php print url('network/' . $group->nid . '/group/' . $group->gid . '/manage/settings') ?>">
        <span class="inline-icon pencil-edit-blue-icon"></span>
        <?php print t('Edit Group') ?>
      </a>
    </li>
  </ul>
  <?php print theme('menu_local_tasks') ?>
  <?php } ?>
</div>
Return current item: Teampopor