-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
51 lines (42 loc) · 1.1 KB
/
index.php
File metadata and controls
51 lines (42 loc) · 1.1 KB
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
<?php
require_once('functions.php');
require_once('tasker.php');
require_once('header.php');
?>
<div id="posts">
<h2>All Posts</h2>
<table class="listing">
<thead>
<tr><th>Date</th><th>Title</th><th>Action</th></tr>
</thead>
<tbody>
<?php
foreach($warehouse['posts'] as $post){
echo '<tr><td>'.$post['date'].'</td><td>'.$post['title'].'</td><td>
<button class="post_edit" data-filename="'.$post['filename'].'">edit</button>
<button class="post_edit" data-filename="'.$post['filename'].'">unpublish</button>
<button class="post_preview" data-link="'.$post['link'].'">preview</button>
</td></tr>';
}
?>
</tbody>
</table>
</div>
<div id="writer">
<h2>
Write/Edit:
<span id="edit_status"></span>
<span style="float:right">
<button id="save">save</button>
<button id="preview">preview</button>
<button id="schedule">schedule publish</button>
<button id="publish">publish now</button>
</span>
</h2>
<div class="half">
<textarea id="md">#Title</textarea>
</div>
<div class="half" id="viewer">
</div>
</div>
<?php require_once('footer.php');?>