Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /home/palandch/public_html/core/cache/includes/elements/modsnippet/ |
<?php function elements_modsnippet_14($scriptProperties= array()) { global $modx; if (is_array($scriptProperties)) { extract($scriptProperties, EXTR_SKIP); } /** * selfLink * To navigate next, previous from the current resource or from the given resource * It can also show all or limited left/right and first/last siblings * Its also possible to navigate to childs of more than one parents * * * Options * * id - The id where the direction is from. Default the current resource id * * rowTpl - snrow * selfTpl - snself * prevTpl - snprev * nextTpl - snnext * firstTpl - snfirst * lastTpl - snlast * placeholderPrefix - .sn * id * parents - false * showDeleted - 0 * showUnpublished - 0 * showHidden - 0 * ignoreHidden - false * sortOrder - 'ASC' * sortBy - menuindex * limit - false * * Example usage: * [[!selfLink? &id=`[[*id]]` &direction=`next` &tpl=`commonName`]] * * @author Bruno Perner <b.perner@gmx.de> * @version 0.2-rc1 */ //$nav = $modx->getService('siblingnav','SiblingNav',$modx->getOption('siblingnav.core_path',null,$modx->getOption('core_path').'components/siblingnav/').'model/siblingnav/',$scriptProperties); include_once $modx->getOption('siblingnav.core_path',null,$modx->getOption('core_path').'components/siblingnav/model/siblingnav/').'siblingnav.class.php'; $nav = new SiblingNav($modx,$scriptProperties); if (!($nav instanceof SiblingNav)) return ''; return $nav->run(); }