var $page = null;
var $profile = null;
+ function isReadOnly($args)
+ {
+ return true;
+ }
+
function title()
{
if ($this->page == 1) {
function showContent()
{
- $this->element('a', array('href' => common_local_url('newgroup'),
- 'id' => 'new_group'),
- _('Create a new group'));
+ if (common_logged_in()) {
+ $this->elementStart('p', array('id' => 'new_group'));
+ $this->element('a', array('href' => common_local_url('newgroup'),
+ 'class' => 'more'),
+ _('Create a new group'));
+ $this->elementEnd('p');
+ }
$offset = ($this->page-1) * GROUPS_PER_PAGE;
$limit = GROUPS_PER_PAGE + 1;
$groups->orderBy('created DESC');
$groups->limit($offset, $limit);
+ $cnt = 0;
if ($groups->find()) {
$gl = new GroupList($groups, null, $this);
$cnt = $gl->show();
{
$gbp = new GroupsByPostsSection($this);
$gbp->show();
+ $gbm = new GroupsByMembersSection($this);
+ $gbm->show();
}
}