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.
- Host: GitHub
- URL: https://github.com/piwigo/piwigo-user-collections
- Owner: Piwigo
- License: gpl-2.0
- Created: 2014-11-14T12:13:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-04-01T06:17:07.000Z (over 1 year ago)
- Last Synced: 2025-07-06T13:07:03.623Z (about 1 year ago)
- Language: PHP
- Homepage: http://piwigo.org/ext/extension_view.php?eid=615
- Size: 688 KB
- Stars: 4
- Watchers: 3
- Forks: 6
- Open Issues: 23
-
Metadata Files:
- Readme: README-THEMES.md
- License: LICENSE.txt
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.