HubSpot – Free Marketing Plugin for WordPress - Version 7.0.3

Version Description

(2019.02.12) = - Update HubSpot logos

Download this release

Release Info

Developer leadin
Plugin Icon 128x128 HubSpot – Free Marketing Plugin for WordPress
Version 7.0.3
Comparing to
See all releases

Code changes from version 7.0.2 to 7.0.3

admin/leadin-admin.php CHANGED
@@ -18,8 +18,8 @@ if ( ! defined( 'LEADIN_ADMIN_PATH' ) ) {
18
  require_once ABSPATH . 'wp-admin/includes/plugin.php';
19
 
20
  function action_required_notice(){
21
- $leadin_icon = LEADIN_PATH . '/images/leadin-icon-16x16.png';
22
- echo '<div class="notice notice-warning is-dismissible"><p><img src="' . $leadin_icon . '" /> The HubSpot plugin isn’t connected right now. To use HubSpot tools on your WordPress site, <a href="admin.php?page=leadin">connect the plugin now</a>.</p></div>';
23
  }
24
 
25
  // =============================================
@@ -56,6 +56,7 @@ class WPLeadInAdmin {
56
  add_option( 'hubspot_affiliate_code', $affiliate );
57
  }
58
  $this->hydrate_acquisition_attribution();
 
59
  }
60
 
61
  function get_affiliate_code() {
@@ -120,14 +121,13 @@ class WPLeadInAdmin {
120
  }
121
  }
122
 
123
- $leadin_icon = LEADIN_PATH . '/images/leadin-icon-16x16-white.png';
124
- $notificationIcon = '';
125
- if ( ! get_option( 'leadin_portalId' ) ) {
126
- $notificationIcon = ' <span class="update-plugins count-1"><span class="plugin-count">!</span></span>';
127
- add_action('admin_notices', 'action_required_notice');
128
- }
129
 
130
- add_menu_page( 'HubSpot', 'HubSpot'.$notificationIcon, $capability, 'leadin', array( $this, 'leadin_build_app' ), $leadin_icon, '25.100713' );
131
 
132
  $oAuthMode = get_option('leadin_oauth_mode');
133
  if ($oAuthMode && $oAuthMode == '1') {
@@ -168,8 +168,8 @@ class WPLeadInAdmin {
168
 
169
  echo '<div id="leadin" class="wrap ' . ( $wp_version < 3.8 && ! is_plugin_active( 'mp6/mp6.php' ) ? 'pre-mp6' : '' ) . '"></div>';
170
 
171
- wp_enqueue_style( 'leadin-css' );
172
- wp_enqueue_script( 'leadin-app' );
173
 
174
  }
175
 
@@ -220,11 +220,16 @@ class WPLeadInAdmin {
220
  wp_localize_script( 'leadin-head-js', 'leadin_config', $leadin_config );
221
  wp_enqueue_script( 'leadin-head-js' );
222
 
223
- wp_register_script( 'leadin-app', leadin_get_resource_url( '/bundle/app.js' ), array( 'backbone' ), false, true );
224
- wp_register_style( 'leadin-css', leadin_get_resource_url( '/bundle/app.css' ) );
225
  }
226
  }
227
 
 
 
 
 
 
228
  // =============================================
229
  // Internal Class Functions
230
  // =============================================
18
  require_once ABSPATH . 'wp-admin/includes/plugin.php';
19
 
20
  function action_required_notice(){
21
+ $leadin_icon = LEADIN_PATH . '/images/sprocket.svg';
22
+ echo '<div class="notice notice-warning is-dismissible"><p><img src="' . $leadin_icon . '" height="16" style="margin-bottom: -3px" /> The HubSpot plugin isn’t connected right now. To use HubSpot tools on your WordPress site, <a href="admin.php?page=leadin">connect the plugin now</a>.</p></div>';
23
  }
24
 
25
  // =============================================
56
  add_option( 'hubspot_affiliate_code', $affiliate );
57
  }
58
  $this->hydrate_acquisition_attribution();
59
+ $this->add_leadin_global_admin_style();
60
  }
61
 
62
  function get_affiliate_code() {
121
  }
122
  }
123
 
124
+ $notificationIcon = '';
125
+ if ( ! get_option( 'leadin_portalId' ) ) {
126
+ $notificationIcon = ' <span class="update-plugins count-1"><span class="plugin-count">!</span></span>';
127
+ add_action('admin_notices', 'action_required_notice');
128
+ }
 
129
 
130
+ add_menu_page( 'HubSpot', 'HubSpot'.$notificationIcon, $capability, 'leadin', array( $this, 'leadin_build_app' ), 'dashicons-sprocket', '25.100713' );
131
 
132
  $oAuthMode = get_option('leadin_oauth_mode');
133
  if ($oAuthMode && $oAuthMode == '1') {
168
 
169
  echo '<div id="leadin" class="wrap ' . ( $wp_version < 3.8 && ! is_plugin_active( 'mp6/mp6.php' ) ? 'pre-mp6' : '' ) . '"></div>';
170
 
171
+ wp_enqueue_style( 'leadin-bridge-css' );
172
+ wp_enqueue_script( 'leadin-bridge-app' );
173
 
174
  }
175
 
220
  wp_localize_script( 'leadin-head-js', 'leadin_config', $leadin_config );
221
  wp_enqueue_script( 'leadin-head-js' );
222
 
223
+ wp_register_script( 'leadin-bridge-app', leadin_get_resource_url( '/bundle/app.js' ), array( 'backbone' ), false, true );
224
+ wp_register_style( 'leadin-bridge-css', leadin_get_resource_url( '/bundle/app.css' ) );
225
  }
226
  }
227
 
228
+ function add_leadin_global_admin_style() {
229
+ wp_register_style( 'leadin-css', LEADIN_PATH.'/assets/leadin.css' );
230
+ wp_enqueue_style( 'leadin-css' );
231
+ }
232
+
233
  // =============================================
234
  // Internal Class Functions
235
  // =============================================
assets/banner-1544x500.png ADDED
Binary file
assets/banner-772x250.png ADDED
Binary file
assets/hs-font.eot ADDED
Binary file
assets/hs-font.svg ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by Fontastic.me</metadata>
5
+ <defs>
6
+ <font id="untitled-font-1" horiz-adv-x="512">
7
+ <font-face font-family="untitled-font-1" units-per-em="512" ascent="480" descent="-32"/>
8
+ <missing-glyph horiz-adv-x="512" />
9
+
10
+ <glyph glyph-name="sprocket-white" unicode="&#97;" d="M354 156c-34 0-61 28-61 62 0 34 27 61 61 61 34 0 62-27 62-61 0-34-28-62-62-62m19 180l0 55c14 7 24 22 24 38l0 2c0 23-19 42-42 42l-1 0c-23 0-42-19-42-42l0-2c0-16 10-31 24-38l0-55c-21-3-41-12-57-25l-151 118c1 3 2 7 2 11 0 27-21 48-47 48-27 0-48-21-48-47 0-27 21-48 47-48 9 0 17 2 24 6l148-115c-13-19-20-42-20-66 0-26 8-50 22-69l-45-45c-4 1-7 2-11 2-22 0-39-18-39-40 0-21 17-39 39-39 21 0 39 18 39 39 0 4-1 8-2 12l45 44c20-15 45-25 72-25 67 0 121 54 121 121 0 60-45 110-102 118"/>
11
+ </font></defs></svg>
assets/hs-font.ttf ADDED
Binary file
assets/hs-font.woff ADDED
Binary file
assets/icon-128x128.png ADDED
Binary file
assets/icon-256x256.png ADDED
Binary file
assets/leadin.css ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "UTF-8";
2
+
3
+ @font-face {
4
+ font-family: "hs-font";
5
+ src:url("hs-font.eot");
6
+ src:url("hs-font.eot?#iefix") format("embedded-opentype"),
7
+ url("hs-font.woff") format("woff"),
8
+ url("hs-font.ttf") format("truetype"),
9
+ url("hs-font.svg#hs-font") format("svg");
10
+ font-weight: normal;
11
+ font-style: normal;
12
+
13
+ }
14
+
15
+ #wpadminbar #wp-admin-bar-leadin-admin-menu .ab-icon:before,
16
+ .dashicons-sprocket:before {
17
+ font-family: "hs-font" !important;
18
+ content: attr(data-icon);
19
+ font-style: normal !important;
20
+ font-weight: normal !important;
21
+ font-variant: normal !important;
22
+ text-transform: none !important;
23
+ speak: none;
24
+ line-height: 1;
25
+ -webkit-font-smoothing: antialiased;
26
+ -moz-osx-font-smoothing: grayscale;
27
+ }
28
+
29
+ #wpadminbar #wp-admin-bar-leadin-admin-menu .ab-icon:before,
30
+ .dashicons-sprocket:before {
31
+ content: "\61";
32
+ }
images/leadin-icon-16x16-white.png DELETED
Binary file
images/leadin-icon-16x16.png DELETED
Binary file
images/sprocket.svg ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="40px" height="42px" viewBox="0 0 40 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 52.6 (67491) - http://www.bohemiancoding.com/sketch -->
4
+ <title>HubSpot Sprocket - Full Color</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs>
7
+ <polygon id="path-1" points="0.000123751494 0 39.7808917 0 39.7808917 41.6871084 0.000123751494 41.6871084"></polygon>
8
+ </defs>
9
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
+ <g id="HubSpot-Sprocket---Full-Color">
11
+ <mask id="mask-2" fill="white">
12
+ <use xlink:href="#path-1"></use>
13
+ </mask>
14
+ <g id="path-1"></g>
15
+ <path d="M28.8989809,30.0402293 C25.817707,30.0402293 23.319363,27.5423949 23.319363,24.461121 C23.319363,21.3798471 25.817707,18.881758 28.8989809,18.881758 C31.98,18.881758 34.4780892,21.3798471 34.4780892,24.461121 C34.4780892,27.5423949 31.98,30.0402293 28.8989809,30.0402293 M30.5692994,13.7199745 L30.5692994,8.75717196 C31.864586,8.14519744 32.7723567,6.8346242 32.7723567,5.31360508 L32.7723567,5.1989554 C32.7723567,3.10010191 31.0546497,1.38264968 28.956051,1.38264968 L28.8414013,1.38264968 C26.7425478,1.38264968 25.0248408,3.10010191 25.0248408,5.1989554 L25.0248408,5.31360508 C25.0248408,6.8346242 25.9328662,8.14519744 27.2281529,8.75717196 L27.2281529,13.7202293 C25.2994904,14.0180637 23.5371974,14.8137325 22.0829299,15.9844331 L8.45643312,5.38417836 C8.54611464,5.0392102 8.6090446,4.6835414 8.60955416,4.310293 C8.61261148,1.93271338 6.68777072,0.00303184713 4.31019108,-2.5477707e-05 C1.93286624,-0.00308280255 0.0029299363,1.92175796 0.000127388535,4.29933756 C-0.0029299363,6.67666244 1.92191083,8.60634396 4.29949044,8.60940128 C5.07426752,8.6104204 5.7912102,8.390293 6.42,8.03284076 L19.8243312,18.4603567 C18.6842038,20.181121 18.0166879,22.2422675 18.0166879,24.461121 C18.0166879,26.7841784 18.7504458,28.9327134 19.9907006,30.7001019 L15.9142675,34.776535 C15.5919745,34.6799745 15.2574522,34.6122038 14.9033121,34.6122038 C12.9499363,34.6122038 11.3659873,36.1961529 11.3659873,38.1497834 C11.3659873,40.103414 12.9499363,41.6871084 14.9033121,41.6871084 C16.8571974,41.6871084 18.4408917,40.103414 18.4408917,38.1497834 C18.4408917,37.7958981 18.3733758,37.461121 18.2765605,37.1390828 L22.3089172,33.1067261 C24.1392357,34.5041784 26.4184713,35.3431592 28.8989809,35.3431592 C34.9089172,35.3431592 39.7810191,30.4710573 39.7810191,24.461121 C39.7810191,19.0203567 35.7840764,14.5255796 30.5692994,13.7199745" id="Fill-1" fill="#F3785B" fill-rule="nonzero" mask="url(#mask-2)"></path>
16
+ </g>
17
+ </g>
18
+ </svg>
inc/class-leadin.php CHANGED
@@ -117,11 +117,9 @@ class WPLeadIn {
117
  }
118
  }
119
 
120
- $leadin_icon = '<img src="' . LEADIN_PATH . '/images/leadin-icon-16x16-white.png' . '">';
121
-
122
  $args = array(
123
  'id' => 'leadin-admin-menu',
124
- 'title' => '<span class="ab-icon" ' . ( $wp_version < 3.8 && ! is_plugin_active( 'mp6/mp6.php' ) ? ' style="margin-top: 3px;"' : '' ) . '>' . $leadin_icon . '</span><span class="ab-label">HubSpot</span>', // alter the title of existing node
125
  'parent' => false, // set parent to false to make it a top level (parent) node
126
  'href' => get_bloginfo( 'wpurl' ) . '/wp-admin/admin.php?page=leadin',
127
  'meta' => array( 'title' => 'HubSpot' ),
117
  }
118
  }
119
 
 
 
120
  $args = array(
121
  'id' => 'leadin-admin-menu',
122
+ 'title' => "<span class='ab-icon'></span><span class='ab-label'>HubSpot</span>", // alter the title of existing node
123
  'parent' => false, // set parent to false to make it a top level (parent) node
124
  'href' => get_bloginfo( 'wpurl' ) . '/wp-admin/admin.php?page=leadin',
125
  'meta' => array( 'title' => 'HubSpot' ),
leadin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Builder for WordPress – Conversion Tools by HubSpot
4
  Plugin URI: http://www.hubspot.com/products/wordpress/contact-form
5
  Description: Whether you’re just getting started with HubSpot or already a HubSpot power user, Contact Form Builder for WordPress and Conversion Tools by HubSpot will let you use HubSpot tools on your WordPress website and connect the two platforms without dealing with code.
6
- Version: 7.0.2
7
  Author: HubSpot
8
  Author URI: http://www.hubspot.com
9
  License: GPL2
@@ -33,7 +33,7 @@ if ( ! defined( 'LEADIN_DB_VERSION' ) ) {
33
  }
34
 
35
  if ( ! defined( 'LEADIN_PLUGIN_VERSION' ) ) {
36
- define( 'LEADIN_PLUGIN_VERSION', '7.0.2' );
37
  }
38
 
39
  if ( ! defined( 'LEADIN_SOURCE' ) ) {
3
  Plugin Name: Contact Form Builder for WordPress – Conversion Tools by HubSpot
4
  Plugin URI: http://www.hubspot.com/products/wordpress/contact-form
5
  Description: Whether you’re just getting started with HubSpot or already a HubSpot power user, Contact Form Builder for WordPress and Conversion Tools by HubSpot will let you use HubSpot tools on your WordPress website and connect the two platforms without dealing with code.
6
+ Version: 7.0.3
7
  Author: HubSpot
8
  Author URI: http://www.hubspot.com
9
  License: GPL2
33
  }
34
 
35
  if ( ! defined( 'LEADIN_PLUGIN_VERSION' ) ) {
36
+ define( 'LEADIN_PLUGIN_VERSION', '7.0.3' );
37
  }
38
 
39
  if ( ! defined( 'LEADIN_SOURCE' ) ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: HubSpotDev, leadin
3
  Tags: form, forms, form builder, contact form, email
4
  Requires at least: 3.7
5
  Tested up to: 5.0
6
- Stable tag: 7.0.2
7
 
8
  The Contact Form Builder plugin, a part of HubSpot's Conversion Tools, allows you to create WordPress forms using <a href="https://hubspot.com/products/marketing/forms?utm_source=wordpress-plugin-listing&utm_campaign=wordpress&utm_medium=marketplaces" target="_blank">HubSpot's drag & drop Form Builder</a> in a few clicks to start capturing leads on your website.
9
 
@@ -201,8 +201,11 @@ Please <a href="https://community.hubspot.com?utm_source=wordpress-plugin-listin
201
 
202
  == Changelog ==
203
 
204
- - Current version: 7.0.2
205
- - Current version release: 2019-01-22
 
 
 
206
 
207
  = 7.0.2 (2019.01.22) =
208
  - Plugin readme update
3
  Tags: form, forms, form builder, contact form, email
4
  Requires at least: 3.7
5
  Tested up to: 5.0
6
+ Stable tag: 7.0.3
7
 
8
  The Contact Form Builder plugin, a part of HubSpot's Conversion Tools, allows you to create WordPress forms using <a href="https://hubspot.com/products/marketing/forms?utm_source=wordpress-plugin-listing&utm_campaign=wordpress&utm_medium=marketplaces" target="_blank">HubSpot's drag & drop Form Builder</a> in a few clicks to start capturing leads on your website.
9
 
201
 
202
  == Changelog ==
203
 
204
+ - Current version: 7.0.3
205
+ - Current version release: 2019-02-12
206
+
207
+ = 7.0.3 (2019.02.12) =
208
+ - Update HubSpot logos
209
 
210
  = 7.0.2 (2019.01.22) =
211
  - Plugin readme update