nextgen-gallery /products/photocrati_nextgen/modules/ngglegacy/view/album-compact.php

Language PHP Lines 61
MD5 Hash c5648e3c7d7c8c1b60bd237d2d12849c Estimated Cost $468 (why?)
Repository https://bitbucket.org/photocrati/nextgen-gallery View Raw File View Project SPDX
 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
<?php
/**
Template Page for the album overview

Follow variables are useable :

    $album     	 : Contain information about the first album
    $albums    	 : Contain information about all albums
	$galleries   : Contain all galleries inside this album
	$pagination  : Contain the pagination content

 You can check the content when you insert the tag <?php var_dump($variable) ?>
 If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
**/
?>
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($galleries)) : ?>

<div class="ngg-albumoverview">

	<!-- List of galleries -->
	<?php foreach ($galleries as $gallery) : ?>

	<div class="ngg-album-compact">
		<div class="ngg-album-compactbox">
			<div class="ngg-album-link">
				<a class="Link" href="<?php echo nextgen_esc_url($gallery->pagelink) ?>">
					<img class="Thumb" alt="<?php echo esc_attr($gallery->title) ?>" src="<?php echo nextgen_esc_url($gallery->previewurl) ?>"/>
				</a>
			</div>
		</div>
        <?php if (!empty($image_gen_params)) {
            $max_width = 'style="max-width: ' . ($image_gen_params['width'] + 20) . 'px"';
        } else {
            $max_width = '';
        } ?>
        <h4>
            <a class="ngg-album-desc"
               title="<?php echo esc_attr($gallery->title) ?>"
               href="<?php echo nextgen_esc_url($gallery->pagelink) ?>"
               <?php echo $max_width; ?>>
                <?php echo $gallery->title ?>
            </a>
        </h4>
		<p class="ngg-album-gallery-image-counter">
			<?php if (isset($gallery->counter) && $gallery->counter > 0) { ?>
				<strong><?php echo $gallery->counter; ?></strong>&nbsp;<?php _e('Photos', 'nggallery'); ?>
			<?php } else { ?>
				&nbsp;
			<?php } ?>
		</p>
	</div>

 	<?php endforeach; ?>

	<!-- Pagination -->
    <br class="ngg-clear"/>
 	<?php echo $pagination ?>
</div>

<?php endif; ?>
Back to Top