protected function getCustomThemeLoader(Plugin $theme)
    {
        $pluginsDir = Manager::getPluginDirectory($theme->getPluginName());
        $themeDir = $pluginsDir . '/templates/';

        if (!file_exists($themeDir)) {
            return false;
        }
        $themeLoader = new Twig_Loader_Filesystem(array($themeDir), PIWIK_DOCUMENT_ROOT.DIRECTORY_SEPARATOR);

        return $themeLoader;
    }
protected function getCustomThemeLoader(Plugin $theme)
    {
        $pluginsDir = Manager::getPluginDirectory($theme->getPluginName());
        $themeDir = $pluginsDir . '/templates/';

        if (!file_exists($themeDir)) {
            return false;
        }
        $themeLoader = new Twig_Loader_Filesystem(array($themeDir), PIWIK_DOCUMENT_ROOT.DIRECTORY_SEPARATOR);

        return $themeLoader;
    }
protected function getCustomThemeLoader ( Plugin $ theme ) { $ pluginsDir = Manager :: getPluginDirectory ( $ theme -> getPluginName ( ) ) ; $ themeDir = $ pluginsDir . '/templates/' ; if ( ! file_exists ( $ themeDir ) ) { return false ; } $ themeLoader = new Twig_Loader_Filesystem ( array ( $ themeDir ) , PIWIK_DOCUMENT_ROOT . DIRECTORY_SEPARATOR ) ; return $ themeLoader ; }
create template loader for a custom theme
@param \Piwik\Plugin $theme
@return \Twig_Loader_Filesystem
create template loader for a custom theme