This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('lp_extension_data','lp_rebuild_old_data_configurations_to_suit_new_convention'); | |
function lp_rebuild_old_data_configurations_to_suit_new_convention($lp_data) | |
{ | |
$lp_data['default']['settings']['new_setting'] = array( | |
'label' => "New setting", | |
'description' => "Description of new setting here. Will be placed in tooltip" | |
'id' => 'new_setting', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Landing Page Meta Values */ | |
$sidebar = lp_get_value($post, 'default', 'sidebar'); | |
$display_nav = lp_get_value($post, 'default', 'display-nav'); | |
$new_setting = lp_get_value($post, 'default', 'new_setting'); | |
lp_conversion_area(); /* Print out form area content */ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<?php $left_or_right = lp_get_value($post, 'default', 'sidebar'); ?> | |
<div id="main" class="container"> | |
<?php if($left_or_right === "left") { ?> | |
<!-- SIDEBAR START --> | |
<section id="sidebar" class="grid one-third"> | |
<?php lp_conversion_area(); /* Print out form content */ ?> | |
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Removes tracking class 'wpl-track-me' from woocommerce cart display form' | |
*/ | |
add_action('wp_footer' , 'remove_cart_tracking_class'); | |
function remove_cart_tracking_class() { | |
?> | |
<script type='text/javascript'> | |
jQuery( document ).ready(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Adds geotargeting js capabilities to javascript | |
*/ | |
add_action( 'wp_enqueue_scripts' , 'inbound_add_geotargeting_js' ); | |
function inbound_add_geotargeting_js () { | |
wp_enqueue_script( 'geoplugin' , 'http://www.geoplugin.net/javascript.gp'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Call to Action Support for LeadBoxes | |
* adds click tracking listeners to call to action links containing the 'leadbox-track-me' class id. | |
*/ | |
add_action('wp_footer' , 'inbound_cta_leadboxes_tracking'); | |
function inbound_cta_leadboxes_tracking() { | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Define constants somewhere in plugin */ | |
define('EXTENSION_CURRENT_VERSION', '1.0.5' ); | |
define('EXTENSION_LABEL' , 'Extension Integration' ); | |
define('EXTENSION_SLUG' , plugin_basename( dirname(__FILE__) ) ); | |
define('EXTENSION_FILE' , __FILE__ ); | |
define('EXTENSION_REMOTE_ITEM_NAME' , 'extension-integration' ); | |
define('EXTENSION_URLPATH', plugins_url( ' ', __FILE__ ) ); | |
define('EXTENSION_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
*This class hooks call to action settings into the 'Advanced Settings' metabox available when editing a call to action | |
*/ | |
if ( !class_exists('CTA_Extension_Metaboxes') ) { | |
class CTA_Extension_Metaboxes | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('inbound_store_lead_post' , 'relay_data_to_custom_service' ); | |
function relay_data_to_custom_service( $lead_data ) { | |
if ($lead_data['page_id'] != '75' ) { | |
return; | |
} | |