forked from vincent3569/zpBootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.php
91 lines (78 loc) · 2.93 KB
/
image.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
<?php include('inc_header.php'); ?>
<!-- .container -->
<!-- .page-header -->
<!-- .header -->
<h3><?php printGalleryTitle(); ?></h3>
</div><!-- .header -->
</div><!-- /.page-header -->
<div class="breadcrumb">
<h4>
<?php printGalleryIndexURL(' » ', getGalleryTitle(), false); ?><?php printParentBreadcrumb('', ' » ', ' » '); ?><?php printAlbumBreadcrumb('', ' » '); ?><?php printBareImageTitle(); ?>
</h4>
</div>
<nav class="nav_photo">
<ul class="pager">
<?php if (hasPrevImage()) { ?>
<li><a href="<?php echo html_encode(getPrevImageURL()); ?>" title="<?php echo gettext('Previous Image'); ?>">← <?php echo gettext('prev'); ?></a></li>
<?php } else { ?>
<li class="disabled"><a href="#">← <?php echo gettext('prev'); ?></a></li>
<?php } ?>
<?php if (hasNextImage()) { ?>
<li><a href="<?php echo html_encode(getNextImageURL()); ?>" title="<?php echo gettext('Next Image'); ?>"><?php echo gettext('next'); ?> →</a></li>
<?php } else { ?>
<li class="disabled"><a href="#"><?php echo gettext('next'); ?> →</a></li>
<?php } ?>
</ul>
</nav>
<?php printDefaultSizedImage(getBareImageTitle(), 'remove-attributes img-responsive center-block'); ?>
<div class="photo-description row">
<div class="col-sm-offset-2 col-sm-8">
<h4>
<?php printBareImageTitle(); ?>
<?php if ((getOption('zpB_show_exif')) && (getImageMetaData())) { ?>
<a href="#" data-toggle="modal" data-target="#exif_data"><span class="glyphicon glyphicon-info-sign"></span></a>
<?php } ?>
</h4>
</div>
<div class="col-sm-offset-2 col-sm-8">
<?php printImageDesc(); ?>
</div>
<?php if ((getOption('zpB_show_exif')) && (getImageMetaData())) { ?>
<div id="exif_data" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<?php printImageMetadata(NULL, false); ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo gettext('close'); ?></button>
</div>
</div>
</div>
</div>
<?php } ?>
<?php if ((getOption('zpB_show_tags')) && (getTags())) { ?>
<div class="col-sm-offset-2 col-sm-8">
<?php printTags('links', NULL, 'nav nav-pills', NULL); ?>
</div>
<?php } ?>
</div>
<?php if ((zp_loggedin()) && (extensionEnabled('favoritesHandler'))) { ?>
<div class="row">
<div class="col-sm-offset-2 col-sm-8 photo-infos favorites">
<?php printAddToFavorites($_zp_current_image); ?>
</div>
</div>
<?php } ?>
<?php if (extensionEnabled('rating')) { ?>
<div class="row">
<div class="col-sm-offset-2 col-sm-8 photo-infos rating">
<?php printRating(); ?>
</div>
</div>
<?php } ?>
<?php if (extensionEnabled('comment_form')) { ?>
<?php include('inc_print_comment.php'); ?>
<?php } ?>
</div><!-- /.container main -->
<?php include('inc_footer.php'); ?>