Template for list of full-size images
-
Hi, everybody,
can you please help me to figure out – how can I output simple list of full-size images of a gallery?I created a new foo-template extension for simple list of images, without options.
My template file currently looks this way:
<?php /** * FooGallery Plain Images gallery template * This is the template that is run when a FooGallery shortcode is rendered to the frontend */ //the current FooGallery that is currently being rendered to the frontend global $current_foogallery; //the current shortcode args global $current_foogallery_arguments; ?> <ul class="gal large"> <?php foreach ( $current_foogallery->attachments() as $attachment ) { echo '<li>' . $attachment->html( $args ) . '</li>'; } ?> </ul>
What should I write inside my LI tags (instead of this default code which outputs thumbnail with a link to full-size image) in order to create <IMG> tag with full-size image inside of it?
It should be really easy for programmers, but I’m not one of them unfortunately, that’s why I can’t find this solution myself. ?? Maybe anybody can help with it?
Thank you so much!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Template for list of full-size images’ is closed to new replies.