本文整理匯總了PHP中Fisharebest\Webtrees\Functions\FunctionsEdit::editFieldLanguage方法的典型用法代碼示例。如果您正苦於以下問題:PHP FunctionsEdit::editFieldLanguage方法的具體用法?PHP FunctionsEdit::editFieldLanguage怎麽用?PHP FunctionsEdit::editFieldLanguage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Fisharebest\Webtrees\Functions\FunctionsEdit
的用法示例。
在下文中一共展示了FunctionsEdit::editFieldLanguage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<?php
echo I18N::translate('Type your password again, to make sure you have typed it correctly.');
?>
</p>
</div>
<div class="label">
<label for="form_language">
<?php
echo I18N::translate('Language');
?>
</label>
</div>
<div class="value">
<?php
echo FunctionsEdit::editFieldLanguage('form_language', Auth::user()->getPreference('language'));
?>
</div>
<div class="label">
<label for="form_timezone">
<?php
echo I18N::translate('Time zone');
?>
</label>
</div>
<div class="value">
<?php
echo FunctionsEdit::selectEditControl('form_timezone', array_combine(\DateTimeZone::listIdentifiers(), \DateTimeZone::listIdentifiers()), null, Auth::user()->getPreference('TIMEZONE') ?: 'UTC', 'class="form-control"');
?>
<p class="small text-muted">