Changeset 3201294
- Timestamp:
- 12/03/2024 04:19:45 AM (16 months ago)
- Location:
- pdf-for-wpforms/trunk
- Files:
-
- 4 edited
-
backend/settings.php (modified) (2 diffs)
-
frontend/index.php (modified) (3 diffs)
-
pdf-for-wpforms.php (modified) (1 diff)
-
wpforms/index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pdf-for-wpforms/trunk/backend/settings.php
r3197797 r3201294 28 28 $url = $upload_dir['baseurl'] . '/'.$uploads_folder.'/'; 29 29 do { 30 $rand_max = mt_getrandmax(); 30 31 $rand = self::generateRandomString(); 31 32 $dir_new = path_join( $dir, $rand ); … … 33 34 } while ( file_exists( $dir_new ) ); 34 35 if ( wp_mkdir_p( $dir_new ) ) { 35 $folder = apply_filters("yeepdf_folder_save",array("path"=>$dir_new."/","url"=>$url_new."/")); 36 return $folder; 37 } 38 $folder = apply_filters("yeepdf_folder_save",array("path"=>$dir,"url"=>$url)); 39 return $folder; 36 return array("path"=>$dir_new."/","url"=>$url_new."/"); 37 } 38 return array("path"=>$dir,"url"=>$url);; 40 39 } 41 40 public static function destroy_all_files($dirPath=null) { -
pdf-for-wpforms/trunk/frontend/index.php
r3190878 r3201294 286 286 $mpdf->WriteHTML($html); 287 287 $output = $mpdf->Output($path_name,"F"); 288 update_option( "pdf_download_last", $url_name); 288 289 return array("path"=>$path_name,"url"=>$url_name); 289 290 break; … … 382 383 $col_width = "35%"; 383 384 }else{ 384 $col_width = " 35%";385 $col_width = "65%"; 385 386 } 386 387 break; … … 392 393 break; 393 394 case "row7": 394 $col_width = " 20%";395 $col_width = "19.99%"; 395 396 break; 396 397 case "row8": -
pdf-for-wpforms/trunk/pdf-for-wpforms.php
r3195301 r3201294 4 4 * Description: WPForms PDF Customizer is a helpful tool that helps you build and customize the PDF Templates for WPforms. 5 5 * Plugin URI: https://add-ons.org/plugin/wpforms-pdf-generator-attachment/ 6 * Version: 4. 4.26 * Version: 4.5.0 7 7 * Requires PHP: 5.6 8 8 * Author: add-ons.org -
pdf-for-wpforms/trunk/wpforms/index.php
r3195301 r3201294 28 28 add_action( 'wpforms_entry_details_init', array($this, 'wpforms_entry_details_init' ), 15 ); 29 29 add_action( "wpforms_email_send_after", array($this,"yeepdf_remove_all_file")); 30 add_shortcode( 'yeepdf_download_wpforms', array($this,'yeepdf_download_wpforms') ); 30 31 } 31 32 function yeepdf_remove_all_file(){ … … 35 36 } 36 37 } 38 function yeepdf_download_wpforms($atts,$content = ""){ 39 return get_option("yeepdf_download_wpforms"); 40 } 37 41 function add_css_order_summary(){ 38 42 ?> … … 318 322 $folder_uploads =Yeepdf_Create_PDF::pdf_creator_preview($data_send_settings_download); 319 323 $attachments[] = $folder_uploads["url"]; 320 update_option( " pdf_download_last", $folder_uploads["url"]);324 update_option( "yeepdf_download_wpforms", $folder_uploads["url"]); 321 325 foreach($list_notifitions as $notifi){ 322 326 $attachments_notifications[$notifi][] = $folder_uploads["path"];
Note: See TracChangeset
for help on using the changeset viewer.