예제 #1
0
 protected function column_col3()
 {
     $words = $this->getWords();
     if (!$this->isGroupMember() && $this->group->Type == 'NeedInvitation') {
         echo "not public";
     } else {
         $group_id = $this->group->id;
         $wiki = new WikiController();
         if ($this->isGroupMember()) {
             $wiki->editProcess();
         }
         $wikipage = 'Group_' . str_replace(' ', '', ucwords($this->group->Name));
         // for group names with "+"
         $wikipage = str_replace('+', '_', $wikipage);
         // for group names with umlaut etc.
         $wikipage = rawurlencode($wikipage);
         include "templates/groupwiki.column_col3.php";
     }
 }
예제 #2
0
 protected function column_col3()
 {
     $words = $this->getWords();
     if (!$this->isGroupMember() && $this->group->Type == 'NeedInvitation') {
         echo "not public";
     } else {
         $group_id = $this->group->id;
         $memberlist_widget = new GroupMemberlistWidget();
         $memberlist_widget->setGroup($this->group);
         $memberCount = $this->group->getMemberCount();
         $visibleMemberCount = count($this->group->getMembers());
         $Forums = new ForumsController();
         //$forums_widget->setGroup($this->getGroup());
         $wiki = new WikiController();
         if ($this->isGroupMember()) {
             $actionurl = 'group/' . $group_id;
             $wiki->editProcess($actionurl);
         }
         $wikipage = 'Group_' . str_replace(' ', '', ucwords($this->getGroupTitle()));
         include "templates/groupstart.php";
     }
 }
예제 #3
0
<h2><?php 
echo $words->get('PlacesWikiTitle');
?>
</h2>
<?php 
if (APP_User::isBWLoggedIn()) {
    ?>
<p><?php 
    echo $words->get('PlacesWikiHelp');
    ?>
</p><?php 
}
if ($this->wikipage) {
    ?>
<div class="wiki"><?php 
    $wiki = new WikiController();
    $wiki->getWiki($this->wikipage, false);
    ?>
</div>
<?php 
}