From: Anthony Talarico Date: Tue, 29 Nov 2016 13:47:47 +0000 (-0500) Subject: removing code that generates pdf view button to print pdf forms, for testing X-Git-Tag: v1.0.0^2~14 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=11c8bd505e8729c656b29089f38b030689ad0d94;p=WP-Themes%2Foriginalbutterflyhouse.git removing code that generates pdf view button to print pdf forms, for testing --- diff --git a/functions.php b/functions.php index ca9fd5f..2c51f04 100644 --- a/functions.php +++ b/functions.php @@ -1,5 +1,4 @@ diff --git a/lib/misc.php b/lib/misc.php index f078dd6..441e397 100644 --- a/lib/misc.php +++ b/lib/misc.php @@ -81,20 +81,20 @@ function mytheme_search_loop() { add_action('thematic_searchloop', 'mytheme_search_loop'); // End of the Contextual/Highlight Search functions -add_action( 'gform_after_submission', 'set_post_content', 10, 2 ); -function set_post_content( $entry, $form ) { -// echo '
', print_r($entry), '
'; - if ( $form['gfpdf_form_settings'] ){ - - // get the first array key from gravity forms pdf settings array - reset($form['gfpdf_form_settings']); - $pdf_id = key($form['gfpdf_form_settings']); - - // get the pdf template that was selected in the gravity pdf settings - $template = $form['gfpdf_form_settings'][$pdf_id]['template'].'.php'; - - // buid url required to view or download pdf forms - $url = get_site_url() . '/?gf_pdf='. $pdf_id . '&fid='. $form['id'] .'&lid=' . $entry['id'] . '&template=' . $template; - echo ' View PDF '; - } -} +//add_action( 'gform_after_submission', 'set_post_content', 10, 2 ); +//function set_post_content( $entry, $form ) { +//// echo '
', print_r($entry), '
'; +// if ( $form['gfpdf_form_settings'] ){ +// +// // get the first array key from gravity forms pdf settings array +// reset($form['gfpdf_form_settings']); +// $pdf_id = key($form['gfpdf_form_settings']); +// +// // get the pdf template that was selected in the gravity pdf settings +// $template = $form['gfpdf_form_settings'][$pdf_id]['template'].'.php'; +// +// // buid url required to view or download pdf forms +// $url = get_site_url() . '/?gf_pdf='. $pdf_id . '&fid='. $form['id'] .'&lid=' . $entry['id'] . '&template=' . $template; +// echo ' View PDF '; +// } +//}