Footer isnt global even though it is defined so
Permalink Browser Info Environment
Hey I updated to the latest Slate version and for me still the footer is not becoming global. I also opened the footer file and checked if it was defined as as global. Ive added my footer code below. Can anyone tell me why the footer is not being the same in every page? I did clear the cache several times and also tried on different computers.
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<footer>
<div class="row">
<div class="col_12 last">
<?php
$a = new GlobalArea('Footer Column Four');
$a->display();
?>
</div><!-- .col_12 ends -->
</div><!-- .row ends -->
<div class="row">
<div id="credits" class="col_12 clearboth">
<p class="left">© <?php echo date('Y')?> <?php echo SITE?>. <?php echo t('All Rights Reserved.')?> <?php
$u = new User();
if ($u->isRegistered()) { ?>
<span class="sign-in"><?php echo t('Currently logged in as <span class="user"><b>%s</b></span>.', $u->getUserName())?> <a href="<?php echo $this->url('/login', 'logout')?>"><?php echo t('Sign Out')?></a></span>
<?php } else { ?>
<span class="sign-in"><a href="<?php echo $this->url('/login')?>"><?php echo t('Login')?></a>.</span>
<?php } ?></p>
</div><!-- #credits ends -->
</div><!-- .row ends -->
</footer><!-- footer ends -->
</div><!-- #container ends -->
<?php Loader::element('footer_required'); ?>
</body>
</html>
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<footer>
<div class="row">
<div class="col_12 last">
<?php
$a = new GlobalArea('Footer Column Four');
$a->display();
?>
</div><!-- .col_12 ends -->
</div><!-- .row ends -->
<div class="row">
<div id="credits" class="col_12 clearboth">
<p class="left">© <?php echo date('Y')?> <?php echo SITE?>. <?php echo t('All Rights Reserved.')?> <?php
$u = new User();
if ($u->isRegistered()) { ?>
<span class="sign-in"><?php echo t('Currently logged in as <span class="user"><b>%s</b></span>.', $u->getUserName())?> <a href="<?php echo $this->url('/login', 'logout')?>"><?php echo t('Sign Out')?></a></span>
<?php } else { ?>
<span class="sign-in"><a href="<?php echo $this->url('/login')?>"><?php echo t('Login')?></a>.</span>
<?php } ?></p>
</div><!-- #credits ends -->
</div><!-- .row ends -->
</footer><!-- footer ends -->
</div><!-- #container ends -->
<?php Loader::element('footer_required'); ?>
</body>
</html>
Type: | Discussion |
---|---|
Status: | New |
Please include a link to this post with your message.