-
Notifications
You must be signed in to change notification settings - Fork 2
/
mobile_categories.php
116 lines (63 loc) · 3.01 KB
/
mobile_categories.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
<?php
session_start();
require_once("includes/db.php");
?>
<!DOCTYPE html>
<html lang="en" class="ui-toolkit">
<head>
<title><?php echo $site_name; ?> - Categories</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="<?php echo $site_desc; ?>">
<meta name="keywords" content="<?php echo $site_keywords; ?>">
<meta name="author" content="<?php echo $site_author; ?>">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100" rel="stylesheet">
<link href="styles/bootstrap.css" rel="stylesheet">
<link href="styles/custom.css" rel="stylesheet"> <!-- Custom css code from modified in admin panel --->
<link href="styles/styles.css" rel="stylesheet">
<link href="styles/categories_nav_styles.css" rel="stylesheet">
<link href="font_awesome/css/font-awesome.css" rel="stylesheet">
<link href="styles/sweat_alert.css" rel="stylesheet">
<!-- Optional: include a polyfill for ES6 Promises for IE11 and Android browser -->
<script src="js/ie.js"></script>
<script type="text/javascript" src="js/sweat_alert.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<?php if(!empty($site_favicon)){ ?>
<link rel="shortcut icon" href="images/<?php echo $site_favicon; ?>" type="image/x-icon">
<?php } ?>
</head>
<body class="is-responsive">
<?php require_once("includes/header.php"); ?>
<div class="container mt-4 mb-4 pb-4"><!-- container mt-5 Starts -->
<h2 class="text-center mb-4"> <?php echo $site_name; ?> Categories </h2>
<div class="row flex-wrap"><!-- row flex-wrap Starts -->
<?php
$get_categories = $db->select("categories",array("cat_featured" => "yes"));
while($row_categories = $get_categories->fetch()){
$cat_id = $row_categories->cat_id;
$cat_image = $row_categories->cat_image;
$cat_url = $row_categories->cat_url;
$get_meta = $db->select("cats_meta",array("cat_id" => $cat_id, "language_id" => $siteLanguage));
$row_meta = $get_meta->fetch();
$cat_title = $row_meta->cat_title;
$cat_desc = substr($row_meta->cat_desc,0,60);
?>
<div class="col-lg-4 col-md-6 col-sm-6">
<div class="mobile-category">
<a href="categories/<?php echo $cat_url; ?>">
<div class="ml-2 mt-3 category-picture">
<img src="cat_images/<?php echo $cat_image; ?>">
</div>
<div class="category-text">
<p class="category-title"> <strong><?php echo $cat_title; ?></strong> </p>
<p class="mb-4 category-desc"><?php echo $cat_desc; ?></p>
</div>
</a>
</div>
</div>
<?php } ?>
</div>
</div>
<?php require_once("includes/footer.php"); ?>
</body>
</html>