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
/* ------------------------------------------------------------------------ */ | |
/* INBOUND NOW | |
/* ------------------------------------------------------------------------ */ | |
add_action('wp_footer' , 'inbound_rev_customizations'); | |
function inbound_rev_customizations() { | |
global $post; | |
if (!isset($post) || $post->post_type != 'landing-pages') { | |
return; | |
} |
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
#! /bin/bash | |
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn | |
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo. | |
#Instructions | |
# Update 'NEWVERSION1' with correct version number | |
#1. run below command in terminal | |
# cd /Users/davidgregorywells/Dropbox/Sites/Local-Dev/wp-content/plugins/landing-pages | |
#2. then run below command in terminal | |
# ./deploy.sh |
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 | |
/** | |
* unsets POST fields from form submission email notification | |
*/ | |
add_filter( 'inbound-email-post-params' , 'inbound_modify_lead_notification_fields' ); | |
function inbound_modify_lead_notification_fields( $fields ) { | |
unset($fields['inbound_form_name']); | |
unset($fields['inbound_form_lists']); |
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 | |
/** | |
* Bootstrap the plugin unit testing environment. | |
* | |
* Edit 'active_plugins' setting below to point to your main plugin file. | |
* | |
* @package wordpress-plugin-tests | |
*/ | |
// Activates this plugin in WordPress so it can be tested. |
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
<phpunit bootstrap="./bootstrap.php" backupGlobals="false" colors="true"> | |
<testsuites> | |
<!-- Default test suite to run all tests --> | |
<testsuite> | |
<directory prefix="test." suffix=".php">wordpress-default/wp-content/plugins/cta/tests/phpunit/</directory> | |
</testsuite> | |
<!-- Default test suite to run all tests --> | |
<testsuite> | |
<directory prefix="test." suffix=".php">wordpress-default/wp-content/plugins/landing-pages/tests/phpunit/</directory> |
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
var gulp = require('gulp'), | |
karma = require('gulp-karma'), | |
jshint = require('gulp-jshint'), | |
stylish = require('jshint-stylish'), | |
header = require('gulp-header'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
plumber = require('gulp-plumber'), | |
clean = require('gulp-clean'), |
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 | |
/* changes delimiter to semicolon */ | |
add_filter('leads_csv_delimiter' , function() { | |
return ';'; | |
}); |
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 | |
class DownloadsDataSetBuilder { | |
static $downloads; | |
public function __construct() { | |
self::get_downloads(); | |
self::include_post_meta(); | |
self::print_results(); |
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 | |
/* | |
Plugin Name: Inbound Now - Customizations (Do not disable) | |
Plugin URI: http://www.inboundnow.com/ | |
Description: Helps add leads to custom taxonomies | |
Author: Hudson Atwell | |
Version: 1.0.0 | |
Author URI: http://www.twitter.com/atwellpub | |
Text Domain: inbound-pro | |
Domain Path: /lang/ |
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('wp_footer', 'lp_click_callback'); | |
function lp_click_callback() { | |
global $post; | |
if (!isset($post)) { | |
return; | |
} | |