-
Notifications
You must be signed in to change notification settings - Fork 988
/
fullpagebar_view.php
72 lines (63 loc) · 3.02 KB
/
fullpagebar_view.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
65
66
67
68
69
70
71
72
<?php
/**
* Menu Bar show for full pages (without sidemenu, inside configuration menus)
*/
?>
<!-- Full page menu bar -->
<div class='menubar' id="fullpagebar">
<div class='row container-fluid'>
<div class="col-md-6 text-left">
</div>
<!-- Right actions -->
<div class="col-md-6 text-right">
<!-- Save -->
<?php if(isset($fullpagebar['savebutton']['form'])):?>
<a class="btn btn-success" href="#" role="button" id="save-form-button" data-form-id="<?php echo $fullpagebar['savebutton']['form']; ?>">
<span class="fa fa-floppy-o"></span>
<?php eT("Save");?>
</a>
<?php endif;?>
<?php /*
<?php if(isset($fullpagebar['saveandclosebutton']['form'])):?>
<a class="btn btn-default" href="#" role="button" id="save-and-close-form-button" data-form-id="<?php echo $fullpagebar['saveandclosebutton']['form']; ?>">
<span class="fa fa-saved"></span>
<?php eT("Save and close");?>
</a>
<?php endif; ?>
*/ ?>
<?php /*
<!-- Close -->
<?php if(isset($fullpagebar['closebutton']['url'])):?>
<a class="btn btn-danger" href="<?php echo $fullpagebar['closebutton']['url']; ?>" role="button">
<span class="fa fa-close"></span>
<?php eT("Close");?>
</a>
<?php endif;?>
*/ ?>
<?php if(isset($fullpagebar['boxbuttons'])):?>
<a href="<?php echo $this->createUrl('admin/homepagesettings/sa/create/');?>" class="btn btn-default">
<span class="icon-add text-success"></span>
<?php eT("Create a new box");?>
</a>
<a href="<?php echo $this->createUrl('admin/homepagesettings/sa/resetall/');?>" class="btn btn-danger" data-confirm="<?php eT('This will delete all current boxes to restore the default ones. Are you sure you want to continue?'); ?>">
<span class="fa fa-refresh"></span>
<?php eT("Reset to default boxes");?>
</a>
<?php endif;?>
<?php if(isset($fullpagebar['update'])):?>
<a href="<?php echo $this->createUrl('admin/update/sa/managekey/');?>" class="btn btn-default">
<span class="fa fa-key text-success"></span>
<?php eT("Manage your key");?>
</a>
<?php endif;?>
<!-- Return -->
<?php if(isset($fullpagebar['returnbutton']['url'])):?>
<a class="btn btn-default" href="<?php echo $this->createUrl($fullpagebar['returnbutton']['url']); ?>" role="button">
<span class="fa fa-backward"></span>
<?php echo $fullpagebar['returnbutton']['text']; ?>
</a>
<?php endif;?>
</div>
</div>
</div>