decided in favor of dedicated COMPONENT() macro, updates to documentation
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#load "../../lib/app.uce"
|
||||
|
||||
RENDER(Request& context)
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
starter_boot(context);
|
||||
if(context.var["starter"]["embed_mode"].to_string() != "")
|
||||
return;
|
||||
|
||||
String text = first(starter_theme_value("footer_text", context), starter_cfg_string("site/name", context));
|
||||
String inner_class = starter_theme_value("key", context) == "portal-light" ? "footer-inner" : "";
|
||||
String text = first(context.cfg.get_by_path("theme/footer_text").to_string(), context.cfg.get_by_path("site/name").to_string());
|
||||
String inner_class = context.cfg.get_by_path("theme/key").to_string() == "portal-light" ? "footer-inner" : "";
|
||||
|
||||
<>
|
||||
<footer>
|
||||
|
||||
Reference in New Issue
Block a user