Plugin Directory

Changeset 3195301


Ignore:
Timestamp:
11/23/2024 02:13:14 AM (16 months ago)
Author:
rednumber
Message:

update 2

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

Legend:

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

    r3194297 r3195301  
    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.1
     6 * Version: 4.4.2
    77 * Requires PHP: 5.6
    88 * Author: add-ons.org
  • pdf-for-wpforms/trunk/readme.txt

    r3194297 r3195301  
    44Requires at least: 2.0
    55Tested up to: 6.7
    6 Stable tag: 4.4.0
     6Stable tag: 4.4.2
    77Requires PHP: 5.6
    88License: GPLv2 or later
  • pdf-for-wpforms/trunk/wpforms/index.php

    r3194297 r3195301  
    6161        <?php
    6262    }
     63    public function is_pro() {
     64        if(method_exists('wpforms',"is_pro")){
     65            return wpforms()->is_pro();
     66        }else{
     67            return false;
     68        }
     69    }
    6370    function settings_js(){
    6471        if(isset($_GET["page"]) && $_GET["page"] == "wpforms-builder"){
    6572            wp_enqueue_script('yeepdf_wpforms', BUIDER_PDF_WPFORMS_PLUGIN_URL. 'wpforms/yeepdf-wpforms.js',array("jquery"));
    6673            $pro ="free";
    67             if (wpforms()->is_pro()) {
     74            if ($this->is_pro()) {
    6875                $pro ="pro";
    6976            }
     
    187194            return;
    188195        }
    189         if (wpforms()->is_pro()) {
     196        if ($this->is_pro()) {
    190197            $fields    = wpforms_decode( $wpforms->entry->fields );
    191198            $entry = (array) wpforms()->entry->get($wpforms->entry->entry_id);
     
    199206    //click resend notify
    200207    function resend($emails){
    201         if (wpforms()->is_pro()) {
     208        if ($this->is_pro()) {
    202209            $fields = $emails->fields;
    203210            $entry = (array) wpforms()->entry->get($emails->entry_id);
     
    316323                }
    317324            }
    318             if (wpforms()->is_pro()) {
     325            if ($this->is_pro()) {
    319326                wpforms()->entry_meta->add(
    320327                        [
     
    503510                                ]
    504511                            );
    505                    
    506512                    if($pro){
    507513                    wpforms_panel_field(
Note: See TracChangeset for help on using the changeset viewer.