本文整理汇总了PHP中FrmField::pro_field_selection方法的典型用法代码示例。如果您正苦于以下问题:PHP FrmField::pro_field_selection方法的具体用法?PHP FrmField::pro_field_selection怎么用?PHP FrmField::pro_field_selection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrmField
的用法示例。
在下文中一共展示了FrmField::pro_field_selection方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: test_create
function test_create()
{
$form_id = $this->factory->form->get_id_by_key('contact-db12');
$field_types = array_merge(FrmField::field_selection(), FrmField::pro_field_selection());
foreach ($field_types as $field_type => $field_info) {
$field_id = $this->factory->field->create(array('type' => $field_type, 'form_id' => $form_id));
$this->assertTrue(is_numeric($field_id));
$this->assertTrue($field_id > 0);
}
}
示例2: apply_filters
?>
</ul>
<div class="clear"></div>
<hr/>
<ul <?php
echo apply_filters('frm_drag_field_class', '');
?>
style="margin-top:2px;">
<li><?php
FrmTipsHelper::pro_tip('get_builder_tip');
?>
</li>
<?php
$col_class = 'frm_col_one';
$no_allow_class = apply_filters('frm_noallow_class', 'frm_noallow');
foreach (FrmField::pro_field_selection() as $field_key => $field_type) {
if (is_array($field_type)) {
$field_label = $field_type['name'];
if (isset($field_type['switch_from'])) {
continue;
}
?>
<li class="frmbutton button <?php
echo esc_attr($col_class . ' ' . $no_allow_class . ' frm_t' . $field_key);
?>
dropdown" id="<?php
echo esc_attr($field_key);
?>
">
<a href="#" id="frm-<?php
echo esc_attr($field_key);
示例3: options_form
public static function options_form($field, $display, $values)
{
remove_action('frm_field_options_form', 'FrmFieldsController::add_conditional_update_msg', 50);
global $frm_vars;
$frm_settings = FrmAppHelper::get_settings();
$form_fields = false;
if ($display['logic'] && !empty($field['hide_field']) && is_array($field['hide_field'])) {
$form_fields = FrmField::get_all_for_form($values['id']);
}
if ('data' == $field['type']) {
$frm_field_selection = FrmField::pro_field_selection();
}
if ($field['type'] == 'date') {
$locales = FrmAppHelper::locales('date');
} else {
if ($field['type'] == 'file') {
$mimes = get_allowed_mime_types();
}
}
require FrmAppHelper::plugin_path() . '/pro/classes/views/frmpro-fields/options-form.php';
}
示例4: pro_field_selection
public static function pro_field_selection()
{
_deprecated_function(__FUNCTION__, '2.0.9', 'FrmField::pro_field_selection');
return FrmField::pro_field_selection();
}
示例5: htmlspecialchars
?>
" />
<span class="frm_hidden_fdata frm_hidden"><?php
echo htmlspecialchars(json_encode($field));
?>
</span>
</li>
<?php
return;
}
$frm_settings = FrmAppHelper::get_settings();
if (!isset($frm_all_field_selection)) {
if (isset($frm_field_selection) && isset($pro_field_selection)) {
$frm_all_field_selection = array_merge($frm_field_selection, $pro_field_selection);
} else {
$pro_field_selection = FrmField::pro_field_selection();
$frm_all_field_selection = array_merge(FrmField::field_selection(), $pro_field_selection);
}
}
$disabled_fields = FrmAppHelper::pro_is_installed() ? array() : $pro_field_selection;
if (!isset($ajax)) {
$li_classes .= ' ui-state-default widgets-holder-wrap';
?>
<li id="frm_field_id_<?php
echo esc_attr($field['id']);
?>
" class="<?php
echo esc_attr($li_classes);
?>
" data-fid="<?php
echo esc_attr($field['id']);