public static function create_post($entry_id, $form_id) { _deprecated_function(__FUNCTION__, '2.0', 'FrmProEntriesController::trigger_post'); FrmProPost::create_post($entry_id, $form_id); }
<?php if (isset($field['post_field']) && $field['post_field'] == 'post_category' && FrmAppHelper::pro_is_installed()) { echo FrmProPost::get_category_dropdown($field, array('name' => $field_name, 'id' => 'placeholder_id', 'location' => 'form_builder')); } else { ?> <select name="<?php echo esc_attr($field_name) . (FrmField::is_option_true($field, 'multiple') ? '[]' : ''); ?> " <?php echo FrmField::is_option_true($field, 'size') ? 'class="auto_width"' : ''; echo FrmField::is_option_true($field, 'multiple') ? ' multiple="multiple"' : ''; ?> > <?php foreach ($field['options'] as $opt_key => $opt) { $field_val = apply_filters('frm_field_value_saved', $opt, $opt_key, $field); $opt = apply_filters('frm_field_label_seen', $opt, $opt_key, $field); $selected = $field['default_value'] == $field_val || FrmFieldsHelper::get_other_val(array('opt_key', 'field')) ? ' selected="selected"' : ''; ?> <option value="<?php echo esc_attr($field_val); ?> "<?php echo $selected; ?> ><?php echo esc_html($opt); ?> </option> <?php
<?php $read_only = false; if (isset($field['post_field']) && $field['post_field'] == 'post_category' && FrmAppHelper::pro_is_installed()) { echo FrmProPost::get_category_dropdown($field, array('location' => 'front', 'name' => $field_name, 'id' => $html_id)); } else { if (FrmAppHelper::pro_is_installed() && FrmField::is_read_only($field)) { $read_only = true; echo FrmProDropdownFieldsController::get_hidden_fields_with_readonly_values($field, $field_name, $html_id); ?> <select <?php do_action('frm_field_input_html', $field); ?> > <?php } else { ?> <select name="<?php echo esc_attr($field_name); ?> " id="<?php echo esc_attr($html_id); ?> " <?php do_action('frm_field_input_html', $field); ?> > <?php } $other_opt = $other_checked = false; foreach ($field['options'] as $opt_key => $opt) { $field_val = apply_filters('frm_field_value_saved', $opt, $opt_key, $field);
public static function dropdown_categories($args) { _deprecated_function(__FUNCTION__, '2.02.07', 'FrmProPost::get_category_dropdown'); if (FrmAppHelper::pro_is_installed()) { $args['location'] = 'front'; $dropdown = FrmProPost::get_category_dropdown($args['field'], $args); } else { $dropdown = ''; } return $dropdown; }
public static function insert_post($entry, $new_post, $post, $form = false, $action = false) { _deprecated_function(__FUNCTION__, '2.0.9', array('FrmProPost::insert_post')); return FrmProPost::insert_post($entry, $new_post, $post, $form, $action); }