public static function _logic_row() { check_ajax_referer('frm_ajax', 'nonce'); $meta_name = FrmAppHelper::get_param('meta_name', '', 'get', 'sanitize_title'); $form_id = FrmAppHelper::get_param('form_id', '', 'get', 'absint'); $key = FrmAppHelper::get_param('email_id', '', 'get', 'sanitize_title'); $type = FrmAppHelper::get_param('type', '', 'get', 'sanitize_title'); $form = FrmForm::getOne($form_id); FrmProFormsController::include_logic_row(array('form_id' => $form->id, 'form' => $form, 'meta_name' => $meta_name, 'condition' => array('hide_field_cond' => '==', 'hide_field' => ''), 'key' => $key, 'name' => 'frm_' . $type . '_action[' . $key . '][post_content][conditions][' . $meta_name . ']')); wp_die(); }
public static function get_draft_button($form, $class = '', $html = false) { if (!$html) { $html = '[if save_draft]<input type="submit" value="[draft_label]" name="frm_save_draft" formnovalidate="formnovalidate" class="frm_save_draft ' . $class . '" [draft_hook] />[/if save_draft]'; } $html = FrmProFormsController::replace_shortcodes($html, $form); if (strpos($html, '[if save_draft]') !== false) { $html = preg_replace('/(\\[if\\s+save_draft\\])(.*?)(\\[\\/if\\s+save_draft\\])/mis', '', $html); } return $html; }
selected($notification['conditions']['any_all'], 'any'); ?> ><?php _e('any', 'formidable'); ?> </option> <option value="all" <?php selected($notification['conditions']['any_all'], 'all'); ?> ><?php _e('all', 'formidable'); ?> </option> </select> <?php _e('of the following match', 'formidable'); ?> : <?php foreach ($notification['conditions'] as $meta_name => $condition) { if (is_numeric($meta_name)) { FrmProFormsController::include_logic_row(array('meta_name' => $meta_name, 'condition' => $condition, 'key' => $email_key, 'form_id' => $values['id'])); } unset($meta_name); unset($condition); } ?> </div> </div>
</div> <p><label class="frm_primary_label"><?php _e('After Fields', 'formidable'); ?> </label> <textarea name="options[after_html]" rows="3" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['after_html']); ?> </textarea></p> </div> </div> <div id="post_settings" class="post_settings tabs-panel" style="display:none;"> <?php if ($frmpro_is_installed) { FrmProFormsController::post_options($values); } else { FrmAppController::update_message('create and edit posts, pages, and custom post types through your forms'); } ?> </div> <?php foreach ($sections as $sec_name => $section) { if (isset($section['class'])) { call_user_func(array($section['class'], $section['function']), $values); } else { call_user_func(isset($section['function']) ? $section['function'] : $section, $values); } } ?>
?> ><?php _e('any', 'formidable'); ?> </option> <option value="all" <?php selected($form_action->post_content['conditions']['any_all'], 'all'); ?> ><?php _e('all', 'formidable'); ?> </option> </select> <?php _e('of the following match', 'formidable'); ?> : </p> <?php foreach ($form_action->post_content['conditions'] as $meta_name => $condition) { if (!is_numeric($meta_name)) { continue; } FrmProFormsController::include_logic_row(array('meta_name' => $meta_name, 'condition' => $condition, 'key' => $action_key, 'form_id' => $values['id'], 'name' => $action_control->get_field_name('conditions') . '[' . $meta_name . ']', 'exclude_fields' => FrmField::no_save_fields())); unset($meta_name, $condition); } ?> </div> </div>
require $frm_path . '/pro/classes/models/FrmProNotification.php'; global $frmpro_display; $frmpro_display = new FrmProDisplay(); $obj = new FrmProNotification(); // Instansiate Controllers require $frm_path . '/pro/classes/controllers/FrmProAppController.php'; require $frm_path . '/pro/classes/controllers/FrmProDisplaysController.php'; require $frm_path . '/pro/classes/controllers/FrmProEntriesController.php'; require $frm_path . '/pro/classes/controllers/FrmProFieldsController.php'; require $frm_path . '/pro/classes/controllers/FrmProFormsController.php'; require $frm_path . '/pro/classes/controllers/FrmProStatisticsController.php'; FrmProAppController::load_hooks(); FrmProDisplaysController::load_hooks(); FrmProEntriesController::load_hooks(); FrmProFieldsController::load_hooks(); FrmProFormsController::load_hooks(); FrmProStatisticsController::load_hooks(); FrmProSettingsController::load_hooks(); if (is_admin()) { require $frm_path . '/pro/classes/controllers/FrmProXMLController.php'; FrmProXMLController::load_hooks(); } if (is_multisite()) { //Models require $frm_path . '/pro/classes/models/FrmProCopy.php'; $obj = new FrmProCopy(); //Add options to copy forms and displays require $frm_path . '/pro/classes/controllers/FrmProCopiesController.php'; FrmProCopiesController::load_hooks(); } unset($obj);