-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathblog.php
53 lines (41 loc) · 1.6 KB
/
blog.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
<script type="text/javascript">
function listele(pageCount,activePage){
$.ajax({
url: '<?=$sitelink?>ajax.php',
data: {type:'bloglist',activePage:activePage,pageCount:pageCount},
type: 'POST',
success: function(response){
$("#yazilar").append(response);
}
});
}
$(function(){
var pC = 3;
var aP = 1;
listele(pC,aP);
$(window).scroll(function(){
if($(document).height() == $(window).scrollTop() + $(window).height()){
aP++;
listele(pC,aP);
}
});
});
</script>
<div class="uk-container ">
<div uk-filter="target: .js-filter">
<ul class="uk-subnav uk-subnav-pill">
<li class="uk-active" uk-filter-control><a href="#">Bütün Kategoriler</a></li>
<?php
$sorkategori = mysqli_query("SELECT DISTINCT article_category FROM article ORDER BY article_datestamp DESC");
while($kategori=@mysqli_fetch_assoc($sorkategori)){
$Article_category = $kategori["article_category"];
?>
<li uk-filter-control="[data-category='<?=seo($Article_category)?>']"><a href="#"><?=$Article_category?></a></li>
<?php
}
?>
</ul>
<div id="yazilar" class="uk-grid-divider uk-child-width-1-4 uk-flex-center js-filter" uk-grid="masonry: true">
</div>
</div>
</div>