';
-
- /* Each category in categories is made up of:
- id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
- new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
- and boards. (see below.) */
- foreach ($context['categories'] as $category)
- {
- // If theres no parent boards we can see, avoid showing an empty category (unless its collapsed)
- if (empty($category['boards']) && !$category['is_collapsed'])
- continue;
-
- echo '
-
-
-
-
-
';
-
- // If this category even can collapse, show a link to collapse it.
- if ($category['can_collapse'])
- echo '
- ', $category['collapse_image'], '';
-
- if (!$context['user']['is_guest'] && !empty($category['show_unread']))
- echo '
- ', $txt['view_unread_category'], '';
-
- echo '
- ', $category['link'], '
-
-
-
-
- ';
-
- // Assuming the category hasn't been collapsed...
- if (!$category['is_collapsed'])
- {
-
- echo '
- ';
- /* Each board in each category's boards has:
- new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
- children (see below.), link_children (easier to use.), children_new (are they new?),
- topics (# of), posts (# of), link, href, and last_post. (see below.) */
- foreach ($category['boards'] as $board)
- {
- echo '
-
- ', $board['name'], '';
-
- // Has it outstanding posts for approval?
- if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
- echo '
- (!)';
-
- echo '
-
-
', $board['description'] , '
';
-
- // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
- if (!empty($board['children']))
- {
- // Sort the links into an array with new boards bold so it can be imploded.
- $children = array();
- /* Each child in each board's children has:
- id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
- foreach ($board['children'] as $child)
- {
- if (!$child['is_redirect'])
- $child['link'] = '' . $child['name'] . ($child['new'] ? '' : '') . '';
- else
- $child['link'] = '' . $child['name'] . '';
-
- // Has it posts awaiting approval?
- if ($child['can_approve_posts'] && ($child['unapproved_posts'] || $child['unapproved_topics']))
- $child['link'] .= ' (!)';
-
- $children[] = $child['new'] ? '' . $child['link'] . '' : $child['link'];
- }
- echo '
-
';
- }
-
- // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
- if (!empty($board['moderators']))
- echo '
-
';
-
- /* The board's and children's 'last_post's have:
- time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
- link, href, subject, start (where they should go for the first unread post.),
- and member. (which has id, name, link, href, username in it.) */
- if (!empty($board['last_post']['id']))
- echo '
-
';
-
- // This is the "Recent Posts" bar.
- if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
- {
- echo '
-
';
-
- // Only show one post.
- if ($settings['number_recent_posts'] == 1)
- {
- // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
- echo '
- ', $txt['recent_posts'], '
-
';
- }
- // Show lots of posts.
- elseif (!empty($context['latest_posts']))
- {
- echo '
-
';
-
- /* Each post in latest_posts has:
- board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
- subject, short_subject (shortened with...), time, link, and href. */
- foreach ($context['latest_posts'] as $post)
- echo '
-
';
-
- // If they are logged in, but statistical information is off... show a personal message bar.
- if ($context['user']['is_logged'] && !$settings['show_stats_index'])
- {
- echo '
-
';
-
- // Info center collapse object.
- echo '
- ';
-}
-?>
diff --git a/config/themes/Redsy/Display.template.php b/config/themes/Redsy/Display.template.php
deleted file mode 100755
index 11b48e1..0000000
--- a/config/themes/Redsy/Display.template.php
+++ /dev/null
@@ -1,1041 +0,0 @@
-';
-
-
- // This is a major hack to display a background image on a particular board
- // ideally boards would have a background image property or css style overrides in the database
- if($context['current_board'] == 1)
- {
- echo '
-
- ';
- }
-
- // Let them know, if their report was a success!
- if ($context['report_sent'])
- {
- echo '
-
- ', $txt['report_sent'], '
-
';
- }
-
- // Show the anchor for the top and for the first message. If the first message is new, say so.
- echo '
-
- ', $context['first_new_message'] ? '' : '';
-
- // Is this topic also a poll?
- if ($context['is_poll'])
- {
- echo '
-
-
-
- ', $txt['poll'], '
-
-
-
-
-
-
- ', $context['poll']['question'], '
-
';
-
- // Are they not allowed to vote but allowed to view the options?
- if ($context['poll']['show_results'] || !$context['allow_vote'])
- {
- echo '
-
';
-
- // Show each option with its corresponding percentage bar.
- foreach ($context['poll']['options'] as $option)
- {
- echo '
-
';
- }
- // They are allowed to vote! Go to it!
- else
- {
- echo '
- ';
- }
-
- // Is the clock ticking?
- if (!empty($context['poll']['expire_time']))
- echo '
-
';
- }
- else
- echo '
- ';
-
- if ($context['show_spellchecking'])
- echo '
-
- ';
-
- echo '
-
- ';
-}
-
-?>
\ No newline at end of file
diff --git a/config/themes/Redsy/GenericMenu.template.php b/config/themes/Redsy/GenericMenu.template.php
deleted file mode 100755
index 5c9d133..0000000
--- a/config/themes/Redsy/GenericMenu.template.php
+++ /dev/null
@@ -1,360 +0,0 @@
-
-
';
-
- // What one are we rendering?
- $context['cur_menu_id'] = isset($context['cur_menu_id']) ? $context['cur_menu_id'] + 1 : 1;
- $menu_context = &$context['menu_data_' . $context['cur_menu_id']];
-
- // For every section that appears on the sidebar...
- $firstSection = true;
- foreach ($menu_context['sections'] as $section)
- {
- // Show the section header - and pump up the line spacing for readability.
- echo '
-
';
-
- // For every area of this section show a link to that area (bold if it's currently selected.)
- foreach ($section['areas'] as $i => $area)
- {
- // Not supposed to be printed?
- if (empty($area['label']))
- continue;
-
- echo '
-
';
-
- // Is this the current area, or just some area?
- if ($i == $menu_context['current_area'])
- {
- echo '
- ', $area['label'], '';
-
- if (empty($context['tabs']))
- $context['tabs'] = isset($area['subsections']) ? $area['subsections'] : array();
- }
- else
- echo '
- ', $area['label'], '';
-
- echo '
-
';
- }
-
- echo '
-
-
';
-
- $firstSection = false;
- }
-
- // This is where the actual "main content" area for the admin section starts.
- echo '
-
-
';
-
- // If there are any "tabs" setup, this is the place to shown them.
- if (!empty($context['tabs']) && empty($context['force_disable_tabs']))
- template_generic_menu_tabs($menu_context);
-}
-
-// Part of the sidebar layer - closes off the main bit.
-function template_generic_menu_sidebar_below()
-{
- global $context, $settings, $options;
-
- echo '
-
- ';
-}
-
-// This contains the html for the side bar of the admin center, which is used for all admin pages.
-function template_generic_menu_dropdown_above()
-{
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
-
- // Which menu are we rendering?
- $context['cur_menu_id'] = isset($context['cur_menu_id']) ? $context['cur_menu_id'] + 1 : 1;
- $menu_context = &$context['menu_data_' . $context['cur_menu_id']];
-
- if (!empty($menu_context['can_toggle_drop_down']))
- echo '
- ';
-
- echo '
-
-
';
-
- // Main areas first.
- foreach ($menu_context['sections'] as $section)
- {
- echo '
-
';
-
- // For every area of this section show a link to that area (bold if it's currently selected.)
- $additional_items = 0;
- foreach ($section['areas'] as $i => $area)
- {
- // Not supposed to be printed?
- if (empty($area['label']))
- continue;
-
- echo '
-
';
-
- // Is this the current area, or just some area?
- if ($i == $menu_context['current_area'])
- {
- echo '
- ', $area['icon'], $area['label'], '';
-
- if (empty($context['tabs']))
- $context['tabs'] = isset($area['subsections']) ? $area['subsections'] : array();
- }
- else
- echo '
- ', $area['icon'], $area['label'], '';
-
- // Is there any subsections?
- $additional_items_sub = 0;
- if (!empty($area['subsections']))
- {
- echo '
-
';
-
- // This is the main table - we need it so we can keep the content to the right of it.
- echo '
-
';
-
- // It's possible that some pages have their own tabs they wanna force...
- if (!empty($context['tabs']))
- template_generic_menu_tabs($menu_context);
-}
-
-// Part of the admin layer - used with admin_above to close the table started in it.
-function template_generic_menu_dropdown_below()
-{
- global $context, $settings, $options;
-
- echo '
-
';
-}
-
-// Some code for showing a tabbed view.
-function template_generic_menu_tabs(&$menu_context)
-{
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
-
- // Handy shortcut.
- $tab_context = &$menu_context['tab_data'];
-
- echo '
-
-
';
-
- // Exactly how many tabs do we have?
- foreach ($context['tabs'] as $id => $tab)
- {
- // Can this not be accessed?
- if (!empty($tab['disabled']))
- {
- $tab_context['tabs'][$id]['disabled'] = true;
- continue;
- }
-
- // Did this not even exist - or do we not have a label?
- if (!isset($tab_context['tabs'][$id]))
- $tab_context['tabs'][$id] = array('label' => $tab['label']);
- elseif (!isset($tab_context['tabs'][$id]['label']))
- $tab_context['tabs'][$id]['label'] = $tab['label'];
-
- // Has a custom URL defined in the main admin structure?
- if (isset($tab['url']) && !isset($tab_context['tabs'][$id]['url']))
- $tab_context['tabs'][$id]['url'] = $tab['url'];
- // Any additional paramaters for the url?
- if (isset($tab['add_params']) && !isset($tab_context['tabs'][$id]['add_params']))
- $tab_context['tabs'][$id]['add_params'] = $tab['add_params'];
- // Has it been deemed selected?
- if (!empty($tab['is_selected']))
- $tab_context['tabs'][$id]['is_selected'] = true;
- // Does it have its own help?
- if (!empty($tab['help']))
- $tab_context['tabs'][$id]['help'] = $tab['help'];
- // Is this the last one?
- if (!empty($tab['is_last']) && !isset($tab_context['override_last']))
- $tab_context['tabs'][$id]['is_last'] = true;
- }
-
- // Find the selected tab
- foreach ($tab_context['tabs'] as $sa => $tab)
- {
- if (!empty($tab['is_selected']) || (isset($menu_context['current_subsection']) && $menu_context['current_subsection'] == $sa))
- {
- $selected_tab = $tab;
- $tab_context['tabs'][$sa]['is_selected'] = true;
- }
- }
-
- // Show an icon and/or a help item?
- if (!empty($selected_tab['icon']) || !empty($tab_context['icon']) || !empty($selected_tab['help']) || !empty($tab_context['help']))
- {
- echo '
- ';
-
- if (!empty($selected_tab['icon']) || !empty($tab_context['icon']))
- echo '';
-
- if (!empty($selected_tab['help']) || !empty($tab_context['help']))
- echo '';
-
- echo $tab_context['title'], '
- ';
- }
- else
- {
- echo '
- ', $tab_context['title'];
- }
-
- echo '
-
-
';
-
- // Shall we use the tabs?
- if (!empty($settings['use_tabs']))
- {
- echo '
-
';
-
- // Print out all the items in this tab.
- foreach ($tab_context['tabs'] as $sa => $tab)
- {
- if (!empty($tab['disabled']))
- continue;
-
- if (!empty($tab['is_selected']))
- {
- echo '
-
- ', $board['name'], '';
-
- // Has it outstanding posts for approval?
- if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
- echo '
- (!)';
-
- echo '
-
-
', $board['description'] , '
';
-
- // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
- if (!empty($board['moderators']))
- echo '
-
';
-
- // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
- if (!empty($board['children']))
- {
- // Sort the links into an array with new boards bold so it can be imploded.
- $children = array();
- /* Each child in each board's children has:
- id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
- foreach ($board['children'] as $child)
- {
- if (!$child['is_redirect'])
- $child['link'] = '' . $child['name'] . ($child['new'] ? '' : '') . '';
- else
- $child['link'] = '' . $child['name'] . '';
-
- // Has it posts awaiting approval?
- if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
- $child['link'] .= ' (!)';
-
- $children[] = $child['new'] ? '' . $child['link'] . '' : $child['link'];
- }
- echo '
-
';
-
- /* The board's and children's 'last_post's have:
- time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
- link, href, subject, start (where they should go for the first unread post.),
- and member. (which has id, name, link, href, username in it.) */
- if (!empty($board['last_post']['id']))
- echo '
-
';
-
- // Message sent? Show a small indication.
- if (isset($context['pm_sent']))
- echo '
-
- ', $txt['pm_sent'], '
-
';
-}
-
-// Just the end of the index bar, nothing special.
-function template_pm_below()
-{
- global $context, $settings, $options;
-
- echo '
- ';
-}
-
-function template_folder()
-{
- global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
- // The every helpful javascript!
- echo '
- ';
-
- echo '
-';
-}
-
-// Just list all the personal message subjects - to make templates easier.
-function template_subject_list()
-{
- global $context, $options, $settings, $modSettings, $txt, $scripturl;
-
- echo '
-
', $txt['from'], ': ', $message['member']['link'], ', ', $txt['to'], ': ';
-
- // Show the recipients.
- // !!! This doesn't deal with the sent item searching quite right for bcc.
- if (!empty($message['recipients']['to']))
- echo implode(', ', $message['recipients']['to']);
- // Otherwise, we're just going to say "some people"...
- elseif ($context['folder'] != 'sent')
- echo '(', $txt['pm_undisclosed_recipients'], ')';
-
- echo '
-
-
-
-
-
- ', $message['body'], '
-
';
-
- if ($context['can_send_pm'])
- {
- $quote_button = create_button('quote.gif', 'reply_quote', 'reply_quote', 'align="middle"');
- $reply_button = create_button('im_reply.gif', 'reply', 'reply', 'align="middle"');
- // You can only reply if they are not a guest...
- if (!$message['member']['is_guest'])
- echo '
- ', $quote_button , '', $context['menu_separator'], '
- ', $reply_button , ' ', $context['menu_separator'];
- // This is for "forwarding" - even if the member is gone.
- else
- echo '
- ', $quote_button , '', $context['menu_separator'];
- }
-
- echo '
-
-
-
-
';
- }
- // Otherwise just a simple list!
- else
- {
- // !!! No context at all of the search?
- echo '
-
-
', $message['time'], '
-
', $message['link'], '
-
', $message['member']['link'], '
-
';
- }
-
- $alternate = !$alternate;
- }
-
- // Finish off the page...
- if (empty($context['search_params']['show_complete']) && !empty($context['personal_messages']))
- echo '
-
-
';
-
- // No results?
- if (empty($context['personal_messages']))
- echo '
-
';
-
-}
-
-function template_send()
-{
- global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
- // Show which messages were sent successfully and which failed.
- if (!empty($context['send_log']))
- {
- echo '
-
-
', $txt['pm_send_report'], '
-
-
-
-
';
- if (!empty($context['send_log']['sent']))
- foreach ($context['send_log']['sent'] as $log_entry)
- echo '', $log_entry, ' ';
- if (!empty($context['send_log']['failed']))
- foreach ($context['send_log']['failed'] as $log_entry)
- echo '', $log_entry, ' ';
- echo '
-
-
-
- ';
- }
-
- // Show the preview of the personal message.
- if (isset($context['preview_message']))
- echo '
-
-
', $context['preview_subject'], '
-
-
-
-
- ', $context['preview_message'], '
-
-
-
- ';
-
- // Main message editing box.
- echo '
-
-
- ', $txt['new_message'], '
-
-
';
-
- echo '
- ';
-
- // Show the message you're replying to.
- if ($context['reply'])
- echo '
-
-
-
';
-}
-
-// This template asks the user what messages they want to prune.
-function template_prune()
-{
- global $context, $settings, $options, $scripturl, $txt;
-
- echo '
- ';
-}
-
-// Here we allow the user to setup labels, remove labels and change rules for labels (i.e, do quite a bit)
-function template_labels()
-{
- global $context, $settings, $options, $scripturl, $txt;
-
- echo '
-
- ';
-}
-
-// Template for reporting a personal message.
-function template_report_message()
-{
- global $context, $settings, $options, $txt, $scripturl;
-
- echo '
- ';
-}
-
-// Little template just to say "Yep, it's been submitted"
-function template_report_message_complete()
-{
- global $context, $settings, $options, $txt, $scripturl;
-
- echo '
-
';
-
- // include a hidden field to trigger the validate function?
- echo'';
- // pass current inventory to js
- echo'';
-
- // create the fish canvas
- echo '
-
- ', $txt['fish_try_me'], '
-
-
-
';
-
- // load the avatar
- echo '';
-
- // display only bodies first
- echo '
';
-
- // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
- echo '
-
-
-
';
-}
-
-function template_html_below()
-{
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
-
- echo '
-';
-}
-
-// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
-function theme_linktree($force_show = false)
-{
- global $context, $settings, $options, $shown_linktree;
-
- // If linktree is empty, just return - also allow an override.
- if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
- return;
-
- echo '
- ';
-
- // Each tree item has a URL and name. Some may have extra_before and extra_after.
- foreach ($context['linktree'] as $link_num => $tree)
- {
- echo '
-
';
-
- // Show the link, including a URL if it should have one.
- echo $settings['linktree_link'] && isset($tree['url']) ? '
- ' . $tree['name'] . '' : '' . $tree['name'] . '';
-
- echo '
-
';
- }
- echo '
- ';
-
- $shown_linktree = true;
-}
-
-// Show the menu up top. Something like [home] [help] [profile] [logout]...
-function template_menu()
-{
- global $context, $settings, $options, $scripturl, $txt;
-
- echo '
-
-
- ';
- }
-
- /* Each category in categories is made up of:
- id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
- new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
- and boards. (see below.) */
- foreach ($context['categories'] as $category)
- {
- // If theres no parent boards we can see, avoid showing an empty category (unless its collapsed)
- if (empty($category['boards']) && !$category['is_collapsed'])
- continue;
-
- echo '
-
-
';
-
- if (!$context['user']['is_guest'] && !empty($category['show_unread']))
- echo '
- ', $txt['view_unread_category'], '';
-
- // If this category even can collapse, show a link to collapse it.
- if ($category['can_collapse'])
- echo '
- ', $category['collapse_image'], ' ';
-
- echo $category['link'];
-
- echo '
-
';
-
- // Assuming the category hasn't been collapsed...
- if (!$category['is_collapsed'])
- {
- echo '
-
';
-
- /* Each board in each category's boards has:
- new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
- children (see below.), link_children (easier to use.), children_new (are they new?),
- topics (# of), posts (# of), link, href, and last_post. (see below.) */
- foreach ($category['boards'] as $board)
- {
- echo '
-
', $board['name'], '';
-
- // Has it outstanding posts for approval?
- if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
- echo '
- (!)';
-
- echo '
-
-
', $board['description'] , '
';
-
- // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
- if (!empty($board['moderators']))
- echo '
-
';
-
- /* The board's and children's 'last_post's have:
- time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
- link, href, subject, start (where they should go for the first unread post.),
- and member. (which has id, name, link, href, username in it.) */
- if (!empty($board['last_post']['id']))
- echo '
- ', $txt['last_post'], ' ', $txt['by'], ' ', $board['last_post']['member']['link'] , '
- ', $txt['in'], ' ', $board['last_post']['link'], '
- ', $txt['on'], ' ', $board['last_post']['time'];
- echo '
-
-
';
-
- // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
- if (!empty($board['children']))
- {
- // Sort the links into an array with new boards bold so it can be imploded.
- $children = array();
- /* Each child in each board's children has:
- id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
- foreach ($board['children'] as $child)
- {
- if (!$child['is_redirect'])
- $child['link'] = '' . $child['name'] . '';
- else
- $child['link'] = '' . $child['name'] . '';
-
- // Has it posts awaiting approval?
- if ($child['can_approve_posts'] && ($child['unapproved_posts'] || $child['unapproved_topics']))
- $child['link'] .= ' (!)';
-
- $children[] = $child['new'] ? '' . $child['link'] . '' : $child['link'];
- }
- echo '
-
';
-
- // This is the "Recent Posts" bar.
- if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
- {
- echo '
-
';
-
- // Only show one post.
- if ($settings['number_recent_posts'] == 1)
- {
- // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
- echo '
- ', $txt['recent_posts'], '
-
';
- }
- // Show lots of posts.
- elseif (!empty($context['latest_posts']))
- {
- echo '
-
';
-
- /* Each post in latest_posts has:
- board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
- subject, short_subject (shortened with...), time, link, and href. */
- foreach ($context['latest_posts'] as $post)
- echo '
-
';
-
- // If they are logged in, but statistical information is off... show a personal message bar.
- if ($context['user']['is_logged'] && !$settings['show_stats_index'])
- {
- echo '
-
';
- }
-
- // Info center collapse object.
- echo '
- ';
-
- echo '
-
-
';
-}
-?>
\ No newline at end of file
diff --git a/config/themes/core/Display.template.php b/config/themes/core/Display.template.php
deleted file mode 100755
index f42af46..0000000
--- a/config/themes/core/Display.template.php
+++ /dev/null
@@ -1,843 +0,0 @@
-
- ', $txt['report_sent'], '
-';
- }
-
- // Show the anchor for the top and for the first message. If the first message is new, say so.
- echo '
-
-', $context['first_new_message'] ? '' : '';
-
- // Is this topic also a poll?
- if ($context['is_poll'])
- {
- echo '
-
-
- ', $txt['poll'], '
-
-
- ', $context['poll']['question'], '
-
-
';
-
- // Are they not allowed to vote but allowed to view the options?
- if ($context['poll']['show_results'] || !$context['allow_vote'])
- {
- echo '
-
';
-
- // Show each option with its corresponding percentage bar.
- foreach ($context['poll']['options'] as $option)
- echo '
-
';
-
- }
- // They are allowed to vote! Go to it!
- else
- {
- echo '
- ';
- }
-
- // Is the clock ticking?
- if (!empty($context['poll']['expire_time']))
- echo '
-
';
- }
-
- if ($context['show_spellchecking'])
- echo '
-
-';
-
- echo '
-
-';
-}
-
-?>
\ No newline at end of file
diff --git a/config/themes/core/GenericMenu.template.php b/config/themes/core/GenericMenu.template.php
deleted file mode 100755
index bee7ca0..0000000
--- a/config/themes/core/GenericMenu.template.php
+++ /dev/null
@@ -1,375 +0,0 @@
-
-
- ';
-
- // What one are we rendering?
- $context['cur_menu_id'] = isset($context['cur_menu_id']) ? $context['cur_menu_id'] + 1 : 1;
- $menu_context = &$context['menu_data_' . $context['cur_menu_id']];
-
- // For every section that appears on the sidebar...
- $firstSection = true;
- foreach ($menu_context['sections'] as $section)
- {
- // Show the section header - and pump up the line spacing for readability.
- echo '
-
';
-
- // For every area of this section show a link to that area (bold if it's currently selected.)
- foreach ($section['areas'] as $i => $area)
- {
- // Not supposed to be printed?
- if (empty($area['label']))
- continue;
-
- echo '
-
';
-
- // Is this the current area, or just some area?
- if ($i == $menu_context['current_area'])
- {
- echo '
- ', $area['label'], '';
-
- if (empty($context['tabs']))
- $context['tabs'] = isset($area['subsections']) ? $area['subsections'] : array();
- }
- else
- echo '
- ', $area['label'], '';
-
- echo '
-
';
- }
-
- echo '
-
-
';
-
- $firstSection = false;
- }
-
- // This is where the actual "main content" area for the admin section starts.
- echo '
-
-
';
-
- // If there are any "tabs" setup, this is the place to shown them.
- //!!! Clean this up!
- if (!empty($context['tabs']) && empty($context['force_disable_tabs']))
- template_generic_menu_tabs($menu_context);
-}
-
-// Part of the sidebar layer - closes off the main bit.
-function template_generic_menu_sidebar_below()
-{
- global $context, $settings, $options;
-
- echo '
-
- ';
-}
-
-// This contains the html for the side bar of the admin center, which is used for all admin pages.
-function template_generic_menu_dropdown_above()
-{
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
-
- // Which menu are we rendering?
- $context['cur_menu_id'] = isset($context['cur_menu_id']) ? $context['cur_menu_id'] + 1 : 1;
- $menu_context = &$context['menu_data_' . $context['cur_menu_id']];
-
- if (!empty($menu_context['can_toggle_drop_down']))
- echo '
-
-
-
';
-
- echo '
-
-
';
-
- // Main areas first.
- $s = 0;
- foreach ($menu_context['sections'] as $section)
- {
- $s ++;
- $is_last = $s == count($menu_context['sections']);
-
- if ($section['id'] == $menu_context['current_section'])
- {
- echo '
-
', $section['title'] , '
-
';
- }
- else
- echo '
-
', $section['title'] , '
-
';
-
- // For every area of this section show a link to that area (bold if it's currently selected.)
- foreach ($section['areas'] as $i => $area)
- {
- // Not supposed to be printed?
- if (empty($area['label']))
- continue;
-
- echo '
-
';
-
- // Is this the current area, or just some area?
- if ($i == $menu_context['current_area'])
- {
- echo '
- ', $area['icon'] , $area['label'], '';
-
- if (empty($context['tabs']))
- $context['tabs'] = isset($area['subsections']) ? $area['subsections'] : array();
- }
- else
- echo '
- ', $area['icon'], $area['label'] , '';
-
- // Is there any subsections?
- if (!empty($area['subsections']))
- {
- echo '
-
';
-
- // This is the main table - we need it so we can keep the content to the right of it.
- echo '
-
';
-
- // It's possible that some pages have their own tabs they wanna force...
- if (!empty($context['tabs']))
- template_generic_menu_tabs($menu_context);
-}
-
-// Part of the admin layer - used with admin_above to close the table started in it.
-function template_generic_menu_dropdown_below()
-{
- global $context, $settings, $options;
-
- echo '
-
';
-}
-
-// Some code for showing a tabbed view.
-function template_generic_menu_tabs(&$menu_context)
-{
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
-
- // Handy shortcut.
- $tab_context = &$menu_context['tab_data'];
-
- // Right to left tabs should be in reverse order.
- if ($context['right_to_left'])
- $tab_context['tabs'] = array_reverse($tab_context['tabs'], true);
-
- // Exactly how many tabs do we have?
- foreach ($context['tabs'] as $id => $tab)
- {
- // Can this not be accessed?
- if (!empty($tab['disabled']))
- {
- $tab_context['tabs'][$id]['disabled'] = true;
- continue;
- }
-
- // Did this not even exist - or do we not have a label?
- if (!isset($tab_context['tabs'][$id]))
- $tab_context['tabs'][$id] = array('label' => $tab['label']);
- elseif (!isset($tab_context['tabs'][$id]['label']))
- $tab_context['tabs'][$id]['label'] = $tab['label'];
-
- // Has a custom URL defined in the main admin structure?
- if (isset($tab['url']) && !isset($tab_context['tabs'][$id]['url']))
- $tab_context['tabs'][$id]['url'] = $tab['url'];
- // Any additional paramaters for the url?
- if (isset($tab['add_params']) && !isset($tab_context['tabs'][$id]['add_params']))
- $tab_context['tabs'][$id]['add_params'] = $tab['add_params'];
- // Has it been deemed selected?
- if (!empty($tab['is_selected']))
- $tab_context['tabs'][$id]['is_selected'] = true;
- // Does it have its own help?
- if (!empty($tab['help']))
- $tab_context['tabs'][$id]['help'] = $tab['help'];
- // Is this the last one?
- if (!empty($tab['is_last']) && !isset($tab_context['override_last']))
- $tab_context['tabs'][$id]['is_last'] = true;
- }
-
- // Find the selected tab
- foreach ($tab_context['tabs'] as $sa => $tab)
- if (!empty($tab['is_selected']) || (isset($menu_context['current_subsection']) && $menu_context['current_subsection'] == $sa))
- {
- $selected_tab = $tab;
- $tab_context['tabs'][$sa]['is_selected'] = true;
- }
-
- echo '
-
-
';
-
- // Show a help item?
- if (!empty($selected_tab['help']) || !empty($tab_context['help']))
- echo '
- ';
-
- echo '
- ', $tab_context['title'], '
-
';
-
- // Shall we use the tabs?
- if (!empty($settings['use_tabs']))
- {
- echo '
-
';
-
- // Print out all the items in this tab.
- foreach ($tab_context['tabs'] as $sa => $tab)
- {
- if (!empty($tab['disabled']))
- continue;
-
- if (!empty($tab['is_selected']))
- {
- echo '
-
';
-
- // Display each of the column headers of the table.
- foreach ($context['columns'] as $column)
- {
- // We're not able (through the template) to sort the search results right now...
- if (isset($context['old_search']))
- echo '
-
- ', $column['label'], '
';
- // This is a selected column, so underline it or some such.
- elseif ($column['selected'])
- echo '
-
';
- // This is just some column... show the link and be done with it.
- else
- echo '
-
- ', $column['link'], '
';
- }
- echo '
-
-
- ';
-
- // Assuming there are members loop through each one displaying their data.
- if (!empty($context['members']))
- {
- foreach ($context['members'] as $member)
- {
- echo '
-
';
-
- if (!isset($context['disabled_fields']['posts']))
- echo '
-
', $member['posts'], '
-
- ', $member['posts'] > 0 ? '' : '', '
-
';
-
- echo '
-
';
- }
- }
- // No members?
- else
- echo '
-
-
', $txt['search_no_results'], '
-
';
-
- // Show the page numbers again. (makes 'em easier to find!)
- echo '
-
-
-
';
-
- echo '
-
-
', $txt['pages'], ': ', $context['page_index'], '
';
-
- // If it is displaying the result of a search show a "search again" link to edit their criteria.
- if (isset($context['old_search']))
- echo '
-
', $board['name'], '';
-
- // Has it outstanding posts for approval?
- if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
- echo '
- (!)';
-
- echo '
-
-
', $board['description'] , '
';
-
- // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
- if (!empty($board['moderators']))
- echo '
-
';
-
- /* The board's and children's 'last_post's have:
- time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
- link, href, subject, start (where they should go for the first unread post.),
- and member. (which has id, name, link, href, username in it.) */
- if (!empty($board['last_post']['id']))
- echo '
- ', $txt['last_post'], ' ', $txt['by'], ' ', $board['last_post']['member']['link'] , '
- ', $txt['in'], ' ', $board['last_post']['link'], '
- ', $txt['on'], ' ', $board['last_post']['time'];
- echo '
-
-
';
-
- // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
- if (!empty($board['children']))
- {
- // Sort the links into an array with new boards bold so it can be imploded.
- $children = array();
- /* Each child in each board's children has:
- id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
- foreach ($board['children'] as $child)
- {
- if (!$child['is_redirect'])
- $child['link'] = '' . $child['name'] . '';
- else
- $child['link'] = '' . $child['name'] . '';
-
- // Has it posts awaiting approval?
- if ($child['can_approve_posts'] && ($child['unapproved_posts'] || $child['unapproved_topics']))
- $child['link'] .= ' (!)';
-
- $children[] = $child['new'] ? '' . $child['link'] . '' : $child['link'];
- }
- echo '
-
';
-
- // Javascript for inline editing.
- echo '
-
-';
-}
-
-function theme_show_buttons()
-{
- global $context, $settings, $options, $txt, $scripturl;
-
- $buttonArray = array();
-
- // If they are logged in, and the mark read buttons are enabled..
- if ($context['user']['is_logged'] && $settings['show_mark_read'])
- $buttonArray[] = '' . $txt['mark_read_short'] . '';
-
- // If the user has permission to show the notification button... ask them if they're sure, though.
- if ($context['can_mark_notify'])
- $buttonArray[] = '' . $txt[$context['is_marked_notify'] ? 'unnotify' : 'notify'] . '';
-
- // Are they allowed to post new topics?
- if ($context['can_post_new'])
- $buttonArray[] = '' . $txt['new_topic'] . '';
-
- // How about new polls, can the user post those?
- if ($context['can_post_poll'])
- $buttonArray[] = '' . $txt['new_poll'] . '';
-
- // Right to left menu should be in reverse order.
- if ($context['right_to_left'])
- $buttonArray = array_reverse($buttonArray, true);
-
- return implode(' | ', $buttonArray);
-}
-
-?>
\ No newline at end of file
diff --git a/config/themes/core/PersonalMessage.template.php b/config/themes/core/PersonalMessage.template.php
deleted file mode 100755
index 83cf05c..0000000
--- a/config/themes/core/PersonalMessage.template.php
+++ /dev/null
@@ -1,1763 +0,0 @@
-';
-
- // Show the capacity bar, if available.
- if (!empty($context['limit_bar']))
- {
- echo '
-
';
- }
-
- // Message sent? Show a small indication.
- if (isset($context['pm_sent']))
- echo '
-
- ', $txt['pm_sent'], '
-
';
-}
-
-// Just the end of the index bar, nothing special.
-function template_pm_below()
-{
- global $context, $settings, $options;
-
- echo '
- ';
-}
-
-function template_folder()
-{
- global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
- // The every helpful javascript!
- echo '
- ';
-
- echo '
-';
-}
-
-// Just list all the personal message subjects - to make templates easier.
-function template_subject_list()
-{
- global $context, $options, $settings, $modSettings, $txt, $scripturl;
-
- echo '
-
';
-}
-
-function template_search()
-{
- global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
- echo '
-
- ';
-}
-
-function template_search_results()
-{
- global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
- // This splits broadly into two types of template... complete results first.
- if (!empty($context['search_params']['show_complete']))
- {
- echo '
-
-
-
', $txt['pm_search_results'], '
-
-
-
', $txt['pages'], ': ', $context['page_index'], '
-
-
';
- }
- else
- {
- echo '
-
-
-
', $txt['pm_search_results'], '
-
-
-
', $txt['pages'], ': ', $context['page_index'], '
-
-
-
', $txt['date'], '
-
', $txt['subject'], '
-
', $txt['from'], '
-
';
- }
-
- $alternate = true;
- // Print each message out...
- foreach ($context['personal_messages'] as $message)
- {
- // We showing it all?
- if (!empty($context['search_params']['show_complete']))
- {
- // !!! This still needs to be made pretty.
- echo '
-
-
', $txt['from'], ': ', $message['member']['link'], ', ', $txt['to'], ': ';
-
- // Show the recipients.
- // !!! This doesn't deal with the sent item searching quite right for bcc.
- if (!empty($message['recipients']['to']))
- echo implode(', ', $message['recipients']['to']);
- // Otherwise, we're just going to say "some people"...
- elseif ($context['folder'] != 'sent')
- echo '(', $txt['pm_undisclosed_recipients'], ')';
-
- echo '
-
-
-
-
', $message['body'], '
-
-
-
';
-
- if ($context['can_send_pm'])
- {
- $quote_button = create_button('quote.gif', 'reply_quote', 'reply_quote', 'align="middle"');
- $reply_button = create_button('im_reply.gif', 'reply', 'reply', 'align="middle"');
-
- // You can only reply if they are not a guest...
- if (!$message['member']['is_guest'])
- echo '
- ', $quote_button , '', $context['menu_separator'], '
- ', $reply_button , ' ', $context['menu_separator'];
- // This is for "forwarding" - even if the member is gone.
- else
- echo '
- ', $quote_button , '', $context['menu_separator'];
- }
-
- echo '
-
-
-
';
- }
- // Otherwise just a simple list!
- else
- {
- // !!! No context at all of the search?
- echo '
-
-
', $message['time'], '
-
', $message['link'], '
-
', $message['member']['link'], '
-
';
- }
-
- $alternate = !$alternate;
- }
-
- // Finish off the page...
- if (!empty($context['search_params']['show_complete']))
- {
- // No results?
- if (empty($context['personal_messages']))
- echo '
-
';
- }
-}
-
-function template_send()
-{
- global $context, $settings, $options, $scripturl, $modSettings, $txt;
-
- // Show which messages were sent successfully and which failed.
- if (!empty($context['send_log']))
- {
- echo '
-
-
', $txt['pm_send_report'], '
-
-
-
-
';
- if (!empty($context['send_log']['sent']))
- foreach ($context['send_log']['sent'] as $log_entry)
- echo '', $log_entry, ' ';
- if (!empty($context['send_log']['failed']))
- foreach ($context['send_log']['failed'] as $log_entry)
- echo '', $log_entry, ' ';
- echo '
-
-
-
- ';
- }
-
- // Show the preview of the personal message.
- if (isset($context['preview_message']))
- echo '
-
-
', $context['preview_subject'], '
-
-
-
-
- ', $context['preview_message'], '
-
-
-
- ';
-
- // Main message editing box.
- echo '
-
-
- ', $txt['new_message'], '
-
-
';
-
- echo '
- ';
-
- // Show the message you're replying to.
- if ($context['reply'])
- echo '
-
-
-
';
-}
-
-// This template asks the user what messages they want to prune.
-function template_prune()
-{
- global $context, $settings, $options, $scripturl, $txt;
-
- echo '
- ';
-}
-
-// Here we allow the user to setup labels, remove labels and change rules for labels (i.e, do quite a bit)
-function template_labels()
-{
- global $context, $settings, $options, $scripturl, $txt;
-
- echo '
-
- ';
-}
-
-// Template for reporting a personal message.
-function template_report_message()
-{
- global $context, $settings, $options, $txt, $scripturl;
-
- echo '
- ';
-}
-
-// Little template just to say "Yep, it's been submitted"
-function template_report_message_complete()
-{
- global $context, $settings, $options, $txt, $scripturl;
-
- echo '
-
';
-
- // Show the total time logged in?
- if (!empty($context['user']['total_time_logged_in']))
- {
- echo '
-
', $txt['totalTimeLogged1'];
-
- // If days is just zero, don't bother to show it.
- if ($context['user']['total_time_logged_in']['days'] > 0)
- echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
-
- // Same with hours - only show it if it's above zero.
- if ($context['user']['total_time_logged_in']['hours'] > 0)
- echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
-
- // But, let's always show minutes - Time wasted here: 0 minutes ;).
- echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '
-
';
- }
- // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
- elseif (!empty($context['show_login_bar']))
- {
- echo '
-
- ';
- }
-
- if ($context['user']['is_logged'] || !empty($context['show_login_bar']))
- echo '
-
-
';
-
- echo '
-
- ';
-
- // Show a random news item? (or you could pick one from news_lines...)
- if (!empty($settings['enable_news']))
- echo '
-
', $txt['news'], ':
', $context['random_news_line'], '
';
-
- echo '
-
-
';
-
- // Define the upper_section toggle in JavaScript.
- echo '
- ';
-
- // Show the menu here, according to the menu sub template.
- template_menu();
-
- // Show the navigation tree.
- theme_linktree();
-
- // The main content should go here.
- echo '
-
';
-
- // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
- echo '
-
-
';
-}
-
-function template_html_below()
-{
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
-
- echo '
-';
-}
-
-// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
-function theme_linktree($force_show = false)
-{
- global $context, $settings, $options, $shown_linktree;
-
- // If linktree is empty, just return - also allow an override.
- if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
- return;
-
- echo '
-
';
-
- // Each tree item has a URL and name. Some may have extra_before and extra_after.
- foreach ($context['linktree'] as $link_num => $tree)
- {
- echo '
-
';
-
- // Show something before the link?
- if (isset($tree['extra_before']))
- echo $tree['extra_before'];
-
- // Show the link, including a URL if it should have one.
- echo $settings['linktree_link'] && isset($tree['url']) ? '
- ' . $tree['name'] . '' : '' . $tree['name'] . '';
-
- // Show something after the link...?
- if (isset($tree['extra_after']))
- echo $tree['extra_after'];
-
- // Don't show a separator for the last one.
- if ($link_num != count($context['linktree']) - 1)
- echo ' >';
-
- echo '
-
';
- }
- echo '
-
';
-
- $shown_linktree = true;
-}
-
-// Show the menu up top. Something like [home] [help] [profile] [logout]...
-function template_menu()
-{
- global $context, $settings, $options, $scripturl, $txt;
-
- echo '
-
- ';
-
- // The below functions include all the scripts needed from the simplemachines.org site. The language and format are passed for internationalization.
- if (empty($modSettings['disable_smf_js']))
- echo '
-
- ';
-
- // This sets the announcements and current versions themselves ;).
- echo '
-
- ';
-}
-
-// Show some support information and credits to those who helped make this.
-function template_credits()
-{
- global $context, $settings, $options, $scripturl, $txt;
-
- // Show the user version information from their server.
- echo '
-
-
-
-
- ', $txt['support_title'], '
-
-
-
-
-
- ', $txt['support_versions'], ':
- ', $txt['support_versions_forum'], ':
- ', $context['forum_version'], '', $context['can_admin'] ? ' ' . $txt['version_check_more'] . '' : '', '
- ', $txt['support_versions_current'], ':
- ?? ';
-
- // Display all the variables we have server information for.
- foreach ($context['current_versions'] as $version)
- echo '
- ', $version['title'], ':
- ', $version['version'], ' ';
-
- echo '
-
-
-
- ';
-
- // Point the admin to common support resources.
- echo '
-
-
- ', $txt['support_resources'], '
-
-
-
-
-
-
', $txt['support_resources_p1'], '
-
', $txt['support_resources_p2'], '
-
-
-
';
-
- // Display latest support questions from simplemachines.org.
- echo '
-
-
- ', $txt['support_latest'], '
-
-
-
-
-
-
', $txt['support_latest_fetch'], '
-
-
-
';
-
- // The most important part - the credits :P.
- echo '
-
-
- ', $txt['admin_credits'], '
-
-
-
-
-
';
-
- foreach ($context['credits'] as $section)
- {
- if (isset($section['pretext']))
- echo '
-
', $section['pretext'], '
';
-
- echo '
-
';
-
- foreach ($section['groups'] as $group)
- {
- if (isset($group['title']))
- echo '
-
- ', $group['title'], ':
-
';
-
- echo '
-
', implode(', ', $group['members']), '
';
- }
-
- echo '
-
';
-
- if (isset($section['posttext']))
- echo '
-
', $section['posttext'], '
';
- }
-
- echo '
-
-
-
-
- ';
-
- // This makes all the support information available to the support script...
- echo '
-
-
-
- ';
-
- // This sets the latest support stuff.
- echo '
- ';
-}
-
-// Displays information about file versions installed, and compares them to current version.
-function template_view_versions()
-{
- global $context, $settings, $options, $scripturl, $txt;
-
- echo '
-
-
-
- ', $txt['admin_version_check'], '
-
-
-
', $txt['version_check_desc'], '
-
-
-
-
- ', $txt['admin_smffile'], '
-
-
- ', $txt['dvc_your'], '
-
-
- ', $txt['dvc_current'], '
-
-
-
- ';
-
- // The current version of the core SMF package.
- echo '
-
-
- ', $txt['admin_smfpackage'], '
-
-
- ', $context['forum_version'], '
-
-
- ??
-
-
';
-
- // Now list all the source file versions, starting with the overall version (if all match!).
- echo '
-
- ';
-
- // Loop through every source file displaying its version - using javascript.
- foreach ($context['file_versions'] as $filename => $version)
- echo '
-
';
-
- // Finally, display the version information for the currently selected theme - if it is not the default one.
- if (!empty($context['template_versions']))
- {
- echo '
-
- ';
-
- /* Below is the hefty javascript for this. Upon opening the page it checks the current file versions with ones
- held at simplemachines.org and works out if they are up to date. If they aren't it colors that files number
- red. It also contains the function, swapOption, that toggles showing the detailed information for each of the
- file categories. (sources, languages, and templates.) */
- echo '
-
-
- ';
-
-}
-
-// Form for stopping people using naughty words, etc.
-function template_edit_censored()
-{
- global $context, $settings, $options, $scripturl, $txt, $modSettings;
-
- // First section is for adding/removing words from the censored list.
- echo '
-
-
-
- ';
-}
-
-// Maintenance is a lovely thing, isn't it?
-function template_not_done()
-{
- global $context, $settings, $options, $txt, $scripturl;
-
- echo '
-
';
- }
-
- continue;
- }
-
- // Not a list yet?
- if (!$is_open)
- {
- $is_open = true;
- echo '
-
-
-
-
';
- }
-
- // Hang about? Are you pulling my leg - a callback?!
- if (is_array($config_var) && $config_var['type'] == 'callback')
- {
- if (function_exists('template_callback_' . $config_var['name']))
- call_user_func('template_callback_' . $config_var['name']);
-
- continue;
- }
-
- if (is_array($config_var))
- {
- // First off, is this a span like a message?
- if (in_array($config_var['type'], array('message', 'warning')))
- {
- echo '
-
- ', $config_var['label'], '
-
';
- }
- // Otherwise it's an input box of some kind.
- else
- {
- echo '
-
';
- }
- else
- {
- echo '
- ';
- foreach ($context['search_results'] as $result)
- {
- // Is it a result from the online manual?
- if ($context['search_type'] == 'online')
- {
- echo '
-
- ';
-}
-
-// Turn on and off certain key features.
-function template_core_features()
-{
- global $context, $txt, $settings, $options, $scripturl;
-
- echo '
-
-
';
- if ($context['is_new_install'])
- {
- echo '
-
-
- ', $txt['core_settings_welcome_msg'], '
-
-
-
- ', $txt['core_settings_welcome_msg_desc'], '
-
';
- }
-
- echo '
-
-
- ';
-
- // Turn on the pretty javascript if we can!
- echo '
- ';
-}
-
-// Add a new language
-function template_add_language()
-{
- global $context, $settings, $options, $txt, $scripturl;
-
- echo '
-
-
-
- ';
-}
-
-// Download a new language file?
-function template_download_language()
-{
- global $context, $settings, $options, $txt, $scripturl, $modSettings;
-
- // Actually finished?
- if (!empty($context['install_complete']))
- {
- echo '
-
-
-
- ', $txt['languages_download_complete'], '
-
-
-
-
-
- ', $context['install_complete'], '
-
-
-
-
- ';
- return;
- }
-
- // An error?
- if (!empty($context['error_message']))
- echo '
-
-
', $context['error_message'], '
-
';
-
- // Provide something of an introduction...
- echo '
-
-
-
- ';
-
- // The javascript for expand and collapse of sections.
- echo '
- ';
-}
-
-// Edit some language entries?
-function template_modify_language_entries()
-{
- global $context, $settings, $options, $txt, $scripturl;
-
- echo '
-
-
-
-
-
- ';
-}
-
-// This little beauty shows questions and answer from the captcha type feature.
-function template_callback_question_answer_list()
-{
- global $txt, $context;
-
- echo '
-
';
-
- // Are we actually fixing them, or is this just a prompt?
- if ($context['error_search'])
- {
- if (!empty($context['to_fix']))
- {
- echo '
- ', $txt['errors_found'], ':
-
';
-
- /* Each category in categories is made up of:
- id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
- new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
- and boards. (see below.) */
- foreach ($context['categories'] as $category)
- {
- // If theres no parent boards we can see, avoid showing an empty category (unless its collapsed)
- if (empty($category['boards']) && !$category['is_collapsed'])
- continue;
-
- echo '
-
-
-
-
-
';
-
- // If this category even can collapse, show a link to collapse it.
- if ($category['can_collapse'])
- echo '
- ', $category['collapse_image'], '';
-
- if (!$context['user']['is_guest'] && !empty($category['show_unread']))
- echo '
- ', $txt['view_unread_category'], '';
-
- echo '
- ', $category['link'], '
-
-
-
-
- ';
-
- // Assuming the category hasn't been collapsed...
- if (!$category['is_collapsed'])
- {
-
- echo '
- ';
- /* Each board in each category's boards has:
- new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
- children (see below.), link_children (easier to use.), children_new (are they new?),
- topics (# of), posts (# of), link, href, and last_post. (see below.) */
- foreach ($category['boards'] as $board)
- {
- echo '
-
- ', $board['name'], '';
-
- // Has it outstanding posts for approval?
- if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
- echo '
- (!)';
-
- echo '
-
-
', $board['description'] , '
';
-
- // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
- if (!empty($board['moderators']))
- echo '
-
';
-
- /* The board's and children's 'last_post's have:
- time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
- link, href, subject, start (where they should go for the first unread post.),
- and member. (which has id, name, link, href, username in it.) */
- if (!empty($board['last_post']['id']))
- echo '
-
';
- // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
- if (!empty($board['children']))
- {
- // Sort the links into an array with new boards bold so it can be imploded.
- $children = array();
- /* Each child in each board's children has:
- id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
- foreach ($board['children'] as $child)
- {
- if (!$child['is_redirect'])
- $child['link'] = '' . $child['name'] . ($child['new'] ? '' : '') . '';
- else
- $child['link'] = '' . $child['name'] . '';
-
- // Has it posts awaiting approval?
- if ($child['can_approve_posts'] && ($child['unapproved_posts'] || $child['unapproved_topics']))
- $child['link'] .= ' (!)';
-
- $children[] = $child['new'] ? '' . $child['link'] . '' : $child['link'];
- }
- echo '
-
';
-
- // This is the "Recent Posts" bar.
- if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
- {
- echo '
-
';
-
- // Only show one post.
- if ($settings['number_recent_posts'] == 1)
- {
- // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
- echo '
- ', $txt['recent_posts'], '
-
';
- }
- // Show lots of posts.
- elseif (!empty($context['latest_posts']))
- {
- echo '
-
';
-
- /* Each post in latest_posts has:
- board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
- subject, short_subject (shortened with...), time, link, and href. */
- foreach ($context['latest_posts'] as $post)
- echo '
-
';
-
- // If they are logged in, but statistical information is off... show a personal message bar.
- if ($context['user']['is_logged'] && !$settings['show_stats_index'])
- {
- echo '
-
';
- }
-
- /* Each week in weeks contains the following:
- days (a list of days), number (week # in the year.) */
- foreach ($calendar_data['weeks'] as $week)
- {
- echo '
-
';
-
- if (!empty($calendar_data['show_week_links']))
- echo '
-
';
-
- /* Every day has the following:
- day (# in month), is_today (is this day *today*?), is_first_day (first day of the week?),
- holidays, events, birthdays. (last three are lists.) */
- foreach ($week['days'] as $day)
- {
- // If this is today, make it a different color and show a border.
- echo '
-
';
-
- // Skip it if it should be blank - it's not a day if it has no number.
- if (!empty($day['day']))
- {
- // Should the day number be a link?
- if (!empty($modSettings['cal_daysaslink']) && $context['can_post'])
- echo '
- ', $day['day'], '';
- else
- echo '
- ', $day['day'];
-
- // Is this the first day of the week? (and are we showing week numbers?)
- if ($day['is_first_day'] && $calendar_data['size'] != 'small')
- echo ' - ', $txt['calendar_week'], ' ', $week['number'], '';
-
- // Are there any holidays?
- if (!empty($day['holidays']))
- echo '
-
';
-
- // Show any birthdays...
- if (!empty($day['birthdays']))
- {
- echo '
-
- ', $txt['birthdays'], '';
-
- /* Each of the birthdays has:
- id, name (person), age (if they have one set?), and is_last. (last in list?) */
- $use_js_hide = empty($context['show_all_birthdays']) && count($day['birthdays']) > 15;
- $count = 0;
- foreach ($day['birthdays'] as $member)
- {
- echo '
- ', $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', '', $member['is_last'] || ($count == 10 && $use_js_hide)? '' : ', ';
-
- // Stop at ten?
- if ($count == 10 && $use_js_hide)
- echo '... (', sprintf($txt['calendar_click_all'], count($day['birthdays'])), '), ';
-
- $count++;
- }
- if ($use_js_hide)
- echo '
- ';
-
- echo '
-
';
- }
-
- // Any special posted events?
- if (!empty($day['events']))
- {
- echo '
-
- ', $txt['events'], '';
-
- /* The events are made up of:
- title, href, is_last, can_edit (are they allowed to?), and modify_href. */
- foreach ($day['events'] as $event)
- {
- // If they can edit the event, show a star they can click on....
- if ($event['can_edit'])
- echo '
- ';
-
- echo '
- ', $event['link'], $event['is_last'] ? '' : ', ';
- }
-
- echo '
-
';
- }
- }
-
- echo '
-
';
- }
-
- echo '
-
';
- }
-
- echo '
-
';
-}
-
-// Or show a weekly one?
-function template_show_week_grid($grid_name)
-{
- global $context, $settings, $options, $txt, $scripturl, $modSettings;
-
- if (!isset($context['calendar_grid_' . $grid_name]))
- return false;
-
- $calendar_data = &$context['calendar_grid_' . $grid_name];
-
- // Loop through each month (At least one) and print out each day.
- foreach ($calendar_data['months'] as $month_data)
- {
- echo '
-
';
-
- // Show any birthdays...
- if (!empty($day['birthdays']))
- {
- echo '
-
- ', $txt['birthdays'], '';
-
- /* Each of the birthdays has:
- id, name (person), age (if they have one set?), and is_last. (last in list?) */
- foreach ($day['birthdays'] as $member)
- echo '
- ', $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', '', $member['is_last'] ? '' : ', ';
- echo '
-
';
- }
-
- // Any special posted events?
- if (!empty($day['events']))
- {
- echo '
-
- ', $txt['events'], '';
-
- /* The events are made up of:
- title, href, is_last, can_edit (are they allowed to?), and modify_href. */
- foreach ($day['events'] as $event)
- {
- // If they can edit the event, show a star they can click on....
- if ($event['can_edit'])
- echo '
- ';
-
- echo '
- ', $event['link'], $event['is_last'] ? '' : ', ';
- }
-
- echo '
-
';
- }
-
- // No buttons? No button strip either.
- if (empty($buttons))
- return;
-
- // Make the last one, as easy as possible.
- $buttons[count($buttons) - 1] = str_replace('', '', $buttons[count($buttons) - 1]);
-
- echo '
-
-
- ', implode('', $buttons), '
-
-
';
-}
-
-?>
\ No newline at end of file
diff --git a/config/themes/default/Display.template.php b/config/themes/default/Display.template.php
deleted file mode 100755
index b1492c1..0000000
--- a/config/themes/default/Display.template.php
+++ /dev/null
@@ -1,883 +0,0 @@
-
- ', $txt['report_sent'], '
- ';
- }
-
- // Show the anchor for the top and for the first message. If the first message is new, say so.
- echo '
-
- ', $context['first_new_message'] ? '' : '';
-
- // Is this topic also a poll?
- if ($context['is_poll'])
- {
- echo '
-
-
-
- ', $txt['poll'], '
-
-
-
-
-
-
- ', $context['poll']['question'], '
-
';
-
- // Are they not allowed to vote but allowed to view the options?
- if ($context['poll']['show_results'] || !$context['allow_vote'])
- {
- echo '
-
';
-
- // Show each option with its corresponding percentage bar.
- foreach ($context['poll']['options'] as $option)
- {
- echo '
-
';
- }
- // They are allowed to vote! Go to it!
- else
- {
- echo '
- ';
- }
-
- // Is the clock ticking?
- if (!empty($context['poll']['expire_time']))
- echo '
-