-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.php
executable file
·56 lines (49 loc) · 1.97 KB
/
admin.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
<?php only_admin_access();
$module = module_info($params['module']);
$liveEdit = false;
if (isset($params['live_edit']) && $params['live_edit']) $liveEdit = $params['live_edit'];
?>
<?php if (isset($params['backend'])): ?><module type='admin/modules/info'/><?php endif; ?>
<div class='card style-1 mb-3 <?php if ($liveEdit): ?>card-in-live-edit<?php endif; ?>'>
<div class='card-header'>
<h5>
<img src='<?= $module['icon'] ?>' class='module-icon-svg-fill'/>
<strong><?php _e($module['name']); ?></strong>
</h5>
</div>
<div class='card-body pt-3'>
<div class='mw-modules-tabs'>
<div class='mw-accordion-item'>
<div class='mw-ui-box-header mw-accordion-title'>
<div class='header-holder'>
<i class='mw-icon-settings'></i> <?php _e('Settings'); ?>
</div>
</div>
<div class='mw-accordion-content mw-ui-box mw-ui-box-content'>
<?php require __DIR__ . DS . 'settings.php'; ?>
</div>
</div>
<div class='mw-accordion-item'>
<div class='mw-ui-box-header mw-accordion-title'>
<div class='header-holder'>
<i class='mw-icon-comment'></i> <?php _e('Bulk SMS'); ?>
</div>
</div>
<div class='mw-accordion-content mw-ui-box mw-ui-box-content'>
<?php require __DIR__ . DS . 'bulk_sms.php'; ?>
</div>
</div>
</div>
</div>
</div>
<script>
$('#accordion').on('hidden.bs.collapse shown.bs.collapse', function (e) {
$(e.target).prev('.card-header').find('i.mdi.arrow')
.toggleClass('mdi-chevron-down mdi-chevron-up')
.toggleClass('active');
});
$('.card').click(function () {
$('.card').removeClass('active');
$(this).addClass('active');
});
</script>