Manages the integration of the special offers snippet
author | etessore |
---|---|
version | 1.0.4 |
package | classes |
__construct(string $hid)
string
the hotel hid
add_param(string $key, int | string $value) : \SpecialOffersSnippet
calculate_url(array $params)
array
additional query params for the iframe
disable_cycle() : \SpecialOffersSnippet
\SpecialOffersSnippet
$this for chainabilityenable_cycle() : \SpecialOffersSnippet
\SpecialOffersSnippet
$this for chainabilityenable_fancybox() : \SpecialOffersSnippet
\SpecialOffersSnippet
$this for chainabilityget_iframe_src() : string
string
the urlget_markup()
get_param(string $key)
string
name of the parameter
the_iframe_src()
the_markup()
get_com_js() : string
Checks if is the first implementation, otherwhise it will return an empty string
string
html script tag to com.jsget_divdest()
get_pop_js() : string
string
get_promo_js() : string
string
html script tagbuild_url(array $url_arr)
see | \http://php.net/manual/en/function.parse-url.php |
---|
array
the array of attributes
$index : int
$params : array
$url : string
baseurl
com_js
default_divdest
pop_js