# Inbound Pro Plugin by [Inbound Now](https://www.inboundnow.com)

![WordPress Compatibility](https://img.shields.io/wordpress/v/landing-pages.svg?maxAge=2592000) [![GitHub issues](https://img.shields.io/github/issues/inboundnow/inbound-pro.svg)](https://github.com/inboundnow/inbound-pro/issues)

## Welcome to our Public Repository

Inbound Pro is the world's first WordPress plugin to offer a comprehensive set of [inbound marketing](https://www.hubspot.com/inbound-marketing) tools for lead attraction, conversion, statistical profiling, and marketing automation. 

The Inbound Pro plugin includes and expands on the powers of our 3 most popular free plugins, [Landing Pages](https://wordpress.org/plugins/landing-pages/), [Leads](https://wordpress.org/plugins/leads/), and [Calls to Action](https://wordpress.org/plugins/cta/),  so they will not need to be installed/activated if this plugin is installed. 

[It's free to get started with Inbound Pro.](https://www.inboundnow.com/?sign-up-now) We offer a strong free-user experience and an even stronger experience for [subscribers]("https://www.inboundnow.com/pricing")

## Code Contributions 

We love user-contributed code. The truth is we could use all the help we can get. For details on contributing please read our [contribution guidelines](https://github.com/inbound-now/inbound-pro/blob/master/contributions.md). You might also find our [PHP Codex](https://inboundnow.github.io/php-codex/) useful as well. It's still a work in development.

Here are some various ways you can contribute:

1. [Raise an Issue on GitHub](https://github.com/inboundnow/inbound-pro/issues) 
2. [Translate Inbound Pro](https://www.inboundnow.com/translate-inbound-now/)
3. [Contribute to Core Code](https://github.com/inboundnow/inbound-pro/blob/master/contributions.md)
4. [Provide feedback and suggestions](https://github.com/inboundnow/inbound-pro/issues?direction=desc&labels=Feature%20Request&page=1&sort=created&state=open)

Please Note: Inbound Pro development occurs in `develop` branch. `master` branch holds the latest stable release.
## Our Plugins

### Landing Pages
![Plugin Version](https://img.shields.io/wordpress/plugin/v/landing-pages.svg) 
![WordPress Compatibility](https://img.shields.io/wordpress/v/landing-pages.svg?maxAge=2592000) 
![Total Downloads](https://img.shields.io/wordpress/plugin/dt/landing-pages.svg?maxAge=2592000) 
![Plugin Rating](https://img.shields.io/wordpress/plugin/r/landing-pages.svg) 

Landing Pages plugin provides a landing page framework powered by [Advanced Custom Fields](https://www.advancedcustomfields.com). With this framework developers can easily develop landing pages compatible with Landing Pages plugin, offering an easy way for users to manage dynamic visual and content elements as well as perform variant tests. This plugin is GPL and additionally offered on [The WordPress Plugins Directory](https://wordpress.org/plugins/landing-pages/).

* [Using Advanced Custom Fields to Build a Landing Page Template](https://github.com/inboundnow/landing-pages/blob/develop/shared/docs/how.to.create.landing.page.templates.using.ACF.md)
* [Expert Post: How I created a landing page template and how you could too](https://www.inboundnow.com/how-i-created-a-landing-page-template/)
* [Landing Page Template Marketplace](https://www.inboundnow.com/marketplace/?show=landing-pages)

### Leads
![Plugin Version](https://img.shields.io/wordpress/plugin/v/leads.svg) 
![WordPress Compatibility](https://img.shields.io/wordpress/v/leads.svg?maxAge=2592000) 
![Total Downloads](https://img.shields.io/wordpress/plugin/dt/leads.svg?maxAge=2592000) 
![Plugin Rating](https://img.shields.io/wordpress/plugin/r/leads.svg) 

Wordpress Leads is a fully extendable CRM that ships with it's own [form-based lead collection tool](http://docs.inboundnow.com/guide/forms/), and can also be extended to work with [Ninja Forms](https://wordpress.org/plugins/ninja-forms/), [Gravity Forms](http://www.gravityforms.com/), or [Contact Form 7](https://wordpress.org/plugins/contact-form-7/). This plugin connects directly with the [Landing Pages](http://wordpress.org/plugins/landing-pages/ ) and [Calls to Action](http://wordpress.org/plugins/cta/) plugin provided by [Inbound Now](https://www.inboundnow.com). This plugin is GPL and additionally offered on [The WordPress Plugins Directory](https://wordpress.org/plugins/leads/).

### Calls to Action
![Plugin Version](https://img.shields.io/wordpress/plugin/v/cta.svg) 
![WordPress Compatibility](https://img.shields.io/wordpress/v/cta.svg?maxAge=2592000) 
![Total Downloads](https://img.shields.io/wordpress/plugin/dt/cta.svg?maxAge=2592000) 
![Plugin Rating](https://img.shields.io/wordpress/plugin/r/cta.svg) 

Calls to Action Plugin helps create calls to action for your WordPress site. It gives site owners the ability to monitor and track conversion rates, run a/b or multivariate split tests on calls to action, and most importantly increase lead flow! This plugin is GPL and additionally offered on [The WordPress Plugins Directory](https://wordpress.org/plugins/cta/).

* [How to create a call to action template](http://docs.inboundnow.com/guide/how-to-create-custom-call-to-action-templates/)


### Email Component 

Our mail component, only available to ["Paid Subscribers"](https://www.inboundnow.com/pricing), provides WordPress administrators with the ability to send batch, automated, and direct emails to leads. This component also exists as a templating framework powered by the Advanced Custom Fields plugin, allowing the creation of custom email templates.

Email delivery and email statistical tracking is in part powered by [SparkPost Transactional Email Service](https://www.sparkpost.com), which provides a limited amount (25k) free email sends a month. It's possible we will add more transactional email services in the future.

* [Forking an Email Template](http://docs.inboundnow.com/guide/forking-email-template/)
* [More Details](https://www.inboundnow.com/mailer/)


### Automation Component 

Our Automation component, only available to ["Paid Subscribers"](https://www.inboundnow.com/pricing), provides a trigger/action based rule engine. Currently it's used for creating and executing follow up emails and event prompted email series. Rule triggers are powered by WordPress PHP action hooks, which means as a framework it can be expanded to accomplish many yet-to-be-imagined feats. 

* [More Details](https://www.inboundnow.com/automation/)


## Installation

1. Download the latest version of Inbound Pro in zip format from your Inbound Now [account area](https://www.inboundnow.com/account/#downloads).
2. Install inbound-pro.zip as a [wordpress plugin](https://codex.wordpress.org/Managing_Plugins).


* [Official Installation Guide](http://docs.inboundnow.com/guide/installation/)

## LICENSE / RULES 

### About Inbound Pro Plugin

This plugin ships assets with varying licensing policies. For assets considered intellectual/structural property of InboundWP LLC we've developed and applied the _IBN License_. Other assets that we did not develop or that we have listed as GPL are included with the Inbound Pro plugin package and their original license remains in tact. 

### _IBN License_

Structural property cannot be used distributed, or modified without a license issued from InboundWP LLC that delegates the permission.


### Designation of Licenses


The following legend and table depict how directories and their included files are licesned. 

##### Legend

>APACHE2 = Apache License 2.0 [more info](https://www.apache.org/licenses/LICENSE-2.0)

>IBN = Inbound Now Licensing Policy

>GPL = GNU General Public License [more info](https://www.gnu.org/licenses/gpl-3.0.en.html)

>GPL+ = GNU General Public License AND (MIT OR BSD)

>BSD = Berkeley Software Distribution [more info](http://www.linfo.org/bsdlicense.html)

>BSD23 = Berkeley Software Distribution with 2-Clause and 3-Clause [more info](https://github.com/d3/d3/blob/master/LICENSE)

>MIT = Massachusetts Institute of Technology [more info](http://opensource.org/licenses/MIT)

>+os = Contains included GPL, BSD, and MIT assets

##### Table

Path | License Applied
 --- | ---
 /inbound-pro/| IBN +os
 /inbound-pro/assets/ | IBN +os
 /inbound-pro/assets/css | IBN
 /inbound-pro/assets/images | IBN
 /inbound-pro/assets/js | IBN
 /inbound-pro/assets/libraries | +os
 /inbound-pro/assets/libraries/echarts | BSD
 /inbound-pro/assets/libraries/Ink | MIT
 /inbound-pro/assets/libraries/MiniColors | MIT
 /inbound-pro/assets/libraries/Shuffle | MIT
 /inbound-pro/assets/mu-plugins/fast-ajax/ | GPL
 /inbound-pro/assets/plugins/advanced-custom-fields-pro | [custom](https://www.advancedcustomfields.com/resources/including-acf-in-a-plugin-theme/)
 /inbound-pro/assets/templates | IBN
 /inbound-pro/classes/ | IBN 
 /inbound-pro/core/ | IBN +os 
 /inbound-pro/core/cta | GPL+
 /inbound-pro/core/landing-pages | GPL+
 /inbound-pro/core/leads | GPL+
 /inbound-pro/core/inbound-mailer | IBN +os
 /inbound-pro/core/inbound-mailer/assets/libraries/d3 | BSD23
 /inbound-pro/core/inbound-mailer/assets/libraries/jpicker | MIT
 /inbound-pro/core/inbound-mailer/assets/libraries/jquery-datepicker | MIT
 /inbound-pro/core/inbound-mailer/assets/libraries/jquery-tablesorter | MIT
 /inbound-pro/core/inbound-mailer/assets/libraries/ladda | MIT
 /inbound-pro/core/inbound-mailer/assets/libraries/popModal | MIT
 /inbound-pro/core/inbound-mailer/assets/libraries/snap | APACHE2
 /inbound-pro/core/inbound-mailer/assets/libraries/SweetAlert | MIT
 /inbound-pro/core/inbound-mailer/classes | IBN
 /inbound-pro/core/inbound-mailer/modules | IBN
 /inbound-pro/core/inbound-automation | IBN +0s
 /inbound-pro/core/inbound-automation/assets/libraries/isoloading | MIT
 /inbound-pro/core/inbound-automation/assets/libraries/jrumble | MIT
 /inbound-pro/core/inbound-automation/assets/libraries/ladda | MIT
 /inbound-pro/core/inbound-automation/assets/libraries/SweetAlert | MIT
 /inbound-pro/core/inbound-automation/classes/ | IBN
 /inbound-pro/core/inbound-automation/definitions/ | IBN
 /inbound-pro/core/shared | GPL+


# Development Builds

Inbound Pro Plugin includes [NodeJS](https://nodejs.org/en/) powered [Gulp](http://gulpjs.com/) tasks that contributors should be aware of when editing any part of our `InboundAnalytics.min.js` file.

## Installing Dependencies

1. NodeJS & Gulp must be installed first! [see documentation](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md)
2. Run `npm install` inside of the `/wp-content/plugins/inbound-pro/` directory.

## Gulp Tasks

These commands are performed inside of the the `/wp-content/plugins/inbound-pro/` directory. Each command might require `sudo` to be added before it to enable administrator permissions, depending on your OS.

### `gulp watch`

This command will monitor changes in `inbound-pro/core/shared/assets/js/frontend/analytics-src/` and compile the changes into our unified files located in `inbound-pro/core/shared/assets/js/frontend/analytics/`.

### `gulp GPL`

This command will extract Landing Pages, Calls to Action, and Leads plugin into the `/wp-content/plugins/` directory as stand alone plugins. There's really no need for contributors to do this, but it helps us with preparing individual updates to the WordPress.org SVN repository.

