Album Image Uploads

From Littledamien Wiki
Revision as of 03:12, 7 February 2012 by Video8 (talk | contribs)
Jump to navigation Jump to search

Upload Types

  • Content type without album
  • Album-based content using an image from the album as a thumbnail (the thumbnail is a pointer to one of the album image records).
  • Album-based content where the thumbnail image record is independent of the album images.

PHP Classes

  • Shared PHP classes
  • /_classes/images/image_upload_class.php (extends image_link_class)

PHP Includes

  • [COMMON_TEMPLATE_DIR]forms/images/thumbnail_overlay_buttons.php

Include this once somewhere on the page containing the image upload controls.

  • For album-based uploads (both with linked and independent thumbnails)
include (COMMON_TEMPLATE_DIR."forms/images/select_thumbnail_link_container.php");
  • For images within gallery listings:
    • IMG class=”gallery-edit”
    • IMG attributes data-id and data-tid
    • $('.gallery-edit') handler is set in LITTLED.Gallery.bindImageOverlayHandlers()
    • single click: display edit and delete buttons overlaid on the image
    • double click: display the full-sized version of the image in a lightbox