Skip to content

Commit 2577bba

Browse files
committed
Blunt Blog
0 parents  commit 2577bba

File tree

653 files changed

+117355
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

653 files changed

+117355
-0
lines changed

404.php

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
session_start();
3+
include 'includes/header.php';
4+
include 'includes/navbar.php';
5+
?>
6+
7+
<!--page404-->
8+
<div class="page404 ">
9+
<div class="container-fluid">
10+
<div class="row">
11+
<div class="col-lg-8 m-auto">
12+
<div class="page404-content">
13+
<img src="assets/img/other/error404.png" alt="">
14+
<h3>Oops... Page Not Found!</h3>
15+
<p>The page which you are looking for does not exist. Please return to the homepage.
16+
</p>
17+
<a href="./" class="btn-custom">Back to homepage</a>
18+
</div>
19+
</div>
20+
</div>
21+
</div>
22+
</div>
23+
24+
25+
<!--instagram-->
26+
<?php
27+
include 'includes/instagrampost.php';
28+
?>
29+
30+
<?php
31+
include 'includes/footer.php';
32+
include 'includes/scripts.php';
33+
?>

about.php

+426
Large diffs are not rendered by default.

admin/add_category.php

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?php
2+
include 'includes/header.php';
3+
include 'includes/navbar.php';
4+
include 'includes/sidebar.php';
5+
6+
?>
7+
<!-- Container Start -->
8+
<div class="page-wrapper">
9+
<div class="main-content">
10+
<!-- Page Title Start -->
11+
<div class="row">
12+
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
13+
<div class="page-title-wrapper">
14+
<div class="page-title-box">
15+
<h4 class="page-title">Blog Category</h4>
16+
</div>
17+
<div class="breadcrumb-list">
18+
<ul>
19+
<li class="breadcrumb-link">
20+
<a href="index.php"><i class="fas fa-home mr-2"></i>Dashboard</a>
21+
</li>
22+
<li class="breadcrumb-link active">Blog Category</li>
23+
</ul>
24+
</div>
25+
</div>
26+
</div>
27+
</div>
28+
<!-- From Start -->
29+
<div class="from-wrapper">
30+
<div class="row">
31+
<div class="col">
32+
<div class="card">
33+
<div class="col">
34+
<!-- feedback message -->
35+
<?php include 'includes/feedbackmsg.php'; ?>
36+
</div>
37+
<div class="card-body">
38+
<form class="separate-form" action="../assets/insert.php?type=category" method="POST" enctype="multipart/form-data">
39+
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
40+
<div class="row">
41+
42+
<div class="col-12">
43+
<div class="form-group">
44+
<label for="catName" class="col-form-label">Category Name</label>
45+
<input type="text" class="col-md-8 form-control" name="catName" id="catName" required>
46+
<label for="catName" class="col-form-label">Category Color </label>
47+
<input class="col-md-2" style="height:15px;" type="color" id="catColor" name="catColor" value="#0f88e1" required>
48+
</div>
49+
</div>
50+
51+
<div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-12">
52+
<div class="form-group">
53+
<label for="catImage">Category Image</label>
54+
<div class="custom-file">
55+
<input type="file" class="custom-file-input" name="catImage" id="catImage" required>
56+
</div>
57+
</div>
58+
</div>
59+
60+
</div>
61+
<br>
62+
<div class="form-group mb-0">
63+
<button class="btn btn-secondary" type="button">Back</button>
64+
<input class="btn btn-primary" type="submit" name="submit">
65+
</div>
66+
</div>
67+
</form>
68+
</div>
69+
</div>
70+
</div>
71+
72+
73+
</div>
74+
75+
</div>
76+
<?php
77+
include 'includes/footer.php';
78+
?>
79+
<script src="//cdn.ckeditor.com/4.13.1/standard/ckeditor.js"></script>
80+
<!-- Text Editor Script -->
81+
<script>
82+
CKEDITOR.replace('arContent');
83+
</script>
84+
<?php
85+
include 'includes/scripts.php';
86+
?>

admin/add_post.php

+131
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
<?php
2+
include 'includes/header.php';
3+
include 'includes/navbar.php';
4+
include 'includes/sidebar.php';
5+
6+
$stmt = $conn->prepare("SELECT category_id, category_name FROM category");
7+
$stmt->execute();
8+
$categories = $stmt->fetchAll();
9+
10+
$stmt = $conn->prepare("SELECT author_id, author_fullname FROM author");
11+
$stmt->execute();
12+
$authors = $stmt->fetchAll();
13+
14+
?>
15+
<!-- Container Start -->
16+
<div class="page-wrapper">
17+
<div class="main-content">
18+
<!-- Page Title Start -->
19+
<div class="row">
20+
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
21+
<div class="page-title-wrapper">
22+
<div class="page-title-box">
23+
<h4 class="page-title">Blog Post</h4>
24+
</div>
25+
<div class="breadcrumb-list">
26+
<ul>
27+
<li class="breadcrumb-link">
28+
<a href="index.php"><i class="fas fa-home mr-2"></i>Dashboard</a>
29+
</li>
30+
<li class="breadcrumb-link active">Blog Post</li>
31+
</ul>
32+
</div>
33+
</div>
34+
</div>
35+
</div>
36+
<!-- From Start -->
37+
<div class="from-wrapper">
38+
<div class="row">
39+
40+
<div class="col">
41+
<div class="card">
42+
<div class="col">
43+
<!-- feedback message -->
44+
<?php include 'includes/feedbackmsg.php'; ?>
45+
</div>
46+
<div class="card-body">
47+
<form class="separate-form" action="../assets/insert.php?type=article" method="POST" enctype="multipart/form-data">
48+
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
49+
<div class="row">
50+
51+
<div class="col-12">
52+
<div class="form-group">
53+
<label for="arTitle" class="col-form-label">Post Title</label>
54+
<input class="form-control" type="text" placeholder="Enter Post Title" name="arTitle" id="arTitle" required>
55+
</div>
56+
</div>
57+
58+
<div class="col-12">
59+
<div class="form-group">
60+
<label for="arContent">Content</label>
61+
<textarea class="form-control" name="arContent" required id="arContent" rows="3" required></textarea>
62+
</div>
63+
</div>
64+
65+
<div class="col-12">
66+
<div class="form-group">
67+
<label for="arImage">Image</label>
68+
<div class="custom-file">
69+
<input type="file" class="" name="arImage" id="arImage" required>
70+
</div>
71+
</div>
72+
</div>
73+
74+
<div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-12">
75+
<div class="form-group s-opt">
76+
<label for="arCategory" class="col-form-label">Category</label>
77+
<select class="select2 form-control select-opt" name="arCategory" id="arCategory" required>
78+
<option disabled>-- Select Category --</option>
79+
<?php foreach ($categories as $category) : ?>
80+
<option value="<?= $category['category_id'] ?>"><?= $category['category_name'] ?></option>
81+
<?php endforeach; ?>
82+
</select>
83+
<span class="sel_arrow">
84+
<i class="fa fa-angle-down "></i>
85+
</span>
86+
</div>
87+
</div>
88+
89+
<div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-12">
90+
<div class="form-group s-opt">
91+
<label for="arAuthor" class="col-form-label">Author</label>
92+
<select class="select2 form-control select-opt" name="arAuthor" id="arAuthor" required>
93+
<option disabled>-- Select Author --</option>
94+
<?php foreach ($authors as $author) : ?>
95+
<option value="<?= $author['author_id'] ?>"><?= $author['author_fullname'] ?></option>
96+
<?php endforeach; ?>
97+
</select>
98+
<span class="sel_arrow">
99+
<i class="fa fa-angle-down "></i>
100+
</span>
101+
</div>
102+
</div>
103+
104+
105+
</div>
106+
107+
<div class="form-group mb-0">
108+
<button class="btn btn-secondary" type="button">Back</button>
109+
<input class="btn btn-primary" type="submit" name="submit">
110+
</div>
111+
</div>
112+
</form>
113+
</div>
114+
</div>
115+
</div>
116+
117+
118+
</div>
119+
120+
</div>
121+
<?php
122+
include 'includes/footer.php';
123+
?>
124+
<script src="//cdn.ckeditor.com/4.13.1/standard/ckeditor.js"></script>
125+
<!-- Text Editor Script -->
126+
<script>
127+
CKEDITOR.replace('arContent');
128+
</script>
129+
<?php
130+
include 'includes/scripts.php';
131+
?>

0 commit comments

Comments
 (0)