forked from szerko/Respond2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolors.php
81 lines (56 loc) · 2.62 KB
/
colors.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
<?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 _("Color Configuration"); ?>—<?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 rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/spectrum/1.3.0/css/spectrum.css" />
</head>
<body id="colors-page" data-currpage="colors">
<?php include 'modules/menu.php'; ?>
<!-- messages -->
<input id="msg-loading" value="<?php print _("Loading..."); ?>" type="hidden">
<input id="msg-updating" value="<?php print _("Updating..."); ?>" type="hidden">
<input id="msg-updated" value="<?php print _("Styles updated successfully"); ?>" type="hidden">
<input id="msg-updating-error" value="<?php print _("There was a problem saving the style file, please try again"); ?>" type="hidden">
<section class="main">
<nav>
<a class="show-menu"></a>
<h1><?php print _("Colors"); ?></h1>
</nav>
<menu>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="page-types" data-toggle="dropdown">
<?php print _("Colors"); ?>
<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>
<p data-bind="visible: filesLoading()" class="list-loading"><i class="fa fa-spinner fa-spin"></i> <?php print _("Loading..."); ?></p>
<p data-bind="css: {'hidden': (showInstructions()==false)}" class="hidden list-instructions"><?php print _("No color variables (e.g. @background-color: #888;) available for your themes. Learn m"); ?></p>
<form class="form-vertical">
<div id="variable-def"></div>
</form>
<div class="actions">
<button class="primary-button" data-bind="click: save"><?php print _("Save"); ?></button>
</div>
</section>
<!-- /.main -->
</body>
<!-- include js -->
<?php include 'modules/js.php'; ?>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/spectrum/1.3.0/js/spectrum.min.js"></script>
<script type="text/javascript" src="js/viewModels/colorsModel.js?v=<?php print VERSION; ?>"></script>
</html>