-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-new-blog-post.php
178 lines (166 loc) · 9.32 KB
/
create-new-blog-post.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?php
include "header.php";
if (file_exists('config/user_authentication.php')) {
include('config/user_authentication.php');
}
if (file_exists('config/general_user_authentication.php')) {
include('config/general_user_authentication.php');
}
if (file_exists('config/blog_page_authentication.php')) {
include('config/blog_page_authentication.php');
}
//To check the blogs count with current plan starts
$plan_type_blog_count = $user_plan_type['plan_type_blog_count'];
$blog_count_user = getCountUserBlog($_SESSION['user_id']);
if ($blog_count_user >= $plan_type_blog_count) {
$_SESSION['status_msg'] = $BIZBOOK['BLOGS_LIMIT_EXCEED_MESSAGE'];
header('Location: db-blog-posts');
exit();
}
//To check the blogs count with current plan ends
?>
<!-- START -->
<!--PRICING DETAILS-->
<section class="<?php if ($footer_row['admin_language'] == 2) {
echo "lg-arb";
} ?> login-reg">
<div class="container">
<div class="row">
<div class="login-main add-list">
<div class="log-bor"> </div>
<span class="steps"><?php echo $BIZBOOK['ADD_NEW_BLOG_POST']; ?></span>
<div class="log">
<div class="login add-list-off">
<h4><?php echo $BIZBOOK['CREATE_BLOG_POST']; ?></h4>
<form action="blog_insert.php" class="blog_form" id="blog_form" name="blog_form"
method="post" enctype="multipart/form-data">
<ul>
<li>
<!--FILED START-->
<div class="row">
<div class="col-md-12">
<div class="form-group">
<input type="text" name="blog_name" required="required"
class="form-control"
placeholder="<?php echo $BIZBOOK['POST_NAME']; ?>*">
</div>
</div>
</div>
<!--FILED END-->
<!--FILED START-->
<!--<div class="row">
<div class="col-md-12">
<div class="form-group">
<div class="bixedtr">
<div class="biz-toolbar bixedtr-tools"></div>
<div id='bizeditor' class="bizeditorpan" contenteditable>
<h2>Hero Heading</h2>
<p>Try making some changes here. Add your own text here..</p>
<p>Try making some changes here. Add your own text here..</p>
<h4>Hero heading 2</h4>
<p>Try making some changes here. Add your own text or maybe an image.</p>
</div>
</div>
</div>
</div>
</div>-->
<!--FILED END-->
<!--FILED START-->
<div class="row">
<div class="col-md-12">
<div class="form-group">
<select name="category_id"
id="category_id" class="chosen-select form-control">
<option value=""><?php echo $BIZBOOK['SELECT_CATEGORY']; ?></option>
<?php
foreach (getAllBlogCategories() as $categories_row) {
?>
<option <?php if ($_SESSION['category_id'] == $categories_row['category_id']) {
echo "selected";
} ?>
value="<?php echo $categories_row['category_id']; ?>"><?php echo $categories_row['category_name']; ?></option>
<?php
}
?>
</select>
</div>
</div>
</div>
<!--FILED END-->
<!--FILED START-->
<div class="row">
<div class="col-md-12">
<div class="form-group">
<textarea name="blog_description" id="blog_description"
required="required" class="form-control"
placeholder="<?php echo $BIZBOOK['POST_DETAILS']; ?>"></textarea>
</div>
</div>
</div>
<!--FILED END-->
<!--FILED START-->
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label><?php echo $BIZBOOK['CHOOSE_BANNER_IMAGE']; ?></label>
<div class="fil-img-uplo">
<span class="dumfil"><?php echo $BIZBOOK['UPLOAD_A_FILE']; ?></span>
<input type="file" name="blog_image" accept="image/*,.jpg,.jpeg,.png" class="form-control">
</div>
</div>
</div>
</div>
<!--FILED END-->
<!--FILED START-->
<div class="row">
<div class="col-md-12">
<div>
<div class="chbox">
<input type="checkbox" name="isenquiry" id="evefmenab" checked="">
<label
for="evefmenab"><?php echo $BIZBOOK['ENQUIRY_BOX_ENABLE']; ?></label>
</div>
</div>
</div>
</div>
<!--FILED END-->
</li>
</ul>
<!--FILED START-->
<div class="row">
<div class="col-md-12">
<button type="submit" name="blog_submit"
class="btn btn-primary"><?php echo $BIZBOOK['SUBMIT']; ?></button>
</div>
<div class="col-md-12">
<a href="dashboard" class="skip"><?php echo $BIZBOOK['GO_TO_USER_DASHBOARD']; ?>
>></a>
</div>
</div>
<!--FILED END-->
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!--END PRICING DETAILS-->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="<?php echo $slash; ?>js/select-opt.js"></script>
<script type="text/javascript">var webpage_full_link = '<?php echo $webpage_full_link;?>';</script>
<script type="text/javascript">var login_url = '<?php echo $LOGIN_URL;?>';</script>
<script src="js/custom.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/custom_validation.js"></script>
<script src="admin/ckeditor/ckeditor.js"></script>
<script>
CKEDITOR.replace('blog_description');
</script>
</body>
</html>