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); }
function entries_list() { $view = rgget('view'); $lead_id = rgget('lid'); if ($view == 'mfentry' && (rgget('lid') || !rgblank(rgget('pos')))) { //require_once( GFCommon::get_base_path() . '/entry_detail.php' ); include_once TEMPLATEPATH . '/classes/entry_detail_makerfaire.php'; GFEntryDetail::lead_detail_page(); } else { if ($view == 'entries' || empty($view)) { include_once TEMPLATEPATH . '/classes/entry_list_makerfaire.php'; if (!class_exists('GFEntryList')) { require_once GFCommon::get_base_path() . "/entry_list.php"; } GFEntryList::all_leads_page(); } else { $form_id = rgget('id'); do_action('gform_entries_view', $view, $form_id, $lead_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 (is_numeric($id)) { self::forms_page($id); } else { self::form_list_page(); } } } } }
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); }