-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
69 lines (47 loc) · 1.36 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
<?php include "includes/header.php"; ?>
<?php
// Calling displayAllPublishedArticleCount method of Article class
$displayAllPublishedArticleCount = $article->displayAllPublishedArticleCount();
// Getting the published article count, if not zero articles will be displayed
if($displayAllPublishedArticleCount != 0 ){
?>
<!-- Header -->
<?php include "includes/navigation.php"; ?>
<!-- End Header -->
<!-- block-wrapper-section -->
<section class="block-wrapper">
<div class="container">
<div class="row">
<div class="col-sm-8">
<!-- main content -->
<?php include "partials/main-content.php"; ?>
<!-- End main content -->
</div>
<div class="col-sm-4">
<!-- sidebar -->
<div class="sidebar">
<!-- search widget -->
<?php include "partials/widgets/search-widget.php"; ?>
<!-- End search widget -->
<!-- tags widget -->
<?php include "partials/widgets/tags-widget.php"; ?>
<!-- End tags widget -->
<!-- articles widget -->
<?php include "partials/widgets/articles-widget.php"; ?>
<!-- End articles widget -->
</div>
<!-- End sidebar -->
</div>
</div>
</div>
</section>
<!-- End block-wrapper-section -->
<?php
// If published article count is zero, below will be displayed
}else{
include "underconstruction.php";
}
?>
<!-- footer -->
<?php include "includes/footer.php"; ?>
<!-- End footer -->