getting closer to full port of web app starter
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#load "../../lib/app.uce"
|
||||
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
starter_boot(context);
|
||||
if(starter_page_embed_mode(context))
|
||||
return;
|
||||
|
||||
String cookie_value = context.call["cookie_consent"].to_string();
|
||||
bool cookie_consent = !(cookie_value == "0" || cookie_value == "false" || cookie_value == "FALSE" || cookie_value == "no" || cookie_value == "NO");
|
||||
|
||||
<>
|
||||
<?: component("../example/theme-switcher", context) ?>
|
||||
<? if(cookie_consent) { ?>
|
||||
<?: component("../basic/cookie-consent", context) ?>
|
||||
<? } ?>
|
||||
</>
|
||||
}
|
||||
Reference in New Issue
Block a user