-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
72 lines (63 loc) · 2.4 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
<?php
require_once 'functions.php';
$featured = get_featured('featured');
$teaser1 = get_featured('teaser1');
$teaser2 = get_featured('teaser2');
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Sortable - Connect lists</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<div class="row">
<div class="container">
<pre>
<div id="info" class="teal lighten-5">Waiting for update</div>
</pre>
<div class="col l8">
<div id="featured" class="card">
<div class="card-image">
<img src="<?php echo $featured[0]['image']; ?>" />
<span id="<?php echo $featured[0]['id']; ?>" class="card-title"><?php echo $featured[0]['title']; ?></span>
</div>
<div class="card-content">
<p><?php echo $featured[0]['content']; ?></p>
</div>
</div>
<div class="row">
<div class="col m6">
<div id="teaser1" class="card teaser" style="background-image: url(<?php echo $teaser1[0]['image']; ?>);">
<div class="card-content white-text">
<span class="card-title"><?php echo $teaser1[0]['title']; ?></span>
<p><?php echo $teaser1[0]['content']; ?></p>
</div>
</div>
</div>
<div class="col m6">
<div id="teaser2" class="card teaser" style="background-image: url(<?php echo $teaser2[0]['image']; ?>);">
<div class="card-content white-text">
<span class="card-title"><?php echo $teaser2[0]['title']; ?></span>
<p><?php echo $teaser1[0]['content']; ?></p>
</div>
</div>
</div>
</div>
</div>
<div class="col l4">
<h6 class="article-header teal lighten-4 strong">Drag articles to apropriate place</h6>
<div id="draggable" class="sortableConnect fromDatabase">
<?php include 'draggable.php'; ?>
</div>
</div>
</div>
</div>
</body>
</html>