Guest User

Untitled

a guest
Nov 3rd, 2011
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. <?php
  2. $startTime = array_sum(explode(" ",microtime()));
  3. if (!defined('WEBPATH')) die();
  4. require_once ('joshuaink.php');
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  7. <html>
  8. <head>
  9. <?php zp_apply_filter('theme_head'); ?>
  10. <title><?php printGalleryTitle(); ?></title>
  11. <link rel="stylesheet" href="<?php echo $_zp_themeroot ?>/css/gallery.css" type="text/css" />
  12. <?php printRSSHeaderLink('Album',getAlbumTitle()); ?>
  13. <script type="text/javascript" src="<?php echo $_zp_themeroot ?>/js/lightbox.js"></script>
  14. <script type="text/javascript" src="/js/jquery-1.6.4.min.js"></script>
  15. <link rel="stylesheet" type="text/css" href="<?php echo $_zp_themeroot ?>/js/lightbox/themes/default/jquery.lightbox.css" />
  16. <!--[if IE 6]>
  17. <link rel="stylesheet" type="text/css" href="js/lightbox/themes/default/jquery.lightbox.ie6.css" />
  18. <![endif]-->
  19. </head>
  20. <body>
  21. <div id="wrap">
  22.  
  23. <div id="header">
  24. <!-- <?php printAlbumDesc(true); ?> -->
  25. <!--[if gte IE 5.5]>
  26. <p>Internet Explorer users should <a href="#">CLICK HERE</a> to activate the image rollovers.</p>
  27. <![endif]-->
  28. </div>
  29.  
  30. <div id="gallerytitle">
  31. <h2>
  32. <!-- <a href="<?php echo getGalleryIndexURL();?>" title="Gallery Index"><?php echo getGalleryTitle(); ?></a> | <?php echo getAlbumTitle(); ?> -->
  33. </h2>
  34. </div>
  35.  
  36. <div id="main-content">
  37. <div id="banner2">
  38. <img src="/images/testbanner.jpg" alt="banner" title="junkwax" />
  39. </div>
  40. <div id="gallerytitle">
  41. <h2>
  42. <a href="<?php echo getGalleryIndexURL();?>" title="Gallery Index"><?php echo getGalleryTitle(); ?></a> | <?php echo getAlbumTitle(); ?>
  43. </h2>
  44. </div>
  45. <ul><?php if(PAGINATED) { while (next_album()){ ji_show_thumb();}} else {while (next_album()) { ji_show_thumb(); }}?></ul>
  46.  
  47. <!-- <ul> -->
  48. <?php
  49. while (next_image()):
  50.  
  51. $ch = THM_HEIGHT;
  52. $cw = THM_WIDTH;
  53.  
  54. if (isLandscape()) {
  55. list($nw, $nh) = getSizeCustomImage(null, null, $ch);
  56. $ih = $ch;
  57. if ($nw < $cw) {
  58. list($nw, $nh) = getSizeCustomImage(null, $cw);
  59. $ih = $ch;
  60. $iw = $nw;
  61. } else {
  62. $iw = $cw;
  63. }
  64. } else {
  65. list($nw, $nh) = getSizeCustomImage(null, $cw);
  66. $iw = $cw;
  67. $ih = $ch;
  68. }
  69.  
  70. //$cx = ($iw - $cw) / 2;
  71. //$cy = ($ih - $ch) / 2;
  72. ?>
  73.  
  74. <li>
  75. <a href="<?php echo getImageLinkURL();?>"
  76. title="<?php echo getImageTitle();?>"><img
  77. src="<?php echo getCustomImageURL(null, $iw, $ih, $cw, $ch); ?>"
  78. alt="<?php echo getImageTitle(); ?>"
  79. width="<?php echo $iw; ?>" height="<?php echo $ih; ?>" />
  80. <span><?php
  81. echo 'image size: ' . getFullWidth() . 'x' . getFullHeight();
  82. if (getImageDesc() != '') {
  83. echo '<br /><br />' . getImageDesc();
  84. } ?></span></a>
  85. </li>
  86.  
  87. <?php endwhile; ?>
  88. </ul>
  89.  
  90. </div>
  91.  
  92. <div id="fullplate-navigation">
  93. <ul>
  94. <?php
  95. if (hasPrevPage()) {
  96. echo "\t\t" . '<li id="previous"><a href="' . getPrevPageURL() .
  97. '" title="Previous Image"><img src="' . $_zp_themeroot .
  98. '/images/arrow_left.png" width="16" height="16" alt="left ' .
  99. 'arrow" /></a></li>' . "\n";
  100. } else {
  101. echo "\t\t" . '<li>&nbsp;</li>' . "\n";
  102. }
  103. if (in_context(ZP_IMAGE)) {
  104. echo "\t\t" . '<li><a href="' . getFullImageURL() .
  105. '" title="Full Size Image"><img src="' . $_zp_themeroot .
  106. '/images/arrow_out.png" width="16" height="16" alt="arrows ' .
  107. 'pointing out" /></a></li>' . "\n";
  108. } else {
  109. echo "\t\t" . '<li>&nbsp;</li>' . "\n";
  110. }
  111. if (hasNextPage()) {
  112. echo "\t\t" . '<li id="next"><a href="' . getNextPageURL() .
  113. '" title="Next Image"><img src="' . $_zp_themeroot .
  114. '/images/arrow_right.png" width="16" height="16" alt="right ' .
  115. 'arrow" /></a></li>' . "\n";
  116. } else {
  117. echo "\t\t" . '<li>&nbsp;</li>' . "\n";
  118. }
  119. ?>
  120. </ul>
  121. </div>
  122. </div>
  123.  
  124. <div id="foot">
  125. <div id="logo">
  126. <a href="http://www.facebook.com/groups/168463999906089/" title="Facebook">Facebook |</a>
  127. <a href="mailto: [email protected]" title="Email Us">Contact Us</a>
  128. </div>
  129.  
  130. </body>
  131. </html>
  132.  
  133.  
Advertisement
Add Comment
Please, Sign In to add comment