summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/view/stdpage.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/app/view/stdpage.php b/app/view/stdpage.php
index b9bd359..e0c811d 100644
--- a/app/view/stdpage.php
+++ b/app/view/stdpage.php
@@ -68,7 +68,18 @@ require_once "view/datamods.php";
<link rel="stylesheet" type="text/css" href="<?=ar()?>/static/css/bootstrap.min.css" />
<style type="text/css">
- body { padding-top: 70px; }
+ body
+ {
+ padding-top: 70px;
+
+ <?php if (getPageObj() && ($pagebg = getPageObj()->getBgImg())) { ?>
+ background: url(<?=$pagebg?>) no-repeat center center fixed;
+ -webkit-background-size: cover;
+ -moz-background-size: cover;
+ -o-background-size: cover;
+ background-size: cover;
+ <?php } ?>
+ }
</style>
<?php } ?>