-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.php
108 lines (99 loc) · 5.28 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
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
<?php
include './includes/config.php';
$title = "Malgadi Electronics | Shop Electronic Components Online";
$pageDescription = "Malgadi is a for the students, by the student's venture. It is a non-profitable organization started by the college students to provide better quality electronic components at a reasonable rate.";
$imagePath = BaseAddress."/images/logo.jpg";
$canonUrl = BaseAddress;
$extendNavbar=1;
$searchVisibility=1;
$cartVisibility=1;
$subtitleVisibility=1;
include './includes/header.php';
?>
<!-- Slider -->
<section>
<div class="slider">
<ul class="slides">
<?php
$slides = file_get_contents("./json/slider.json");
$slides = json_decode($slides,true);
foreach ($slides as $slide) {
?>
<li>
<img src="<?php echo BaseAddress; ?><?php echo $slide['image']; ?>" alt="<?php echo $slide['imageAlt']; ?>">
<div class="caption <?php echo $slide['alignment']; ?>">
<h3 class="<?php echo $slide['captionBigClasslist']; ?>"><?php echo $slide['captionBig']; ?></h3>
<h5 class="<?php echo $slide['captionSmallClasslist']; ?>"><?php echo $slide['captionSmall']; ?></h5>
</div>
</li>
<?php
}
?>
</ul>
</div>
</section>
<!-- Featured Cards -->
<?php
$cardObject = $pdo->prepare('SELECT * FROM items WHERE `Featured`=1 AND `Deprecated`=0 ORDER by `ID` DESC');
$cardObject->execute();
include './includes/cards.php';
?>
<section>
<div class="container">
<div class="row">
<div class="col s12 center">
<iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fmalgadi.co.in%2F&width=230&layout=standard&action=like&size=small&show_faces=true&share=true&height=80&appId" width="250" height="80" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>
</div>
</div>
</div>
</section>
<!-- Social -->
<section class="blue darken-2 social-icons">
<div class="row center">
<div class="col s12">
<h5 class="light white-text">CONNECT WITH US</h5>
</div>
<div class="col s12">
<a target="_blank" href="https://www.facebook.com/malgadi.co.in/"><i class="fa fa-facebook-official"></i></a>
<a target="_blank" href="https://www.instagram.com/malgadi_ndd/"><i class="fa fa-instagram"></i></a>
<a target="_blank" href="https://www.youtube.com/channel/UC37swT-hpPGfXfg01CTPOBQ"><i class="fa fa-youtube-play"></i></a>
<a target="_blank" href="mailto:[email protected]"><i class="fa fa-envelope-o"></i></a>
<a class="modal-trigger" href="#contactModal"><i class="fa fa-phone"></i></a>
</div>
</div>
<div class="row"></div>
<div class="row center">
<div class="col s12">
<h5 class="light white-text">LEARN / CONTRIBUTE TO THE CODE</h5>
</div>
<div class="col s12">
<a target="_blank" href="https://github.com/malgadi-nadiad/Electronics"><i class="fa fa-github"></i></a>
</div>
<div class="col s12">
<a class="github-button" href="https://github.com/malgadi-nadiad/electronics/fork" data-icon="octicon-repo-forked" data-size="large" data-show-count="true" aria-label="Fork malgadi-nadiad/electronics on GitHub">Fork</a>
<a class="github-button" href="https://github.com/malgadi-nadiad/electronics/issues" data-icon="octicon-issue-opened" data-size="large" data-show-count="true" aria-label="Issue malgadi-nadiad/electronics on GitHub">Issue</a>
</div>
<div class="col s12 center white-text">
<h6 class="light">CONTRIBUTE TO THE CODE AND GET A CHANCE TO BE A PART OF MALGADI TEAM!</h6>
</div>
</div>
<script async defer src="./js/github-buttons.js"></script>
</section>
<!-- Homepage Cards -->
<?php
$cardObject = $pdo->prepare('SELECT * FROM items WHERE `Homepage`=1 AND `Deprecated`=0 ORDER by `ID` DESC');
$cardObject->execute();
include './includes/cards.php';
?>
<section class="grey-text text-darken-3 hide-on-large-only">
<div class="container">
<div class="row">
<div class="col s12 center">
<button class="btn-large waves-light waves-effect red" onclick="openSidenav()">Browse Categories<i class="fa fa-list right" aria-hidden="true"></i></button>
</div>
</div>
</div>
</section>
<?php
include './includes/footer.php';
?>