-
Notifications
You must be signed in to change notification settings - Fork 0
/
albums.php
53 lines (47 loc) · 1.44 KB
/
albums.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
<?php
//include 'classes.php';
use Tracy\Debugger;
?>
<div class="dialog text-center" style="display:none;">
Odkaz bol skopirovany do schranky.
</div>
<div id="customMyGallery" >
<?php
foreach ($api->getAlbumsList(array_key_exists('page', $_REQUEST) ? $_REQUEST['page'] : null) as $key=>$album) {
echo '
<div class="customCover">
<div class="customGal">
<a class="customAlb" href="?id='.$api->getAlbumID($album).'">
<div id="'.$api->getAlbumID($album).'" gallerynumber="'.$key.'" class="customImage" style="background-image: url("'.$api->getAlbumCoverImageURL($album).'");"></div>
</a>
<a class="customLink" href="?id='.$api->getAlbumID($album).'">
'.$api->getAlbumTitle($album).'
</a>
<div class="customInfo">
<span class="customSum">
'.$api->getAlbumPhotoCount($album).' fotiek
</span>
<span class="customShare" data-album-url="'.$api->getAlbumURL($album).'">
Zdieľať
</span>
</div>
</div>
</div>
';
}
?>
</div>
<?php
if ($api->getAlbumsPaginationRequired()) {
echo '<div id="pagination" class="text-center">';
$page = array_key_exists('page', $_REQUEST) ? $_REQUEST['page'] : 1;
foreach ($api->getAlubmsPagination() as $key=>$item) {
$active = ($page == $key) ? ' active' : '';
echo '
<a href="'.$item['url'].'">
<button page="'.$key.'" class="paginationButton'.$active.'">'.$key.'</button>
</a>';
}
echo '</div>';
}
?>