Advertisement
tribulant

slideshow-gallery/css/gallery-css.php

Nov 1st, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.47 KB | None | 0 0
  1. <?php header("Content-Type: text/css"); ?>
  2.  
  3. <?php $styles = array(); ?>
  4. <?php foreach ($_GET as $skey => $sval) : ?>
  5.     <?php $styles[$skey] = urldecode($sval); ?>
  6. <?php endforeach; ?>
  7.  
  8. <?php if (!empty($styles['wrapperid'])) : ?>
  9. ul.slideshow { list-style:none !important; color:#fff; }
  10. ul.slideshow span { display:none; }
  11. #<?php echo $styles['wrapperid']; ?> { position:relative; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; background:<?php echo $styles['background']; ?>; padding:0 0 0 0; border:<?php echo $styles['border']; ?>; margin:0; display:none; }
  12. #<?php echo $styles['wrapperid']; ?> * { margin:0; padding:0; }
  13. #<?php echo $styles['wrapperid']; ?> #fullsize { position:relative; z-index:1; overflow:hidden; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; height:<?php echo ((int) $styles['height']); ?>px; border: none; }
  14. #<?php echo $styles['wrapperid']; ?> #information { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif !important; position:absolute; bottom:0; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : '100%'; ?>; height:0; background:<?php echo $styles['infobackground']; ?>; color:<?php echo $styles['infocolor']; ?>; overflow:hidden; z-index:200; opacity:.7; filter:alpha(opacity=70); }
  15. #<?php echo $styles['wrapperid']; ?> #information h3 { color:<?php echo $styles['infocolor']; ?>; padding:4px 8px 3px; margin:0 !important; font-size:16px; font-weight:bold; }
  16. #<?php echo $styles['wrapperid']; ?> #information p { color:<?php echo $styles['infocolor']; ?>; padding:0 8px 8px; margin:0 !important; font-size: 14px; font-weight:normal; }
  17. #<?php echo $styles['wrapperid']; ?> #image { width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width']) . 'px' : 'auto'; ?>; no-repeat; }
  18. #<?php echo $styles['wrapperid']; ?> #image img { border:none; height:auto; max-width:100%; margin:0 auto; display:block; }
  19. #<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:<?php echo ((int) $styles['height'] + 8); ?>px; cursor:pointer; z-index:150; }
  20. #<?php echo $styles['wrapperid']; ?> #imgprev { left:0; background:url('../images/left.gif') left center no-repeat; }
  21. #<?php echo $styles['wrapperid']; ?> #imgnext { right:0; background:url('../images/right.gif') right center no-repeat; }
  22. #<?php echo $styles['wrapperid']; ?> #imglink { position:absolute; zoom:1; background-color:#ffffff; height:<?php echo ((int) $styles['height'] + 8); ?>px; width:50%; left:25%; right:20%; z-index:999; opacity:0; filter:alpha(opacity=0); }
  23. #<?php echo $styles['wrapperid']; ?> .linkhover { background:transparent url('../images/link.gif') center center no-repeat !important; text-indent:-9999px; opacity:.4 !important; filter:alpha(opacity=40) !important; }
  24. #<?php echo $styles['wrapperid']; ?> #thumbnails { background:<?php echo $styles['background']; ?>; }
  25. #<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
  26. #<?php echo $styles['wrapperid']; ?> .thumbsbot { margin-top:8px !important; }
  27. #<?php echo $styles['wrapperid']; ?> #slideleft { float:left; width:20px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; background:url('../images/scroll-left.gif') center center no-repeat; background-color:#222; }
  28. #<?php echo $styles['wrapperid']; ?> #slideleft:hover { background-color:#333; }
  29. #<?php echo $styles['wrapperid']; ?> #slideright { float:right; width:20px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; background:#222 url('../images/scroll-right.gif') center center no-repeat; }
  30. #<?php echo $styles['wrapperid']; ?> #slideright:hover { background-color:#333; }
  31. #<?php echo $styles['wrapperid']; ?> #slidearea { float:left; position:relative; background:<?php echo $styles['background']; ?>; width:<?php echo ($styles['width'] != "auto") ? ((int) $styles['width'] - 50) . 'px' : '90%'; ?>; margin:0 5px; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; overflow:hidden; }
  32. #<?php echo $styles['wrapperid']; ?> #slider { position:absolute; left:0; height:<?php echo ((int) $styles['thumbheight'] + 14); ?>px; }
  33. #<?php echo $styles['wrapperid']; ?> #slider img { cursor:pointer; border:1px solid #666; padding:2px; -moz-border-radius:4px; -webkit-border-radius:4px; float:left !important; }
  34. #<?php echo $styles['wrapperid']; ?> #spinner { position:relative; top:50%; left:45%; text-align:left; }   
  35. #<?php echo $styles['wrapperid']; ?> #spinner img { border:none; }
  36. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement