=== Plugin Name ===
Contributors: rokumetal
Tags: wordpress, plugin, counter, countup, countupjs, animated
Requires at least: 3.5
Tested up to: 4.7.2
Stable tag: 3.3
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

You can create a lot of animated numerical counters and display it into your site.

== Description ==

This plugin it's based on [Inorganik CountUp.js](https://inorganik.github.io/countUp.js/) and Countup JS Wordpress Plugin (this plugin just permit you create one countup shortcode).

With this plugin and using a shortcode, you can create a lot of animated numerical counter and display it into your site.

== Installation ==

1. Install the plugin via Wordpress Plugin Installer.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to "Settings"->"CountUP.js" menu to configure options of the plugin.

== Usage and Options ==

Using this plugin is very easy, after install go to the options page ("Settings->CountUp.js") and set the values you prefer.

If you enable "Use the end number inside the shortcode?" option you should use the shortcode like this:

[countup start="your-value" decimals="your-value" duration="your-value"]end_value[/countup]

**Note:** You can insert inside of this shortcode another shortcode that generates any number.

In case that "Use the end number inside the shortcode?" is not checked, you should use the shortcode in this way:

[countup start="your-value" end="your-value" decimals="your-value" duration="your-value"]

The shortcode accepts those arguments, as you can see previously:

- Start: The number that your counter starts. Default value: 0.
- End: The number that your counter ends. Default value: 1000.
- Decimals: How many decimals will have your counter. Default value: 0.
- Scroll: Execute the counter when you scroll to the counter. Default value: true.
- Easing: Easing the counter. Default value: false.
- Grouping: Groups the content into sections (eg. 1,000 vs 1000). Default value: false.
- Separator: You can use a separator (default is comma).
- Decimal: Symbol to use for decimal spot (default is dot).
- Prefix: Character(s) at beginning of string. Default value: none.
- Suffix: Character(s) at end of string. Default value: none.

**Example:**

If "Use the end number inside the shortcode?" is checked:

[countup start="0" decimal="." decimals="1" duration="1" prefix="hello" suffix="world"]55[/countup]

If "Use the end number inside the shortcode?" is not checked:

[countup start="0" end="55" decimal="." decimals="1" duration="1" prefix="hello" suffix="world"]

**Important:** If you don't use these options inside of the shortcode, the default values will be pull from CountUp.js Options Page.

== Screenshots ==

1. Screenshot-1: Output counters on the site.
2. Screenshot-2: Shortcode example.
3. Screenshot-3: Plugin options page.
4. Screenshot-4: CountUp.js Options inside shortcode.
5. Screenshot-5: Output counters on the site with individual prefix and suffix.

== Changelog ==

= 1.0 =
* Release

= 1.1 =
* jQuery issue was solved.

= 2.0 =
* Now you can add the options from CountUP.js Options Page inside of the shortcode. Please check Usage and Options for more information.

= 2.1 =
* All counters started their animation before to reach the target counter. Now, when you scrolled to the target counter, the counter will start their animation.

= 2.2 =
* Now you can add an option if you wanna start the counter when the page is loaded or when scroll it.

= 2.3 =
* Bug fixed where counter at the top starts counters at bottom. Now, every counter works independently.

= 3.0 =
* Bug fixed where some counters didn't start after scroll into it. And it was implemented two ways to use the shortcode.

= 3.1 =
* Bug fixed where the plugin was initializing at the same time of the other plugins, breaking them.

= 3.2 =
* Bug fixed where shortcodes inside of the shortcode were not running.

= 3.3 =
* Bug fixed where decimal input text shows a wrong value.
* "Reset the counter when view again?" option was added. With this you can reset the counter if it's out of the viewport, if you scroll to counter again it will start, again.
* Now the prefix and suffix are surrounded by its own "<span>" tag with "wp_cup_prefix" css class and "prefix-{id}" id css class, same with preffix, so you could edit it via CSS.

== Upgrade Notice ==
