-
Notifications
You must be signed in to change notification settings - Fork 0
/
DevTools.template.php
64 lines (53 loc) · 1.42 KB
/
DevTools.template.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Template for DevTools.
* @package DevTools
* @author SleePy <sleepy @ simplemachines (dot) org>
* @copyright 2022
* @license 3-Clause BSD https://opensource.org/licenses/BSD-3-Clause
* @version 1.0
*/
/* The wrapper upper template */
function template_devtools_above()
{
global $context, $txt;
echo '
<div id="devtools_container" class="scrollable">';
if (!empty($context['saved_successful']))
echo '
<div id="devtool_success" class="infobox">', $context['saved_successful'], '</div>';
template_button_strip($context['devtools_buttons']);
echo '
<hr>';
}
/* The wrapper lower template */
function template_devtools_below()
{
echo '
</div><!-- devtools_container -->';
}
/* This just calls the template for showing a list on our packages */
function template_packagesIndex()
{
template_show_list('packages_lists_modification');
}
/* This just calls the template for showing data for syncing files */
function template_FilesSyncIn()
{
template_show_list('syncfiles_list');
}
/* This just calls the template for showing data for syncing files */
function template_FilesSyncOut()
{
template_show_list('syncfiles_list');
}
/* This just calls the template for showing a list on our hooks */
function template_hooksIndex()
{
template_show_list('hooks_list');
}
/* This just calls the template for showing a list on our hooks */
function template_filesIndex()
{
template_show_list('packages_lists_modification');
}