-
Notifications
You must be signed in to change notification settings - Fork 988
/
fullpagebar_view.php
148 lines (132 loc) · 6.45 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
/**
* Menu Bar show for full pages (without sidemenu, inside configuration menus)
*/
?>
<!-- Full page menu bar -->
<div class='menubar surveybar' id="fullpagebar">
<div class='row'>
<!-- Left actions -->
<div class="col-md-6 text-left">
<!-- Plugin Manager -->
<?php if (isset($fullpagebar['pluginManager'])) : ?>
<!-- Install Plugin Zip -->
<?php if (!empty($fullpagebar['pluginManager']['buttons']['showUpload'])) : ?>
<a
href=''
class='btn btn-default'
data-toggle='modal'
data-target='#installPluginZipModal'
data-tooltip='true'
title='<?php eT('Install plugin by ZIP archive'); ?>'
>
<i class='icon-import'></i>
<?php eT('Upload & install'); ?>
</a>
<?php endif; ?>
<!-- Scan Files -->
<?php if (isset($fullpagebar['pluginManager']['buttons']['scanFiles'])) : ?>
<a
href='<?php echo $fullpagebar["pluginManager"]["buttons"]["scanFiles"]["url"]; ?>'
class='btn btn-default'
data-toggle='tooltip'
title='<?php eT('Scan files for available plugins'); ?>'
>
<i class='fa fa-file '></i>
<i class='fa fa-search '></i>
<?php eT('Scan files'); ?>
</a>
<?php endif; ?>
<?php endif; ?>
<!-- Add new Menu -->
<?php if(isset($fullpagebar['menus'])): ?>
<?php if(isset($fullpagebar['menus']['buttons']['addMenu']) && $fullpagebar['menus']['buttons']['addMenu']): ?>
<a class="btn btn-default tab-dependent-button"
id="createnewmenu"
data-tab="#surveymenues"
title="<?php eT('Add new menu'); ?>"
>
<i class="icon-add text-success"></i> <?php eT('New menu') ?>
</a>
<?php endif; ?>
<?php endif; ?>
<!-- Add new Menu entry -->
<?php if (isset($fullpagebar['menus'])) : ?>
<?php if (isset($fullpagebar['menus']['buttons']['addMenuEntry']) && $fullpagebar['menus']['buttons']['addMenuEntry']) : ?>
<a class="btn btn-default tab-dependent-button"
id="createnewmenuentry"
data-tab="#surveymenuentries"
style="display:none;"
title="<?php eT('Add new menu entry'); ?>"
>
<i class="icon-add text-success"></i> <?php eT('New menu entry') ?>
</a>
<?php endif; ?>
<?php endif; ?>
</div>
<!-- Right actions -->
<div class="col-md-6 text-right">
<!-- White Close button -->
<?php if (isset($fullpagebar['white_closebutton']['url'])) :?>
<a class="btn btn-default" href="<?php echo $fullpagebar['white_closebutton']['url']; ?>" role="button">
<span class="fa fa-close"></span>
<?php eT("Close");?>
</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;?>
<!-- Reset -->
<?php if (isset($fullpagebar['menus']['buttons']['reset']) && $fullpagebar['menus']['buttons']['reset']) :?>
<a class="btn btn-warning"
id="restoreBtn"
href="#"
>
<i class="fa fa-refresh"></i>
<?php eT('Reset') ?>
</a>
<?php endif; ?>
<!-- Reorder -->
<?php if (isset($fullpagebar['menus']['buttons']['reorder']) && $fullpagebar['menus']['buttons']['reorder']) : ?>
<a class="btn btn-warning"
id="reorderentries">
<i class="fa fa-sort"></i>
<?php eT('Reorder') ?>
</a>
<?php endif; ?>
<!-- Save and Close -->
<?php if (isset($fullpagebar['saveandclosebutton']['form'])) :?>
<a class="btn btn-default" href="#" role="button" id="save-and-close-form-button" onclick="$(this).addClass('disabled').attr('onclick', 'return false;');" data-form-id="<?php echo $fullpagebar['saveandclosebutton']['form']; ?>">
<span class="fa fa-saved"></span>
<?php eT("Save and close");?>
</a>
<?php endif; ?>
<!-- Save -->
<?php if (isset($fullpagebar['savebutton']['form'])) :?>
<a class="btn btn-success" href="#" role="button" id="save-form-button" onclick="$(this).addClass('disabled').attr('onclick', 'return false;');" data-form-id="<?php echo $fullpagebar['savebutton']['form']; ?>">
<span class="fa fa-check"></span>
<?php eT("Save");?>
</a>
<?php endif;?>
<!-- Close -->
<?php if (isset($fullpagebar['closebutton']['url'])) :?>
<a class="btn btn-danger" href="<?php echo $fullpagebar['closebutton']['url']; ?>" role="button" style="box-shadow: 3px 3px 3px;">
<span class="fa fa-close"></span>
<?php eT("Close");?>
</a>
<?php endif;?>
<!-- Manage your Key -->
<?php if (isset($fullpagebar['update'])) :?>
<a href="<?php echo $this->createUrl('admin/update/sa/managekey/');?>" class="btn btn-default" style="margin-top:10px;">
<span class="fa fa-key text-success"></span>
<?php eT("Manage your key");?>
</a>
<?php endif;?>
</div>
</div>
</div>