Skip to content

Commit

Permalink
Markdown page complete, plus some small tweaks & fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelhulick committed Oct 17, 2013
1 parent 00167b5 commit 6da9d03
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 66 deletions.
12 changes: 9 additions & 3 deletions drip.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class WP_Drip {
var $namespace = "drip";
var $friendly_name = "Drip";
var $version = "1.0.2";
var $version = "1.0.0";
var $options_name = "drip_options";
var $options;
var $settings_path;
Expand Down Expand Up @@ -233,7 +233,7 @@ public function plugin_action_links( $links ) {
* @uses add_settings_field()
*/
public function admin_register_settings() {
register_setting( 'drip_options_group', $this->options_name, array( &$this, 'validate_settings' ) );
register_setting( $this->options_name, $this->options_name, array( &$this, 'validate_settings' ) );
add_settings_section( 'drip_code_settings', 'Tracking Code', array( &$this, 'admin_section_code_settings' ), $this->namespace );
add_settings_field( 'drip_account_id', 'Account ID', array( &$this, 'admin_option_account_id' ), $this->namespace, 'drip_code_settings' );
add_settings_field( 'drip_is_disabled', 'Visibility', array( &$this, 'admin_option_is_disabled' ), $this->namespace, 'drip_code_settings' );
Expand Down Expand Up @@ -261,6 +261,12 @@ public function validate_settings( $input ) {
}
}

if ( isset( $input['is_disabled'] ) ) {
$options['is_disabled'] = $input['is_disabled'] == "1";
} else {
$options['is_disabled'] = false;
}

return $options;
}

Expand All @@ -284,7 +290,7 @@ public function admin_option_is_disabled() {
* Output the description for the Tracking Code settings section
*/
public function admin_section_code_settings() {
echo '<p>You can find your account ID under <a href="#" target="_blank">Account &rarr; Settings</a> in your Drip account.</p>';
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>';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
*
* @package Drip
* @author Samuel Hulick <service@getdrip.com>
* @version 1.0.2
* @version 1.0.0
* @since 1.0.0
*/

// The current version of this plugin
if( !defined( 'WP_DRIP_VERSION' ) ) define( 'WP_DRIP_VERSION', '1.0.2' );
if( !defined( 'WP_DRIP_VERSION' ) ) define( 'WP_DRIP_VERSION', '1.0.0' );

// The directory the plugin resides in
if( !defined( 'WP_DRIP_DIRNAME' ) ) define( 'WP_DRIP_DIRNAME', dirname( dirname( __FILE__ ) ) );
Expand Down
83 changes: 30 additions & 53 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,90 +1,67 @@
=== SEO Keyword Suggestions by HitTail ===
Contributors: hittail
Tags: seo, search engine optimization, search engine optimisation, keyword tool, keywords, longtail, long tail, hittail
=== Email Marketing by Drip ===
Contributors: drip
Tags: email marketing, lead generation, digital marketing, email campaign, email newsletters, autoresponders
Requires at least: 3.0
Tested up to: 3.4.2
Stable tag: 1.0.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Description ==

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

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

= The HitTailing Process =

Simply [sign up for a HitTail account](http://www.hittail.com/plans.asp)
and install this plugin to get started. Once installed, we begin to analyze all
your traffic to find the most promising keyword suggestions for your website.

If you target the [keyword suggestions](http://www.hittail.com/faq/write.html)
provided by HitTail in just one article or blog post, you are almost
guaranteed to rank on the first page for those keywords. As you
continue adding content and increasing your keyword diversity, the size
and rankings of your site effectively _snowball_. That is the power of
long tail SEO.
Simply [sign up for a Drip account](https://www.getdrip.com/pricing) and install this
plugin to get started. Once installed, we place a tracking script on your site to
activate your Drip account's features.

= More Information =

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

= Need Help? =

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

== Installation ==

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

== Frequently Asked Questions ==

= How do I install the tracking code on my website? =
= How do I install the tracking script on my website? =

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

= Do I need to have a HitTail account? =
= Do I need to have a Drip account? =

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

= Who can I contact for help? =

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

== Screenshots ==

1. The HitTail settings page
2. Find your site ID in your HitTail account
1. The Drip plugin settings page
2. Find your Account ID in your Drip's Settings > Site Setup page

== Changelog ==

= 1.0.2 =
* Add banner for creating a HitTail account
* Redirect to the HitTail Settings page after activation
* Add a Settings link on the Plugins dashboard page
* Update the plugin author
* Add links to support form

= 1.0.1 =
* Add screenshots for the Wordpress.org plugin page

= 1.0.0 =
* Initial release.
Binary file modified screenshot-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions views/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<?php settings_errors(); ?>
<div id="icon-options-drip" class="icon32"><br></div>
<h2>Drip Settings
<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>
<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>
<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>
<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>
</h2>
<?php if ( ! $this->account_id() ) { ?>
<div class="drip-settings-banner drip-clearfix">
Expand All @@ -15,14 +15,12 @@
</h3>
<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>
<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>
<p class="drip-closer">[closer text tbd]</p>
<p class="drip-closer"><!-- [closer text tbd] --></p>
</div>
<?php } ?>
<form name="drip-settings-form" method="post" action="options.php">
<?php settings_fields( 'drip_options_group' ); ?>
<?php settings_fields( 'drip_options' ); ?>
<?php do_settings_sections( 'drip' ); ?>
<p class="submit">
<input type="submit" name="submit" class="button-primary" value="Save Changes">
</p>
<?php submit_button(); ?>
</form>
</div>
2 changes: 1 addition & 1 deletion views/tracking-code.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function() {
var dc = document.createElement('script');
dc.type = 'text/javascript'; dc.async = true;
dc.src = '//tag.getdrip.com/dqtbwzvdnp.js';
dc.src = '//tag.getdrip.com/<?php echo $account_id ?>.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(dc, s);
})();
Expand Down

0 comments on commit 6da9d03

Please sign in to comment.