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 = '' . $language['desc'] . ''; if ($language['locale'] == $activeLocale) { $activeLangImg = $img; } $output[] = '
  • ' . '' . $img . ' ' . $language['desc'] . '' . '' . '
  • '; } if ($nbLanguages > 0) { $output = ''; } } } return $output; } }