{isGroupAdmin groupid = $group.group_id group = $group user = $userquery->udetails uid = $userquery->udetails.userid checkowner = 'yes' assign = isGroupAdmin} {if $isGroupAdmin}
Admin Links

{if isSectionEnabled('videos')} {assign var=manage_videos_link value=$cbgroup->group_opt_link($group,'manage_videos')} {if $manage_videos_link}
- {$manage_videos_link}
{/if} {/if} {if isSectionEnabled('channels')} {assign var=manage_members_link value=$cbgroup->group_opt_link($group,'manage_members')} {if $manage_members_link}
- {$manage_members_link}
{/if} {/if} {assign var=edit_group_link value=$cbgroup->group_opt_link($group,'edit_group')} {if $edit_group_link}
- {$edit_group_link}
{/if} {assign var=remove_group_link value=$cbgroup->group_opt_link($group,'remove_group')} {if $remove_group_link}
- {$remove_group_link}
{/if}

{/if}

##### {lang code="Group Members"}

{assign var=users_items_group_page value=config(users_items_group_page)} {assign var=members value=$cbgroup->get_members($group.group_id,"yes",$users_items_group_page)} {if $members}
{foreach from=$members item=member} {include file="$style_dir/blocks/user.html" user=$member block_type='friends'} {/foreach}
{/if}

{lang code="Options"} {assign var=join_link value=$cbgroup->group_opt_link($group,'join'," class='' ")} {if $join_link}
- {$join_link}
{/if} {assign var=invite_link value=$cbgroup->group_opt_link($group,'invite')} {if $invite_link} {* onClick="groupsAjax(event,this);" *}
- {$invite_link}
{/if} {assign var=leave_link value=$cbgroup->group_opt_link($group,'leave')} {if $leave_link}
- {$leave_link}
{/if} {if isSectionEnabled('videos')} {assign var=add_videos_link value=$cbgroup->group_opt_link($group,'add_videos')} {if $add_videos_link}
- {$add_videos_link}
{/if} {/if}