added winix_frame_is ezc winix function
This commit is contained in:
parent
dfd6475a81
commit
119497bb01
|
@ -644,6 +644,7 @@ void Templates::CreateFunctions()
|
||||||
ezc_functions.Insert("winix_locale_tab_id", winix_locale_tab_id);
|
ezc_functions.Insert("winix_locale_tab_id", winix_locale_tab_id);
|
||||||
ezc_functions.Insert("winix_locale_tab_name", winix_locale_tab_name);
|
ezc_functions.Insert("winix_locale_tab_name", winix_locale_tab_name);
|
||||||
ezc_functions.Insert("winix_is_htmx_request", winix_is_htmx_request);
|
ezc_functions.Insert("winix_is_htmx_request", winix_is_htmx_request);
|
||||||
|
ezc_functions.Insert("winix_frame_is", winix_frame_is);
|
||||||
|
|
||||||
ezc_functions.Insert("lang", lang);
|
ezc_functions.Insert("lang", lang);
|
||||||
|
|
||||||
|
|
|
@ -537,6 +537,7 @@ namespace TemplatesFunctions
|
||||||
void winix_locale_tab_id(Info & i);
|
void winix_locale_tab_id(Info & i);
|
||||||
void winix_locale_tab_name(Info & i);
|
void winix_locale_tab_name(Info & i);
|
||||||
void winix_is_htmx_request(Info & i);
|
void winix_is_htmx_request(Info & i);
|
||||||
|
void winix_frame_is(Info & i);
|
||||||
|
|
||||||
void lang(Info & i); // defined in winix.cpp - MOVE ME to a better place
|
void lang(Info & i); // defined in winix.cpp - MOVE ME to a better place
|
||||||
|
|
||||||
|
|
|
@ -381,6 +381,12 @@ void winix_is_htmx_request(Info & i)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void winix_frame_is(Info & i)
|
||||||
|
{
|
||||||
|
i.res = cur->request->frame == i.par;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void lang(Info & i)
|
void lang(Info & i)
|
||||||
{
|
{
|
||||||
i.res = !i.par.empty();
|
i.res = !i.par.empty();
|
||||||
|
|
Loading…
Reference in New Issue