Example #1
0
 public static function notification_page()
 {
     require_once 'notification.php';
     //page header loaded in below function because admin messages were not yet available to the header to display
     GFNotification::notification_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 (is_numeric($id)) {
                     self::forms_page($id);
                 } else {
                     self::form_list_page();
                 }
             }
         }
     }
 }