forked from szerko/Respond2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbranding.php
130 lines (94 loc) · 4.19 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
<?php
include 'app.php'; // import php files
$authUser = new AuthUser(); // get auth user
$authUser->Authenticate('Admin');
Utilities::SetLanguage($authUser->Language); // set language
?>
<!DOCTYPE html>
<html lang="<?php print str_replace('_', '-', $authUser->Language) ?>">
<head>
<title><?php print _("Branding"); ?>—<?php print $authUser->SiteName; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- include css -->
<?php include 'modules/css.php'; ?>
<link type="text/css" href="css/dialog.css?v=<?php print VERSION; ?>" rel="stylesheet">
<link type="text/css" href="css/dropzone.css?v=<?php print VERSION; ?>" rel="stylesheet">
</head>
<body id="branding-page" data-currpage="branding">
<!-- messages -->
<input id="msg-updating-branding" value="<?php print _("Updating..."); ?>" type="hidden">
<input id="msg-branding-updated" value="<?php print _("Branding successfully updated"); ?>" type="hidden">
<input id="msg-updating-logo" value="<?php print _("Updating..."); ?>" type="hidden">
<input id="msg-logo-updated" value="<?php print _("Logo successfully updated"); ?>" type="hidden">
<?php include 'modules/menu.php'; ?>
<section class="main">
<nav>
<a class="show-menu"></a>
<h1><?php print _("Branding"); ?></h1>
</nav>
<menu>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="page-types" data-toggle="dropdown">
<?php print _("Branding"); ?>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="branding"><?php print _("Branding"); ?></a></li>
<li><a href="colors"><?php print _("Colors"); ?></a></li>
</ul>
</div>
</menu>
<div class="row-fluid">
<div class="span12">
<form class="form-horizontal">
<div class="form-group">
<label class="col-lg-2 control-label"><?php print _("Site:"); ?></label>
<div class="col-lg-10">
<span id="logo" class="placeholder" data-bind="click: showImagesDialog">
<img data-type="logo" data-bind="attr:{'src': fullLogoUrl, 'logo-url': logoUrl}">
</span>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label"><?php print _("PayPal:"); ?></label>
<div class="col-lg-10">
<span id="payPalLogo" class="placeholder paypal" data-bind="click: showImagesDialog">
<img data-type="paypal" data-bind="attr:{'src': fullPayPalLogoUrl, 'logo-url': payPalLogoUrl}">
</span>
<small><?php print _("PayPal recommends 150px x 50px"); ?></small>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label"><?php print _("Touch / Tile / Favorite:"); ?></label>
<div class="col-lg-10">
<span id="favIcon" class="placeholder touch" data-bind="click: showImagesDialog">
<img data-type="icon" data-bind="attr:{'src': fullIconUrl, 'logo-url': iconUrl}">
</span>
<small>200px x 200px (<?php print _("PNG format, we will convert it to .ico)"); ?></small>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label"><?php print _("Tile Background:"); ?></label>
<div class="col-lg-10">
<input id="iconBg" type="text" data-bind="value: iconBg" class="form-control inline">
<button class="btn btn-default" data-bind="click: updateIconBg"><?php print _("Update"); ?></button>
<small><?php print _("The background color for a pinned Windows 8 tile"); ?></small>
</div>
</div>
</form>
<!-- /.form-horizontal -->
</div>
<!-- /.span12 -->
</div>
<!-- /.row-fluid -->
</section>
<!-- /.main -->
<div id="overlay"></div>
<?php include 'modules/dialogs/imagesDialog.php'; ?>
</body>
<!-- include js -->
<?php include 'modules/js.php'; ?>
<script type="text/javascript" src="js/helper/dropzone.js?v=<?php print VERSION; ?>"></script>
<script type="text/javascript" src="js/viewModels/brandingModel.js?v=<?php print VERSION; ?>"></script>
</html>