Download the PHP package hypejunction/hypeicons without Composer
On this page you can find all versions of the php package hypejunction/hypeicons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hypejunction/hypeicons
More information about hypejunction/hypeicons
Files in hypejunction/hypeicons
Package hypeicons
Short Description Interface for uploading and cropping entity icons and covers
License GPL-2.0
Homepage http://hypejunction.com
Informations about the package hypeicons
hypeIcons
Interface for uploading and cropping entity icons and covers
Features
- Generic API for uploading, handling and cropping entity icons and covers
- Admin settings to enable icons/covers for all entity types
- Allows to crop file thumbnails
- Allows to crop user and group avatars and cover images
- An option switch between square, rounded and circle entity icons
- An option to replace default entity icons with SVG
- An option to replace default filetype icons with SVG
- Responsive icon/cover cropping
Screenshots
Notes
Default entity type icons
To replace a default entity icon/cover, simply place an image in views/default/<icon_type>/<entity_type>/<entity_subtype>.<ext>
, where:
ext
is eithersvg
,png
,gif
orjpg
.icon_type
is eithercover
oricon
Add a cropper as a form input
Add cropper to a file input
This will allow users to crop an image before uploading it to the server.
You can as well pass preset coordinates and images source.
In your action, be sure to use the same image source for cropping. If you passed master image source to the file input, you will need to implement the logic for both new file upload and master image, as cropping coordinates may change even without new file upload.
Displaying a cover image
Adding cover image in layout header
echo elgg_view_layout('one_sidebar', [
'entity' => $entity,
'show_cover' => true,
'title' => 'Page with cover',
'content' => 'Page content',
]);