Try http://image.intervention.io/getting_started/laravel
Post questions if you're not sure what you're looking at.
Hi, I think my question has not been good. I know how to paint my images dynamically, but I want to add the event lightbox, for that when you click in the image, this image will open more big. Something like this:
http://dimsemenov.com/plugins/magnific-popup/
In this website, I want to used this example: "Single image lightbox" but not work properly.
Them, could you help me with others possibilities or something?
Thank you in advance!
I believe that you didn't try reading enough on Form documentation. For example, you can take a look here: http://laravel.com/docs/html#labels
So, to add lightbox or other popup windows plugins, you can add an identified class, and then attach loading those plugins through click event or other methods.
{{ HTML::image($path, $img, array( 'width' => 100, 'height' => 100, 'class' => 'popup-img' )) }}
Then:
$(document).ready(function() {
$('.popup-img').magnificPopup({
type: 'image',
closeOnContentClick: true,
mainClass: 'mfp-img-mobile',
image: {
verticalFit: true
}
});
});
I tried this code but, dont work good. I need create a event to onClick, right?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community