'; // shall we use the tabs? if (!empty($settings['use_tabs'])) { echo ' ' . $txt[119] . ' ', $txt['smf201'], ' ', $context['description'], ' '; // the tabs echo ' '; // Show the attachment settings button. echo $context['selected'] == 'attachment_settings' ? ' ' : '' , ' ' , $context['selected'] == 'attachment_settings' ? ' ' : ''; // Show the avatar settings button. echo $context['selected'] == 'avatar_settings' ? ' ' : '' , ' ' , $context['selected'] == 'avatar_settings' ? ' ' : ''; // Show the browse button. echo $context['selected'] == 'browse' ? ' ' : '' , ' ' , $context['selected'] == 'browse' ? ' ' : ''; // Show the maintenance button. echo $context['selected'] == 'maintenance' ? ' ' : '' , ' ' , $context['selected'] == 'maintenance' ? ' ' : ''; // the end of tabs echo '
  ', $txt['attachment_manager_settings'], '  ', $txt['attachment_manager_avatar_settings'], '  ', $txt['attachment_manager_browse'], '  ', $txt['attachment_manager_maintenance'], '  

'; } // if not use the old style else { echo' ' . $txt[119] . ' ', $txt['smf201'], ' '; // Show the attachment settings button. echo ' ', $context['selected'] == 'attachment_settings' ? '> ' : '', '', $txt['attachment_manager_settings'], ' | '; // Show the avatar settings button. echo ' ', $context['selected'] == 'avatar_settings' ? '> ' : '', '', $txt['attachment_manager_avatar_settings'], ' | '; // Show the browse button. echo ' ', $context['selected'] == 'browse' ? '> ' : '', '', $txt['attachment_manager_browse'], ' | '; // Show the maintenance button. echo ' ', $context['selected'] == 'maintenance' ? '> ' : '', '', $txt['attachment_manager_maintenance'], ' ', $context['description'], '
'; } } function template_manage_files_below() { global $context, $settings, $options; } function template_attachments() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
Help ', $txt['attachment_manager_settings'], '

:

:
: ', $txt['smf211'], '
: ', $txt['smf211'], '
: ', $txt['smf211'], '
:

:
:
:
'; } function template_avatars() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
'; if (!$context['gd_installed']) echo ' '; if ($context['can_change_permissions']) { echo ' '; } echo ' '; if ($context['can_change_permissions']) { echo ' '; } echo ' '; if ($context['can_change_permissions']) { echo ' '; } echo '
Help ', $txt['avatar_server_stored'], '
', $txt['avatar_gd_warning'], '
: '; theme_inline_permissions('profile_server_avatar'); echo '
:
:
Help ', $txt['avatar_external'], '
: '; theme_inline_permissions('profile_remote_avatar'); echo '
:
', $txt['avatar_dimension_note'], '
:
', $txt['avatar_dimension_note'], '
Help ', $txt['avatar_upload'], '
: '; theme_inline_permissions('profile_upload_avatar'); echo '
:
', $txt['avatar_dimension_note'], '
:
', $txt['avatar_dimension_note'], '
', $txt['avatar_resize_upload_note'], '
:
', $txt['custom_avatar_dir_desc'], '
:
'; } function template_browse() { global $context, $settings, $options, $scripturl, $txt; echo '
'; // shall we use the tabs? if (!empty($settings['use_tabs'])) { echo '
', $txt['attachment_manager_browse_files'], '
'; echo ' '; echo $context['browse_type'] == 'attachments' ? ' ' : '' , ' ' , $context['browse_type'] == 'attachments' ? ' ' : ''; echo $context['browse_type'] == 'avatars' ? ' ' : '' , ' ' , $context['browse_type'] == 'avatars' ? ' ' : ''; echo $context['browse_type'] == 'thumbs' ? ' ' : '' , ' ' , $context['browse_type'] == 'thumbs' ? ' ' : ''; echo '
  ', $txt['attachment_manager_attachments'], '  ', $txt['attachment_manager_avatars'], '  ', $txt['attachment_manager_thumbs'], '  
'; echo ' '; } // if not, use the old style else { echo ' '; } echo ' '; $alternate = false; foreach ($context['posts'] as $post) { echo ' '; $alternate = !$alternate; } echo '
', $context['browse_type'] == 'attachments' ? '> ' : '', $txt['attachment_manager_attachments'], ' |  ', $context['browse_type'] == 'avatars' ? '> ' : '', $txt['attachment_manager_avatars'], ' |  ', $context['browse_type'] == 'thumbs' ? '> ' : '', $txt['attachment_manager_thumbs'], '
', $txt['smf213'], $context['sort_by'] == 'name' ? ' ' : '', ' ', $txt['smf214'], $context['sort_by'] == 'size' ? ' ' : '', ' ', $context['browse_type'] == 'avatars' ? $txt['attachment_manager_member'] : $txt[279], $context['sort_by'] == 'member' ? ' ' : '', ' ', $context['browse_type'] == 'avatars' ? $txt['attachment_manager_last_active'] : $txt[317], $context['sort_by'] == 'date' ? ' ' : '', '
', $post['attachment']['link'], empty($post['attachment']['width']) || empty($post['attachment']['height']) ? '' : ' ' . $post['attachment']['width'] . 'x' . $post['attachment']['height'] . '', ' ', $post['attachment']['size'], $txt['smf211'], ' ', $post['poster']['link'], ' ', $post['time'], $context['browse_type'] != 'avatars' ? '
' . $txt['smf88'] . ' ' . $post['link'] : '', '
', $txt[139], ': ', $context['page_index'], '
'; } function template_maintenance() { global $context, $settings, $options, $scripturl, $txt; echo '
', $txt['smf203'], '
', $txt['smf204'], ':', $context['num_attachments'], '
', $txt['attachment_manager_total_avatars'], ':', $context['num_avatars'], '
', $txt['smf205'], ':', $context['attachment_total_size'], ' ', $txt['smf211'], ' [', $txt['attachment_manager_repair'], ']
', $txt['smf206'], ':', isset($context['attachment_space']) ? $context['attachment_space'] . ' ' . $txt['smf211'] : $txt['smf215'], '

', $txt['smf207'], '
', $txt[72], ':
', $txt['smf209'], ' ', $txt[579], '
', $txt[72], ':
', $txt['smf210'], ' ', $txt['smf211'], '
', $txt['attachment_manager_avatars_older'], ' ', $txt[579], '
'; } function template_attachment_repair() { global $context, $txt, $scripturl; // If we've completed just let them know! if ($context['completed']) { echo '
', $txt['repair_attachments_complete'], '
', $txt['repair_attachments_complete_desc'], '
'; } // What about if no errors were even found? elseif (!$context['errors_found']) { echo '
', $txt['repair_attachments_complete'], '
', $txt['repair_attachments_no_errors'], '
'; } // Otherwise, I'm sad to say, we have a problem! else { echo '
'; // Loop through each error reporting the status foreach ($context['repair_errors'] as $error => $number) { if (!empty($number)) echo ' '; } echo '
', $txt['repair_attachments'], '
', $txt['repair_attachments_error_desc'], '
'; } } ?>