Plugin Directory

Changeset 3201294


Ignore:
Timestamp:
12/03/2024 04:19:45 AM (16 months ago)
Author:
rednumber
Message:

update 2

Location:
pdf-for-wpforms/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pdf-for-wpforms/trunk/backend/settings.php

    r3197797 r3201294  
    2828        $url = $upload_dir['baseurl'] . '/'.$uploads_folder.'/';   
    2929        do {
     30            $rand_max = mt_getrandmax();
    3031            $rand = self::generateRandomString();
    3132            $dir_new = path_join( $dir, $rand );
     
    3334        } while ( file_exists( $dir_new ) );
    3435        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);;
    4039    }
    4140    public static function destroy_all_files($dirPath=null) {
  • pdf-for-wpforms/trunk/frontend/index.php

    r3190878 r3201294  
    286286                $mpdf->WriteHTML($html);
    287287                $output = $mpdf->Output($path_name,"F");
     288                update_option( "pdf_download_last", $url_name);
    288289                return array("path"=>$path_name,"url"=>$url_name);
    289290                break;
     
    382383                                    $col_width = "35%";
    383384                                }else{
    384                                     $col_width = "35%";
     385                                    $col_width = "65%";
    385386                                }
    386387                                break;
     
    392393                                break;
    393394                            case "row7":
    394                                 $col_width = "20%";
     395                                $col_width = "19.99%";
    395396                                break;
    396397                            case "row8":
  • pdf-for-wpforms/trunk/pdf-for-wpforms.php

    r3195301 r3201294  
    44 * Description:  WPForms PDF Customizer is a helpful tool that helps you build and customize the PDF Templates for WPforms.
    55 * Plugin URI: https://add-ons.org/plugin/wpforms-pdf-generator-attachment/
    6  * Version: 4.4.2
     6 * Version: 4.5.0
    77 * Requires PHP: 5.6
    88 * Author: add-ons.org
  • pdf-for-wpforms/trunk/wpforms/index.php

    r3195301 r3201294  
    2828        add_action( 'wpforms_entry_details_init', array($this, 'wpforms_entry_details_init' ), 15 );
    2929        add_action( "wpforms_email_send_after", array($this,"yeepdf_remove_all_file"));
     30        add_shortcode( 'yeepdf_download_wpforms', array($this,'yeepdf_download_wpforms') );
    3031    }
    3132    function yeepdf_remove_all_file(){
     
    3536        }
    3637    }
     38    function yeepdf_download_wpforms($atts,$content = ""){
     39        return get_option("yeepdf_download_wpforms");
     40    }
    3741    function add_css_order_summary(){
    3842        ?>
     
    318322                $folder_uploads =Yeepdf_Create_PDF::pdf_creator_preview($data_send_settings_download);
    319323                $attachments[] = $folder_uploads["url"];
    320                 update_option( "pdf_download_last", $folder_uploads["url"]);
     324                update_option( "yeepdf_download_wpforms", $folder_uploads["url"]);
    321325                foreach($list_notifitions as $notifi){
    322326                    $attachments_notifications[$notifi][] = $folder_uploads["path"];
Note: See TracChangeset for help on using the changeset viewer.