Browse Source

reintroduce banner inclusion in default template

master
Dom SP 3 years ago
parent
commit
d486e5c954
3 changed files with 18 additions and 2 deletions
  1. +1
    -1
      app/modules/filesinfolders.php
  2. +10
    -1
      app/views/header.htm
  3. +7
    -0
      rsc/sass/_freaCMSfeatures.scss

+ 1
- 1
app/modules/filesinfolders.php View File

@@ -275,7 +275,7 @@ class FilesInFolders {
for ($i=0;$i<$f;$i++) {
$string = str_replace($matches[0][$i],"",$string);
$key = $matches[1][$i];
$value = $matches[2][$i];
$value = trim($matches[2][$i]);

if(strtolower($value) == "false") {
$value = FALSE;

+ 10
- 1
app/views/header.htm View File

@@ -1,10 +1,19 @@
<h1>{{ @title }}</h1>
<check if="{{ @banner }}">
<true>
<h1><img src="{{ @banner }}" alt="{{ @title }}" /></h1>
</true>
<false>
<h1>{{ @title }}</h1>
</false>
</check>

<check if="{{ @subTitle }}">
<h2>{{ @subTitle }}</h2>
</check>

<check if="{{ @headerInfo1 || @headerInfo2 }}">
<div class="headerInfo">
<span class="headerInfo1">{{ @headerInfo1 }}</span>
<span class="headerInfo2">{{ @headerInfo2 }}</span>
</div>
</check>

+ 7
- 0
rsc/sass/_freaCMSfeatures.scss View File

@@ -1,4 +1,11 @@

header {
img {
max-width: 100%;
display: block;
}
}

// content elements:
// box
a.content_element_box {

Loading…
Cancel
Save