public static function forms() { if (!GFCommon::ensure_wp_version()) { return; } if (self::maybe_display_installation_wizard()) { return; } $id = RGForms::get('id'); $view = RGForms::get('view'); if ($view == 'entries') { require_once GFCommon::get_base_path() . '/entry_list.php'; GFEntryList::leads_page($id); } else { if ($view == 'entry') { require_once GFCommon::get_base_path() . '/entry_detail.php'; GFEntryDetail::lead_detail_page(); } else { if ($view == 'notification') { require_once GFCommon::get_base_path() . '/notification.php'; //GFNotification::notification_page($id); } else { if ($view == 'settings') { require_once GFCommon::get_base_path() . '/form_settings.php'; GFFormSettings::form_settings_page($id); } else { if (empty($view)) { if (is_numeric($id)) { self::forms_page($id); } else { self::form_list_page(); } } } } } } do_action('gform_view', $view, $id); }
public static function forms() { if (!GFCommon::ensure_wp_version()) { return; } $id = RGForms::get("id"); $view = RGForms::get("view"); if ($view == "entries") { require_once GFCommon::get_base_path() . "/entry_list.php"; GFEntryList::leads_page($id); } else { if ($view == "entry") { require_once GFCommon::get_base_path() . "/entry_detail.php"; GFEntryDetail::lead_detail_page(); } else { if ($view == "notification") { require_once GFCommon::get_base_path() . "/notification.php"; GFNotification::notification_page($id); } else { if ($view == 'settings') { require_once GFCommon::get_base_path() . "/form_settings.php"; GFFormSettings::form_settings_page($id); } else { if (empty($view)) { if (is_numeric($id)) { self::forms_page($id); } else { self::form_list_page(); } } } } } } do_action("gform_view", $view, $id); }