view.phtml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!-- CONTENT SECTIONS SUB LAYOUT -->
  2. <div class="sub-container">
  3. <div class="row row-offcanvas row-offcanvas-left">
  4. <?php
  5. /** @var \Cube\Navigation\Page\AbstractPage $leftSideContainer */
  6. if ($leftSideContainer->hasChildren()) { ?>
  7. <div class="col-md-3 sidebar-offcanvas">
  8. <!-- members area side navigation -->
  9. <?php
  10. echo $this->navigation()
  11. ->setContainer($leftSideContainer)
  12. ->setPartial('navigation/left-side.phtml')
  13. ->menu();
  14. ?>
  15. </div>
  16. <div class="col-md-9">
  17. <p class="hidden-md hidden-lg">
  18. <button class="btn btn-default" data-toggle="offcanvas" type="button">
  19. <i class="fa fa-2x fa-list"></i>
  20. </button>
  21. </p>
  22. <?php echo $this->navigation()
  23. ->setContainer($container)
  24. ->setPartial('navigation/breadcrumbs.phtml')->setMinDepth(0)->breadcrumbs(); ?>
  25. <?php } else { ?>
  26. <div class="col-xs-12">
  27. <?php } ?>
  28. <?php foreach ($pages as $page) { ?>
  29. <article>
  30. <?php if (!empty($page['title'])) { ?>
  31. <h1 class="headline">
  32. <span><?php echo $page['title']; ?></span>
  33. </h1>
  34. <?php } ?>
  35. <div>
  36. <?php echo $this->renderHtml($page['content'], true); ?>
  37. </div>
  38. </article>
  39. <?php } ?>
  40. </div>
  41. </div>
  42. </div>