23 lines
644 B
Plaintext
23 lines
644 B
Plaintext
#load "../../lib/app.uce"
|
|
|
|
COMPONENT(Request& context)
|
|
{
|
|
starter_boot(context);
|
|
bool embed_mode = starter_page_embed_mode(context);
|
|
if(embed_mode)
|
|
return;
|
|
|
|
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 = first(context.props["inner_class"].to_string(), context.cfg.get_by_path("theme/key").to_string() == "portal-light" ? "footer-inner" : "");
|
|
|
|
<>
|
|
<footer>
|
|
<? if(inner_class != "") { ?>
|
|
<div class="<?= inner_class ?>"><p><?= text ?></p></div>
|
|
<? } else { ?>
|
|
<div><p><?= text ?></p></div>
|
|
<? } ?>
|
|
</footer>
|
|
</>
|
|
}
|