Plugin Directory

Changeset 2198022


Ignore:
Timestamp:
11/21/2019 12:29:46 PM (6 years ago)
Author:
rfbastos
Message:

Update import JS Widget

Location:
track-for-buzzlead/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • track-for-buzzlead/trunk/readme.txt

    r2197611 r2198022  
    1010Tested up to: 5.3
    1111Requires PHP: 7.2
    12 Version: 2.2
    13 Stable tag: 2.2
     12Version: 2.2.1
     13Stable tag: 2.2.1
    1414License: GPLv3 or later
    1515License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • track-for-buzzlead/trunk/track-for-buzzlead.php

    r2197608 r2198022  
    44 * Plugin URI: http://www.buzzlead.com.br
    55 * Description: Tracking de conversão Buzzlead para sua loja virtual Woocommerce - Marketing de Indicações
    6  * Version: 2.2
     6 * Version: 2.2.1
    77 * Text Domain: wbg-buzzlead-tracker
    88 * Domain Path: /languages
     
    113113            //Adicionando os Scripts na pagina de sucesso
    114114           
    115             echo '<div id="buzzlead-root"></div><script>window.campaignId = "'.$idCampanha.'";</script><script src="https://app.buzzlead.com.br/widget-v2.js"></script>';
     115            echo '<div id="buzzlead-root"></div>';
     116            wp_enqueue_script( 'wbg-buzzlead-widget', '//app.buzzlead.com.br/widget-v2', array(), '1.0' );
     117            wp_add_inline_script( 'wbg-buzzlead-widget', 'window.campaignId = "'.$idCampanha.'";' );
    116118           
    117119            wp_register_script( 'wbg_buzzlead_tracker', '', [], '', true );
Note: See TracChangeset for help on using the changeset viewer.