コード例 #1
0
ファイル: gravityforms.php プロジェクト: kidaak/gravityforms
 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);
 }
コード例 #2
0
ファイル: functions.php プロジェクト: hansstam/makerfaire
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);
        }
    }
}
コード例 #3
0
 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();
                 }
             }
         }
     }
 }
コード例 #4
0
ファイル: gravityforms.php プロジェクト: bmontague/sct
    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);

    }