From 5cfbbc005cdacb6de3235317ea18e243d07fe1d8 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 13 Aug 2014 16:52:18 -0400 Subject: [PATCH] SiteMap Output the site-map --- Toolkit/Template/Page/SiteMap.php | 10 +++++---- templates/toolbox.html | 36 +++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/Toolkit/Template/Page/SiteMap.php b/Toolkit/Template/Page/SiteMap.php index 6cf1a99..392bd66 100644 --- a/Toolkit/Template/Page/SiteMap.php +++ b/Toolkit/Template/Page/SiteMap.php @@ -77,13 +77,15 @@ class Toolkit_Template_Page_SiteMap { $GLOBALS['styleSheets'][] = MEDIA_BASE_URL . 'css/siteMap.css'; $navArray = $this->getNavArray(0); - $page = new stdClass(); + $tPage = new stdClass(); $tpl = new HTML_Template_Flexy( $GLOBALS['flexyOptions'] ); - $page->nav = $navArray; - $tpl->compile('siteMap.html'); - return $tpl->bufferedOutputObject($page); + $tPage->nav = $navArray; +// echo '
'.print_r($tPage, true).'
';exit; +// $tpl->compile('siteMap.html'); + return $tPage; +// return $tpl->bufferedOutputObject($page); } // }}} diff --git a/templates/toolbox.html b/templates/toolbox.html index 3dadb2b..17b818f 100644 --- a/templates/toolbox.html +++ b/templates/toolbox.html @@ -64,4 +64,40 @@ {end:} +{end:} +{if:toolboxContent.nav} +
+
    +
  1. +

    {main[label]:h}

    + {if:main[subs]} + chunks = array_chunk($main['subs'], 3, true); + ?> +
    +
      +
    1. + {chunk[label]:h} + {if:chunk[subs]} +
        +
      1. + {sChunk[label]:h} + + {if:sChunk[subs]} +
          +
        1. + {sChunk2[label]:h} +
        2. +
        + {end:} +
      2. +
      + {end:} +
    2. +
    +
    + {end:} +
  2. +
+
{end:} \ No newline at end of file -- 2.17.1