function show_table() { if (isset($_REQUEST['leadid']) && isset($_REQUEST['form'])) { require_once "gravity-forms-addons.php"; $transient = false; if (isset($_REQUEST['post'])) { $transient = get_transient('gf_form_' . $_REQUEST['form'] . '_post_' . $_REQUEST['post'] . '_showadminonly'); } echo "<div class='wrap' style='padding:1.25em .5em'>" . apply_filters('kws_gf_directory_detail', apply_filters('kws_gf_directory_detail_' . (int) $_REQUEST['leadid'], GFDirectory::process_lead_detail(false, '', apply_filters('kws_gf_directory_showadminonly_lightbox', apply_filters('kws_gf_directory_showadminonly_lightbox_' . $_REQUEST['form'], $transient))))) . "</div>"; } }
/** * Generate the output for the IFRAME */ function show_table() { if (isset($_REQUEST['leadid']) && isset($_REQUEST['form'])) { require_once dirname(__FILE__) . "/gravity-forms-addons.php"; $transient = false; if (isset($_REQUEST['post'])) { $transient = get_transient('gf_form_' . $_REQUEST['form'] . '_post_' . $_REQUEST['post'] . '_showadminonly'); } $output = '<style>html, body { margin:0; padding: 0!important; } div.wrap { padding:.25em .5em; }</style>'; $output .= "<div class='wrap'>"; $leadid = (int) $_REQUEST['leadid']; $lightbox = apply_filters('kws_gf_directory_showadminonly_lightbox', apply_filters('kws_gf_directory_showadminonly_lightbox_' . $_REQUEST['form'], $transient, $leadid), $leadid); $detail = GFDirectory::process_lead_detail(false, '', $lightbox, $leadid); $detail = apply_filters('kws_gf_directory_detail', apply_filters('kws_gf_directory_detail_' . $leadid, $detail, $leadid), $leadid); $output .= $detail . "</div>"; echo $output; } }