Exemplo n.º 1
0
function show_pagenav()
{
    if (getTotalPages() != 1) {
        ?>
			<div id="pagenav">	
				<?php 
        printPageListWithNav("« prev", "next »");
        ?>
			</div> <?php 
    } else {
        if (getTotalPages() == 1) {
            ?>
			<div id="pagenav"></div>
			<?php 
        }
    }
}
Exemplo n.º 2
0
/**
 * Prints a list of all pages.
 *
 * @param string $class the css class to use, "pagelist" by default
 * @param string $id the css id to use
 * @param int $navlen Number of navigation links to show (0 for all pages). Works best if the number is odd.
 */
function printPageList($class = 'pagelist', $id = NULL, $navlen = 9)
{
    printPageListWithNav(null, null, false, false, $class, $id, false, $navlen);
}
/**
 * Prints a list of all pages.
 *
 * @param string $class the css class to use, "pagelist" by default
 * @param string $id the css id to use
 */
function printPageList($class = 'pagelist', $id = NULL)
{
    printPageListWithNav(null, null, false, false, $class, $id);
}
Exemplo n.º 4
0
		<?php 
        $c++;
        $mobilebreak = $c % 2;
        if ($c == $breakcount) {
            echo '<br class="clear clearforboth" />';
            $c = 0;
        } else {
            if ($mobilebreak == 0) {
                echo '<br class="clear clearformobile" />';
            }
        }
    }
}
?>

		<div class="sixteen columns">
<?php 
if (hasNextPage() || hasPrevPage()) {
    printPageListWithNav('«', '»', false, true, 'pagination', null, true, 5);
}
if ($numimages > 0) {
    printPPSlideShowLink(gettext('Slideshow'));
}
?>
		</div>
	</div>
</div>

<?php 
include "inc-bottom.php";
include "inc-footer.php";
Exemplo n.º 5
0
															<?php 
    printAlbumTitle();
    ?>
														</a>
													</h3>
													<br />
													<small><?php 
    printAlbumDate();
    ?>
</small>
												</div>
												<p style="clear: both;"></p>
											</div>
											<?php 
}
printPageListWithNav(gettext("« prev"), gettext("next »"));
?>
									</div><!-- album -->
									<?php 
?>
									<p style="clear: both;"></p>
									<?php 
printCodeblock(2);
?>
									<?php 
footer();
?>
								</div><!-- main -->
								<span class="clear"></span>
							</div><!-- left corner -->
						</div><!-- right corner -->
Exemplo n.º 6
0
			<?php 
        }
        ?>
			</li>
			<?php 
    }
    ?>
		</ul>
	</div>
	<?php 
}
?>

	<?php 
if (getPrevPageURL() || getNextPageURL()) {
    printPageListWithNav('« ' . gettext('Prev'), gettext('Next') . ' »', false, 'true', 'page-nav', '', true, '5');
}
?>

	<?php 
if (function_exists('printGoogleMap')) {
    ?>
			<div class="gmap">
		<?php 
    setOption('gmap_width', 600, false);
    printGoogleMap();
    ?>
			</div>
	<?php 
}
?>
Exemplo n.º 7
0
    } else {
        printf(gettext('Sorry, no matches for <em>%s</em>. Try refining your search.'), html_encode($searchwords));
    }
    ?>
						</p>
					</div>
				</div> <!-- main3 -->
				<?php 
}
?>

			<!-- Page Numbers -->

			<div id="pagenumbers">
				<?php 
if (getNumAlbums() != 0 || !$_oneImagePage) {
    printPageListWithNav("« " . gettext('prev'), gettext('next') . " »", $_oneImagePage);
}
?>
			</div> <!-- pagenumbers -->
		</div> <!-- subcontent -->

		<!-- Footer -->
		<br style="clear:all" />
		<?php 
printFooter();
zp_apply_filter('theme_body_close');
?>

	</body>
</html>
Exemplo n.º 8
0
/images/details.png" /></a>
							</div>
							<?php 
    }
    ?>
						</div>
						<?php 
}
?>
					</div>
					<?php 
if (hasPrevPage() || hasNextPage()) {
    ?>
					<div id="pagination">
						<?php 
    printPageListWithNav("← " . gettext("prev"), gettext("next") . " →");
    ?>
					</div>
					<?php 
}
?>
					<?php 
if (function_exists('printGoogleMap')) {
    ?>
<div class="section"><?php 
    setOption('gmap_width', 550, false);
    printGoogleMap();
    ?>
</div><?php 
}
?>
Exemplo n.º 9
0
        ?>
</a></div>
									</div>
								<?php 
    }
    ?>
							</div>
							<br class="clearall" />
						<?php 
}
?>
						<?php 
@call_user_func('printSlideShowLink');
if ($total == 0) {
    echo "<p>" . gettext("Sorry, no matches found. Try refining your search.") . "</p>";
}
printPageListWithNav("« " . gettext("prev"), gettext("next") . " »", FALSE, TRUE, "pager", TRUE, 9);
?>
					
			</div><!-- content -->
			<?php 
include "footer.php";
?>
			
		</div><!-- main -->
		<!-- theme body close filter -->
		<?php 
zp_apply_filter('theme_body_close');
?>
	</body>
</html>
Exemplo n.º 10
0
					<p align="center"><?php 
            echo gettext('Album is empty');
            ?>
</p>
					</div>
				</div> <!-- main3 -->
				<?php 
        }
    }
    ?>

<!-- Page Numbers -->
		<div id="pagenumbers">
		<?php 
    if (getNumSubalbums() != 0 || !$oneImagePage) {
        printPageListWithNav("&laquo; " . gettext('prev'), gettext('next') . " &raquo;", $oneImagePage);
    }
    ?>
		</div> <!-- pagenumbers -->


</div> <!-- subcontent -->

<!-- Footer -->
<br style="clear:all" />

<?php 
    printFooter('album');
    ?>

Exemplo n.º 11
0
    ?>
</a></h3>
				<p><?php 
    printAlbumDesc();
    ?>
</p>
			</div>
			<p style="clear: both; "></p>
		</div>
		<?php 
}
?>
	</div>

	<?php 
printPageListWithNav("« " . gettext('prev'), gettext('next') . " »", false, true, 'pagelist', NULL, true, 9);
?>

</div>

<div id="credit"><?php 
printZenphotoLink();
?>
 | <a href="http://www.tanarat.com/blogs" title="Theme: Moon Lover">Moon Lover</a></div>

<?php 
zp_apply_filter('theme_body_close');
?>

</body>
</html>
Exemplo n.º 12
0
    ?>
" title="<?php 
    echo getAnnotatedAlbumTitle();
    ?>
">
        <?php 
    printAlbumTitle();
    ?>
      </a>
    </h3>
    <p class="date">
      <?php 
    printAlbumDate();
    ?>
    </p>
    <p>
      <?php 
    printAlbumDesc();
    ?>
    </p>
  </div>
<?php 
}
?>
<br class="clear" />
<?php 
printPageListWithNav(gettext("Previous"), gettext("Next"));
?>

<?php 
echo $layout['footer'];
Exemplo n.º 13
0
    $c++;
    $mobilebreak = $c % 2;
    if ($c == $breakcount) {
        echo '<br class="clear clearforboth" />';
        $c = 0;
    } else {
        if ($mobilebreak == 0) {
            echo '<br class="clear clearformobile" />';
        }
    }
}
?>
		<div class="sixteen columns">
			<?php 
if (hasNextPage() || hasPrevPage()) {
    printPageListWithNav("«", "»", false, true, 'pagination', null, true, 5);
}
?>
			<?php 
if (function_exists('printAddToFavorites')) {
    printAddToFavorites($_zp_current_album);
}
?>
			<?php 
printPPSlideShowLink(gettext('Slideshow'));
?>
			<?php 
if ($zpskel_social) {
    include 'inc-social.php';
}
?>
Exemplo n.º 14
0
								<?php 
    printCustomSizedImage(getAnnotatedImageTitle(), NULL, 376, 140, 376, 140, NULL, NULL, NULL, NULL, true, NULL);
    ?>
							</a>
							<span><?php 
    echo getAnnotatedImageTitle();
    ?>
</span>
						</li>
						<?php 
}
?>
					</ul>
				</div>
				<div class="clear"></div>
				<?php 
printPageListWithNav("« " . gettext("prev"), gettext("next") . " »", false, true, 'pagelist', null, true, 5);
?>
			</div>
			<div id="footer" class="grid_15">
				<?php 
printFooter();
?>
			</div>
		</div>
		<?php 
zp_apply_filter('theme_body_close');
?>
    </body>
</html>
Exemplo n.º 15
0
    ?>
</a>
						  </div>
					  </div>
					  <?php 
}
if (function_exists('printSlideShowLink')) {
    ?>
						<p style="clear: both;"></p>
						<?php 
    printSlideShowLink(gettext('View Slideshow'), 'text-align:center;');
}
?>
			 </div>
			<?php 
printPageListWithNav(gettext("&laquo; prev"), gettext("next &raquo;"));
footer();
?>
            <p style="clear: both;"></p>
            </div>
            <!-- end content -->
            <span class="clear"></span>
        </div>
      </div>
    </div>
    <div class="sidebar">
      <div id="rightsidebar">
      </div>
    </div>
    <span class="clear"></span>
	</div>
Exemplo n.º 16
0
					</div>
				</div>
				<?php 
if ((hasNextPage() || hasPrevPage()) && (getOption('zpbase_galhomeop') == 'albums' && $showall == false)) {
    $jumpclass = 'jump';
    $pagin = true;
} else {
    $jumpclass = 'jump center';
    $pagin = false;
}
?>
				<div id="page-nav">
					<div class="<?php 
echo $jumpclass;
?>
"><?php 
printBaseAlbumMenuJump('count', gettext('Gallery Index'));
?>
</div>
					<?php 
if ($pagin) {
    printPageListWithNav('« ' . gettext('prev set'), gettext('next set') . ' »', false, true, 'pagination');
}
?>
				</div>	

		</div>
	</div> 
<?php 
include 'sdscroll-jscall.php';
include 'footer.php';
Exemplo n.º 17
0
    ?>
</small>
												</div>
												<p style="clear: both;"></p>
											</div>
											<?php 
}
?>
									</div>
									<p style="clear: both; "></p>
									<?php 
$handler->theme_content(NULL);
?>
									<?php 
if (getNumAlbums() != 0 || !$_oneImagePage) {
    printPageListWithNav(gettext("« prev"), gettext("next »"), $_oneImagePage);
}
footer();
?>
									<p style="clear: both;"></p>
								</div>
								<!-- end content -->
								<span class="clear"></span>
							</div>
						</div>
					</div>
					<div class="sidebar">
						<div id="rightsidebar">
						</div>
					</div>
					<span class="clear"></span>
Exemplo n.º 18
0
        printf(gettext('Sorry, no matches for <em>%s</em>. Try refining your search.'), $searchwords);
    }
    ?>
			</p>
		</div>
		</div> <!-- main3 -->
		<?php 
}
?>

<!-- Page Numbers -->

		<div id="pagenumbers">
		<?php 
if ($numalbums != 0 || $_noFlash) {
    printPageListWithNav("&laquo; prev", "next &raquo;", !$_noFlash);
}
?>
		</div> <!-- pagenumbers -->
</div> <!-- subcontent -->

<!-- Footer -->
<div class="footlinks">

<?php 
if (getOption('Use_Simpleviewer') && !MOD_REWRITE) {
    /* display missing css file error */
    echo '<div class="errorbox" id="message">';
    echo "<h2>" . gettext('Simpleviewer requires <em>mod_rewrite</em> to be set. Simpleviewer is disabled.') . "</h2>";
    echo '</div>';
}
Exemplo n.º 19
0
    printImageThumb(getImageTitle());
    ?>
</a>
			</div>
			</div>
		</div>


		<?php 
}
?>
	<p style="margin:0px;padding:0px;clear: both; ">&nbsp;</p>
	</div>

	<?php 
printPageListWithNav("« prev", "next »");
?>

</div>

<div id="credit"><?php 
if (!zp_loggedin()) {
    printUserLogin_out($before = '', $after = '|', $showLoginForm = NULL, $logouttext = NULL, $show_user = NULL);
} else {
    printLink(WEBPATH . '/' . ZENFOLDER . '/admin.php', 'Admin');
}
printZenphotoLink();
?>
</div>

<?php 
Exemplo n.º 20
0
            ?>

			<div class="pagination-nogal clearfix">
				<?php 
            printPageListWithNav(' « ', ' » ', false, true, 'clearfix', NULL, true, 7);
            ?>
			</div>

			</noscript>
			<!-- End of noscript display -->

			<?php 
        } else {
            include 'inc_print_image_thumb.php';
        }
    }
    if (!(getNumImages() > 0 && getOption('use_galleriffic'))) {
        ?>
		<div class="pagination-nogal">
			<?php 
        printPageListWithNav(' « ', ' » ', false, true, 'clearfix', NULL, true, 7);
        ?>
		</div>
		<?php 
    }
    ?>
	<?php 
    include 'inc_footer.php';
} else {
    include SERVERPATH . '/' . ZENFOLDER . '/404.php';
}
Exemplo n.º 21
0
</a>
 				<?php 
        printAlbumDate("");
        echo truncate_string(getAlbumDesc(), 45);
    }
}
if (getNumImages() > 0) {
    while (next_image()) {
        ?>
				<a href="<?php 
        echo html_encode(getImageLinkURL());
        ?>
" title="<?php 
        echo getBareImageTitle();
        ?>
"><?php 
        printImageThumb(getBareImageTitle());
        ?>
</a>
				<?php 
    }
}
if ($total == 0) {
    echo "<p>" . gettext("Sorry, no matches found. Try refining your search.") . "</p>";
}
printPageListWithNav("&laquo; " . gettext("prev"), gettext("next") . " &raquo;");
printAdminToolbox();
zp_apply_filter('theme_body_close');
?>
	</body>
</html>
Exemplo n.º 22
0
?>
				</h4>
			</div>

			<?php 
printPageListWithNav('«', '»', false, true, 'pagination', NULL, true, 7);
?>

			<?php 
if (!getOption('zpB_homepage')) {
    ?>
			<div class="page-header bottom-margin-reset">
				<p><?php 
    printGalleryDesc();
    ?>
</p>
			</div>
			<?php 
}
?>

			<?php 
include 'inc_print_album_thumb.php';
?>

			<?php 
printPageListWithNav('«', '»', false, true, 'pagination', NULL, true, 7);
?>

<?php 
include 'inc_footer.php';
Exemplo n.º 23
0
    printAlbumTitle();
    ?>
</a></h4>
						</li>
					<?php 
}
?>
				</ul>
				<div class="clearage"></div>
				<?php 
printNofM('Album', $firstAlbum, $lastAlbum, getNumAlbums());
?>

			</div> <!-- main -->
			<!-- Page Numbers -->
			<div id="pagenumbers">
				<?php 
printPageListWithNav("« " . gettext('prev'), gettext('next') . " »");
?>
			</div>
		</div> <!-- content -->

		<br style="clear:all" />

		<?php 
printFooter();
zp_apply_filter('theme_body_close');
?>

	</body>
</html>
Exemplo n.º 24
0
    printAlbumTitle();
    ?>
</a></h4>
			</li>
			<?php 
}
?>
		</ul>
		<div class="clearage"></div>
		<?php 
printNofM('Album', $firstAlbum, $lastAlbum, getNumAlbums());
?>

		</div> <!-- main -->
		<!-- Page Numbers -->
		<div id="pagenumbers">
			<?php 
printPageListWithNav("&laquo; " . gettext('prev'), gettext('next') . " &raquo;");
?>
		</div>
	</div> <!-- content -->

	<br style="clear:all" />

	<?php 
printFooter();
zp_apply_filter('theme_body_close');
?>

</body>
</html>
Exemplo n.º 25
0
" title="<?php 
    printBareImageTitle();
    ?>
">
					<?php 
    printCustomSizedImage(getAnnotatedImageTitle(), NULL, 230, 230, 230, 230, NULL, NULL, NULL, NULL, true, NULL);
    ?>
				</a>
			<?php 
}
?>
		</div>
		<br class="clearall" />
		<?php 
if (hasPrevPage() || hasNextPage()) {
    printPageListWithNav(gettext("prev"), gettext("next"), false, true, 'pagelist', NULL, true, 7);
}
if (function_exists('printSlideShowLink')) {
    echo '<span id="slideshowlink">';
    printSlideShowLink();
    echo '</span>';
}
if (function_exists('printAddToFavorites')) {
    echo "<br />";
    printAddToFavorites($_zp_current_album);
}
if (function_exists('printCommentForm')) {
    printCommentForm();
}
?>
		</div>
Exemplo n.º 26
0
    }
    ?>
						</small>
					</li>
	<?php 
    $x++;
}
?>
			</ul>
		</div>
		<div class="paging">
<?php 
if (getPrevPageURL() || getNextPageURL()) {
    ?>
	<?php 
    printPageListWithNav(gettext('‹ Previous'), gettext('Next ›'), false, 'true', 'pagelist', '', true, '5');
}
if (function_exists('printAlbumMenu')) {
    ?>
				<div id="albumjump">
	<?php 
    printAlbumMenu('jump', true);
    ?>
				</div>
<?php 
}
?>
		</div>
	</div>
</div>
Exemplo n.º 27
0
</a></div>
								</div>
							<?php 
    }
    ?>
						</div>
						<br class="clearall" />
					<?php 
}
?>
					<?php 
@call_user_func('printSlideShowLink');
if ($total == 0) {
    echo "<p>" . gettext("Sorry, no matches found. Try refining your search.") . "</p>";
}
printPageListWithNav("« " . gettext("prev"), gettext("next") . " »");
?>

				</div><!-- content left-->



				<div id="sidebar">
					<?php 
include "sidebar.php";
?>
				</div><!-- sidebar -->



				<div id="footer">
Exemplo n.º 28
0
 function printAlbumNav($setCurrentAlbum = TRUE, $context = ZP_ALBUM)
 {
     global $_zp_themeroot, $_zp_page, $_zp_gallery_page, $_zp_current_album;
     if ($this->getNumAlbums() == 0 && $this->getNumImages() == 0) {
         return;
     }
     $p = $_zp_gallery_page;
     $_zp_gallery_page = 'album.php';
     $c = $this->context;
     $this->context = $context;
     save_context();
     set_context($this->context);
     $page = $_zp_page;
     $_zp_page = $this->getAlbumPage();
     $album = $_zp_current_album;
     if ($setCurrentAlbum) {
         $_zp_current_album = $this->album;
     }
     printPageListWithNav("<img src='{$_zp_themeroot}/resources/images/arrow_up.png' height='12' width='12'/>", "<img src='{$_zp_themeroot}/resources/images/arrow_down.png' height='12' width='12'/>", false, true, "album-navigation", NULL, TRUE, 7);
     $_zp_page = $page;
     $this->context = $c;
     restore_context();
     $_zp_gallery_page = $p;
     $_zp_current_album = $album;
 }