forked from szerko/Respond2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
branding.php
157 lines (115 loc) · 4.44 KB
/
branding.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
149
150
151
152
153
154
155
156
157
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
include 'app.php'; // import php files
$authUser = new AuthUser(); // get auth user
$authUser->Authenticate('All');
?>
<!DOCTYPE html>
<html>
<head>
<title>Branding—<?php print $authUser->SiteName; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- include css -->
<link href="<?php print FONT; ?>" rel="stylesheet" type="text/css">
<link href="<?php print BOOTSTRAP_CSS; ?>" rel="stylesheet">
<link href="<?php print JQUERYUI_CSS; ?>" rel="stylesheet">
<link href="<?php print FONTAWESOME_CSS; ?>" rel="stylesheet">
<link type="text/css" href="css/app.css" rel="stylesheet">
<link type="text/css" href="css/dialog.css" rel="stylesheet">
<link type="text/css" href="css/messages.css" rel="stylesheet">
<link type="text/css" href="css/menu.css" rel="stylesheet">
<link type="text/css" href="css/list.css" rel="stylesheet">
<link type="text/css" href="css/dropzone.css" rel="stylesheet">
</head>
<body data-currpage="branding">
<!-- required for actions -->
<input type="hidden" name="_submit_check" value="1"/>
<p id="message">
<span>Holds the message text.</span>
<a class="close" href="#"></a>
</p>
<?php include 'modules/menu.php'; ?>
<section class="main">
<nav>
<a class="show-menu"><i class="icon-reorder icon-large"></i></a>
<ul>
<li class="static active"><a href="branding">Branding</a></li>
</ul>
<a class="primary-action" data-bind="click: showImagesDialog"><i class="icon-plus-sign icon-large"></i> Update Logo</a>
</nav>
<div class="row-fluid">
<div class="span12">
<form class="form-horizontal">
<div class="form-group">
<label class="col-lg-2 control-label">Default Logo:</label>
<div class="col-lg-10">
<span id="logo">
<img data-bind="attr:{'src': fullUrl, 'logo-url': logoUrl}" style="max-width: 500px">
</span>
</div>
</div>
</form>
<!-- /.form-horizontal -->
</div>
<!-- /.span12 -->
</div>
<!-- /.row-fluid -->
</section>
<!-- /.main -->
<div id="overlay"></div>
<div class="hide immersive" id="imagesDialog">
<div class="immersive-header">
<h3>Select or upload a new image</h3>
<button type="button" class="close" data-dismiss="modal">x</button>
</div>
<!-- /.modal-header -->
<div class="immersive-body">
<h2 data-bind="visible: (newimages().length > 0)">New Images</h2>
<div data-bind="visible: (newimages().length > 0)" class="image-list">
<!-- ko foreach:newimages -->
<div class="image new">
<img data-bind="attr:{'src': thumbUrl}, click: $parent.changeLogo">
<small>
<span data-bind="text: filename"></span><br>
<span data-bind="text: width"></span>px x <span data-bind="text: height"></span>px
</small>
</div>
<!-- /ko -->
</div>
<h2>Existing Images</h2>
<div class="image-list">
<!-- ko foreach:images -->
<div class="image existing">
<img data-bind="attr:{'src': thumbUrl}, click: $parent.changeLogo">
<small>
<span data-bind="text: filename"></span><br>
<span data-bind="text: width"></span>px x <span data-bind="text: height"></span>px
</small>
</div>
<!-- /ko -->
</div>
<div id="drop" class="custom-dropzone">
<span class="message">
<i class="icon-cloud-upload icon-4x"></i>
<span class="message-text">Drag file here or click to upload</span>
</span>
</div>
</div>
<!-- /.modal-body -->
</div>
<!-- /.modal -->
<?php include 'modules/footer.php'; ?>
</body>
<!-- include js -->
<script type="text/javascript" src="<?php print JQUERY_JS; ?>"></script>
<script type="text/javascript" src="<?php print JQUERYUI_JS; ?>"></script>
<script type="text/javascript" src="<?php print BOOTSTRAP_JS; ?>"></script>
<script type="text/javascript" src="<?php print KNOCKOUT_JS; ?>"></script>
<script type="text/javascript" src="js/helper/moment.min.js"></script>
<script type="text/javascript" src="js/global.js"></script>
<script type="text/javascript" src="js/dialog.js"></script>
<script type="text/javascript" src="js/messages.js"></script>
<script type="text/javascript" src="js/helper/dropzone.js"></script>
<script type="text/javascript" src="js/viewModels/brandingModel.js"></script>
</html>