Skip to content

Commit 6da9d03

Browse files
committed
Markdown page complete, plus some small tweaks & fixes
1 parent 00167b5 commit 6da9d03

7 files changed

Lines changed: 47 additions & 66 deletions

File tree

drip.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class WP_Drip {
2626
var $namespace = "drip";
2727
var $friendly_name = "Drip";
28-
var $version = "1.0.2";
28+
var $version = "1.0.0";
2929
var $options_name = "drip_options";
3030
var $options;
3131
var $settings_path;
@@ -233,7 +233,7 @@ public function plugin_action_links( $links ) {
233233
* @uses add_settings_field()
234234
*/
235235
public function admin_register_settings() {
236-
register_setting( 'drip_options_group', $this->options_name, array( &$this, 'validate_settings' ) );
236+
register_setting( $this->options_name, $this->options_name, array( &$this, 'validate_settings' ) );
237237
add_settings_section( 'drip_code_settings', 'Tracking Code', array( &$this, 'admin_section_code_settings' ), $this->namespace );
238238
add_settings_field( 'drip_account_id', 'Account ID', array( &$this, 'admin_option_account_id' ), $this->namespace, 'drip_code_settings' );
239239
add_settings_field( 'drip_is_disabled', 'Visibility', array( &$this, 'admin_option_is_disabled' ), $this->namespace, 'drip_code_settings' );
@@ -261,6 +261,12 @@ public function validate_settings( $input ) {
261261
}
262262
}
263263

264+
if ( isset( $input['is_disabled'] ) ) {
265+
$options['is_disabled'] = $input['is_disabled'] == "1";
266+
} else {
267+
$options['is_disabled'] = false;
268+
}
269+
264270
return $options;
265271
}
266272

@@ -284,7 +290,7 @@ public function admin_option_is_disabled() {
284290
* Output the description for the Tracking Code settings section
285291
*/
286292
public function admin_section_code_settings() {
287-
echo '<p>You can find your account ID under <a href="#" target="_blank">Account &rarr; Settings</a> in your Drip account.</p>';
293+
echo '<p>You can find your account ID under <a href="http://getdrip.com/settings/site" target="_blank">Settings &rarr; Site Setup</a> in your Drip account.</p>';
288294
}
289295

290296
/**

lib/constants.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
*
55
* @package Drip
66
* @author Samuel Hulick <service@getdrip.com>
7-
* @version 1.0.2
7+
* @version 1.0.0
88
* @since 1.0.0
99
*/
1010

1111
// The current version of this plugin
12-
if( !defined( 'WP_DRIP_VERSION' ) ) define( 'WP_DRIP_VERSION', '1.0.2' );
12+
if( !defined( 'WP_DRIP_VERSION' ) ) define( 'WP_DRIP_VERSION', '1.0.0' );
1313

1414
// The directory the plugin resides in
1515
if( !defined( 'WP_DRIP_DIRNAME' ) ) define( 'WP_DRIP_DIRNAME', dirname( dirname( __FILE__ ) ) );

readme.txt

Lines changed: 30 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,67 @@
1-
=== SEO Keyword Suggestions by HitTail ===
2-
Contributors: hittail
3-
Tags: seo, search engine optimization, search engine optimisation, keyword tool, keywords, longtail, long tail, hittail
1+
=== Email Marketing by Drip ===
2+
Contributors: drip
3+
Tags: email marketing, lead generation, digital marketing, email campaign, email newsletters, autoresponders
44
Requires at least: 3.0
55
Tested up to: 3.4.2
6-
Stable tag: 1.0.2
6+
Stable tag: 1.0.0
77
License: GPLv2 or later
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

10-
Drive targeted search visitors to your website by focusing on the most promising organic keywords in your existing traffic.
10+
Use email and years of best practices to create a double-digit jump in your conversion rate.
1111

1212
== Description ==
1313

14-
HitTail is an [SEO keyword tool](http://www.hittail.com/)
15-
that tells you, in real-time, the most promising search terms you should
16-
target based on your existing traffic. We do this using a sophisticated
17-
algorithm tuned by analyzing over 1.2 billion keywords.
14+
Drip (www.getdrip.com) is the easiest way to capture drive-by website visitors and
15+
engage with them through an email mini-course. The first step to setting up Drip is
16+
to install a snippet of JavaScript in the footer of your website, and this plugin makes
17+
that dead simple for our customers who run WordPress.
1818

19-
As a website owner, one of your biggest assets is the proprietary data
20-
contained in your web traffic, since your competition does not have access
21-
to it. HitTail analyzes your visitor stream in real-time and provides you with a
22-
simple, actionable list of SEO keyword suggestions you should be targeting
23-
to dramatically grow your organic search traffic.
19+
= The Drip Process =
2420

25-
= The HitTailing Process =
26-
27-
Simply [sign up for a HitTail account](http://www.hittail.com/plans.asp)
28-
and install this plugin to get started. Once installed, we begin to analyze all
29-
your traffic to find the most promising keyword suggestions for your website.
30-
31-
If you target the [keyword suggestions](http://www.hittail.com/faq/write.html)
32-
provided by HitTail in just one article or blog post, you are almost
33-
guaranteed to rank on the first page for those keywords. As you
34-
continue adding content and increasing your keyword diversity, the size
35-
and rankings of your site effectively _snowball_. That is the power of
36-
long tail SEO.
21+
Simply [sign up for a Drip account](https://www.getdrip.com/pricing) and install this
22+
plugin to get started. Once installed, we place a tracking script on your site to
23+
activate your Drip account's features.
3724

3825
= More Information =
3926

40-
- [Try HitTail Free for 30 Days](http://www.hittail.com/plans.asp)
41-
- [How Is HitTail Different From Analytics?](http://www.hittail.com/faq/analytics.html)
42-
- [What Should I Do With Keyword Suggestions?](http://www.hittail.com/faq/write.html)
27+
- [Try Drip free for 30 days](https://www.getdrip.com)
28+
- [How does Drip work?](https://www.getdrip.com/tour)
4329

4430
= Need Help? =
4531

46-
[Contact our friendly support staff](http://www.hittail.com/contact.asp) for assistance.
32+
[Contact our friendly support staff](https://www.getdrip.com/contact) for assistance.
4733

4834
== Installation ==
4935

50-
1. Upload the `seo-keyword-suggestions` folder to the `/wp-content/plugins/` directory
51-
2. Activate the **SEO Keyword Suggestions by HitTail** plugin through the 'Plugins' menu in WordPress
52-
3. Configure the plugin by going to the `HitTail` page that appears in your Settings menu
36+
1. Upload the `email-marketing` folder to the `/wp-content/plugins/` directory
37+
2. Activate the **Email Marketing by Drip** plugin through the 'Plugins' menu in WordPress
38+
3. Configure the plugin by going to the `Drip` page that appears in your Settings menu
5339

5440
== Frequently Asked Questions ==
5541

56-
= How do I install the tracking code on my website? =
42+
= How do I install the tracking script on my website? =
5743

58-
This plugin automatically installs the HitTail tracking code for you. All you
59-
have to do is install this plugin and enter your Site ID on the settings page.
60-
Your Site ID can be found on the [Account > Sites](http://www.hittail.com/app/sites.asp)
44+
This plugin automatically installs the Drip tracking script for you. All you
45+
have to do is install this plugin and enter your Account ID on its settings page.
46+
Your Account ID can be found on the [Settings > Site Setup](https://www.getdrip.com/settings/site)
6147
page.
6248

63-
= Do I need to have a HitTail account? =
49+
= Do I need to have a Drip account? =
6450

65-
Yes. This plugin installs the tracking code needed for HitTail to work.
66-
[Sign up here](http://www.hittail.com/plans.asp) for a free trial.
51+
Yep. This plugin installs the tracking code needed for Drip to work.
52+
[Sign up here](https://www.getdrip.com/pricing) for a free trial.
6753

6854
= Who can I contact for help? =
6955

70-
[Contact us here](http://www.hittail.com/contact.asp) for help getting set up.
56+
We're always happy to help with setting it up - just [contact us here](https://www.getdrip.com/contact)
57+
to get started!
7158

7259
== Screenshots ==
7360

74-
1. The HitTail settings page
75-
2. Find your site ID in your HitTail account
61+
1. The Drip plugin settings page
62+
2. Find your Account ID in your Drip's Settings > Site Setup page
7663

7764
== Changelog ==
7865

79-
= 1.0.2 =
80-
* Add banner for creating a HitTail account
81-
* Redirect to the HitTail Settings page after activation
82-
* Add a Settings link on the Plugins dashboard page
83-
* Update the plugin author
84-
* Add links to support form
85-
86-
= 1.0.1 =
87-
* Add screenshots for the Wordpress.org plugin page
88-
8966
= 1.0.0 =
9067
* Initial release.

screenshot-1.jpg

224 Bytes
Loading

screenshot-2.jpg

-20 KB
Loading

views/options.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<?php settings_errors(); ?>
33
<div id="icon-options-drip" class="icon32"><br></div>
44
<h2>Drip Settings
5-
<a href="http://www.getdrip.com/tour.asp?utm_source=wp-plugin&utm_medium=link&utm_campaign=dashboard-header" class="drip-visit" target="_blank">Take a Tour</a>
6-
<a href="http://www.getdrip.com/contact.asp?utm_source=wp-plugin&utm_medium=link&utm_campaign=dashboard-header" class="drip-visit" target="_blank">Support</a>
5+
<a href="http://www.getdrip.com/tour?utm_source=wp-plugin&utm_medium=link&utm_campaign=dashboard-header" class="drip-visit" target="_blank">Take a Tour</a>
6+
<a href="http://www.getdrip.com/contact?utm_source=wp-plugin&utm_medium=link&utm_campaign=dashboard-header" class="drip-visit" target="_blank">Support</a>
77
</h2>
88
<?php if ( ! $this->account_id() ) { ?>
99
<div class="drip-settings-banner drip-clearfix">
@@ -15,14 +15,12 @@
1515
</h3>
1616
<p><a href="http://www.getdrip.com/?utm_source=wp-plugin&utm_medium=link&utm_campaign=dashboard1" target="_blank">Drip</a> uses email and years of best practices to create a double-digit jump in your conversion rate.</p>
1717
<a href="http://www.getdrip.com/?utm_source=wp-plugin&utm_medium=link&utm_campaign=dashboard2" class="drip-button" target="_blank">Sign Up Here</a>
18-
<p class="drip-closer">[closer text tbd]</p>
18+
<p class="drip-closer"><!-- [closer text tbd] --></p>
1919
</div>
2020
<?php } ?>
2121
<form name="drip-settings-form" method="post" action="options.php">
22-
<?php settings_fields( 'drip_options_group' ); ?>
22+
<?php settings_fields( 'drip_options' ); ?>
2323
<?php do_settings_sections( 'drip' ); ?>
24-
<p class="submit">
25-
<input type="submit" name="submit" class="button-primary" value="Save Changes">
26-
</p>
24+
<?php submit_button(); ?>
2725
</form>
2826
</div>

views/tracking-code.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
(function() {
88
var dc = document.createElement('script');
99
dc.type = 'text/javascript'; dc.async = true;
10-
dc.src = '//tag.getdrip.com/dqtbwzvdnp.js';
10+
dc.src = '//tag.getdrip.com/<?php echo $account_id ?>.js';
1111
var s = document.getElementsByTagName('script')[0];
1212
s.parentNode.insertBefore(dc, s);
1313
})();

0 commit comments

Comments
 (0)