#:::::::::::::::::::::::::::::::::::::::: # Snippet Name: RandomImage # Short Desc: Displays a random image from a folder # Version: 1.0a # Created by: Mike Fairbrother # Adapted by: Wim Beerens (info@webesite.nl) # # Date: January 3, 2008 # # Changelog: # January 3th, 2008 -- added &folder parameter # -- added &border parameter # -- added
/* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: [[Wayfinder? &startId=`0`]] :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; }
Хонда Джип Сервис
Ваш автосервис
Москва, Дмитровское шоссе, д. 11 стр. 5
+7 (495) 745-08-06
745-08-10
/* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: [[Wayfinder? &startId=`0`]] :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; }
if (!defined('_SAPE_USER')){ define('_SAPE_USER', '82793746f3dc79130c11c47767d046e8'); } require_once($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php'); $o[ 'force_show_code' ] = true; $o['charset'] = 'UTF-8'; $sape = new SAPE_client( $o ); echo ''; /* echo '';*/
/* * This snippet shows the path through the various levels of site structure. It * is NOT necessarily the path the user took to arrive at a given page. */ /* ----------------------------------------------------------------------------- * CONFIGURATION * ----------------------------------------------------------------------------- * This section contains brief explanations of the available parameters. */ /* General setup * ----------------------------------------------------------------------------- */ /* $maxCrumbs [ integer ] * Max number of elemetns to have in a breadcrumb path. The default 100 is an * arbitrarily high number that will essentially include everything. If you were * to set it to 2, and you were 5 levels deep, it would appear like: * HOME > ... > Level 3 > Level 4 > CURRENT PAGE * It should be noted that the "home" link, and the current page do not count as * they are managed by their own configuration settings. */ ( isset($maxCrumbs) ) ? $maxCrumbs : $maxCrumbs = 100; /* $pathThruUnPub [ 1 | 0 ] * When your path includes an unpublished folder, setting this to 1 (true) will * show all documents in path EXCEPT the unpublished. When set to 0 (false), the * path will not go "through" that unpublished folder and will stop there. */ ( isset($pathThruUnPub) ) ? $pathThruUnPub : $pathThruUnPub = 1; /* $respectHidemenu [ 0 | 1 ] * Setting this to 1 (true) will respect the hidemenu setting of the document * and not include it in trail. */ ( isset($respectHidemenu) ) ? (int)$respectHidemenu : $respectHidemenu = 1; /* $showCurrentCrumb [ 1 | 0 ] * Include the current page at the end of the trail. On by default. */ ( isset($showCurrentCrumb) ) ? $showCurrentCrumb : $showCurrentCrumb = 1; /* $currentAsLink [ 1 | 0 ] * If the current page is included, this parameter will show it as a link (1) or * just plain text (0). */ ( $currentAsLink ) ? $currentAsLink : $currentAsLink = 0; /* $linkTextField [ string ] * Prioritized list of fields to use as link text. Options are: pagetitle, * longtitle, description, menutitle. The first of these fields that has a value * will be the title. */ ( isset($linkTextField) ) ? $linkTextField : $linkTextField = 'menutitle,pagetitle,longtitle'; /* $linkDescField [ string ] * Prioritized list of fields to use as link title text. Options are: pagetitle, * longtitle, description, menutitle. The first of these fields that has a value * will be the title. */ ( isset($linkDescField) ) ? $linkDescField : $linkDescField = 'description,longtitle,pagetitle,menutitle'; /* $showCrumbsAsLinks [ 1 | 0 ] * If for some reason you want breadcrumbs to be text and not links, set to 0 * (false). */ ( isset($showCrumbsAsLinks) ) ? $showCrumbsAsLinks : $showCrumbsAsLinks = 1; /* $templateSet [ string ] * The set of templates you'd like to use. (Templates are defined below.) It * will default to defaultString which replicates the output of previous * versions. */ ( isset($templateSet) ) ? $templateSet : $templateSet = 'defaultString'; /* $crumbGap [ string ] * String to be shown to represent gap if there are more crumbs in trail than * can be shown. Note: if you would like to use an image, the entire image tag * must be provided. When making a snippet call, you cannot use "=", so use "||" * instead and it will be converted for you. */ ( isset($crumbGap) ) ? $crumbGap : $crumbGap = '...'; /* $stylePrefix [ string ] * Breadcrumbs will add style classes to various parts of the trail. To avoid * class name conflicts, you can determine your own prefix. The following * classes will be attached: * crumbBox: Span that surrounds all crumb output * hideCrumb: Span that surrounds the "..." if there are more crumbs than will * be shown * currentCrumb: Span or A tag surrounding the current crumb * firstCrumb: Span that will be applied to first crumb, whether it is "home" or * not * lastCrumb: Span surrounding last crumb, whether it is the current page or * not * crumb: Class given to each A tag surrounding the intermediate crumbs (not * "home", "current", or "hide") * homeCrumb: Class given to the home crumb */ ( isset($stylePrefix) ) ? $stylePrefix : $stylePrefix = 'B_'; /* Home link parameters * ----------------------------------------------------------------------------- * The home link is unique. It is a link that can be placed at the head of the * breadcrumb trail, even if it is not truly in the hierarchy. */ /* $showHomeCrumb [ 1 | 0 ] * This toggles the "home" crumb to be added to the beginning of your trail. */ ( isset($showHomeCrumb) ) ? $showHomeCrumb : $showHomeCrumb = 1; /* $homeId [ integer ] * Usually the page designated as "site start" in MODx configuration is * considered the home page. But if you would like to use some other document, * you may explicitly define it. */ ( isset($homeId) ) ? (int)$homeId : $homeId = $modx->config['site_start']; /* $homeCrumbTitle [ string ] * If you'd like to use something other than the menutitle (or pagetitle) for * the home link. */ ( isset($homeCrumbTitle) ) ? $homeCrumbTitle : $homeCrumbTitle = ''; /* $homeCrumbDescription [ string ] * If you'd like to use a custom description (link title) on the home link. If * left blank, the title will follow the title order set in $titleField. */ ( isset($homeCrumbDescription) ) ? $homeCrumbDescription : $homeCrumbDescription = ''; /* Custom behaviors * ----------------------------------------------------------------------------- * The following parameters will alter the behavior of the Breadcrumbs based on * the page it is on. */ /* $showCrumbsAtHome [ 1 | 0 ] * You can turn off Breadcrumbs all together on the home page by setting this to * 1 (true); */ ( isset($showCrumbsAtHome) ) ? $showCrumbsAtHome : $showCrumbsAtHome = 0; /* $hideOn [ string ] * Comma separated list of documents you don't want Breadcrumbs on at all. If * you have a LOT of pages like this, you might try $hideUnder or use another * template. This parameter is best for those rare odd balls - otherwise it will * become a pain to manage. */ ( isset($hideOn) ) ? $hideOn : $hideOn = ''; /* $hideUnder [ string ] * Comma separated list of parent documents, whose CHILDREN you don't want * Breadcrumbs to appear on at all. This enables you to hide Breadcrumbs on a * whole folders worth of documents by specifying the parent only. The PARENT * will not have Breadcrumbs hidden however. If you wanted to hide the parent * and the children, put the parent ID in hideUnder AND hideOn. */ ( isset($hideUnder) ) ? $hideUnder : $hideUnder = ''; /* $stopIds [ string ] * Comma separated list of document IDs that when reached, stops Breadcrumbs * from going any further. This is useful in situations like where you have * language branches, and you don't want the Breadcrumbs going past the "home" * of the language you're in. */ ( isset($stopIds) ) ? $stopIds : $stopIds = ''; /* $ignoreIds [ string ] * Comma separated list of document IDs to explicitly ignore. */ ( isset($ignoreIds) ) ? $ignoreids : $ignoreids = ''; /* Templates * ----------------------------------------------------------------------------- * In an effort to keep the MODx chunks manager from getting mired down in lots * of templates, Breadcrumbs templates are included here. Two sets are provided * prefixed with defaultString, and defaultList. You can create as many more as * you like, each set with it's own prefix */ $templates = array( 'defaultString' => array( 'crumb' => '', 'separator' => ' » ', 'crumbContainer' => '', 'lastCrumbWrapper' => '', 'firstCrumbWrapper' => '' ), 'defaultList' => array( 'crumb' => '
  • ', 'separator' => '', 'crumbContainer' => '
      ', 'lastCrumbWrapper' => '', 'firstCrumbWrapper' => '' ), ); /* ----------------------------------------------------------------------------- * END CONFIGURATION * ----------------------------------------------------------------------------- */ // Return blank if necessary: on home page if ( !$showCrumbsAtHome && $homeId == $modx->documentObject['id'] ) { return ''; } // Return blank if necessary: specified pages if ( $hideOn || $hideUnder ) { // Create array of hide pages $hideOn = str_replace(' ','',$hideOn); $hideOn = explode(',',$hideOn); // Get more hide pages based on parents if needed if ( $hideUnder ) { $hiddenKids = array(); // Get child pages to hide $hideKidsQuery = $modx->db->select('id',$modx->getFullTableName("site_content"),"parent IN ($hideUnder)"); while ( $hideKid = $modx->db->getRow($hideKidsQuery) ) { $hiddenKids[] = $hideKid['id']; } // Merge with hideOn pages $hideOn = array_merge($hideOn,$hiddenKids); } if ( in_array($modx->documentObject['id'],$hideOn) ) { return ''; } } // Initialize ------------------------------------------------------------------ // Put certain parameters in arrays $stopIds = str_replace(' ','',$stopIds); $stopIds = explode(',',$stopIds); $linkTextField = str_replace(' ','',$linkTextField); $linkTextField = explode(',',$linkTextField); $linkDescField = str_replace(' ','',$linkDescField); $linkDescField = explode(',',$linkDescField); $ignoreIds = str_replace(' ','',$ignoreIds); $ignoreIds = explode(',',$ignoreIds); /* $crumbs * Crumb elements are: id, parent, pagetitle, longtitle, menutitle, description, * published, hidemenu */ $crumbs = array(); $parent = $modx->documentObject['parent']; $output = ''; $maxCrumbs += ($showCurrentCrumb) ? 1 : 0; // Replace || in snippet parameters that accept them with = $crumbGap = str_replace('||','=',$crumbGap); // Curent crumb ---------------------------------------------------------------- // Decide if current page is to be a crumb if ( $showCurrentCrumb ) { $crumbs[] = array( 'id' => $modx->documentObject['id'], 'parent' => $modx->documentObject['parent'], 'pagetitle' => $modx->documentObject['pagetitle'], 'longtitle' => $modx->documentObject['longtitle'], 'menutitle' => $modx->documentObject['menutitle'], 'description' => $modx->documentObject['description']); } // Intermediate crumbs --------------------------------------------------------- // Iterate through parents till we hit root or a reason to stop $loopSafety = 0; while ( $parent && $parent!=$modx->config['site_start'] && $loopSafety < 1000 ) { // Get next crumb $tempCrumb = $modx->getPageInfo($parent,0,"id,parent,pagetitle,longtitle,menutitle,description,published,hidemenu"); // Check for include conditions & add to crumbs if ( $tempCrumb['published'] && ( !$tempCrumb['hidemenu'] || !$respectHidemenu ) && !in_array($tempCrumb['id'],$ignoreIds) ) { // Add crumb $crumbs[] = array( 'id' => $tempCrumb['id'], 'parent' => $tempCrumb['parent'], 'pagetitle' => $tempCrumb['pagetitle'], 'longtitle' => $tempCrumb['longtitle'], 'menutitle' => $tempCrumb['menutitle'], 'description' => $tempCrumb['description']); } // Check stop conditions if ( in_array($tempCrumb['id'],$stopIds) || // Is one of the stop IDs !$tempCrumb['parent'] || // At root ( !$tempCrumb['published'] && !$pathThruUnPub ) // Unpublished ) { // Halt making crumbs break; } // Reset parent $parent = $tempCrumb['parent']; // Increment loop safety $loopSafety++; } // Home crumb ------------------------------------------------------------------ if ( $showHomeCrumb && $homeId != $modx->documentObject['id'] && $homeCrumb = $modx->getPageInfo($homeId,0,"id,parent,pagetitle,longtitle,menutitle,description,published,hidemenu") ) { $crumbs[] = array( 'id' => $homeCrumb['id'], 'parent' => $homeCrumb['parent'], 'pagetitle' => $homeCrumb['pagetitle'], 'longtitle' => $homeCrumb['longtitle'], 'menutitle' => $homeCrumb['menutitle'], 'description' => $homeCrumb['description']); } // Process each crumb ---------------------------------------------------------- $pretemplateCrumbs = array(); foreach ( $crumbs as $c ) { // Skip if we've exceeded our crumb limit but we're waiting to get to home if ( count($pretemplateCrumbs) > $maxCrumbs && $c['id'] != $homeId ) { continue; } $text = ''; $title = ''; $pretemplateCrumb = ''; // Determine appropriate span/link text: home link specified if ( $c['id'] == $homeId && $homeCrumbTitle ) { $text = $homeCrumbTitle; } else // Determine appropriate span/link text: home link not specified { for ($i = 0; !$text && $i < count($linkTextField); $i++) { if ( $c[$linkTextField[$i]] ) { $text = $c[$linkTextField[$i]]; } } } // Determine link/span class(es) if ( $c['id'] == $homeId ) { $crumbClass = $stylePrefix.'homeCrumb'; } else if ( $modx->documentObject['id'] == $c['id'] ) { $crumbClass = $stylePrefix.'currentCrumb'; } else { $crumbClass = $stylePrefix.'crumb'; } // Make link if ( ( $c['id'] != $modx->documentObject['id'] && $showCrumbsAsLinks ) || ( $c['id'] == $modx->documentObject['id'] && $currentAsLink ) ) { // Determine appropriate title for link: home link specified if ( $c['id'] == $homeId && $homeCrumbDescription ) { $title = htmlspecialchars($homeCrumbDescription); } else // Determine appropriate title for link: home link not specified { for ($i = 0; !$title && $i < count($linkDescField); $i++) { if ( $c[$linkDescField[$i]] ) { $title = htmlspecialchars($c[$linkDescField[$i]]); } } } $pretemplateCrumb .= ''.$text.''; } else // Make a span instead of a link { $pretemplateCrumb .= ''.$text.''; } // Add crumb to pretemplate crumb array $pretemplateCrumbs[] = $pretemplateCrumb; // If we have hit the crumb limit if ( count($pretemplateCrumbs) == $maxCrumbs ) { if ( count($crumbs) > ($maxCrumbs + (($showHomeCrumb) ? 1 : 0)) ) { // Add gap $pretemplateCrumbs[] = ''.$crumbGap.''; } // Stop here if we're not looking for the home crumb if ( !$showHomeCrumb ) { break; } } } // Put in correct order for output $pretemplateCrumbs = array_reverse($pretemplateCrumbs); // Wrap first/last spans $pretemplateCrumbs[0] = str_replace( array('',''), array($stylePrefix.'firstCrumb',$pretemplateCrumbs[0]), $templates[$templateSet]['firstCrumbWrapper'] ); $pretemplateCrumbs[(count($pretemplateCrumbs)-1)] = str_replace( array('',''), array($stylePrefix.'lastCrumb',$pretemplateCrumbs[(count($pretemplateCrumbs)-1)]), $templates[$templateSet]['lastCrumbWrapper'] ); // Insert crumbs into crumb template $processedCrumbs = array(); foreach ( $pretemplateCrumbs as $pc ) { $processedCrumbs[] = str_replace('',$pc,$templates[$templateSet]['crumb']); } // Combine crumbs together into one string with separator $processedCrumbs = implode($templates[$templateSet]['separator'],$processedCrumbs); // Put crumbs into crumb container template $container = str_replace( array('',''), array($stylePrefix.'crumbBox',$processedCrumbs), $templates[$templateSet]['crumbContainer'] ); // Return crumbs return $container;

      [+phx:if=``:ne=``:then=``+]

      В нашем автосервисе мы ремонтируем Хонда Аккорд любого года выпуска, сделанные для любого рынка.

      История модели

      Восьмое поколение Хонда Аккорд / Honda Accord VIII
      Восьмое поколение Хонда Аккорд / Honda Accord VIII

      15 модификаций, выпускался в 2007, 2008, 2009, 2010, ... в кузовах седан, универсал, купе

      Седан

      • 2.0 i-VTEC 16V (155 Hp)
      • 2.0 i-VTEC 16V (155 Hp) AT
      • 2.4i AT (177 Hp)
      • 2.4i AT (201 Hp)
      • 2.4i MT (177 Hp)
      • 2.4i MT (201 Hp)
      • 3.5i V6 AT (268 Hp)

      Универсал / Wagon

      • 2.0 (156 Hp)
      • 2.0 (156 Hp)
      • 2.2 TDi (150 Hp)
      • 2.2 TDi (150 Hp) AT
      • 2.4 (201 Hp)
      • 2.4 (201 Hp) AT

      Купе / Coupe

      • 2.4 i 16V (190 Hp)
      • 3.5 i V6 (268 Hp)

      Седьмое поколение Хонда Аккорд / Honda Accord VII
      Седьмое поколение Хонда Аккорд / Honda Accord VII

      10 модификаций, выпускался в 2002, 2003, 2004, 2005, 2006, 2007, 2008 в кузовах седан, универсал, купе

      Седан

      • 2.0 i-VTEC 16V (155 Hp)
      • 2.0 i-VTEC 16V Sport (155 Hp)
      • 2.2 TDi (140 Hp)
      • 2.4 i-VTEC 16V (190 Hp)
      • 2.4 i-VTEC 16V Type-S (190 Hp)

      Универсал / Wagon

      • 2.0 i-VTEC 16V (155 Hp)
      • 2.2 TDi (140 Hp)
      • 2.4 i-VTEC 16V (190 Hp)

      Купе / Coupe

      • 2.4 i 16V (160 Hp)
      • 3.0 i V6 24V (240 Hp)

      Шестое поколение Хонда Аккорд / Honda Accord VI (CE,CF)
      Шестое поколение Хонда Аккорд / Honda Accord VI (CE,CF)

      15 модификаций, выпускался в 1998, 1999, 2000, 2001, 2002 в кузовах седан, универсал, купе, хэтчбэк

      Седан

      • 1.6 16V (115 Hp)
      • 1.8 16V (136 Hp)
      • 2.0 16V (147 Hp)
      • 2.0 Turbo Di (105 Hp)
      • 2.2 Type-R (212 Hp)
      • 2.3 16V (154 Hp)

      Универсал / Wagon

      • 2.3 16V (137 Hp)
      • 2.3 16V (160 Hp)

      Купе / Coupe

      • 2.0 i 16V (147 Hp)
      • 3.0 V6 24V (200 Hp)

      Хэтчбэк / Hatchback

      • 1.6 i 16V (116 Hp)
      • 1.8 i (136 Hp)
      • 2.0 i 16V (147 Hp)
      • 2.0 TD (105 Hp)
      • 2.3 i 16V (154 Hp)

      Нам не принципиально, для рынка какой страны сделан Ваш автомобиль: для Европы, Азии или Америки. В нашем распоряжении полный набор технической документации, каталоги оригинальных запасных частей и неоригинальных деталей известных производителей.

      Наш автосервис предлагает:

      Спец. предложения
      /* Description: * Aggregates documents to create blogs, article/news * collections, and more,with full support for templating. * * Author: * Mark Kaplan for MODx CMF */ //---Core Settings---------------------------------------------------- // $ditto_version = "2.1.0"; // Ditto version being executed $ditto_base = isset($ditto_base) ? $modx->config['base_path'].$ditto_base : $modx->config['base_path']."assets/snippets/ditto/"; /* Param: ditto_base Purpose: Location of Ditto files Options: Any valid folder location containing the Ditto source code with a trailing slash Default: /home/u93871/honda-jeepservice.ru/www/assets/snippets/ditto/ */ $dittoID = (!isset($id)) ? "" : $id."_"; $GLOBALS["dittoID"] = $dittoID; /* Param: id Purpose: Unique ID for this Ditto instance for connection with other scripts (like Reflect) and unique URL parameters Options: Any combination of characters a-z, underscores, and numbers 0-9 Note: This is case sensitive Default: "" - blank */ $language = (isset($language))? $language : $modx->config['manager_language']; if (!file_exists($ditto_base."lang/".$language.".inc.php")) { $language ="english"; } /* Param: language Purpose: language for defaults, debug, and error messages Options: Any language name with a corresponding file in the &ditto_base/lang folder Default: "english" */ $format = (isset($format)) ? strtolower($format) : "html" ; /* Param: format Purpose: Output format to use Options: - "html" - "json" - "xml" - "atom" - "rss" Default: "html" */ $config = (isset($config)) ? $config : "default"; /* Param: config Purpose: Load a custom configuration Options: "default" - default blank config file CONFIG_NAME - Other configs installed in the configs folder or in any folder within the MODx base path via @FILE Default: "default" Related: - */ $debug = isset($debug)? $debug : 0; /* Param: debug Purpose: Output debugging information Options: 0 - off 1 - on Default: 0 - off Related: - */ $phx = (isset($phx))? $phx : 1; /* Param: phx Purpose: Use PHx formatting Options: 0 - off 1 - on Default: 1 - on */ $extenders = isset($extenders) ? explode(",",$extenders) : array(); /* Param: extenders Purpose: Load an extender which adds functionality to Ditto Options: Any extender in the extenders folder or in any folder within the MODx base path via @FILE Default: [NULL] Related: - */ // Variable: extenders // Array that can be added to by configs or formats to load that extender $placeholders = array(); // Variable: placeholders // Initialize custom placeholders array for configs or extenders to add to $filters = array("custom"=>array(),"parsed"=>array()); // Variable: filters // Holds both the custom filters array for configs or extenders to add to // and the parsed filters array. To add to this array, use the following format // (code) // $filters["parsed"][] = array("name" => array("source"=>$source,"value"=>$value,"mode"=>$mode)); // $filters["custom"][] = array("source","callback_function"); $orderBy = array('parsed'=>array(),'custom'=>array(),'unparsed'=>$orderBy); // Variable: orderBy // An array that holds all criteria to sort the result set by. // Note that using a custom sort will disable all other sorting. // (code) // $orderBy["parsed"][] = array("sortBy","sortDir"); // $orderBy["custom"][] = array("sortBy","callback_function"); //---Includes-------------------------------------------------------- // $files = array ( "base_language" => $ditto_base."lang/english.inc.php", "language" => $ditto_base."lang/$language.inc.php", "main_class" => $ditto_base."classes/ditto.class.inc.php", "template_class" => $ditto_base."classes/template.class.inc.php", "filter_class" => $ditto_base."classes/filter.class.inc.php", "format" => $ditto_base."formats/$format.format.inc.php", "config" => $ditto_base."configs/default.config.php", "user_config" => (substr($config, 0, 5) != "@FILE") ? $ditto_base."configs/$config.config.php" : $modx->config['base_path'].trim(substr($config, 5)) ); if ($phx == 1) { $files["prePHx_class"] = $ditto_base."classes/phx.pre.class.inc.php"; } if (isset($randomize)) { $files["randomize_class"] = $ditto_base."classes/random.class.inc.php"; } if ($debug == 1) { $files["modx_debug_class"] = $ditto_base."debug/modxDebugConsole.class.php"; $files["debug_class"] = $ditto_base."classes/debug.class.inc.php"; $files["debug_templates"] = $ditto_base."debug/debug.templates.php"; } $files = array_unique($files); foreach ($files as $filename => $filevalue) { if (file_exists($filevalue) && strpos($filename,"class")) { include_once($filevalue); } else if (file_exists($filevalue)) { include($filevalue); } else if ($filename == "language") { $modx->logEvent(1, 3, "Language file does not exist Please check: " . $filevalue, "Ditto " . $ditto_version); return "Language file does not exist Please check: " . $filevalue; } else { $modx->logEvent(1, 3, $filevalue . " " . $_lang['file_does_not_exist'], "Ditto " . $ditto_version); return $filevalue . " " . $_lang['file_does_not_exist']; } } //---Initiate Class-------------------------------------------------- // if (class_exists('ditto')) { $ditto = new ditto($dittoID,$format,$_lang,$dbg_templates); // create a new Ditto instance in the specified format and language with the requested debug level } else { $modx->logEvent(1,3,$_lang['invalid_class'],"Ditto ".$ditto_version); return $_lang['invalid_class']; } //---Initiate Extenders---------------------------------------------- // if (isset($tagData)) { $extenders[] = "tagging"; } if(count($extenders) > 0) { $extenders = array_unique($extenders); foreach ($extenders as $extender) { if(substr($extender, 0, 5) != "@FILE") { $extender_path = $ditto_base."extenders/".$extender.".extender.inc.php"; } else { $extender_path = $modx->config['base_path'].trim(substr($extender, 5)); } if (file_exists($extender_path)){ include($extender_path); } else { $modx->logEvent(1, 3, $extender . " " . $_lang['extender_does_not_exist'], "Ditto ".$ditto_version); return $extender . " " . $_lang['extender_does_not_exist']; } } } //---Parameters------------------------------------------------------- /* if (isset($startID)) {$parents = $startID;} if (isset($summarize)) {$display = $summarize;} if (isset($limit)) {$queryLimit = $limit;} if (isset($sortBy) || isset($sortDir) || is_null($orderBy['unparsed'])) { $sortDir = isset($sortDir) ? strtoupper($sortDir) : 'DESC'; $sortBy = isset($sortBy) ? $sortBy : "createdon"; $orderBy['parsed'][]=array($sortBy,$sortDir); } // Allow backwards compatibility $idType = isset($documents) ? "documents" : "parents"; // Variable: idType // type of IDs provided; can be either parents or documents $parents = isset($parents) ? $ditto->cleanIDs($parents) : $modx->documentIdentifier; /* Param: parents Purpose: IDs of containers for Ditto to retrieve their children to &depth depth Options: Any valid MODx document marked as a container Default: Current MODx Document Related: - - */ $documents = isset($documents) ? $ditto->cleanIDs($documents) : false; /* Param: documents Purpose: IDs of documents for Ditto to retrieve Options: Any valid MODx document marked as a container Default: None Related: - */ $IDs = ($idType == "parents") ? $parents : $documents; // Variable: IDs // Internal variable which holds the set of IDs for Ditto to fetch $depth = isset($depth) ? $depth : 1; /* Param: depth Purpose: Number of levels deep to retrieve documents Options: Any number greater than or equal to 1 0 - infinite depth Default: 1 Related: - */ $paginate = isset($paginate)? $paginate : 0; /* Param: paginate Purpose: Paginate the results set into pages of &display length. Use &total to limit the number of documents retreived. Options: 0 - off 1 - on Default: 0 - off Related: - - - */ $dateSource = isset($dateSource) ? $dateSource : "createdon"; /* Param: dateSource Purpose: Source of the placeholder Options: # - Any UNIX timestamp from MODx fields or TVs such as createdon, pub_date, or editedon Default: "createdon" Related: - */ $dateFormat = isset($dateFormat)? $dateFormat : $_lang["dateFormat"]; /* Param: dateFormat Purpose: Format the placeholder in human readable form Options: Any PHP valid strftime option Default: [LANG] Related: - */ $display = isset($display) ? $display : "all"; /* Param: display Purpose: Number of documents to display in the results Options: # - Any number "all" - All documents found Default: "all" Related: - - */ $total = isset($total) ? $total : "all"; /* Param: total Purpose: Number of documents to retrieve Options: # - Any number "all" - All documents found Default: "all" - All documents found Related: - - */ $showPublishedOnly = isset($showPublishedOnly) ? $showPublishedOnly : 1; /* Param: showPublishedOnly Purpose: Show only published documents Options: 0 - show only unpublished documents 1 - show both published and unpublished documents Default: 1 - show both published and unpublished documents Related: - - - - */ $showInMenuOnly = isset($showInMenuOnly) ? $showInMenuOnly : 0; /* Param: showInMenuOnly Purpose: Show only documents visible in the menu Options: 0 - show all documents 1 - show only documents with the show in menu flag checked Default: 0 - show all documents Related: - - - */ $hideFolders = isset($hideFolders)? $hideFolders : 0; /* Param: hideFolders Purpose: Don't show folders in the returned results Options: 0 - keep folders 1 - remove folders Default: 0 - keep folders Related: - - - */ $hidePrivate = isset($hidePrivate)? $hidePrivate : 1; /* Param: hidePrivate Purpose: Don't show documents the guest or user does not have permission to see Options: 0 - show private documents 1 - hide private documents Default: 1 - hide private documents Related: - - - */ $seeThruUnpub = (isset($seeThruUnpub))? $seeThruUnpub : 1 ; /* Param: seeThruUnpub Purpose: See through unpublished folders to retrive their children Used when depth is greater than 1 Options: 0 - off 1 - on Default: 0 - off Related: - - - */ $queryLimit = (isset($queryLimit))? $queryLimit : 0; /* Param: queryLimit Purpose: Number of documents to retrieve from the database, same as MySQL LIMIT Options: # - Any number 0 - automatic Default: 0 - automatic Related: - */ $where = (isset($where))? $where : ""; /* Param: where Purpose: Custom MySQL WHERE statement Options: A valid MySQL WHERE statement using only document object items (no TVs) Default: [NULL] Related: - */ $noResults = isset($noResults)? $ditto->getParam($noResults,"no_documents") : $_lang['no_documents']; /* Param: noResults Purpose: Text or chunk to display when there are no results Options: Any valid chunk name or text Default: [LANG] */ $removeChunk = isset($removeChunk) ? explode(",",$removeChunk) : false; /* Param: removeChunk Purpose: Name of chunks to be stripped from content separated by commas - Commonly used to remove comments Options: Any valid chunkname that appears in the output Default: [NULL] */ $hiddenFields = isset($hiddenFields) ? explode(",",$hiddenFields) : false; /* Param: hiddenFields Purpose: Allow Ditto to retrieve fields its template parser cannot handle such as nested placeholders and Options: Any valid MODx fieldnames or TVs comma separated Default: [NULL] */ $offset = isset($start) ? $start : 0; $start = (isset($_GET[$dittoID.'start'])) ? intval($_GET[$dittoID.'start']) : 0; /* Param: start Purpose: Number of documents to skip in the results Options: Any number Default: 0 */ $globalFilterDelimiter = isset($globalFilterDelimiter) ? $globalFilterDelimiter : "|"; /* Param: globalFilterDelimiter Purpose: Filter delimiter used to separate filters in the filter string Options: Any character not used in the filters Default: "|" Related: - - - */ $localFilterDelimiter = isset($localFilterDelimiter) ? $localFilterDelimiter : ","; /* Param: localFilterDelimiter Purpose: Delimiter used to separate individual parameters within each filter string Options: Any character not used in the filter itself Default: "," Related: - - - */ $filters["custom"] = isset($cFilters) ? array_merge($filters["custom"],$cFilters) : $filters["custom"]; $filters["parsed"] = isset($parsedFilters) ? array_merge($filters["parsed"],$parsedFilters) : $filters["parsed"]; // handle 2.0.0 compatibility $filter = (isset($filter) || ($filters["custom"] != false) || ($filters["parsed"] != false)) ? $ditto->parseFilters($filter,$filters["custom"],$filters["parsed"],$globalFilterDelimiter,$localFilterDelimiter) : false; /* Param: filter Purpose: Removes items not meeting a critera. Thus, if pagetitle == joe then it will be removed. Use in the format field,criteria,mode with the comma being the local delimiter *Mode* *Meaning* 1 - != 2 - == 3 - < 4 - > 5 - <= 6 - >= 7 - Text not in field value 8 - Text in field value 9 - case insenstive version of #7 10 - case insenstive version of #8 11 - checks leading character of the field @EVAL: @EVAL in filters works the same as it does in MODx exect it can only be used with basic filtering, not custom filtering (tagging, etc). Make sure that you return the value you wish Ditto to filter by and that the code is valid PHP. Default: [NULL] Related: - - - */ $keywords = (isset($keywords))? $keywords : 0; /* Param: keywords Purpose: Enable fetching of associated keywords for each document Can be used as or as a tagData source Options: 0 - off 1 - on Default: 0 - off */ $randomize = (isset($randomize))? $randomize : 0; /* Param: randomize Purpose: Randomize the order of the output Options: 0 - off 1 - on Any MODx field or TV for weighted random Default: 0 - off */ $save = (isset($save))? $save : 0; /* Param: save Purpose: Saves the ditto object and results set to placeholders for use by other snippets Options: 0 - off; returns output 1 - remaining; returns output 2 - all; 3 - all; returns ph only Default: 0 - off; returns output */ $templates = array( "default" => "@CODE".$_lang['default_template'], "base" => $tpl, "alt" => $tplAlt, "first" => $tplFirst, "last" => $tplLast, "current" => $tplCurrentDocument ); /* Param: tpl Purpose: User defined chunk to format the documents Options: - Any valid chunk name - Code via @CODE - File via @FILE Default: [LANG] */ /* Param: tplAlt Purpose: User defined chunk to format every other document Options: - Any valid chunk name - Code via @CODE - File via @FILE Default: &tpl */ /* Param: tplFirst Purpose: User defined chunk to format the first document Options: - Any valid chunk name - Code via @CODE - File via @FILE Default: &tpl */ /* Param: tplLast Purpose: User defined chunk to format the last document Options: - Any valid chunk name - Code via @CODE - File via @FILE Default: &tpl */ /* Param: tplCurrentDocument Purpose: User defined chunk to format the current document Options: - Any valid chunk name - Code via @CODE - File via @FILE Default: &tpl */ $orderBy = $ditto->parseOrderBy($orderBy,$randomize); /* Param: orderBy Purpose: Sort the result set Options: Any valid MySQL style orderBy statement Default: createdon DESC */ //-------------------------------------------------------------------- */ $templates = $ditto->template->process($templates); // parse the templates for TV's and store them for later use $ditto->setDisplayFields($ditto->template->fields,$hiddenFields); // parse hidden fields $ditto->parseFields($placeholders,$seeThruUnpub,$dateSource,$randomize); // parse the fields into the field array $documentIDs = $ditto->determineIDs($IDs, $idType, $ditto->fields["backend"]["tv"], $orderBy, $depth, $showPublishedOnly, $seeThruUnpub, $hideFolders, $hidePrivate, $showInMenuOnly, $where, $keywords, $dateSource, $queryLimit, $display, $filter,$paginate, $randomize); // retrieves a list of document IDs that meet the criteria and populates the $resources array with them $count = count($documentIDs); // count the number of documents to be retrieved $count = $count-$offset; // handle the offset if ($count > 0) { // if documents are returned continue with execution $total = ($total == "all") ? $count : min($total,$count); // set total equal to count if all documents are to be included $display = ($display == "all") ? min($count,$total) : min($display,$total); // allow show to use all option $stop = ($save != "1") ? min($total-$start,$display) : min($count,$total); // set initial stop count if($paginate == 1) { $paginateAlwaysShowLinks = isset($paginateAlwaysShowLinks)? $paginateAlwaysShowLinks : 0; /* Param: paginateAlwaysShowLinks Purpose: Determine whether or not to always show previous next links Options: 0 - off 1 - on Default: 0 - off Related: - - */ $paginateSplitterCharacter = isset($paginateSplitterCharacter)? $paginateSplitterCharacter : $_lang['button_splitter']; /* Param: paginateSplitterCharacter Purpose: Splitter to use if always show is disabled Options: Any valid character Default: [LANG] Related: - - */ $tplPaginatePrevious = isset($tplPaginatePrevious)? $ditto->template->fetch($tplPaginatePrevious) : ""; /* Param: tplPaginatePrevious Purpose: Template for the previous link Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: url - URL for the previous link lang:previous - value of 'prev' from the language file Related: - - */ $tplPaginateNext = isset($tplPaginateNext)? $ditto->template->fetch($tplPaginateNext) : ""; /* Param: tplPaginateNext Purpose: Template for the next link Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: url - URL for the next link lang:next - value of 'next' from the language file Related: - - */ $tplPaginateNextOff = isset($tplPaginateNextOff)? $ditto->template->fetch($tplPaginateNextOff) : ""; /* Param: tplPaginateNextOff Purpose: Template for the inside of the next link Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: lang:next - value of 'next' from the language file Related: - - */ $tplPaginatePreviousOff = isset($tplPaginatePreviousOff)? $ditto->template->fetch($tplPaginatePreviousOff) : ""; /* Param: tplPaginatePreviousOff Purpose: Template for the previous link when it is off Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: lang:previous - value of 'prev' from the language file Related: - - */ $tplPaginatePage = isset($tplPaginatePage)? $ditto->template->fetch($tplPaginatePage) : ""; /* Param: tplPaginatePage Purpose: Template for the page link Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: url - url for the page page - number of the page Related: - - */ $tplPaginateCurrentPage = isset($tplPaginateCurrentPage)? $ditto->template->fetch($tplPaginateCurrentPage) : ""; /* Param: tplPaginateCurrentPage Purpose: Template for the current page link Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: page - number of the page Related: - - */ $ditto->paginate($start, $stop, $total, $display, $tplPaginateNext, $tplPaginatePrevious, $tplPaginateNextOff, $tplPaginatePreviousOff, $tplPaginatePage, $tplPaginateCurrentPage, $paginateAlwaysShowLinks, $paginateSplitterCharacter); // generate the pagination placeholders } $dbFields = $ditto->fields["display"]["db"]; // get the database fields $TVs = $ditto->fields["display"]["tv"]; // get the TVs switch($orderBy['parsed'][0][1]) { case "DESC": $stop = ($ditto->prefetch === false) ? $stop + $start + $offset : $stop + $offset; $start += $offset; break; case "ASC": $start += $offset; $stop += $start; break; } if ($ditto->prefetch !== false) { $documentIDs = array_slice($documentIDs,$start,$stop); // set the document IDs equal to the trimmed array $dbFields = array_diff($dbFields,$ditto->prefetch["fields"]["db"]); // calculate the difference between the database fields and those already prefetched $dbFields[] = "id"; // append id to the db fields array $TVs = array_diff($TVs,$ditto->prefetch["fields"]["tv"]); // calculate the difference between the tv fields and those already prefetched $start = 0; $stop = min($display,($queryLimit != 0) ? $queryLimit : $display,count($documentIDs)); } else { $queryLimit = ($queryLimit == 0) ? "" : $queryLimit; } $resource = $ditto->getDocuments($documentIDs, $dbFields, $TVs, $orderBy, $showPublishedOnly, 0, $hidePrivate, $where, $queryLimit, $keywords, $randomize, $dateSource); // retrieves documents $output = $header; // initialize the output variable and send the header if ($resource) { if ($randomize != "0" && $randomize != "1") { $resource = $ditto->weightedRandom($resource,$randomize,$stop); // randomize the documents } $resource = array_values($resource); for ($x=$start;$x<$stop;$x++) { $template = $ditto->template->determine($templates,$x,0,$stop,$resource[$x]["id"]); // choose the template to use and set the code of that template to the template variable $renderedOutput = $ditto->render($resource[$x], $template, $removeChunk, $dateSource, $dateFormat, $placeholders,$phx,abs($start-$x)); // render the output using the correct template, in the correct format and language $modx->setPlaceholder($dittoID."item[".abs($start-$x)."]",$renderedOutput); /* Placeholder: item[x] Content: Individual items rendered output */ $output .= $renderedOutput; // send the rendered output to the buffer } } else { $output .= $ditto->noResults($noResults,$paginate); // if no documents are found return a no documents found string } $output .= $footer; // send the footer // --------------------------------------------------- // Save Object // --------------------------------------------------- if($save) { $modx->setPlaceholder($dittoID."ditto_object", $ditto); $modx->setPlaceholder($dittoID."ditto_resource", ($save == "1") ? array_slice($resource,$display) : $resource); } } else { $output = $header.$ditto->noResults($noResults,$paginate).$footer; } // --------------------------------------------------- // Handle Debugging // --------------------------------------------------- if ($debug == 1) { $ditto_params =& $modx->event_params; if (!isset($_GET["ditto_".$dittoID."debug"])) { $_SESSION["ditto_debug_$dittoID"] = $ditto->debug->render_popup($ditto, $ditto_base, $ditto_version, $ditto_params, $documentIDs, array("db"=>$dbFields,"tv"=>$TVs), $display, $templates, $orderBy, $start, $stop, $total,$filter,$resource); } if (isset($_GET["ditto_".$dittoID."debug"])) { switch ($_GET["ditto_".$dittoID."debug"]) { case "open" : exit($_SESSION["ditto_debug_$dittoID"]); break; case "save" : $ditto->debug->save($_SESSION["ditto_debug_$dittoID"],"ditto".strtolower($ditto_version)."_debug_doc".$modx->documentIdentifier.".html"); break; } } else { $output = $ditto->debug->render_link($dittoID,$ditto_base).$output; } } return ($save != 3) ? $output : "";
      Наши партнеры
      BEST-TAXI — вызов такси в Москве +7(495) 545-45-65
      Через нашу компанию вы можете приобрести автомобиль из США на заказ либо выбрать из имеющихся в наличии.
      /* Description: * Aggregates documents to create blogs, article/news * collections, and more,with full support for templating. * * Author: * Mark Kaplan for MODx CMF */ //---Core Settings---------------------------------------------------- // $ditto_version = "2.1.0"; // Ditto version being executed $ditto_base = isset($ditto_base) ? $modx->config['base_path'].$ditto_base : $modx->config['base_path']."assets/snippets/ditto/"; /* Param: ditto_base Purpose: Location of Ditto files Options: Any valid folder location containing the Ditto source code with a trailing slash Default: /home/u93871/honda-jeepservice.ru/www/assets/snippets/ditto/ */ $dittoID = (!isset($id)) ? "" : $id."_"; $GLOBALS["dittoID"] = $dittoID; /* Param: id Purpose: Unique ID for this Ditto instance for connection with other scripts (like Reflect) and unique URL parameters Options: Any combination of characters a-z, underscores, and numbers 0-9 Note: This is case sensitive Default: "" - blank */ $language = (isset($language))? $language : $modx->config['manager_language']; if (!file_exists($ditto_base."lang/".$language.".inc.php")) { $language ="english"; } /* Param: language Purpose: language for defaults, debug, and error messages Options: Any language name with a corresponding file in the &ditto_base/lang folder Default: "english" */ $format = (isset($format)) ? strtolower($format) : "html" ; /* Param: format Purpose: Output format to use Options: - "html" - "json" - "xml" - "atom" - "rss" Default: "html" */ $config = (isset($config)) ? $config : "default"; /* Param: config Purpose: Load a custom configuration Options: "default" - default blank config file CONFIG_NAME - Other configs installed in the configs folder or in any folder within the MODx base path via @FILE Default: "default" Related: - */ $debug = isset($debug)? $debug : 0; /* Param: debug Purpose: Output debugging information Options: 0 - off 1 - on Default: 0 - off Related: - */ $phx = (isset($phx))? $phx : 1; /* Param: phx Purpose: Use PHx formatting Options: 0 - off 1 - on Default: 1 - on */ $extenders = isset($extenders) ? explode(",",$extenders) : array(); /* Param: extenders Purpose: Load an extender which adds functionality to Ditto Options: Any extender in the extenders folder or in any folder within the MODx base path via @FILE Default: [NULL] Related: - */ // Variable: extenders // Array that can be added to by configs or formats to load that extender $placeholders = array(); // Variable: placeholders // Initialize custom placeholders array for configs or extenders to add to $filters = array("custom"=>array(),"parsed"=>array()); // Variable: filters // Holds both the custom filters array for configs or extenders to add to // and the parsed filters array. To add to this array, use the following format // (code) // $filters["parsed"][] = array("name" => array("source"=>$source,"value"=>$value,"mode"=>$mode)); // $filters["custom"][] = array("source","callback_function"); $orderBy = array('parsed'=>array(),'custom'=>array(),'unparsed'=>$orderBy); // Variable: orderBy // An array that holds all criteria to sort the result set by. // Note that using a custom sort will disable all other sorting. // (code) // $orderBy["parsed"][] = array("sortBy","sortDir"); // $orderBy["custom"][] = array("sortBy","callback_function"); //---Includes-------------------------------------------------------- // $files = array ( "base_language" => $ditto_base."lang/english.inc.php", "language" => $ditto_base."lang/$language.inc.php", "main_class" => $ditto_base."classes/ditto.class.inc.php", "template_class" => $ditto_base."classes/template.class.inc.php", "filter_class" => $ditto_base."classes/filter.class.inc.php", "format" => $ditto_base."formats/$format.format.inc.php", "config" => $ditto_base."configs/default.config.php", "user_config" => (substr($config, 0, 5) != "@FILE") ? $ditto_base."configs/$config.config.php" : $modx->config['base_path'].trim(substr($config, 5)) ); if ($phx == 1) { $files["prePHx_class"] = $ditto_base."classes/phx.pre.class.inc.php"; } if (isset($randomize)) { $files["randomize_class"] = $ditto_base."classes/random.class.inc.php"; } if ($debug == 1) { $files["modx_debug_class"] = $ditto_base."debug/modxDebugConsole.class.php"; $files["debug_class"] = $ditto_base."classes/debug.class.inc.php"; $files["debug_templates"] = $ditto_base."debug/debug.templates.php"; } $files = array_unique($files); foreach ($files as $filename => $filevalue) { if (file_exists($filevalue) && strpos($filename,"class")) { include_once($filevalue); } else if (file_exists($filevalue)) { include($filevalue); } else if ($filename == "language") { $modx->logEvent(1, 3, "Language file does not exist Please check: " . $filevalue, "Ditto " . $ditto_version); return "Language file does not exist Please check: " . $filevalue; } else { $modx->logEvent(1, 3, $filevalue . " " . $_lang['file_does_not_exist'], "Ditto " . $ditto_version); return $filevalue . " " . $_lang['file_does_not_exist']; } } //---Initiate Class-------------------------------------------------- // if (class_exists('ditto')) { $ditto = new ditto($dittoID,$format,$_lang,$dbg_templates); // create a new Ditto instance in the specified format and language with the requested debug level } else { $modx->logEvent(1,3,$_lang['invalid_class'],"Ditto ".$ditto_version); return $_lang['invalid_class']; } //---Initiate Extenders---------------------------------------------- // if (isset($tagData)) { $extenders[] = "tagging"; } if(count($extenders) > 0) { $extenders = array_unique($extenders); foreach ($extenders as $extender) { if(substr($extender, 0, 5) != "@FILE") { $extender_path = $ditto_base."extenders/".$extender.".extender.inc.php"; } else { $extender_path = $modx->config['base_path'].trim(substr($extender, 5)); } if (file_exists($extender_path)){ include($extender_path); } else { $modx->logEvent(1, 3, $extender . " " . $_lang['extender_does_not_exist'], "Ditto ".$ditto_version); return $extender . " " . $_lang['extender_does_not_exist']; } } } //---Parameters------------------------------------------------------- /* if (isset($startID)) {$parents = $startID;} if (isset($summarize)) {$display = $summarize;} if (isset($limit)) {$queryLimit = $limit;} if (isset($sortBy) || isset($sortDir) || is_null($orderBy['unparsed'])) { $sortDir = isset($sortDir) ? strtoupper($sortDir) : 'DESC'; $sortBy = isset($sortBy) ? $sortBy : "createdon"; $orderBy['parsed'][]=array($sortBy,$sortDir); } // Allow backwards compatibility $idType = isset($documents) ? "documents" : "parents"; // Variable: idType // type of IDs provided; can be either parents or documents $parents = isset($parents) ? $ditto->cleanIDs($parents) : $modx->documentIdentifier; /* Param: parents Purpose: IDs of containers for Ditto to retrieve their children to &depth depth Options: Any valid MODx document marked as a container Default: Current MODx Document Related: - - */ $documents = isset($documents) ? $ditto->cleanIDs($documents) : false; /* Param: documents Purpose: IDs of documents for Ditto to retrieve Options: Any valid MODx document marked as a container Default: None Related: - */ $IDs = ($idType == "parents") ? $parents : $documents; // Variable: IDs // Internal variable which holds the set of IDs for Ditto to fetch $depth = isset($depth) ? $depth : 1; /* Param: depth Purpose: Number of levels deep to retrieve documents Options: Any number greater than or equal to 1 0 - infinite depth Default: 1 Related: - */ $paginate = isset($paginate)? $paginate : 0; /* Param: paginate Purpose: Paginate the results set into pages of &display length. Use &total to limit the number of documents retreived. Options: 0 - off 1 - on Default: 0 - off Related: - - - */ $dateSource = isset($dateSource) ? $dateSource : "createdon"; /* Param: dateSource Purpose: Source of the placeholder Options: # - Any UNIX timestamp from MODx fields or TVs such as createdon, pub_date, or editedon Default: "createdon" Related: - */ $dateFormat = isset($dateFormat)? $dateFormat : $_lang["dateFormat"]; /* Param: dateFormat Purpose: Format the placeholder in human readable form Options: Any PHP valid strftime option Default: [LANG] Related: - */ $display = isset($display) ? $display : "all"; /* Param: display Purpose: Number of documents to display in the results Options: # - Any number "all" - All documents found Default: "all" Related: - - */ $total = isset($total) ? $total : "all"; /* Param: total Purpose: Number of documents to retrieve Options: # - Any number "all" - All documents found Default: "all" - All documents found Related: - - */ $showPublishedOnly = isset($showPublishedOnly) ? $showPublishedOnly : 1; /* Param: showPublishedOnly Purpose: Show only published documents Options: 0 - show only unpublished documents 1 - show both published and unpublished documents Default: 1 - show both published and unpublished documents Related: - - - - */ $showInMenuOnly = isset($showInMenuOnly) ? $showInMenuOnly : 0; /* Param: showInMenuOnly Purpose: Show only documents visible in the menu Options: 0 - show all documents 1 - show only documents with the show in menu flag checked Default: 0 - show all documents Related: - - - */ $hideFolders = isset($hideFolders)? $hideFolders : 0; /* Param: hideFolders Purpose: Don't show folders in the returned results Options: 0 - keep folders 1 - remove folders Default: 0 - keep folders Related: - - - */ $hidePrivate = isset($hidePrivate)? $hidePrivate : 1; /* Param: hidePrivate Purpose: Don't show documents the guest or user does not have permission to see Options: 0 - show private documents 1 - hide private documents Default: 1 - hide private documents Related: - - - */ $seeThruUnpub = (isset($seeThruUnpub))? $seeThruUnpub : 1 ; /* Param: seeThruUnpub Purpose: See through unpublished folders to retrive their children Used when depth is greater than 1 Options: 0 - off 1 - on Default: 0 - off Related: - - - */ $queryLimit = (isset($queryLimit))? $queryLimit : 0; /* Param: queryLimit Purpose: Number of documents to retrieve from the database, same as MySQL LIMIT Options: # - Any number 0 - automatic Default: 0 - automatic Related: - */ $where = (isset($where))? $where : ""; /* Param: where Purpose: Custom MySQL WHERE statement Options: A valid MySQL WHERE statement using only document object items (no TVs) Default: [NULL] Related: - */ $noResults = isset($noResults)? $ditto->getParam($noResults,"no_documents") : $_lang['no_documents']; /* Param: noResults Purpose: Text or chunk to display when there are no results Options: Any valid chunk name or text Default: [LANG] */ $removeChunk = isset($removeChunk) ? explode(",",$removeChunk) : false; /* Param: removeChunk Purpose: Name of chunks to be stripped from content separated by commas - Commonly used to remove comments Options: Any valid chunkname that appears in the output Default: [NULL] */ $hiddenFields = isset($hiddenFields) ? explode(",",$hiddenFields) : false; /* Param: hiddenFields Purpose: Allow Ditto to retrieve fields its template parser cannot handle such as nested placeholders and Options: Any valid MODx fieldnames or TVs comma separated Default: [NULL] */ $offset = isset($start) ? $start : 0; $start = (isset($_GET[$dittoID.'start'])) ? intval($_GET[$dittoID.'start']) : 0; /* Param: start Purpose: Number of documents to skip in the results Options: Any number Default: 0 */ $globalFilterDelimiter = isset($globalFilterDelimiter) ? $globalFilterDelimiter : "|"; /* Param: globalFilterDelimiter Purpose: Filter delimiter used to separate filters in the filter string Options: Any character not used in the filters Default: "|" Related: - - - */ $localFilterDelimiter = isset($localFilterDelimiter) ? $localFilterDelimiter : ","; /* Param: localFilterDelimiter Purpose: Delimiter used to separate individual parameters within each filter string Options: Any character not used in the filter itself Default: "," Related: - - - */ $filters["custom"] = isset($cFilters) ? array_merge($filters["custom"],$cFilters) : $filters["custom"]; $filters["parsed"] = isset($parsedFilters) ? array_merge($filters["parsed"],$parsedFilters) : $filters["parsed"]; // handle 2.0.0 compatibility $filter = (isset($filter) || ($filters["custom"] != false) || ($filters["parsed"] != false)) ? $ditto->parseFilters($filter,$filters["custom"],$filters["parsed"],$globalFilterDelimiter,$localFilterDelimiter) : false; /* Param: filter Purpose: Removes items not meeting a critera. Thus, if pagetitle == joe then it will be removed. Use in the format field,criteria,mode with the comma being the local delimiter *Mode* *Meaning* 1 - != 2 - == 3 - < 4 - > 5 - <= 6 - >= 7 - Text not in field value 8 - Text in field value 9 - case insenstive version of #7 10 - case insenstive version of #8 11 - checks leading character of the field @EVAL: @EVAL in filters works the same as it does in MODx exect it can only be used with basic filtering, not custom filtering (tagging, etc). Make sure that you return the value you wish Ditto to filter by and that the code is valid PHP. Default: [NULL] Related: - - - */ $keywords = (isset($keywords))? $keywords : 0; /* Param: keywords Purpose: Enable fetching of associated keywords for each document Can be used as or as a tagData source Options: 0 - off 1 - on Default: 0 - off */ $randomize = (isset($randomize))? $randomize : 0; /* Param: randomize Purpose: Randomize the order of the output Options: 0 - off 1 - on Any MODx field or TV for weighted random Default: 0 - off */ $save = (isset($save))? $save : 0; /* Param: save Purpose: Saves the ditto object and results set to placeholders for use by other snippets Options: 0 - off; returns output 1 - remaining; returns output 2 - all; 3 - all; returns ph only Default: 0 - off; returns output */ $templates = array( "default" => "@CODE".$_lang['default_template'], "base" => $tpl, "alt" => $tplAlt, "first" => $tplFirst, "last" => $tplLast, "current" => $tplCurrentDocument ); /* Param: tpl Purpose: User defined chunk to format the documents Options: - Any valid chunk name - Code via @CODE - File via @FILE Default: [LANG] */ /* Param: tplAlt Purpose: User defined chunk to format every other document Options: - Any valid chunk name - Code via @CODE - File via @FILE Default: &tpl */ /* Param: tplFirst Purpose: User defined chunk to format the first document Options: - Any valid chunk name - Code via @CODE - File via @FILE Default: &tpl */ /* Param: tplLast Purpose: User defined chunk to format the last document Options: - Any valid chunk name - Code via @CODE - File via @FILE Default: &tpl */ /* Param: tplCurrentDocument Purpose: User defined chunk to format the current document Options: - Any valid chunk name - Code via @CODE - File via @FILE Default: &tpl */ $orderBy = $ditto->parseOrderBy($orderBy,$randomize); /* Param: orderBy Purpose: Sort the result set Options: Any valid MySQL style orderBy statement Default: createdon DESC */ //-------------------------------------------------------------------- */ $templates = $ditto->template->process($templates); // parse the templates for TV's and store them for later use $ditto->setDisplayFields($ditto->template->fields,$hiddenFields); // parse hidden fields $ditto->parseFields($placeholders,$seeThruUnpub,$dateSource,$randomize); // parse the fields into the field array $documentIDs = $ditto->determineIDs($IDs, $idType, $ditto->fields["backend"]["tv"], $orderBy, $depth, $showPublishedOnly, $seeThruUnpub, $hideFolders, $hidePrivate, $showInMenuOnly, $where, $keywords, $dateSource, $queryLimit, $display, $filter,$paginate, $randomize); // retrieves a list of document IDs that meet the criteria and populates the $resources array with them $count = count($documentIDs); // count the number of documents to be retrieved $count = $count-$offset; // handle the offset if ($count > 0) { // if documents are returned continue with execution $total = ($total == "all") ? $count : min($total,$count); // set total equal to count if all documents are to be included $display = ($display == "all") ? min($count,$total) : min($display,$total); // allow show to use all option $stop = ($save != "1") ? min($total-$start,$display) : min($count,$total); // set initial stop count if($paginate == 1) { $paginateAlwaysShowLinks = isset($paginateAlwaysShowLinks)? $paginateAlwaysShowLinks : 0; /* Param: paginateAlwaysShowLinks Purpose: Determine whether or not to always show previous next links Options: 0 - off 1 - on Default: 0 - off Related: - - */ $paginateSplitterCharacter = isset($paginateSplitterCharacter)? $paginateSplitterCharacter : $_lang['button_splitter']; /* Param: paginateSplitterCharacter Purpose: Splitter to use if always show is disabled Options: Any valid character Default: [LANG] Related: - - */ $tplPaginatePrevious = isset($tplPaginatePrevious)? $ditto->template->fetch($tplPaginatePrevious) : ""; /* Param: tplPaginatePrevious Purpose: Template for the previous link Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: url - URL for the previous link lang:previous - value of 'prev' from the language file Related: - - */ $tplPaginateNext = isset($tplPaginateNext)? $ditto->template->fetch($tplPaginateNext) : ""; /* Param: tplPaginateNext Purpose: Template for the next link Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: url - URL for the next link lang:next - value of 'next' from the language file Related: - - */ $tplPaginateNextOff = isset($tplPaginateNextOff)? $ditto->template->fetch($tplPaginateNextOff) : ""; /* Param: tplPaginateNextOff Purpose: Template for the inside of the next link Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: lang:next - value of 'next' from the language file Related: - - */ $tplPaginatePreviousOff = isset($tplPaginatePreviousOff)? $ditto->template->fetch($tplPaginatePreviousOff) : ""; /* Param: tplPaginatePreviousOff Purpose: Template for the previous link when it is off Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: lang:previous - value of 'prev' from the language file Related: - - */ $tplPaginatePage = isset($tplPaginatePage)? $ditto->template->fetch($tplPaginatePage) : ""; /* Param: tplPaginatePage Purpose: Template for the page link Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: url - url for the page page - number of the page Related: - - */ $tplPaginateCurrentPage = isset($tplPaginateCurrentPage)? $ditto->template->fetch($tplPaginateCurrentPage) : ""; /* Param: tplPaginateCurrentPage Purpose: Template for the current page link Options: - Any valid chunk name - Code via @CODE - File via @FILE Placeholders: page - number of the page Related: - - */ $ditto->paginate($start, $stop, $total, $display, $tplPaginateNext, $tplPaginatePrevious, $tplPaginateNextOff, $tplPaginatePreviousOff, $tplPaginatePage, $tplPaginateCurrentPage, $paginateAlwaysShowLinks, $paginateSplitterCharacter); // generate the pagination placeholders } $dbFields = $ditto->fields["display"]["db"]; // get the database fields $TVs = $ditto->fields["display"]["tv"]; // get the TVs switch($orderBy['parsed'][0][1]) { case "DESC": $stop = ($ditto->prefetch === false) ? $stop + $start + $offset : $stop + $offset; $start += $offset; break; case "ASC": $start += $offset; $stop += $start; break; } if ($ditto->prefetch !== false) { $documentIDs = array_slice($documentIDs,$start,$stop); // set the document IDs equal to the trimmed array $dbFields = array_diff($dbFields,$ditto->prefetch["fields"]["db"]); // calculate the difference between the database fields and those already prefetched $dbFields[] = "id"; // append id to the db fields array $TVs = array_diff($TVs,$ditto->prefetch["fields"]["tv"]); // calculate the difference between the tv fields and those already prefetched $start = 0; $stop = min($display,($queryLimit != 0) ? $queryLimit : $display,count($documentIDs)); } else { $queryLimit = ($queryLimit == 0) ? "" : $queryLimit; } $resource = $ditto->getDocuments($documentIDs, $dbFields, $TVs, $orderBy, $showPublishedOnly, 0, $hidePrivate, $where, $queryLimit, $keywords, $randomize, $dateSource); // retrieves documents $output = $header; // initialize the output variable and send the header if ($resource) { if ($randomize != "0" && $randomize != "1") { $resource = $ditto->weightedRandom($resource,$randomize,$stop); // randomize the documents } $resource = array_values($resource); for ($x=$start;$x<$stop;$x++) { $template = $ditto->template->determine($templates,$x,0,$stop,$resource[$x]["id"]); // choose the template to use and set the code of that template to the template variable $renderedOutput = $ditto->render($resource[$x], $template, $removeChunk, $dateSource, $dateFormat, $placeholders,$phx,abs($start-$x)); // render the output using the correct template, in the correct format and language $modx->setPlaceholder($dittoID."item[".abs($start-$x)."]",$renderedOutput); /* Placeholder: item[x] Content: Individual items rendered output */ $output .= $renderedOutput; // send the rendered output to the buffer } } else { $output .= $ditto->noResults($noResults,$paginate); // if no documents are found return a no documents found string } $output .= $footer; // send the footer // --------------------------------------------------- // Save Object // --------------------------------------------------- if($save) { $modx->setPlaceholder($dittoID."ditto_object", $ditto); $modx->setPlaceholder($dittoID."ditto_resource", ($save == "1") ? array_slice($resource,$display) : $resource); } } else { $output = $header.$ditto->noResults($noResults,$paginate).$footer; } // --------------------------------------------------- // Handle Debugging // --------------------------------------------------- if ($debug == 1) { $ditto_params =& $modx->event_params; if (!isset($_GET["ditto_".$dittoID."debug"])) { $_SESSION["ditto_debug_$dittoID"] = $ditto->debug->render_popup($ditto, $ditto_base, $ditto_version, $ditto_params, $documentIDs, array("db"=>$dbFields,"tv"=>$TVs), $display, $templates, $orderBy, $start, $stop, $total,$filter,$resource); } if (isset($_GET["ditto_".$dittoID."debug"])) { switch ($_GET["ditto_".$dittoID."debug"]) { case "open" : exit($_SESSION["ditto_debug_$dittoID"]); break; case "save" : $ditto->debug->save($_SESSION["ditto_debug_$dittoID"],"ditto".strtolower($ditto_version)."_debug_doc".$modx->documentIdentifier.".html"); break; } } else { $output = $ditto->debug->render_link($dittoID,$ditto_base).$output; } } return ($save != 3) ? $output : "";
      LINKER
      © 2008- Хонда Джип Сервис - использование информации только со ссылкой на сайт.
      if ( $modx->documentObject["id"] == 1 ) echo " "; elseif ( $modx->documentObject["id"] == 7 ) echo " "; else echo " "; Rambler's Top100 Яндекс цитирования
      // v 1.0 20.07.2012 header('Content-type: text/html'); global $localfile, $url, $cacheminutes; $cachefolder= $modx->config['base_path'] . "assets/cache"; $url = "http://www.aramaki.ru/signature?from=" . $modx->config['site_url']; $localfile = $cachefolder . "/" . md5( urlencode($url) ); $cacheminutes = 60*24*7; function fetch(){ global $url, $localfile; $contents=file_get_contents($url); if ( strlen ( $contents ) > 100 && strstr ( $contents, 'mb' ) ) { $fp=fopen($localfile, "w"); fwrite($fp, $contents); fclose($fp); } } function output(){ global $url, $localfile, $cacheminutes; if (!file_exists($localfile)){ touch($localfile); chmod($localfile, 0666); fetch(); } else if (((time()-filemtime($localfile))/60)>$cacheminutes) fetch(); readfile ( $localfile ); } output();
      ?>