An open API service indexing awesome lists of open source software.

https://github.com/piwigo/piwigo-user-collections

Registered users can select photos from the Piwigo gallery and save them into collections.
https://github.com/piwigo/piwigo-user-collections

Last synced: 12 months ago
JSON representation

Registered users can select photos from the Piwigo gallery and save them into collections.

Awesome Lists containing this project

README

          

# Technical details for themes

## AVAILABLE TEMPLATE VARIABLES

### Photos list
File: `thumbnails.tpl` (`index_thumbnails`)
Trigger: `loc_end_index_thumbnails`
See: `include/events.inc.php` (`user_collections_thumbnails_list`)

* **$USER_COLLEC_PATH** - path from root to UserCollections directory

* **$COLLECTIONS** - all collections of the current user
* id
* name
* nb_images

* **$thumbnails **- The following attributes are added for each element
* COLLECTIONS - comma separated ids of collections containing the element

### Photos list bis
File: `thumbnails.tpl` (`index_thumbnails`)
Trigger: `loc_end_index_thumbnails`
See: `include/display_thumbnails.inc.php` (`user_collections_thumbnails_in_collection`)

Only applied when viewing thumbnails of a collection.

* **$thumbnails** - The following attributes are added for each element
* FILE_SRC - direct link to large image

### Albums list
File: `mainpage_categories.tpl` (`index_category_thumbnails`)
Trigger: `loc_end_index`
See: `include/diplay_collections.inc.php`

Only applied when viewing collections list.

* **$category_thumbnails** - The following attributes are added for each element
* U_DELETE

## PREFILTERS

### Photos list
File: `thumbnails.tpl` (`index_thumbnails`)
Searches: `(

  • |
  • )`
    See: `include/events.inc.php` (`user_collections_thumbnails_list_button`)

    This prefilter tries to add the **Add to collection** button for every element. The button must have `class="addCollection"`, `data-id="{$thumbnail.id}"` and `data-cols="[{$thumbnail.COLLECTIONS}]"` attributes.

    ### Photos list bis
    File: `thumbnails.tpl` (`index_thumbnails`)
    Searches: ``
    See: `include/collections.inc.php` (`user_collections_categories_list`)

    This prefilter tries to add **Edit** and **Delete* links on categories list, which uses the same template as albums.