1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00
php-e107/e107_plugins/page/e_shortcode.php

30 lines
672 B
PHP

<?php
/*
* e107 website system
*
* Copyright (C) 2008-2013 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
if (!defined('e107_INIT')) { exit; }
class page_shortcodes extends e_shortcode
{
function sc_page_navigation($parm) // TODO when No $parm provided, auto-detect based on URL which book/chapters to display.
{
require_once(e_PLUGIN."page/e_sitelink.php");
$links = new page_sitelinks;
$data = $links->pageNav($parm);
$template = e107::getCoreTemplate('page','nav');
return e107::getNav()->render($data, $template) ;
}
}
?>