CSS image span: cpg_img
CSS image div: cpg_img
CSS IMG classes: cpg_image, cpg_normalimage, cpg_thumbimage
CSS image link: cpg_imagelink
CSS album span: cpg_album
CSS album div: cpg_album
CSS album link: cpg_albumlink
CSS album full size IMG: cpg_albumimage
CSS album thumbnail IMG: cpg_albumthumbimage
CSS album thumbnail image link: cpt_albumimagelink
CSS category span: cpg_cat
CSS category div: cpg_cat
CSS category link: cpg_catlink
CSS category full size IMG: cpg_catimage
CSS category thumbnail IMG: cpg_catthumbimage
CSS category image link: cpg_catimagelink
CSS gallery span: cpg_gal
CSS gallery div: cpg_gal
CSS gallery link: cpg_gallink
CSS gallery full size IMG: cpg_galimage
CSS gallery thumbnail IMG: cpg_galthumbimage
CSS gallery image link: cpg_galimagelink
[cpg_image:2,myimage.jpg] --> inserts full size/original image for image in album id 2 named 'myimage.jpg'
[cpg_imagenormal:2,myimage.jpg] --> inserts normalized image for image in album id 2 named 'myimage.jpg'
[cpg_imagethumb:2,myimage.jpg] --> inserts thumbnail image for image in album id 2 named 'myimage.jpg'
[cpg_imagefix:1234] --> inserts full size/original image with permanent id 1234
[cpg_imagefixnormal:1234] --> inserts normalized image with permanent id 1234
[cpg_imagefixthumb:1234] --> inserts thumbnail image with permanent id 1234
[cpg_album:4] --> inserts thumbnails for all images in album id 4
[cpg_album:4,10] --> inserts thumbnails for the first 10 images in album 4
[cpg_albumnew:4] --> inserts thumbnails for all images in album id 4 in order from newest to oldest
[cpg_albumnew:4,10] --> inserts thumbnails for the 10 latest uploads from the images in album id 4
[cpg_albumrand:4] --> inserts thumbnails for all images in album id 4 in random order
[cpg_albumrand:4,10] --> inserts 10 random thumbnails from the images in album id 4
[cpg_albumfullsize:4] --> inserts full size/original images for all images in album id 4
[cpg_albumfullsize:4,10] --> inserts full size/original images for the first 10 images in album 4
[cpg_albumnewfullsize:4] --> inserts full size/original images for all images in album id 4 in order from newest to oldest
[cpg_albumnewfullsize:4,10] --> inserts full size/original images for the 10 latest uploads from the images in album id 4
[cpg_albumrandfullsize:4] --> inserts full size/original images for all images in album id 4 in random order
[cpg_albumrandfullsize:4,10] --> inserts 10 random full size/original images from the images in album id 4
[cpg_cat:5] --> inserts thumbnails for all images in category id 5
[cpg_cat:5,12] --> inserts thumbnails for the first 12 images in category id 5
[cpg_catnew:5] --> inserts thumbnails for all images in category id 5 in order from newest to oldest
[cpg_catnew:5,12] --> inserts thumbnails for the 12 latest uploads from the images in category id 5
[cpg_catrand:5] --> inserts thumbnails for all images in category id 5 in random order
[cpg_catrand:5,12] --> inserts 12 random thumbnails from the images in category id 5
[cpg_catfullsize:5] --> inserts full size/original images for all images in category id 5
[cpg_catfullsize:5,12] --> inserts full size/original images for the first 12 images in category id 5
[cpg_catnewfullsize:5] --> inserts full size/original images for all images in category id 5 in order from newest to oldest
[cpg_catnewfullsize:5,12] --> inserts full size/original images for the 12 latest uploads from the images in category id 5
[cpg_catrandfullsize:5] --> inserts full size/original images for all images in category id 5 in random order
[cpg_catrandfullsize:5,12] --> inserts 12 random full size/original images from the images in category id 5
[cpg_galnew:3] --> insert thumbnails for the 3 latest uploads from all the images in the gallery
[cpg_galrand:3] --> insert 3 random thumbnails from all the images in the gallery
[cpg_galnewfullsize:3] --> insert full size/original images for the 3 latest uploads from all the images in the gallery
[cpg_galrandfullsize:3] --> insert 3 random full size/original images from all the images in the gallery
[cpg_dbimage:mydbname,2,myimage.jpg] --> inserts full size/original image for image in album id 2 named 'myimage.jpg' from database named 'mydbname'
[cpg_dbimagenormal:mydbname,2,myimage.jpg] --> inserts normalized image for image in album id 2 named 'myimage.jpg' from database named 'mydbname'
[cpg_dbimagethumb:mydbname,2,myimage.jpg] --> inserts thumbnail image for image in album id 2 named 'myimage.jpg' from database named 'mydbname'
[cpg_dbimagefix:mydbname,1234] --> inserts full size/original image with permanent id 1234 from database named 'mydbname'
[cpg_dbimagefixnormal:mydbname,1234] --> inserts normalized image with permanent id 1234 from database named 'mydbname'
[cpg_dbimagefixthumb:mydbname,1234] --> inserts thumbnail image with permanent id 1234 from database named 'mydbname'
[cpg_dbalbum:mydbname,4] --> inserts thumbnails for all images in album id 4 from database named 'mydbname'
[cpg_dbalbum:mydbname,4,10] --> inserts thumbnails for the first 10 images in album 4 from database named 'mydbname'
[cpg_dbalbumnew:mydbname,4] --> inserts thumbnails for all images in album id 4 in order from newest to oldest from database named 'mydbname'
[cpg_dbalbumnew:mydbname,4,10] --> inserts thumbnails for the 10 latest uploads from the images in album id 4 from database named 'mydbname'
[cpg_dbalbumrand:mydbname,4] --> inserts thumbnails for all images in album id 4 in random order from database named 'mydbname'
[cpg_dbalbumrand:mydbname,4,10] --> inserts 10 random thumbnails from the images in album id 4 from database named 'mydbname'
[cpg_dbalbumfullsize:mydbname,4] --> inserts thumbnails for all images in album id 4 from database named 'mydbname'
[cpg_dbalbumfullsize:mydbname,4,10] --> inserts thumbnails for the first 10 images in album 4 from database named 'mydbname'
[cpg_dbalbumnewfullsize:mydbname,4] --> inserts thumbnails for all images in album id 4 in order from newest to oldest from database named 'mydbname'
[cpg_dbalbumnewfullsize:mydbname,4,10] --> inserts thumbnails for the 10 latest uploads from the images in album id 4 from database named 'mydbname'
[cpg_dbalbumrandfullsize:mydbname,4] --> inserts thumbnails for all images in album id 4 in random order from database named 'mydbname'
[cpg_dbalbumrandfullsize:mydbname,4,10] --> inserts 10 random thumbnails from the images in album id 4 from database named 'mydbname'
[cpg_dbcat:mydbname,5] --> inserts thumbnails for all images in category id 5 from database named 'mydbname'
[cpg_dbcat:mydbname,5,12] --> inserts thumbnails for the first 12 images in category id 5 from database named 'mydbname'
[cpg_dbcatnew:mydbname,5] --> inserts thumbnails for all images in category id 5 in order from newest to oldest from database named 'mydbname'
[cpg_dbcatnew:mydbname,5,12] --> inserts thumbnails for the 12 latest uploads from the images in category id 5 from database named 'mydbname'
[cpg_dbcatrand:mydbname,5] --> inserts thumbnails for all images in category id 5 in random order from database named 'mydbname'
[cpg_dbcatrand:mydbname,5,12] --> inserts 12 random thumbnails from the images in category id 5 from database named 'mydbname'
[cpg_dbcatfullsize:mydbname,5] --> inserts thumbnails for all images in category id 5 from database named 'mydbname'
[cpg_dbcatfullsize:mydbname,5,12] --> inserts thumbnails for the first 12 images in category id 5 from database named 'mydbname'
[cpg_dbcatnewfullsize:mydbname,5] --> inserts thumbnails for all images in category id 5 in order from newest to oldest from database named 'mydbname'
[cpg_dbcatnewfullsize:mydbname,5,12] --> inserts thumbnails for the 12 latest uploads from the images in category id 5 from database named 'mydbname'
[cpg_dbcatrandfullsize:mydbname,5] --> inserts thumbnails for all images in category id 5 in random order from database named 'mydbname'
[cpg_dbcatrandfullsize:mydbname,5,12] --> inserts 12 random thumbnails from the images in category id 5 from database named 'mydbname'
[cpg_dbgalnew:mydbname,3] --> insert thumbnails for the 3 latest uploads from all the images in the gallery from database named 'mydbname'
[cpg_dbgalrand:mydbname,3] --> insert 3 random thumbnails from all the images in the gallery from database named 'mydbname'
[cpg_dbgalnewfullsize:mydbname,3] --> insert thumbnails for the 3 latest uploads from all the images in the gallery from database named 'mydbname'
[cpg_dbgalrandfullsize:mydbname,3] --> insert 3 random thumbnails from all the images in the gallery from database named 'mydbname'
For use outside an entry, use the following snippet in your sidebar or template:
<?php if (function_exists('cpgsc_sidebar')) {
cpgsc_sidebar('replace_with_any_tag_from_list_above'); }
?>
For example, to insert thumbnails for all images in album id 4:
<?php if (function_exists('cpgsc_sidebar')) {
cpgsc_sidebar('[cpg_album:4]'); }
?>