Automad
 All Classes Functions Variables Pages
start.php
1 <?php
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  * AUTOMAD
29  *
30  * Copyright (c) 2014 by Marc Anton Dahmen
31  * http://marcdahmen.de
32  *
33  * Licensed under the MIT license.
34  * http://automad.org/license
35  */
36 
37 
38 namespace Automad\Core;
39 
40 
41 defined('AUTOMAD') or die('Direct access not permitted!');
42 
43 
44 /*
45  * The GUI Start Page. As part of the GUI, this file is only to be included via the GUI class.
46  */
47 
48 
49 $Cache = new Cache();
50 $lastEdit = $Cache->getSiteMTime();
51 
52 
53 $this->guiTitle = $this->guiTitle . ' / ' . $this->tb['start_title'] . ' ' . ucwords($this->user());
54 $this->element('header');
55 
56 
57 ?>
58 
59  <div class="column content">
60  <div class="inner">
61  <div class="start">
62  <h1><?php echo $this->tb['start_title'] . ' ' . ucwords($this->user()); ?></h1>
63  <h4><?php echo $this->tb['start_last_edit']; ?> <span class="badge"><?php echo date('j. F Y, G:i', $lastEdit); ?>h</span></h4>
64  <h4><span class="automad-status" data-automad-status="cache"></span></h4>
65  <h4><span class="automad-status" data-automad-status="debug"></span></h4>
66  <h4>Automad Version <span class="badge"><?php echo AM_VERSION; ?></span></h4>
67  </div>
68  </div>
69  </div>
70 
71 <?php
72 
73 
74 $this->element('footer');
75 
76 
77 ?>