forked from andreknieriem/photobooth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
247 lines (209 loc) · 9.87 KB
/
index.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<?php
require_once('lib/config.php');
require_once('lib/db.php');
$images = getImagesFromDB();
$imagelist = ($config['newest_first'] === true) ? array_reverse($images) : $images;
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">
<meta name="msapplication-TileColor" content="<?=$config['colors']['primary']?>">
<meta name="theme-color" content="<?=$config['colors']['primary']?>">
<title>Photobooth</title>
<!-- Favicon + Android/iPhone Icons -->
<link rel="apple-touch-icon" sizes="180x180" href="resources/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="resources/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="resources/img/favicon-16x16.png">
<link rel="manifest" href="resources/img/site.webmanifest">
<link rel="mask-icon" href="resources/img/safari-pinned-tab.svg" color="#5bbad5">
<!-- Fullscreen Mode on old iOS-Devices when starting photobooth from homescreen -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="stylesheet" href="node_modules/normalize.css/normalize.css" />
<link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.css" />
<link rel="stylesheet" href="node_modules/photoswipe/dist/photoswipe.css" />
<link rel="stylesheet" href="node_modules/photoswipe/dist/default-skin/default-skin.css" />
<link rel="stylesheet" href="resources/css/style.css" />
</head>
<body class="deselect">
<div id="wrapper">
<!-- Start Page -->
<div class="stages" id="start">
<?php if ($config['show_gallery']): ?>
<a class="gallery-button btn" href="#"><i class="fa fa-th"></i> <span data-l10n="gallery"></span></a>
<?php endif; ?>
<div class="blurred"></div>
<div class="startInner">
<?php if ($config['is_wedding']): ?>
<div class="names">
<hr class="small" />
<hr>
<div>
<h1><?=$config['wedding']['groom']?>
<i class="fa <?=$config['wedding']['symbol']?>" aria-hidden="true"></i>
<?=$config['wedding']['bride']?>
<br>
<?=$config['start_screen_title']?>
</h1>
<h2><?=$config['start_screen_subtitle']?></h2>
</div>
<hr>
<hr class="small" />
</div>
<?php else: ?>
<div class="names">
<hr class="small" />
<hr>
<div>
<h1><?=$config['start_screen_title']?></h1>
<h2><?=$config['start_screen_subtitle']?></h2>
</div>
<hr>
<hr class="small" />
</div>
<?php endif; ?>
<?php if ($config['use_filter']): ?>
<a href="#" class="btn imageFilter"><i class="fa fa-magic"></i> <span
data-l10n="selectFilter"></span></a>
<?php endif; ?>
<?php if ($config['force_buzzer']): ?>
<div id="useBuzzer">
<span data-l10n="use_button"></span>
</div>
<?php else: ?>
<?php if ($config['use_collage']): ?>
<a href="#" class="btn takeCollage"><i class="fa fa-th-large"></i> <span
data-l10n="takeCollage"></span></a>
<?php endif; ?>
<a href="#" class="btn takePic"><i class="fa fa-camera"></i> <span data-l10n="takePhoto"></span></a>
<?php endif; ?>
</div>
<?php if ($config['show_fork']): ?>
<a href="https://github.com/andreknieriem/photobooth" class="github-fork-ribbon" data-ribbon="Fork me on GitHub">Fork me on GitHub</a>
<?php endif; ?>
<?php if($config['cups_button']): ?>
<a id="cups-button" class="btn" style="position:absolute;left:0;bottom:0;" href="#" target="newwin"><span>CUPS</span></a>
<?php endif; ?>
</div>
<!-- image Filter Pane -->
<?php if ($config['use_filter']): ?>
<div id="mySidenav" class="dragscroll sidenav">
<a href="#" class="closebtn"><i class="fa fa-times"></i></a>
<div class="activeSidenavBtn" id="imgPlain"><a class="btn btn--small" href="#">original</a></div>
<div id="imgAntique"> <a class="btn btn--small" href="#">antique</a></div>
<div id="imgAqua"> <a class="btn btn--small" href="#">aqua</a></div>
<div id="imgBlue"> <a class="btn btn--small" href="#">blue</a></div>
<div id="imgBlur"> <a class="btn btn--small" href="#">blur</a></div>
<div id="imgColor"> <a class="btn btn--small" href="#">colorful</a></div>
<div id="imgCool"> <a class="btn btn--small" href="#">cool</a></div>
<div id="imgEdge"> <a class="btn btn--small" href="#">edge</a></div>
<div id="imgEmboss"> <a class="btn btn--small" href="#">emboss</a></div>
<div id="imgEverglow"> <a class="btn btn--small" href="#">everglow</a></div>
<div id="imgGrayscale"> <a class="btn btn--small" href="#">grayscale</a></div>
<div id="imgGreen"> <a class="btn btn--small" href="#">green</a></div>
<div id="imgMean"> <a class="btn btn--small" href="#">mean</a></div>
<div id="imgNegate"> <a class="btn btn--small" href="#">negate</a></div>
<div id="imgPink"> <a class="btn btn--small" href="#">pink</a></div>
<div id="imgPixelate"> <a class="btn btn--small" href="#">pixelate</a></div>
<div id="imgRed"> <a class="btn btn--small" href="#">red</a></div>
<div id="imgRetro"> <a class="btn btn--small" href="#">retro</a></div>
<div id="imgSelectiveBlur"> <a class="btn btn--small" href="#">selective blur</a></div>
<div id="imgSepiaLight"> <a class="btn btn--small" href="#">sepia light</a></div>
<div id="imgSepiaDark"> <a class="btn btn--small" href="#">sepia dark</a></div>
<div id="imgSmooth"> <a class="btn btn--small" href="#">smooth</a></div>
<div id="imgSummer"> <a class="btn btn--small" href="#">summer</a></div>
<div id="imgVintage"> <a class="btn btn--small" href="#">vintage</a></div>
<div id="imgWashed"> <a class="btn btn--small" href="#">washed</a></div>
<div id="imgYellow"> <a class="btn btn--small" href="#">yellow</a></div>
</div>
<?php endif; ?>
<!-- Loader -->
<div class="stages" id="loader">
<?php if ($config['previewFromCam']): ?>
<video id="video" autoplay></video>
<?php endif; ?>
<div class="loaderInner">
<div class="spinner">
<i class="fa fa-cog fa-spin"></i>
</div>
<div id="counter"></div>
<div class="loading"></div>
</div>
</div>
<!-- Result Page -->
<div class="stages" id="result">
<a href="#" class="btn homebtn"><i class="fa fa-home"></i> <span data-l10n="home"></span></a>
<div class="resultInner hidden">
<?php if ($config['show_gallery']): ?>
<a href="#" class="btn gallery-button"><i class="fa fa-th"></i> <span data-l10n="gallery"></span></a>
<?php endif; ?>
<?php if ($config['use_qr']): ?>
<a href="#" class="btn qrbtn"><i class="fa fa-qrcode"></i> <span data-l10n="qr"></span></a>
<?php endif; ?>
<?php if ($config['use_mail']): ?>
<a href="#" class="btn mailbtn"><i class="fa fa-envelope"></i> <span data-l10n="mail"></span></a>
<?php endif; ?>
<?php if ($config['use_print']): ?>
<a href="#" class="btn printbtn"><i class="fa fa-print"></i> <span data-l10n="print"></span></a>
<?php endif; ?>
<?php if (!$config['force_buzzer']): ?>
<a href="#" class="btn newpic"><i class="fa fa-camera"></i> <span data-l10n="newPhoto"></span></a>
<?php if ($config['use_collage']): ?>
<a href="#" class="btn newcollage"><i class="fa fa-th-large"></i> <span
data-l10n="newCollage"></span></a>
<?php endif; ?>
<?php endif; ?>
<a href="#" class="btn deletebtn"><i class="fa fa-trash"></i> <span data-l10n="delete"></span></a>
</div>
<?php if ($config['use_qr']): ?>
<div id="qrCode" class="modal">
<div class="modal__body"></div>
</div>
<?php endif; ?>
</div>
<?php if ($config['show_gallery']): ?>
<?php include('template/gallery.template.php'); ?>
<?php endif; ?>
</div>
<?php include('template/pswp.template.php'); ?>
<div class="send-mail">
<i class="fa fa-times" id="send-mail-close"></i>
<p data-l10n="insertMail"></p>
<form id="send-mail-form" style="margin: 0;">
<input class="mail-form-input" size="35" type="email" name="sendTo">
<input id="mail-form-image" type="hidden" name="image" value="">
<?php if ($config['send_all_later']): ?>
<input type="checkbox" id="mail-form-send-link" name="send-link" value="yes">
<label data-l10n="sendAllMail" for="mail-form-send-link"></label>
<?php endif; ?>
<button class="mail-form-input btn" name="submit" type="submit" value="Senden">Senden</button>
</form>
<div id="mail-form-message" style="max-width: 75%"></div>
</div>
<div class="modal" id="print_mesg">
<div class="modal__body"><span data-l10n="printing"></span></div>
</div>
<div id="adminsettings">
<div style="position:absolute; bottom:0; right:0;">
<img src="resources/img/spacer.png" alt="adminsettings" ondblclick="adminsettings()" />
</div>
</div>
<script type="text/javascript" src="api/config.php"></script>
<script type="text/javascript" src="resources/js/adminshortcut.js"></script>
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="resources/js/l10n.js"></script>
<script type="text/javascript" src="resources/js/vendor/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="resources/js/vendor/TweenLite.min.js"></script>
<script type="text/javascript" src="resources/js/vendor/EasePack.min.js"></script>
<script type="text/javascript" src="resources/js/vendor/jquery.gsap.min.js"></script>
<script type="text/javascript" src="resources/js/vendor/CSSPlugin.min.js"></script>
<script type="text/javascript" src="node_modules/photoswipe/dist/photoswipe.min.js"></script>
<script type="text/javascript" src="node_modules/photoswipe/dist/photoswipe-ui-default.min.js"></script>
<script type="text/javascript" src="resources/js/photoinit.js"></script>
<script type="text/javascript" src="resources/js/theme.js"></script>
<script type="text/javascript" src="resources/js/core.js"></script>
<script type="text/javascript" src="resources/lang/<?php echo $config['language']; ?>.js"></script>
</body>
</html>