-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·149 lines (141 loc) · 7.35 KB
/
index.html
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
<?php include 'header.php'?>
<!-- slider_area_start -->
<div class="slider_area ">
<div class="single_slider d-flex align-items-center justify-content-center slider_bg_1">
<div class="container">
<div class="row align-items-center justify-content-center">
<div class="col-xl-6 col-md-6">
<div class="illastrator_png">
<img src="/img/banner/edu_ilastration.png" alt="">
</div>
</div>
<div class="col-xl-6 col-md-6">
<div class="slider_info">
<h3>Find any <br>
Electronic project <br>
On Project Hub
</h3>
<?php if(isset($_SESSION['signed_in'])):?>
<a href="/create_post.html" class="boxed_btn">Post a new Project</a>
<?php endif?>
<a href="#popular_projects" class="boxed_btn">Browse Projects</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- slider_area_end -->
<!-- popular_courses_start -->
<div class="popular_courses" id="popular_projects">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="section_title text-center mb-100">
<h3>Popular Projects</h3>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-12">
<div class="course_nav">
<nav>
<ul class="nav" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">All Projects</a>
</li>
<?php
$categories = get_category_list();
foreach($categories as $category):?>
<li class="nav-item">
<a class="nav-link" id="<?php echo $category['id']?>-tab" data-toggle="tab" href="#<?php echo $category['id']?>"
role="tab" aria-controls="<?php echo $category['id']?>" aria-selected="false"><?php echo $category['name']?></a>
</li>
<?php endforeach?>
</ul>
</nav>
</div>
</div>
</div>
</div>
<div class="all_courses">
<div class="container">
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="row">
<?php
$para['limit'] = 6;
$projects = get_projects($para);
foreach($projects as $project):?>
<div class="col-xl-4 col-lg-4 col-md-6">
<div class="single_courses">
<div class="thumb">
<a href="<?php echo $url?>">
<img src="<?php echo $project['thumbnail']?>" alt="" height=250>
</a>
</div>
<div class="courses_info">
<span><?php echo $project['user_name']?></span>
<h3><a href="/project/<?php echo $project['project_id']?>/<?php echo preg_replace('/\s+/', '-', $project['title'])?>"><?php echo $project['title']?></a></h3>
<div class="star_prise d-flex justify-content-between">
<div class="star">
<?php for ($x=0; $x < $project['rating']; $x++):?>
<i class="flaticon-mark-as-favorite-star"> </i>
<?php endfor?>
</div>
</div>
</div>
</div>
</div>
<?php endforeach?>
<div class="col-xl-12">
<div class="more_courses text-center">
<a href="/category" class="boxed_btn_rev">More Projects</a>
</div>
</div>
</div>
</div>
<?php
$categories = get_category_list();
foreach($categories as $category):
$para['limit'] = 6;
$para['category_id'] = $category['id'];
$projects = get_projects($para);?>
<div class="tab-pane fade show" id="<?php echo $category['id']?>" role="tabpanel" aria-labelledby="<?php echo $category['id']?>-tab">
<div class="row">
<?php foreach($projects as $project):?>
<div class="col-xl-4 col-lg-4 col-md-6">
<div class="single_courses">
<div class="thumb">
<a href="<?php echo $url?>">
<img src="<?php echo $project['thumbnail']?>" alt="" height=250>
</a>
</div>
<div class="courses_info">
<span><?php echo $project['user_name']?></span>
<h3><a href="/project/<?php echo $project['project_id']?>/<?php echo preg_replace('/\s+/', '-', $project['title'])?>"><?php echo $project['title']?></a></h3>
<div class="star_prise d-flex justify-content-between">
<div class="star">
<?php for ($x=0; $x < $project['rating']; $x++):?>
<i class="flaticon-mark-as-favorite-star"> </i>
<?php endfor?>
</div>
</div>
</div>
</div>
</div>
<?php endforeach?>
<div class="col-xl-12">
<div class="more_courses text-center">
<a href="/category/<?php echo $category['id']?>/<?php echo preg_replace('/\s+/', '-', $category['name'])?>" class="boxed_btn_rev">More Projects</a>
</div>
</div>
</div>
</div>
<?php endforeach?>
</div>
</div>
</div>
</div>
<!-- popular_courses_end-->
<?php include 'footer.php'?>