lightbox
Lightbox2 by Lokesh Dhakar
For more information visit:
http://lokeshdhakar.com/projects/lightbox2/
ist in den Beispieltemplates bereits integriert.
Aufgabe
Lightbox vergrößert Bilder beim anklicken
Quellcode
<head>
<!-- Lightbox -->
<?php if (inStr("lightbox[roadtrip]",$text)) { ?>
<link rel="stylesheet" href="<?php echo $firstparturl;?>plugins/lightbox/css/lightbox.css" type="text/css" media="screen" />
<?php }?>
<!-- ... Lightbox -->
</head>
<body>
Content ....
<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/jquery/jquery-1.11.1.min.js"></script>
<!-- Lightbox -->
<?php if (inStr("lightbox[roadtrip]",$text)) { ?>
<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/jquery/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/jquery/jquery.smooth-scroll.min.js"></script>
<script type="text/javascript" src="<?php echo $firstparturl;?>plugins/lightbox/js/lightbox.js"></script>
<?php }?>
<!-- ... Lightbox -->
</body>
</head>