Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Functions

  • navigation_top_filter
  • Overview
  • Package
  • Function
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: 
 3: /**
 4:  * description: top navigation
 5:  *
 6:  * @package Module
 7:  * @subpackage NavigationTop
 8:  * @version SVN Revision $Rev:$
 9:  *
10:  * @author marcus.gnass@4fb.de
11:  * @copyright four for business AG <www.4fb.de>
12:  * @license http://www.contenido.org/license/LIZENZ.txt
13:  * @link http://www.4fb.de
14:  * @link http://www.contenido.org
15:  */
16: 
17: // assert framework initialization
18: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
19: 
20: // get client settings
21: $rootIdcat = getEffectiveSetting('navigation_top', 'idcat', 1);
22: $depth = getEffectiveSetting('navigation_top', 'depth', 3);
23: 
24: // get category tree
25: $categoryHelper = cCategoryHelper::getInstance();
26: $categoryHelper->setAuth(cRegistry::getAuth());
27: $tree = $categoryHelper->getSubCategories($rootIdcat, $depth);
28: 
29: // get path (breadcrumb) of current category
30: function navigation_top_filter(cApiCategoryLanguage $categoryLanguage) {
31:     return $categoryLanguage->get('idcat');
32: }
33: $path = array_map('navigation_top_filter', $categoryHelper->getCategoryPath(cRegistry::getCategoryId(), 1));
34: 
35: // use template to display navigation
36: $tpl = cSmartyFrontend::getInstance();
37: $tpl->assign('tree', $tree);
38: $tpl->assign('path', $path);
39: $tpl->display('get.tpl');
40: 
41: ?>
CMS CONTENIDO 4.9.3 API documentation generated by ApiGen 2.8.0