public static function get_search($atts) { $atts = shortcode_atts(array('post_id' => '', 'label' => __('Search', 'formidable'), 'style' => false), $atts); if ($atts['post_id'] == '') { global $post; if ($post) { $atts['post_id'] = $post->ID; } } if ($atts['post_id'] != '') { $action_link = get_permalink($atts['post_id']); } else { $action_link = ''; } if (!empty($atts['style'])) { global $frm_vars; $frm_vars['forms_loaded'][] = true; if ($atts['style'] == 1 || 'true' == $atts['style']) { $atts['style'] = FrmStylesController::get_form_style_class('with_frm_style', 'default'); } else { $atts['style'] .= ' with_frm_style'; } } ob_start(); include FrmAppHelper::plugin_path() . '/pro/classes/views/frmpro-entries/search.php'; $contents = ob_get_contents(); ob_end_clean(); return $contents; }