-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
137 lines (131 loc) · 7.13 KB
/
main.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
<!DOCTYPE html>
<?php osc_current_web_theme_path('header.php'); ?>
<section id="search-header">
<div class="jumbotron jumbotron-fluid text-center bg-info text-white mb-0">
<div class="container">
<h1>Osclass Community Market</h1>
<p>Free Osclass plugins and themes.</p>
<a href="https://github.com/navjottomer/Osclass/releases/download/v3.9.0/osclass-v3.9.0.zip" class="btn btn-lg btn-dark">Osclass 3.9</a>
</div>
</div>
</section>
<!--<section id="top-downloads">
<div class="container">
<h2 class="text-center">Top Downloads</h2>
<br />
<div class="row">
<div class="col-6">
<div class="item">
<div class="col-3 float-left">
<img alt="Card image cap" src="https://market.osclass.org/oc-content/themes/osclass_org/images/no_photo_plugin_square.gif" class="card-img-top">
</div>
<div class="col-9">
<h5><strong><a class="text-dark" href="">Avatar plugin</a></strong> <br /><small>by: <a href="">Media.dmj</a></small></h5>
<p class="mb-0">Avatar plugin can upload the pro...</p>
<p class="mb-0 text-secondary"><small>120 views | 2028 Downloads</small></p>
</div>
<hr />
</div>
</div>
<div class="col-6">
<div class="item">
<div class="col-3 float-left">
<img alt="Card image cap" src="https://market.osclass.org/oc-content/themes/osclass_org/images/no_photo_plugin_square.gif" class="card-img-top">
</div>
<div class="col-9">
<h5><strong><a class="text-dark" href="">Avatar plugin</a></strong> <br /><small>by: <a href="">Media.dmj</a></small></h5>
<p class="mb-0">Avatar plugin can upload the pro...</p>
<p class="mb-0 text-secondary"><small>120 views | 2028 Downloads</small></p>
</div>
<hr />
</div>
</div>
<div class="col-6">
<div class="item">
<div class="col-3 float-left">
<img alt="Card image cap" src="https://market.osclass.org/oc-content/themes/osclass_org/images/no_photo_plugin_square.gif" class="card-img-top">
</div>
<div class="col-9">
<h5><strong><a class="text-dark" href="">Avatar plugin</a></strong> <br /><small>by: <a href="">Media.dmj</a></small></h5>
<p class="mb-0">Avatar plugin can upload the pro...</p>
<p class="mb-0 text-secondary"><small>120 views | 2028 Downloads</small></p>
</div>
<hr />
</div>
</div>
<div class="col-6">
<div class="item">
<div class="col-3 float-left">
<img alt="Card image cap" src="https://market.osclass.org/oc-content/themes/osclass_org/images/no_photo_plugin_square.gif" class="card-img-top">
</div>
<div class="col-9">
<h5><strong><a class="text-dark" href="">Avatar plugin</a></strong> <br /><small>by: <a href="">Media.dmj</a></small></h5>
<p class="mb-0">Avatar plugin can upload the pro...</p>
<p class="mb-0 text-secondary"><small>120 views | 2028 Downloads</small></p>
</div>
<hr />
</div>
</div>
</div>
</div>
</section>-->
<section id="recent-uploads" class="pt-4 pb-4 gray-bg">
<div class="container">
<h2 class="text-center mb-4">Recently Uploaded</h2>
<div class="row">
<?php while(osc_has_latest_items()) { ?>
<div class="col-md-6">
<div class="item">
<div class="col-3 float-left">
<img alt="<?php echo osc_item_title(); ?>" src="<?php echo item_default_image_url(); ?>" class="card-img-top">
</div>
<div class="col-9">
<h5 class="mb-0"><strong><a class="text-dark" href="<?php echo osc_item_url();?>"><?php echo osc_item_title(); ?></a></strong></h5>
<p class="mb-1">by: <a href="<?php echo osc_user_public_profile_url(osc_item_user_id());?>"><?php echo osc_item_contact_name();?></a></p>
<p class="mb-0"><?php echo osc_highlight( strip_tags( osc_item_description()), 25); ?></p>
<p class="mb-0 text-secondary"><small><?php echo get_downloads(osc_item_id()); ?> downloads</small></p>
</div>
<hr />
</div>
</div>
<?php } ?>
</div>
</div>
</section>
<?php if(osc_is_admin_user_logged_in()){ ?> <!--Need to remove this condition later-->
<section id="top-developers" class="pt-4 pb-4">
<div class="container">
<h2 class="text-center">Top Helping Developers</h2>
<br />
<div class="col-4 float-left">
<div class="float-left pr-3">
<img width="120" alt="Card image cap" src="https://mdbootstrap.com/img/Photos/Avatars/img%20(9).jpg" class="rounded-circle">
</div>
<div class="">
<h5><strong><a class="text-dark" href="">Media.dmj</a></strong> <br /><small>5 plugins | 8 Themes | 140 Posts</small></h5>
<p class="mb-0 text-warning"><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></p>
</div>
</div>
<div class="col-4 float-left">
<div class="float-left pr-3">
<img width="120" alt="Card image cap" src="https://mdbootstrap.com/img/Photos/Avatars/img%20(9).jpg" class="rounded-circle">
</div>
<div class="">
<h5><strong><a class="text-dark" href="">Media.dmj</a></strong> <br /><small>5 plugins | 8 Themes | 140 Posts</small></h5>
<p class="mb-0 text-warning"><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></p>
</div>
</div>
<div class="col-4 float-left">
<div class="float-left pr-3">
<img width="120" alt="Card image cap" src="https://mdbootstrap.com/img/Photos/Avatars/img%20(9).jpg" class="rounded-circle">
</div>
<div class="">
<h5><strong><a class="text-dark" href="">Media.dmj</a></strong> <br /><small>5 plugins | 8 Themes | 140 Posts</small></h5>
<p class="mb-0 text-warning"><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></p>
</div>
</div>
<div class="clearfix"></div>
</div>
</section>
<?php } ?>
<?php osc_current_web_theme_path('footer.php');?>