tbkcp_gallery_thumbnail_viewer.php

Summary
tbkcp_gallery_thumbnail_viewer.php
Adds a thumbnail view style gallery to the front end (images taken from the gallery).  Images retreived via ajaxAuthor: Paul MacLean
tbkcp_custom_image_cropperAdds a thumbnail view style gallery to the front end (images taken from the gallery).
Functions
__constructadds the shortcode and ajax actions
get_imageRetrieves the image from the server
gallery_imagesExtracts the shortcode parms, adds the image sizes, displays the main and thumbnail images, defines the click actions
get_gallery_imagesRetreives the gallery images (excluding the post thumbnail, inserted images, and any excluded ids set in the shortcode parms)
get_image_id_by_urlHelper function to retrieve the image id by url (for excluding inserted images)

Adds a thumbnail view style gallery to the front end (images taken from the gallery).  Images retreived via ajax

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)

tbkcp_custom_image_cropper

Adds a thumbnail view style gallery to the front end (images taken from the gallery).  Images retreived via ajax

Summary
Functions
__constructadds the shortcode and ajax actions
get_imageRetrieves the image from the server
gallery_imagesExtracts the shortcode parms, adds the image sizes, displays the main and thumbnail images, defines the click actions
get_gallery_imagesRetreives the gallery images (excluding the post thumbnail, inserted images, and any excluded ids set in the shortcode parms)
get_image_id_by_urlHelper function to retrieve the image id by url (for excluding inserted images)

Functions

__construct

function __construct()

adds the shortcode and ajax actions

get_image

function get_image()

Retrieves the image from the server

gallery_images

function gallery_images($atts)

Extracts the shortcode parms, adds the image sizes, displays the main and thumbnail images, defines the click actions

get_gallery_images

function get_gallery_images($exclude_image_ids)

Retreives the gallery images (excluding the post thumbnail, inserted images, and any excluded ids set in the shortcode parms)

get_image_id_by_url

function get_image_id_by_url($image_url)

Helper function to retrieve the image id by url (for excluding inserted images)

function __construct()
adds the shortcode and ajax actions
function get_image()
Retrieves the image from the server
function gallery_images($atts)
Extracts the shortcode parms, adds the image sizes, displays the main and thumbnail images, defines the click actions
function get_gallery_images($exclude_image_ids)
Retreives the gallery images (excluding the post thumbnail, inserted images, and