Add ability to have images surround the banner.
This commit is contained in:
@@ -1,8 +1,27 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
// Dynamic testing of whether new images around the banner is wanted.
|
||||
$show_pics = false;
|
||||
$banner_width = $show_pics ? 6 : 12;
|
||||
?>
|
||||
<a href='/about/'>
|
||||
<div class="row col-12 header">
|
||||
<?php if ($show_pics) echo '
|
||||
<div class="row col-3 header center">
|
||||
<img src="/files/media/icons/home.jpg"
|
||||
alt="<<banner01.jpg>>" style="width:100%"
|
||||
>
|
||||
</div>
|
||||
';?>
|
||||
<div class="row col-<?php echo "$banner_width"; ?> header">
|
||||
<div class="banner-top">Peace</div>
|
||||
<div class="banner-middle">Love</div>
|
||||
<div class="banner-bottom">Happiness</div>
|
||||
</div>
|
||||
<?php if ($show_pics) echo '
|
||||
<div class="row col-3 header center">
|
||||
<img src="/files/media/icons/contact.jpg"
|
||||
alt="<<banner02.jpg>>" style="width:100%"
|
||||
>
|
||||
</div>
|
||||
';?>
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user