Style ID | User selectable | Style name | HTML Tag | BODY Tag | Parallax header classes | Parallax holes | ||||
---|---|---|---|---|---|---|---|---|---|---|
{$choice.style_id} | checked size="1" disabled="disabled" /> | {$choice.title} | checked size="1" /> | checked size="1" /> |
|
|
Callback signature:
array &$images
Arguments:
array &$images
- the image arrayData structure:
[
"string-addon-unique-identifier" => [
[
"info" => [
"nm" => "raw-html-for-image-name",
"by" => "raw-html-for-image-author",
"lc" => "raw-html-for-image-license"
],
"image" => [
"thumb" => "url-to-image",
"full" => "url-to-image",
]
]
]
]
Data structure example:
]]>[
"my-addon" => /*start_your_copy-paste_here*/ [
[
"info" => [
"nm" => "Dirty leaves",
"by" => "Nicky",
"lc" => "Creative Commons 4.0"
],
"image" => [
"thumb" => "styles/nicky/backgroundpack1/dirtyleaves_small.jpg",
"full" => "styles/nicky/backgroundpack1/dirtyleaves_full.jpg",
]
],
[
"info" => [
"nm" => "Clean leaves",
"by" => "nonCa",
"lc" => "Proprietary"
],
"image" => [
"thumb" => "styles/nicky/backgroundpack1/cleanleaves_small.jpg",
"full" => "styles/nicky/backgroundpack1/cleanleaves_full.jpg",
]
]
] /*end_your_copy-paste_here*/
]
Tip: Try doing something near this as the last line of your event listener PHP code:
$images["my-addon"] = $myImagesArray;