protected function BeforeContent() { parent::BeforeContent(); $tbsCommunity = new TabStrip("tbsCommunity"); $tbsCommunity->TabPosition = TabContainerTabPosition::Top; $tbsCommunity->Tabs[] = new TabStripTab("tabMembers", "<i class=\"fa fa-users\"></i> <span class=\"Text\">Members (" . User::Count() . ")</span>", "~/community/members", null, $this->Name == "members"); if (System::GetConfigurationValue("Groups.Enabled", false)) { $tbsCommunity->Tabs[] = new TabStripTab("tabGroups", "<i class=\"fa fa-comments\"></i> <span class=\"Text\">Groups (" . Group::Count() . ")</span>", "~/community/groups", null, $this->Name == "groups"); } if (System::GetConfigurationValue("Pages.Enabled", false)) { $tbsCommunity->Tabs[] = new TabStripTab("tabPages", "<i class=\"fa fa-flag\"></i> <span class=\"Text\">Pages (" . Page::Count() . ")</span>", "~/community/pages", null, $this->Name == "pages"); } $tbsCommunity->Render(); /* ?> <table style="width: 100%"> <tr> <td style="width: 128px; vertical-align: top;"> <?php // $actionList = new PsychaticaActionList(); // $actionList->Items = array // ( // new PsychaticaActionListItem("~/community/members", "Members (" . User::Count() . ")"), // new PsychaticaActionListItem("~/community/groups", "Groups (" . User::Count() . ")"), // new PsychaticaActionListItem("~/community/pages", "Pages (" . User::Count() . ")") // ); // $actionList->Items[1]->Selected = true; ?> <div class="ActionList"> <?php // if (System::$Configuration["Members.Enabled"]) { if ($pagename == "members") { if ($outline) { ?> <a class="Selected" href="<?php echo(System::ExpandRelativePath("~/community/members")); ?>"> <?php } else { ?> <span class="Selected"> <?php } } else { ?><a href="<?php echo(System::ExpandRelativePath("~/community/members")); ?>"> <?php } ?> Members (<?php echo(User::Count()); ?>) <?php if ($pagename == "members" && !$outline) { ?> </span> <?php } else { ?> </a> <?php } // } if (System::$Configuration["Groups.Enabled"]) { if ($pagename == "groups") { if ($outline) { ?> <a class="Selected" href="<?php echo(System::ExpandRelativePath("~/community/groups")); ?>"> <?php } else { ?> <span class="Selected"> <?php } } else { ?><a href="<?php echo(System::ExpandRelativePath("~/community/groups")); ?>"> <?php } ?> Groups (<?php echo(Group::Count()); ?>) <?php if ($pagename == "groups" && !$outline) { ?> </span> <?php } else { ?> </a> <?php } } if (System::$Configuration["Pages.Enabled"]) { if ($pagename == "pages") { if ($outline) { ?> <a class="Selected" href="<?php echo(System::ExpandRelativePath("~/community/pages")); ?>"> <?php } else { ?> <span class="Selected"> <?php } } else { ?><a href="<?php echo(System::ExpandRelativePath("~/community/pages")); ?>"> <?php } ?> Pages (<?php echo(Page::Count()); ?>) <?php if ($pagename == "pages" && !$outline) { ?> </span> <?php } else { ?> </a> <?php } } if (System::$Configuration["Forums.Enabled"]) { if ($pagename == "forums") { if ($outline) { ?> <a class="Selected" href="<?php echo(System::ExpandRelativePath("~/community/forums")); ?>"> <?php } else { ?> <span class="Selected"> <?php } } else { ?><a href="<?php echo(System::ExpandRelativePath("~/community/forums")); ?>"> <?php } ?> Forums (<?php echo(Forum::Count()); ?>) <?php if ($pagename == "forums" && !$outline) { ?> </span> <?php } else { ?> </a> <?php } } ?> </div> </td> <td> <?php */ }