tbkcp_gallery_thumbnail_viewer.php | |
Adds a thumbnail view style gallery to the front end (images taken from the gallery). Images retreived via ajax | Author: Paul MacLean |
tbkcp_custom_image_cropper | Adds a thumbnail view style gallery to the front end (images taken from the gallery). |
Functions | |
__construct | adds the shortcode and ajax actions |
get_image | Retrieves the image from the server |
gallery_images | Extracts the shortcode parms, adds the image sizes, displays the main and thumbnail images, defines the click actions |
get_gallery_images | Retreives the gallery images (excluding the post thumbnail, inserted images, and any excluded ids set in the shortcode parms) |
get_image_id_by_url | Helper function to retrieve the image id by url (for excluding inserted images) |
Author: Paul MacLean
Usage Example:
Step 1: Upload images to the gallery Step 2: Include the Shortcode in your theme
Shortcode Example
[tbkcp_gallery_thumbnail_viewer image_dimensions="680,238" thumbnail_dimensions="74,51" thumbnail_crop = 1 image_crop = 1 image_wrap ="banner" thumbnail_wrap ="banner-thumbnails" excluded_img_ids =""]; Parameters @image_dimensions: the dimensions of the main image (w x h) @thumbnail_dimensions: the dimensions of the thumbnail images (w x h) @image_crop: hard or soft cropping @thumbnail_crop: hard or soft cropping @image_wrap: the id of the main image wrapper @thumbnail_wrap: the id of the thumbnails list @exclude_image_ids : a comma seperated list of attachment ids to exclude (plugin excludes featured image and inserted images by default)
Adds a thumbnail view style gallery to the front end (images taken from the gallery). Images retreived via ajax
Functions | |
__construct | adds the shortcode and ajax actions |
get_image | Retrieves the image from the server |
gallery_images | Extracts the shortcode parms, adds the image sizes, displays the main and thumbnail images, defines the click actions |
get_gallery_images | Retreives the gallery images (excluding the post thumbnail, inserted images, and any excluded ids set in the shortcode parms) |
get_image_id_by_url | Helper function to retrieve the image id by url (for excluding inserted images) |
adds the shortcode and ajax actions
function __construct()
Retrieves the image from the server
function get_image()
Extracts the shortcode parms, adds the image sizes, displays the main and thumbnail images, defines the click actions
function gallery_images( $atts )
Retreives the gallery images (excluding the post thumbnail, inserted images, and
function get_gallery_images( $exclude_image_ids )