forked from vincent3569/zpArdoise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inc_print_image_statistic.php
43 lines (42 loc) · 1.57 KB
/
inc_print_image_statistic.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
<div id="image-stat" class="clearfix">
<h4 id="image-stat-title">
<?php
switch (getOption('image_statistic')) {
case 'random':
echo gettext('Random images'); break;
case 'popular':
echo gettext_th('Popular images'); break; /* to do : use zenphoto translation rather than local translation */
case 'latest':
echo gettext('Latest images'); break;
case 'latest-date':
echo gettext('Latest images'); break;
case 'latest-mtime':
echo gettext('Latest images'); break;
case 'mostrated':
echo gettext_th('Most rated images'); break;
case 'toprated':
echo gettext('Top rated images'); break;
}
?>
</h4>
<?php
if (getOption('use_galleriffic')) {
$number = 8; // displays 8 thumbnails with default size (85*85) with galleriffic script
} else {
$number = 5; // displays 5 thumbnails with default size (150*150)
}
if (getOption('image_statistic') == 'random') {
if (getOption('use_colorbox_album')) {
zpArdoise_printRandomImages($number, NULL, 'all', '', NULL, NULL, NULL, true, 'colorbox');
} else {
zpArdoise_printRandomImages($number, NULL, 'all', '', NULL, NULL, NULL, false);
}
} else {
if (getOption('use_colorbox_album')) {
zpArdoise_printImageStatistic($number, getOption('image_statistic'), '', false, false, false, '', '', NULL, NULL, NULL, false, true, 0, 'colorbox');
} else {
zpArdoise_printImageStatistic($number, getOption('image_statistic'), '', false, false, false, '', '', NULL, NULL, NULL, false, false, 0);
}
}
?>
</div>