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

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


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

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

<h1>{{ @title }}</h1>
<check if="{{ @banner }}">
<true>
<h1><img src="{{ @banner }}" alt="{{ @title }}" /></h1>
</true>
<false>
<h1>{{ @title }}</h1>
</false>
</check>


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


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

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



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

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

Loading…
Cancel
Save