', $txt['managesubaccounts'], !$context['user']['is_owner'] ? ' - "' . $context['member']['name'] . '"' : '', '
';
// Have we some description?
if (!empty($context['page_desc']))
{
echo '
', $context['page_desc'];
echo '
', $context['can_delete'] ? '- ' . $txt['delete'] . '
' : '', '
', $context['can_merge'] ? '- ' . $txt['button_merge'] . '
' : '', '
', $context['can_split'] ? '- ' . $txt['button_split'] . '
' : '', '
', $context['can_reassign'] ? '- ' . $txt['button_parent'] . '
' : '', '
', $context['can_create'] ? '- ' . $txt['button_share'] . '
' : '', '
';
echo '
';
}
if (empty($context['subaccounts']))
echo '
', $txt['current_subaccounts_none'], '
';
else
{
echo '
';
foreach($context['subaccounts'] as $account)
{
echo '
-
- ', $account['name'], '
';
// Now their group
echo '
- ', $account['group'], '
';
if (!empty($account['stars']))
echo '
- ', $account['stars'], '
';
if (!isset($context['disabled_fields']['posts']))
echo '
- ', $account['posts'], ' ', $txt['posts'], '
';
echo '
- ', $txt['personal_messages'], ': ', !empty($account['messages']['unread']) ? $account['messages']['unread'] . '/' : '', $account['messages']['total'], '
';
// Don't show an icon if they haven't specified a website.
if ($settings['show_profile_buttons'])
echo '
-
';
// This shows the popular messaging icons.
echo '
', !empty($account['chatters']['icq']) ? '- ' . $account['chatters']['icq'] . '
' : '', '
', !empty($account['chatters']['msn']) ? '- ' . $account['chatters']['msn'] . '
' : '', '
', !empty($account['chatters']['aim']) ? '- ' . $account['chatters']['aim'] . '
' : '', '
', !empty($account['chatters']['yim']) ? '- ' . $account['chatters']['yim'] . '
' : '', '
';
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
echo '
- ', ($settings['use_image_buttons'] ? '' : $txt['view_profile']), '
';
// Don't show an icon if they haven't specified a website.
if ($account['website']['url'] != '' && !isset($context['disabled_fields']['website']))
echo '
- ', ($settings['use_image_buttons'] ? '' : $txt['www']), '
';
}
if ($settings['show_profile_buttons'])
echo '
';
echo '
-
', $account['permissions']['can_delete'] ? ' ' : '', '
', $account['permissions']['can_merge'] ? ' ' : '', '
', $account['permissions']['can_split'] ? ' ' : '', '
', $account['permissions']['can_reassign'] ? ' ' : '', '
', $account['permissions']['can_share'] ? ' ' : '', '
';
echo '
';
}
echo '
';
}
if(!empty($context['can_create']))
echo '
';
}
function template_manage_subaccounts_create()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
// The main header!
echo '
', $txt['managesubaccounts'], !$context['user']['is_owner'] ? ' - "' . $context['member']['name'] . '"' : '', '
', $txt['create_subaccount_desc'], '
';
}
function template_manage_subaccounts_merge()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
// The main header!
echo '
', $txt['managesubaccounts'], !$context['user']['is_owner'] ? ' - "' . $context['member']['name'] . '"' : '', '
', $context['page_desc'], '
';
echo '
';
}
function template_manage_subaccounts_reassign()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
// The main header!
echo '
', $txt['managesubaccounts'], !$context['user']['is_owner'] ? ' - "' . $context['member']['name'] . '"' : '', '
', $context['page_desc'], '
';
}
function template_manage_subaccounts_split()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
// The main header!
echo '
', $txt['managesubaccounts'], !$context['user']['is_owner'] ? ' - "' . $context['member']['name'] . '"' : '', '
', $context['page_desc'], '
';
}
?>