Beispiel #1
0
">
	<fieldset>
		<legend><?php 
echo Lang::txt('PLG_GROUPS_MEMBERS_ASSIGN_ROLE');
?>
</legend>

		<label for="uid">
			<input type="hidden" name="uid" value="<?php 
echo $this->escape($this->uid);
?>
" id="uid" />
			<?php 
$u = User::getInstance($this->uid);
$current_roles = array();
$roles = Components\Groups\Helpers\Permissions::getGroupMemberRoles($u->get('id'), $this->group->get('gidNumber'));
if ($roles) {
    foreach ($roles as $role) {
        $current_roles[] = $role['name'];
    }
}
?>
			<strong><?php 
echo Lang::txt('PLG_GROUPS_MEMBERS_MEMBER');
?>
: </strong> <?php 
echo $this->escape($u->get('name'));
?>
		</label>

		<label for="roles">
Beispiel #2
0
						<li>
							<a class="group-edit" href="<?php 
        echo Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn') . '&task=edit');
        ?>
">
								<?php 
        echo Lang::txt('COM_GROUPS_TOOLBAR_EDIT');
        ?>
							</a>
						</li>
					<?php 
    }
    ?>

					<?php 
    if (!$isManager && Components\Groups\Helpers\Permissions::userHasPermissionForGroupAction($this->group, 'group.pages')) {
        ?>
						<li>
							<a class="group-pages" href="<?php 
        echo Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn') . '&task=pages');
        ?>
">
								<?php 
        echo Lang::txt('COM_GROUPS_TOOLBAR_PAGES');
        ?>
							</a>
						</li>
					<?php 
    }
    ?>
Beispiel #3
0
<h3 class="section-header">
	<?php 
echo Lang::txt('PLG_GROUPS_MEMBERS');
?>
</h3>

<?php 
if ($this->membership_control == 1) {
    ?>
	<?php 
    //if ($this->authorized == 'manager' || $this->authorized == 'admin') {
    ?>
		<ul id="page_options">
			<li>
				<?php 
    if ($this->authorized == 'manager' || $this->authorized == 'admin' || Components\Groups\Helpers\Permissions::userHasPermissionForGroupAction($this->group, 'group.invite')) {
        ?>
				<a class="icon-add add btn" href="<?php 
        echo Route::url('index.php?option=' . $option . '&cn=' . $this->group->get('cn') . '&task=invite');
        ?>
">
					<?php 
        echo Lang::txt('PLG_GROUPS_MEMBERS_INVITE_MEMBERS');
        ?>
				</a>
				<?php 
    }
    ?>
				<?php 
    if ($this->membership_control == 1 && $this->authorized == 'manager') {
        ?>