Здравейте , ползвам ZenPhoto за галерия , но искам да направя http://host.com/Al/ и излизат всички снимки , идеята ми е като се цъкне върху снимката да го отваря с colorbox , както се получава котаго цъкнеш в/у http://host.com/album/dsc03253.jpg.php и го отваря с colorbox , като цяло трябва да се едитне album.php , но не успях ето и кода на албум.пхп
.. това е кода на images.php който е за http://host.com/album/dsc03253.jpg.php
Код:
<?php if (!defined('WEBPATH')) die(); $firstPageImages = normalizeColumns('2', '5');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s').' GMT');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php zenJavascript(); ?>
<title><?php echo getBareAlbumTitle(); ?> | <?php echo getBareGalleryTitle(); ?></title>
<meta http-equiv="content-type" content="text/html; charset=<?php echo getOption('charset'); ?>" />
<link rel="stylesheet" href="<?php echo $_zp_themeroot; ?>/style.css" type="text/css" />
<?php printRSSHeaderLink('Album',getAlbumTitle()); ?>
<?php printZDRoundedCornerJS(); ?>
</head>
<body>
<div id="main">
<div id="header">
<h1><?php echo getGalleryTitle();?></h1>
<?php if (getOption('Allow_search')) {
$album_list = array($_zp_current_album->name);
printSearchForm(NULL, 'search', NULL, 'Search album', NULL, NULL, $album_list);
} ?>
</div>
<div id="content">
<div id="breadcrumb">
<h2><a href="<?php echo htmlspecialchars(getGalleryIndexURL(false));?>" title="<?php echo gettext('Начало'); ?>"><?php echo gettext("Начало"); ?></a> » <?php echo gettext("Галерия"); ?><?php printParentBreadcrumb(" » "," » "," » "); ?><strong><?php printAlbumTitle(true);?></strong></h2>
</div>
<div id="content-left">
<div><p><?php printAlbumDesc(true); ?></p></div>
<?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>
<div id="albums">
<?php while (next_album()): ?>
<div class="album">
<div class="thumb">
<a href="<?php echo htmlspecialchars(getAlbumLinkURL());?>" title="<?php echo gettext('View album:'); ?> <?php getBareAlbumTitle();?>"><?php printCustomAlbumThumbImage(getBareAlbumTitle(), NULL, 95, 95, 95, 95); ?></a>
</div>
<div class="albumdesc">
<h3><a href="<?php echo htmlspecialchars(getAlbumLinkURL());?>" title="<?php echo gettext('View album:'); ?> <?php echo getBareAlbumTitle();?>"><?php printAlbumTitle(); ?></a></h3>
<?php printAlbumDate(""); ?>
<p><?php echo truncate_string(getAlbumDesc(), 45); ?></p>
</div>
<p style="clear: both; "></p>
</div>
<?php endwhile; ?>
</div>
<div id="images">
<?php while (next_image(false, $firstPageImages)): ?>
<div class="image">
<div class="imagethumb"><a href="<?php echo htmlspecialchars(getImageLinkURL());?>" title="<?php echo getBareImageTitle();?>"><?php printImageThumb(getBareImageTitle()); ?></a></div>
</div>
<?php endwhile; ?>
</div>
<p style="clear: both; "></p>
<?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>
<?php printTags('links', gettext('<strong>Tags:</strong>').' ', 'taglist', ', '); ?>
<br style="clear:both;" /><br />
<?php if (function_exists('printSlideShowLink')) {
echo '<span id="slideshowlink">';
printSlideShowLink(gettext('View Slideshow'));
echo '</span>';
}
?>
<br style="clear:both;" />
<?php if (function_exists('printRating')) { printRating(); }?>
<?php
if (function_exists('printCommentForm')) {
?>
<div id="comments">
<?php printCommentForm(); ?>
</div>
<?php
}
?>
</div>
<div id="sidebar">
<?php include("sidebar.php"); ?>
</div>
<div id="footer">
<?php include("footer.php"); ?>
</div>
</div>
</div>
<?php printAdminToolbox(); ?>
</body>
</html>
.. това е кода на images.php който е за http://host.com/album/dsc03253.jpg.php
Код:
<?php if (!defined('WEBPATH')) die(); $firstPageImages = normalizeColumns('2', '6');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s').' GMT');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php zenJavascript(); ?>
<title><?php echo getBareImageTitle();?> | <?php echo getBareAlbumTitle();?> | <?php echo getBareGalleryTitle(); ?></title>
<meta http-equiv="content-type" content="text/html; charset=<?php echo getOption('charset'); ?>" />
<link rel="stylesheet" href="<?php echo $_zp_themeroot; ?>/style.css" type="text/css" />
<?php require_once(SERVERPATH.'/'.ZENFOLDER.'/js/colorbox/colorbox_ie.css.php')?>
<script src="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/js/colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
<script type="text/javascript">
//
</script>
<?php printZDRoundedCornerJS(); ?>
<?php printRSSHeaderLink('Album',getAlbumTitle()); ?>
</head>
<body>
<div style="margin-top: 16px;">
</div>
<div id="main">
<div id="header">
<h1><?php echo getGalleryTitle();?></h1>
<div class="imgnav">
<?php if (hasPrevImage()) { ?>
<div class="imgprevious"><a href="<?php echo htmlspecialchars(getPrevImageURL());?>" title="<?php echo gettext("Previous Image"); ?>">« <?php echo gettext("prev"); ?></a></div>
<?php } if (hasNextImage()) { ?>
<div class="imgnext"><a href="<?php echo htmlspecialchars(getNextImageURL());?>" title="<?php echo gettext("Next Image"); ?>"><?php echo gettext("next"); ?> »</a></div>
<?php } ?>
</div>
</div>
<div id="content">
<div id="breadcrumb">
<h2><a href="<?php echo getGalleryIndexURL(false);?>" title="<?php gettext('Index'); ?>"><?php echo gettext("Index"); ?></a> » <?php echo gettext("Gallery"); ?><?php printParentBreadcrumb(" » "," » "," » "); printAlbumBreadcrumb(" ", " » "); ?>
<strong><?php printImageTitle(true); ?></strong> (<?php echo imageNumber()."/".getNumImages(); ?>)
</h2>
</div>
<div id="content-left">
<?php
//
if (function_exists('printjCarouselThumbNav')) {
printjCarouselThumbNav(6,50,50,50,50,FALSE);
}
else {
if (function_exists("printPagedThumbsNav")) {
printPagedThumbsNav(6, FALSE, gettext('« prev thumbs'), gettext('next thumbs »'), 40, 40);
}
}
?>
<div id="image">
<?php if(getOption("Use_thickbox")) {
$boxclass = " class=\"thickbox\"";
$tburl = getUnprotectedImageURL();
} else {
$thickboxclass = "";
$tburl = getFullImageURL();
}
if (!empty($tburl)) {
?>
<a href="<?php echo htmlspecialchars($tburl); ?>"<?php echo $boxclass; ?> title="<?php echo getBareImageTitle();?>">
<?php
}
printCustomSizedImageMaxSpace(getBareImageTitle(),580,580); ?>
<?php
if (!empty($tburl)) {
?>
</a>
<?php
}
?>
</div>
<div id="narrow">
<p><?php printImageDesc(true); ?></p>
<?php printTags('links', gettext('<strong>Tags:</strong>').' ', 'taglist', ', '); ?>
<br style="clear:both;" /><br />
<?php if (function_exists('printSlideShowLink')) {
echo '<span id="slideshowlink">';
printSlideShowLink(gettext('View Slideshow'));
echo '</span>';
}
?>
<?php
if (getImageMetaData()) {echo "<div id=\"exif_link\"><a href=\"#\" title=\"".gettext("Image Info")."\" class=\"colorbox\">".gettext("Image Info")."</a></div>";
echo "<div style='display:none'>"; printImageMetadata('', false); echo "</div>";
}
?>
<br style="clear:both" />
<?php if (function_exists('printRating')) { printRating(); }?>
<?php if (function_exists('printImageMap')) printImageMap(); ?>
<?php if (function_exists('printShutterfly')) printShutterfly(); ?>
</div>
<?php if (function_exists('printCommentForm')) { ?>
<div id="comments">
<?php printCommentForm(); ?>
</div>
<?php } ?>
</div>
<div id="sidebar">
<?php include("sidebar.php"); ?>
</div>
<div id="footer">
<?php include("footer.php"); ?>
</div>
</div>
</div>
<?php printAdminToolbox(); ?>
</body>
</html>