Bootstrap new block - long story short parallax

Permalink
Hi all,

I've done quite some reading searching and trying but i can't find a solution so I hope
someone can help me out.

I have the Long Story Short Parallax theme which makes a new menu item after creating a block. I would like to have the possibility to create a new block just above the current menu block to put the auto-nav in. I thought making a new block in a div above the current menu.

<?php
$a = new Area('Header Nav');
$a->display($c);
?>

The editable area appears and i can put auto-nav in it. However it doesn't show up when i publish my edits and the parallax effect is gone.

I Hope anyone can point me in the right direction.

Below the code where im staring at for the last 48 hours:

<div class="navbar navbar-inverse <?php if (!$c->isEditMode()) { ?>navbar-fixed-top<?php } ?>">
<div class="navbar-inner">
<div class="pull-left">
<?php
$a = new Area('Site Name');
if (($a->getTotalBlocksInArea($c) > 0) || ($c->isEditMode())) {
$a->setBlockLimit(1);
$a->setBlockWrapperStart('<div class="brand-wrapper">');
$a->setBlockWrapperEnd('</div>');
$a->display($c);
} else { ?>
<a class="brand" href="<?php echo DIR_REL?>/"><?php echo SITE; ?></a>
<?php } ?>
</div>
<?php if (!$po->canWrite()){ ?>
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<?php } ?>
<div <?php if (!$po->canWrite()){ ?>class="nav-collapse collapse"<?php } ?>>
<ul class="nav nav-pills pull-right"><?php
$a = new Area('Header Nav');
$a->display($c);
?>
<?php
$blocks = $c->getBlocks('Main');
foreach ($blocks as $key=>$b) {
$blockNumber = $key+1;
$blockName = $b->getBlockName();
$blockStyle = $b->getBlockCustomStyleRule();
if (is_object($blockStyle)) {
$blockID = $blockStyle->getCustomStyleRuleCSSID(true);
}
else {
$blockID = "slide".$blockNumber;
}
if (!$blockName) { $blockName = "Slide ".$blockNumber; }
echo '<li><a href="#'.$blockID.'">'.$blockName.'</a></li>';
}
?>
</ul>
</div>
</div>
</div>

 
mnakalay replied on at Permalink Reply
mnakalay
Hello,
What does the $po variable refer to? How did you instantiate and define it?
roeger replied on at Permalink Reply
Hi Mnakalay,

Referring to this in the header.php file

<?php   $pageObject = Page::getCurrentPage(); $po = new Permissions($pageObject); ?>


$po gives permission to add content to the menu block when adding a new block which creates a slide and a menu item.