Example #1
0
 public function submit_listing()
 {
     require_once WPBDP_PATH . 'core/view-submit-listing.php';
     $submit_page = new WPBDP_Submit_Listing_Page(isset($_REQUEST['listing_id']) ? $_REQUEST['listing_id'] : 0);
     return $submit_page->dispatch();
 }
Example #2
0
 private function previewForm()
 {
     require_once WPBDP_PATH . 'core/view-submit-listing.php';
     if (wpbdp()->has_module('featuredlevels')) {
         wpbdp_admin()->messages[] = _x('This is a preview of the form as it will appear during "Submit a Listing". The users may not see all fields from "Manage Form Fields" because you have "Featured Levels" active and this is showing the base level.', 'formfields-preview', 'WPBDM');
     }
     $html = '';
     $html .= wpbdp_admin_header(_x('Form Preview', 'form-fields admin', 'WPBDM'), 'formfields-preview', array(array(_x('← Return to "Manage Form Fields"', 'form-fields admin', 'WPBDM'), esc_url(remove_query_arg('action')))));
     $html .= wpbdp_admin_notices();
     $controller = new WPBDP_Submit_Listing_Page(0, true);
     $html .= $controller->preview_listing_fields_form();
     $html .= wpbdp_admin_footer();
     echo $html;
 }