Frontend
Packages
Table of Contents
- cookie_popup() : mixed
- Function to retrive Cookie Popup
- gallery() : mixed
- Create a gallery with a given ACF gallery fields
- marquee() : mixed
- Create a marquee with a given ACF text fields
Functions
cookie_popup()
Function to retrive Cookie Popup
cookie_popup() : mixed
This function it's used by theme to set cookie popup using ACF fields. Actually the fields are hardcoded:
- opt_privacy_popup_text
- opt_privacy_popup_title
- opt_privacy_popup_link
Todo
Remove hardcoded fields
To refactor. Code a stand alone version
gallery()
Create a gallery with a given ACF gallery fields
gallery([array<string|int, mixed> $args = null ]) : mixed
Return Html output of different type of galleries, from a specific acf gallery field or a group of fields
Parameters
Gallery Settings
ACF field ora array of field for Images source. Complex field will be parsed with field_parse() @param String|Array $args['field'] Gallery array @param String $args['gallery'] Gallery type. Avable type: boxed, slide, full-slide, vertical
Gallery ID. Generate ids for images too.
Button class, if empty button dosen't renderize
full | true . Buttons navigation class. if empty buttons dosen't renderize
Enable Slide support or disable it
Buttons close class
Image size thumb|medium|large|full (Default: large)
Inner wrapper class
Item gallery class
Add caption box indicating a class to associate
Add caption description box
Add target gallery window id for gallery hendler attribute
Gallery list item attribute
Todo
Button close to improve
marquee()
Create a marquee with a given ACF text fields
marquee([array<string|int, mixed> $args = null ]) : mixed
Return Html marquee with a given text. You must choose an unique id
Parameters
Marquee Settings
ACF field text. Complex field will be parsed with field_parse()
Unique id for this element
The marquee speed, negative or positive
Todo
get auto id