本文整理汇总了PHP中Fisharebest\Webtrees\Functions\FunctionsEdit::editFieldContact方法的典型用法代码示例。如果您正苦于以下问题:PHP FunctionsEdit::editFieldContact方法的具体用法?PHP FunctionsEdit::editFieldContact怎么用?PHP FunctionsEdit::editFieldContact使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fisharebest\Webtrees\Functions\FunctionsEdit
的用法示例。
在下文中一共展示了FunctionsEdit::editFieldContact方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
</p>
</div>
</div>
</div>
<!-- CONTACT METHOD -->
<div class="form-group">
<label class="control-label col-sm-3" for="contactmethod">
<?php
echo I18N::translate('Preferred contact method');
?>
</label>
<div class="col-sm-9">
<?php
echo FunctionsEdit::editFieldContact('contact_method', $user->getPreference('contactmethod'));
?>
<p class="small text-muted">
<?php
echo I18N::translate('Site members can send each other messages. You can choose to how these messages are sent to you, or choose not receive them at all.');
?>
</p>
</div>
</div>
<!-- THEME -->
<div class="form-group">
<label class="control-label col-sm-3" for="theme">
<?php
echo I18N::translate('Theme');
?>
示例2:
</p>
</div>
<?php
}
?>
<div class="label">
<label for="form_contact_method">
<?php
echo I18N::translate('Contact method');
?>
</label>
</div>
<div class="value">
<?php
echo FunctionsEdit::editFieldContact('form_contact_method', Auth::user()->getPreference('contactmethod'));
?>
<p class="small text-muted">
<?php
echo I18N::translate('Site members can send each other messages. You can choose to how these messages are sent to you, or choose not receive them at all.');
?>
</p>
</div>
<div class="label">
<label for="form_visible_online">
<?php
echo I18N::translate('Visible to other users when online');
?>
</label>
</div>