* @package zin * @link http://www.zentao.net */ namespace zin; class contactUs extends wg { /** * @var mixed[] */ protected static $defineProps = [ 'text?: string', ]; protected function buildContent() { global $config, $lang; $content = []; foreach($config->contactUs as $key => $value) { $content[] = $lang->contactUs->$key . $lang->colon . ($key == 'email' ? "$value" : $value); } return html(implode($lang->comma, $content)); } protected function build() { global $lang; return div ( setClass('font-bold text-center mt-2'), $this->prop('text', $lang->contactUs->common), $this->buildContent() ); } }