Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here is the original code -
- <div class='div_imatge_gran brighten'>
- <?
- $image_attr = array(
- "title" => $this->album->name ,
- "class" => "imatge_gran"
- );
- $image = JHTML::image('images/albums/' . $this->album->image , $this->album->name , $image_attr );
- echo $image;
- ?>
- </div>
- I wish to add this code -
- <a datalightbox="transitionIn:elastic;transitionOut:elastic;"href="/images/yootheme/widgetkit/lightbox/image2_lightbox.jpg"><img src="/images/yootheme/widgetkit/lightbox/image2.jpg" width="432" alt="Lightbox Image"></a>
- I tried adding the lightbox code and simply putting 'echo $image;' within the image source params, but I get a server/php
- error. How would I best accomplish this goal? Any help appreciated.
- This is what I tried.
- <div class='div_imatge_gran brighten'>
- <?
- $image_attr = array(
- "title" => $this->album->name ,
- "class" => "imatge_gran"
- );
- $image = JHTML::image('images/albums/' . $this->album->image , $this->album->name , $image_attr );
- <a data-lightbox="transitionIn:elastic;transitionOut:elastic;"href="echo $image;"><img src="echo $image;" width="432" " alt="Lightbox Image"></a>
- ?>
- </div>
- This above code returned an error.
Advertisement
Add Comment
Please, Sign In to add comment