Cubeportfolio
Showcase your latest works with a jQuery grid plugin that provides powerful portfolio system, beautiful animated filtering or any other ordered grid content.
Cubeportfolio documentationHow to use?
Copy-paste the stylesheet <link>
into your <head>
to load the CSS.
Copy-paste the following <script>
near the end of your pages under JS Implementing Plugins to enable it.
Copy-paste the following <script>
near the end of your pages under JS Front to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-hs-cbp-options='{}'
. For more detailed or missing attributes/functions, see the official Cubeportfolio documentation documentation page.
Parameters | Description | Default value |
---|---|---|
|
Default filter for plugin. Option available only for `layoutMode: 'grid' | '*' |
|
Defines the speed of displaying the items (when displayType: 'default' this option will have no effect) | 100 |
|
Filter the items by dimension (bigger to smallest) if there are gaps in grid. Option available only for `layoutMode: 'mosaic' | true |
|
Enable / disable gallery mode for lightbox popup | true |
|
Push the open panel in focus and at close go back to the former stage | true |
|
Enable / disable the deeplinking feature for singlePage popup | true |
|
Enable / disable the sticky navigation for singlePage popup | true |
|
Adjust the layout grid. For more information, see Cubeportfolio documentation | 'responsive' |
|
The plugin will display his content based on the following value. For more information, see Cubeportfolio documentation | 'sequentially' |
|
Define the position of singlePage Inline block | 'below' |
|
Attribute of the delegate item that contains caption for lightbox | 'data-title' |
|
Define any clickable elements you wish to use to trigger lightbox popup on click | '.cbp-lightbox' |
|
Define any clickable elements you wish to use to trigger singlePageInline popup on click | '.cbp-singlePageInline' |
|
Define any clickable elements you wish to use to trigger singlePage popup on click | '.cbp-singlePage' |
|
Markup of the lightbox counter. To hide the counter for lightbox put this option to an empty string (e.g. '') | '<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>' |
|
Public API | |
|
Markup of the singlePage counter. To hide the counter for singlePage put this option to an empty string (e.g. '') | '<div class="cbp-popup-singlePage-counter">{{current}} of {{total}}</div>' |
|
Define `media queries` for columns layout. For more information, see Cubeportfolio documentation | |
|
Caption - the overlay that is shown when you put the mouse over an item. NOTE: If you don't want to have captions set this option to an empty string (e.g. caption: '') | 'overlayBottomAlong' |