getBootstrap()->getResource('settings'); if ($settings['user_languages']) { $activeLangImg = null; $activeLocale = $this->getTranslate()->getLocale(); $translateOption = $frontController->getOption('translate'); if (array_key_exists('translations', $translateOption)) { $languages = $translateOption['translations']; $nbLanguages = count($languages); $view = $this->getView(); $flagPath = $view->baseUrl . \Ppb\Utility::URI_DELIMITER . \Ppb\Utility::getFolder('img') . \Ppb\Utility::URI_DELIMITER; foreach ($languages as $language) { $img = ''; if ($language['locale'] == $activeLocale) { $activeLangImg = $img; } $output[] = '