Skip to content

Commit

Permalink
Some refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
fretzl committed Jan 5, 2013
1 parent c429a36 commit 9b2f204
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 114 deletions.
90 changes: 45 additions & 45 deletions themes/andreyphoto/album.php
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
<?php
<?php
if (!defined('WEBPATH')) die();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<?php zp_apply_filter('theme_head'); ?>
<title><?php printGalleryTitle(); ?> | <?php echo getAlbumTitle();?></title>
<link rel="stylesheet" href="<?php echo $_zp_themeroot ?>/zen.css" type="text/css" />
<?php zp_apply_filter('theme_head'); ?>
<title><?php printGalleryTitle(); ?> | <?php echo getAlbumTitle();?></title>
<link rel="stylesheet" href="<?php echo $_zp_themeroot ?>/zen.css" type="text/css" />

</head>

<body style="background-image: url('<?php echo $_zp_themeroot ?>/images/photography_background.gif');">
<body style="background-image: url('<?php echo $_zp_themeroot ?>/images/photography_background.gif');">
<?php zp_apply_filter('theme_body_open'); ?>

<?php printAdminToolbox(); ?>
<?php printAdminToolbox(); ?>

<table id="main" align='center' style="background-image: url('<?php echo $_zp_themeroot ?>/images/dimmed_table_background.jpg');background-repeat: no-repeat;">
<table id="main" align='center' style="background-image: url('<?php echo $_zp_themeroot ?>/images/dimmed_table_background.jpg');background-repeat: no-repeat;">
<tr>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='20' height='1'></td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='20' height='1'></td>
<td>
<table class='header' width='100%'>
<tr>
<td align='right'><img class='header' src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' border='0' width='1' height='35'></td>
<td align='right'><img class='header' src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' border='0' width='1' height='35'></td>
</tr>
</table>

<div id="gallerytitle">
<h2><span><a href="<?php echo getGalleryIndexURL();?>" title="Gallery Index"><?php echo getGalleryTitle();?></a> | </span> <?php printAlbumTitle(true);?></h2>
<h2><span><a href="<?php echo getGalleryIndexURL();?>" title="Gallery Index"><?php echo getGalleryTitle();?></a> | </span> <?php printAlbumTitle(true);?></h2>
</div>


<?php printAlbumDesc(true); ?>
<?php printAlbumDesc(true); ?>

<div>
<table cellpadding='0' cellspacing='0'>
<tr valign='top'>
<?php $zi = 0; ?>
<?php $zi2 = 0; ?>
<?php while (next_album() && $zi = $zi+1): ?>
<?php while (next_album() && $zi = $zi+1): ?>
<?php if ($zi < 4) { ?>
<td class="album" style="background-image: url('<?php echo $_zp_themeroot ?>/images/album_pattern.gif');">
<td class="album" style="background-image: url('<?php echo $_zp_themeroot ?>/images/album_pattern.gif');">
<div class='albumthumb'>
<a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>">
<?php //printAlbumThumbImage(getAlbumTitle()); ?>
<?php printCustomAlbumThumbImage(getAlbumTitle(), null, 211, 300, 211, 300); ?></a></div>
<a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>">
<?php //printAlbumThumbImage(getAlbumTitle()); ?>
<?php printCustomAlbumThumbImage(getAlbumTitle(), null, 211, 300, 211, 300); ?></a></div>
<div class="albumdesc">
<small><?php printAlbumDate("Date Taken: "); ?></small>
<h3><a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></a></h3>
<p><?php printAlbumDesc(); ?></p>
<small><?php printAlbumDate("Date Taken: "); ?></small>
<h3><a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></a></h3>
<p><?php printAlbumDesc(); ?></p>
</div>
</td>
<?php if ($zi < 3) { ?>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='10' height='1' border='0'></td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='10' height='1' border='0'></td>
<?php } ?>
<?php } ?>
<?php if ($zi == 4) { ?>
Expand All @@ -61,7 +61,7 @@

<?php /* page content */ ?>
<table cellpadding='0' cellspacing='0' border='0'>
<tr valign='top' style="background-image: url('<?php echo $_zp_themeroot ?>/images/guitar_background.jpg'); background-repeat: no-repeat;">
<tr valign='top' style="background-image: url('<?php echo $_zp_themeroot ?>/images/guitar_background.jpg'); background-repeat: no-repeat;">
<td style='font-size: 14px; line-height: 120%; padding: 20px;'>
Hi there! You just installed a new theme! <br />
You might want to edit andreyphoto/index.php to enter your own text here - look around line 85.<br/>
Expand All @@ -81,15 +81,15 @@
<tr>
<?php } ?>
<?php if ($zi > 3 && $zi < 8 ) { ?>
<td class="album" style="background-image: url('<?php echo $_zp_themeroot ?>/images/album_pattern.gif');">
<td class="album" style="background-image: url('<?php echo $_zp_themeroot ?>/images/album_pattern.gif');">
<div class='albumthumb'>
<a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>">
<?php //printAlbumThumbImage(getAlbumTitle()); ?>
<a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>">
<?php //printAlbumThumbImage(getAlbumTitle()); ?>
<?php printCustomAlbumThumbImage(getAlbumTitle(), null, 142, 142, null, null); ?></a></div>
<div class="albumdesc">
<small><?php printAlbumDate("Date Taken: "); ?></small>
<h3><a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></a></h3>
<p><?php printAlbumDesc(); ?></p>
<small><?php printAlbumDate("Date Taken: "); ?></small>
<h3><a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></a></h3>
<p><?php printAlbumDesc(); ?></p>
</div>
</td>
<?php // print a spacer
Expand All @@ -100,7 +100,7 @@
?> </tr><tr> <?
} else {*/
?>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='10' height='1' border='0'></td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='10' height='1' border='0'></td>
<?
//} // end print a spacer
?>
Expand All @@ -115,24 +115,24 @@
<tr><td colspan='7' style='line-height:10px'><img src='<?php echo $_zp_themeroot; ?>/images/px_trans.gif' width='1' height='10'></td></tr>
<?php } ?>
<tr>
<?php } elseif ($zi2 == 2) { ?>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='10' height='1'></td>
<?php } ?>
<td class="album" colspan='3' style="background-image: url('<?php echo $_zp_themeroot ?>/images/album_pattern.gif'); padding:5px;">
<?php } elseif ($zi2 == 2) { ?>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='10' height='1'></td>
<?php } ?>
<td class="album" colspan='3' style="background-image: url('<?php echo $_zp_themeroot ?>/images/album_pattern.gif'); padding:5px;">
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
<tr valign='top'>
<td>
<div class="albumdesc" style='text-align:left; margin: 0 5px'>
<small><?php printAlbumDate("Date Taken: "); ?></small>
<h3><a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></a></h3>
<p style='line-height: 110%'><?php printAlbumDesc(); ?></p>
<small><?php printAlbumDate("Date Taken: "); ?></small>
<h3><a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></a></h3>
<p style='line-height: 110%'><?php printAlbumDesc(); ?></p>
</div>
</td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='10' height='1'></td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='10' height='1'></td>
<td>
<div class='albumthumb' style='float:right;'>
<a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>">
<?php //printAlbumThumbImage(getAlbumTitle()); ?>
<a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>">
<?php //printAlbumThumbImage(getAlbumTitle()); ?>
<?php printCustomAlbumThumbImage(getAlbumTitle(), null, 178, 70, 178, 70); ?></a></div>
</td>

Expand All @@ -141,7 +141,7 @@
</table>
</td>
<?php } ?>
<?php endwhile; ?>
<?php endwhile; ?>
</tr>
</table>
</div>
Expand All @@ -150,28 +150,28 @@
<table cellpadding='0' cellspacing='0'>
<tr valign='top'>
<?php $zi = 0; ?>
<?php while (next_image() && $zi = $zi+1): ?>
<?php while (next_image() && $zi = $zi+1): ?>
<?php if ($zi > 4) { ?>
</tr><tr>
<?php $zi = 1; ?>
<?php } ?>
<td class='image_td'>
<div class="imagethumb"><a href="<?php echo getImageLinkURL();?>" title="<?php echo getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?></a></div>
<div class="imagethumb"><a href="<?php echo getImageLinkURL();?>" title="<?php echo getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?></a></div>
</td>
<?php if ($zi < 4) { ?>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='10' height='1' border='0'></td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='10' height='1' border='0'></td>
<?php } ?>
<?php endwhile; ?>
<?php endwhile; ?>
</tr>
</table>
</div>

<div align='center'>
<?php printPageListWithNav("« prev", "next »"); ?>
<?php printPageListWithNav("« prev", "next »"); ?>
</div>

</td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='20' height='1'></td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='20' height='1'></td>
</tr>
</table>

Expand Down
32 changes: 16 additions & 16 deletions themes/andreyphoto/image.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php if (!defined('WEBPATH')) die(); ?>
<?php if (!defined('WEBPATH')) die(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<?php zp_apply_filter('theme_head'); ?>
<title><?php printGalleryTitle(); ?> | <?php echo getAlbumTitle();?> | <?php echo getImageTitle();?></title>
<link rel="stylesheet" href="<?php echo $_zp_themeroot ?>/zen.css" type="text/css" />
<?php zp_apply_filter('theme_head'); ?>
<title><?php printGalleryTitle(); ?> | <?php echo getAlbumTitle();?> | <?php echo getImageTitle();?></title>
<link rel="stylesheet" href="<?php echo $_zp_themeroot ?>/zen.css" type="text/css" />
<script type="text/javascript">
function toggleComments() {
var commentDiv = document.getElementById("comments");
Expand All @@ -19,16 +19,16 @@ function toggleComments() {

<body style="background-color:#2b3239; background-image: url('/themes/default/images/px_trans.gif');">
<?php zp_apply_filter('theme_body_open'); ?>
<?php printAdminToolbox(); ?>
<?php printAdminToolbox(); ?>

<table id="photo" align='center'>
<tr>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='20' height='1'></td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='20' height='1'></td>
<td>
<div id="gallerytitle">
<h2><span><a href="<?php echo getGalleryIndexURL();?>" title="Gallery Index"><?php echo getGalleryTitle();?></a>
| <a href="<?php echo getAlbumLinkURL();?>" title="Gallery Index"><?php echo getAlbumTitle();?></a>
| </span> <?php printImageTitle(true); ?></h2>
<h2><span><a href="<?php echo getGalleryIndexURL();?>" title="Gallery Index"><?php echo getGalleryTitle();?></a>
| <a href="<?php echo getAlbumLinkURL();?>" title="Gallery Index"><?php echo getAlbumTitle();?></a>
| </span> <?php printImageTitle(true); ?></h2>
</div>


Expand All @@ -41,15 +41,15 @@ function toggleComments() {
<tr>
<td>
<?php if (hasPrevImage()) { ?>
<div class="imgprevious"><a href="<?php echo getPrevImageURL();?>" title="Previous Image">&laquo; prev</a></div>
<div class="imgprevious"><a href="<?php echo getPrevImageURL();?>" title="Previous Image">&laquo; prev</a></div>
<?php } else { ?>
<div class='imgdisabledlink'>&laquo; prev</div>
<?php } ?>
</td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='15' height='1'></td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='15' height='1'></td>
<td>
<?php if (hasNextImage()) { ?>
<div class="imgnext"><a href="<?php echo getNextImageURL();?>" title="Next Image">next &raquo;</a></div>
<div class="imgnext"><a href="<?php echo getNextImageURL();?>" title="Next Image">next &raquo;</a></div>
<?php } else { ?>
<div class='imgdisabledlink'>next &raquo;</div>
<?php } ?>
Expand All @@ -61,17 +61,17 @@ function toggleComments() {
</table>
</div>

<div><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='1' height='30'></div>
<div><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='1' height='30'></div>

<div id="image">
<table cellpadding='0' cellspacing='0' align='center'><tr><td>
<div class='photo'><a href="<?php echo getFullImageURL();?>" title="<?php echo getImageTitle();?>"> <?php printDefaultSizedImage(getImageTitle()); ?></a></div>
<div class='photo'><a href="<?php echo getFullImageURL();?>" title="<?php echo getImageTitle();?>"> <?php printDefaultSizedImage(getImageTitle()); ?></a></div>
</td></tr></table>
</div>

<div id="narrow">

<div align='center'><?php printImageDesc(true); ?></div>
<div align='center'><?php printImageDesc(true); ?></div>

<div id="comments">

Expand All @@ -85,7 +85,7 @@ function toggleComments() {
</div>
</div>
</td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='20' height='1'></td>
<td><img src='<?php echo $_zp_themeroot ?>/images/px_trans.gif' width='20' height='1'></td>
</tr>
</table>

Expand Down
Loading

0 comments on commit 9b2f204

Please sign in to comment.