Plugin Directory

Changeset 1915454


Ignore:
Timestamp:
07/26/2018 03:13:30 PM (7 years ago)
Author:
leadfox
Message:

Version 2.1

Location:
leadfox
Files:
5 deleted
1 edited
7 copied

Legend:

Unmodified
Added
Removed
  • leadfox/tags/2.1/leadfox.php

    r1841594 r1915454  
    362362    $url = home_url(add_query_arg(array(), $wp->request));
    363363    $options = leadfox_options();
    364 
    365     if (strpos($url, "order-received") !== false)
    366     {
    367         echo "<script>(function(l,f,o,x){var a=f.getElementsByTagName(o)[0],b=f.createElement(o);b.async=true;b.id='__js_lm_00';b.src='//app.leadfox.co/js/api/lifecycle.js?key='+x+'&l='+l;a.parentNode.insertBefore(b,a);})(5,document,'script','".$options["apikey"]."');</script>";
    368     }
    369 
    370     echo "<script>(function(f,o,x){var a=f.getElementsByTagName(o)[0],b=f.createElement(o);b.async=true;b.id='__js_lm_00';b.src='//app.leadfox.co/js/api/init.js?key='+x;a.parentNode.insertBefore(b,a);})(document,'script','".$options["apikey"]."');</script>";
     364?>
     365    <?php if (strpos($url, "order-received") !== false): ?>
     366        <lf-lifecycle data-lifecycle="5" />
     367    <?php endif ?>
     368
     369    <!-- This site is trusting LeadFox to convert visitors into customers - https://leadfox.co -->
     370    <script async src="//app.leadfox.co/js/api/leadfox.js" data-key="<?php echo $options["apikey"] ?>"></script>
     371    <!-- LeadFox -->'
     372<?php
    371373}
    372374add_action("wp_footer", "leadfox_footer");
  • leadfox/trunk/leadfox.php

    r1841594 r1915454  
    362362    $url = home_url(add_query_arg(array(), $wp->request));
    363363    $options = leadfox_options();
    364 
    365     if (strpos($url, "order-received") !== false)
    366     {
    367         echo "<script>(function(l,f,o,x){var a=f.getElementsByTagName(o)[0],b=f.createElement(o);b.async=true;b.id='__js_lm_00';b.src='//app.leadfox.co/js/api/lifecycle.js?key='+x+'&l='+l;a.parentNode.insertBefore(b,a);})(5,document,'script','".$options["apikey"]."');</script>";
    368     }
    369 
    370     echo "<script>(function(f,o,x){var a=f.getElementsByTagName(o)[0],b=f.createElement(o);b.async=true;b.id='__js_lm_00';b.src='//app.leadfox.co/js/api/init.js?key='+x;a.parentNode.insertBefore(b,a);})(document,'script','".$options["apikey"]."');</script>";
     364?>
     365    <?php if (strpos($url, "order-received") !== false): ?>
     366        <lf-lifecycle data-lifecycle="5" />
     367    <?php endif ?>
     368
     369    <!-- This site is trusting LeadFox to convert visitors into customers - https://leadfox.co -->
     370    <script async src="//app.leadfox.co/js/api/leadfox.js" data-key="<?php echo $options["apikey"] ?>"></script>
     371    <!-- LeadFox -->'
     372<?php
    371373}
    372374add_action("wp_footer", "leadfox_footer");
Note: See TracChangeset for help on using the changeset viewer.