Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2010-07-01 15:02:03 +0400
committermattpiwik <matthieu.aubry@gmail.com>2010-07-01 15:02:03 +0400
commit911b6fe65a60ae79955e64d377bec25dc07d1939 (patch)
treef37f6240793ff2a810e2844f5a27c4e9ed5b10b3 /core/SmartyPlugins
parentc4f2f3035d593ef440aea604001ecedd8d835e3f (diff)
Fixes #1403 Patch by halfdan: great stuff! Menu code is now clean and refactored.
git-svn-id: http://dev.piwik.org/svn/trunk@2409 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/SmartyPlugins')
-rw-r--r--core/SmartyPlugins/function.assignTopBar.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/core/SmartyPlugins/function.assignTopBar.php b/core/SmartyPlugins/function.assignTopBar.php
deleted file mode 100644
index e5313fa179..0000000000
--- a/core/SmartyPlugins/function.assignTopBar.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/**
- * Piwik - Open source web analytics
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
- * @version $Id$
- *
- * @category Piwik
- * @package SmartyPlugins
- */
-
-/**
- * Smarty {assignTopBar} function plugin.
- * Initialize top nav bar text and links.
- *
- * @param array $params
- * @param Smarty $smarty
- */
-function smarty_function_assignTopBar($params, &$smarty)
-{
- $topBarElements = array();
- $elements = array(
- array('CoreHome', Piwik_Translate('General_Dashboard'), array('module' => 'CoreHome', 'action' => 'index')),
- array('MultiSites', Piwik_Translate('General_MultiSitesSummary'), array('module' => 'MultiSites', 'action' => 'index')),
- array('Widgetize', Piwik_Translate('General_Widgets'), array('module' => 'Widgetize', 'action' => 'index')),
- array('API', Piwik_Translate('General_API'), array('module' => 'API', 'action' => 'listAllAPI')),
- array('Feedback', Piwik_Translate('General_GiveUsYourFeedback'), array('module' => 'Feedback', 'action' => 'index'), 'id="topbar-feedback"'),
- );
-
- foreach($elements as $element)
- {
- if(Piwik_PluginsManager::getInstance()->isPluginActivated($element[0]))
- {
- $topBarElements[] = $element;
- }
- }
-
- $smarty->assign("topBarElements", $topBarElements);
-}