diff options
author | Malf Furious <m@lfurio.us> | 2018-07-22 02:03:35 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-07-22 02:03:35 -0400 |
commit | 7a758b2ffcc43f64bfddfb252441f56e0c032089 (patch) | |
tree | 8768b2e3a629c16d20cf81aaebe67a6cb699f531 /app | |
parent | 26ab0a495365ddc7de9a70309305d366bfafeaac (diff) | |
download | scrott-7a758b2ffcc43f64bfddfb252441f56e0c032089.tar.gz scrott-7a758b2ffcc43f64bfddfb252441f56e0c032089.zip |
Implement display of object page background images
Diffstat (limited to 'app')
-rw-r--r-- | app/view/stdpage.php | 13 |
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 } ?> |