-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
98 lines (96 loc) · 5.35 KB
/
Copy pathindex.php
File metadata and controls
98 lines (96 loc) · 5.35 KB
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
<?php include('includes/functions.php');
include('includes/config.php');
if (isset($_GET['pageno'])) {
$pageno = $_GET['pageno'];
} else {
$pageno = 1;
}
$no_of_records_per_page = 3;
$offset = ($pageno-1) * $no_of_records_per_page;
$total_pages_sql = "SELECT COUNT(*) FROM `tblposts` WHERE `Is_Active` = 1";
$result = mysqli_query($con,$total_pages_sql);
$total_rows = mysqli_fetch_array($result)[0];
$total_pages = ceil($total_rows / $no_of_records_per_page);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="<?php echo call_user_func('get_metaData', 'homepage', 'MetaDescription') ?>" />
<meta name="keywords" content="<?php echo call_user_func('get_metaData', 'homepage', 'MetaKeywords') ?>" />
<meta property="og:image" content="<?php $data = call_user_func('get_metaData', 'homepage', 'PageBanner'); echo call_user_func('base_url', "admin/postimages/media/$data") ?>" />
<title><?php echo call_user_func('get_metaData', 'homepage', 'PageTitle') ?></title>
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<!-- Font Awesome icons (free version)-->
<script src="https://use.fontawesome.com/releases/v6.1.0/js/all.js" crossorigin="anonymous"></script>
<!-- Google fonts-->
<link href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet"
type="text/css" />
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
rel="stylesheet" type="text/css" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/styles.css" rel="stylesheet" />
<!-- Navigation-->
<?php include('includes/header.php'); ?>
</head>
<style>
<?php echo call_user_func('get_settings','CustomCss');?>
</style>
<body>
<!-- Page Header-->
<header class="masthead"
style="background-image: url(<?php $data = call_user_func('get_metaData', 'homepage', 'PageBanner'); echo call_user_func('base_url', "admin/postimages/media/$data") ?>)">
<div class="container position-relative px-4 px-lg-5">
<div class="row gx-4 gx-lg-5 justify-content-center">
<div class="col-md-10 col-lg-8 col-xl-7">
<div class="site-heading">
<?php echo call_user_func('get_metaData', 'homepage', 'Description') ?>
<div class="d-flex justify-content-center mb-4" style="margin-top: 20px">
<a data-action="share/whatsapp/share"
href="https://api.whatsapp.com/send?text=<?php echo call_user_func('base_url', ''); ?>"
target="_blank"><img
src="<?php echo call_user_func('base_url', 'assets/img/whatsapp.png'); ?>"
style="width: 30px; background-color: white; border-radius: 6px"
alt="Whatsapp"></a>
<a href="http://www.facebook.com/sharer.php?u=<?php echo call_user_func('base_url', ''); ?>"
target="_blank"><img
src="<?php echo call_user_func('base_url', 'assets/img/facebook.png'); ?>"
style="width: 30px; background-color: white; border-radius: 6px" alt="Facebook"></a>
<a href="http://twitter.com/share?url=<?php echo call_user_func('base_url', ''); ?>"
target="_blank"><img
src="<?php echo call_user_func('base_url', 'assets/img/twitter.png'); ?>"
style="width: 30px; background-color: white; border-radius: 6px"
alt="Twitter"></a>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo call_user_func('base_url', ''); ?>"
target="_blank"><img
src="<?php echo call_user_func('base_url', 'assets/img/linkedin.png'); ?>"
style="width: 30px; background-color: white; border-radius: 6px"
alt="Linkedin"></a>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content-->
<div class="container px-4 px-lg-5">
<div class="row gx-4 gx-lg-5 justify-content-center">
<div class="col-md-10 col-lg-8 col-xl-7">
<?php echo call_user_func('get_Feeds', '', '', $no_of_records_per_page, $offset) ?>
<!-- Pager-->
<div class="d-flex justify-content-start mb-4"><a class="btn btn-primary text-uppercase"
href="all-posts">All Posts →</a></div>
</div>
</div>
</div>
<!-- Footer-->
<?php include('includes/footer.php'); ?>
<!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<!-- Core theme JS-->
<script src="js/scripts.js"></script>
</body>
</html>