-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharticle.php
More file actions
42 lines (32 loc) · 1004 Bytes
/
article.php
File metadata and controls
42 lines (32 loc) · 1004 Bytes
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
<?php
$dao = new Dao();
$featuredArticles = $dao->getFeaturedArticle();
?>
<div class="row-fade" id="row-fade">
<div class="leftcolumn">
<div class="card" id="article">
<h2> <?php echo $article['title']; ?> </h2>
<h5><?php echo $article['subtitle']; ?> </h5>
<?php echo $article['body']; ?>
</div>
</div>
<div class="rightcolumn">
<div class="card">
<h2><?php echo $article['name']?></h2>
<p><?php echo $article['bio']?></p>
</div>
<div class="card">
<h3>Popular Posts</h3>
<?php while($row = $featuredArticles->fetch()) { ?>
<article class="article-post"> <h3> <a <?php echo "href=article-article.php?id=" . $row['id'];?>> <?php echo $row['title'] ?>
</h3><h5> by <?php echo $row['name']; ?> </a> </h5>
</article>
<?php } ?>
</div>
</div>
</div>
<script>
$(document).ready(function() {
$('#row-fade').fadeIn(3000);
});
</script>