=== MkWebTech CTA Studio ===
Contributors: mkwebtech
Tags: call to action, popup, countdown timer, sticky bar, conversion
Requires at least: 5.9
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 2.2.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

All-in-one CTA builder for WordPress featuring sticky bars, popups, countdown timers, analytics, and performance-driven design tools.

== Description ==

= 🔥 MkWebTech CTA Studio helps you turn visitors into customers using high-converting, data-driven call-to-action blocks =

Design, launch, and optimize CTAs with a powerful visual builder, conversion-focused animations, and built-in analytics—no coding required. Unlike many CTA plugins, MkWebTech CTA Studio includes built-in analytics so you can track performance without external tools.

**Perfect for marketers, bloggers, and business owners who want more clicks, leads, and conversions without relying on heavy page builders.**

**🚀 Create CTAs That Get Clicks**
Choose from three flexible display types:

* **Inline** - Embed CTAs directly inside posts and pages
* **Sticky Bar** - Keep your message visible at the top or bottom
* **Popup** - Capture attention with timed and animated overlays

= 💡 Why Site Owners Love It =

* ⚡ Build CTAs faster with real-time preview
* 🎨 Match your brand with deep design controls
* 📊 Track impressions, clicks, and conversion rate
* ⏰ Built-in countdown timer with Normal and Evergreen modes
* 🎬 Boost engagement with smooth GSAP-powered animations
* 🚀 Lightweight and performance-friendly (no external dependencies)

= 🎯 Designed for Conversion =

MkWebTech CTA Studio isn’t just a builder—it’s a **conversion optimization tool.**

Create visually compelling CTAs and understand exactly how they perform with built-in tracking.

= 🧩 Key Features =

* Inline, Sticky Bar, and Popup CTAs
* Modern visual builder with live preview
* Built-in analytics (impressions, clicks, conversion rate)
* Advanced design controls (backgrounds, typography, spacing, shadows)
* Button customization with icons and gradients
* Built-in countdown timer support with Normal and Evergreen modes
* Evergreen controls: detection methods, restart options, and reset on reload
* GSAP-powered animations (fade, slide, zoom, bounce)
* Display delay and animation timing control
* Device visibility (desktop, tablet, mobile)
* Popup UX enhancements (overlay click, ESC close, scroll lock)
* Lightweight, self-hosted assets (no third-party requests)
* Translation-ready and WordPress coding standards compliant

= 💎 Upgrade to Pro (Coming Soon) =

Take your CTAs to the next level with advanced conversion tools:

* Advanced targeting and display automation
* Page-level targeting (choose exactly where CTAs appear on your site)
* Smart display rules (scroll-based triggers, exit intent, and frequency control)
* Unlimited CTAs (remove free limits)

= Usage =
1. Go to **CTAs -> Add New**.
2. Select layout type and configure content.
3. Style CTA in the Design tabs.
4. Configure behavior and visibility settings.
5. Publish and either:
   * Enable auto display for Sticky/Popup, or
   * Use shortcode for inline/manual placement:

`[mkwebtech_cta id="123"]`

== Installation ==

= Automatic Installation =

1. Go to **Plugins -> Add New** in WordPress admin.
2. Search for **MkWebTech CTA Studio**.
3. Click **Install Now** and then **Activate**.

= Manual Installation =

1. Download the plugin ZIP.
2. Upload `mkwebtech-cta-studio` to `/wp-content/plugins/`.
3. Activate from **Plugins** in wp-admin.

== Frequently Asked Questions ==

= Can I place sticky or popup CTAs using shortcode? =

Yes. Shortcode works for all CTA types. Sticky and popup CTAs are safely rendered in the footer so fixed positioning is not broken by theme content containers.

= Does the plugin send data to third-party services? =

No. CTA stats are stored in your WordPress database. Frontend assets are served locally from your site.

= Where are impressions and clicks stored? =

In the custom database table: `wp_mkwebtech_cta_stats` (prefix may vary by installation).

= What happens to data on uninstall? =

On plugin delete (uninstall), CTA posts, related meta, and stats table data are removed permanently.

== Screenshots ==

1. Popup CTA demo with countdown timer on custom background.
2. Sticky CTA demo with live preview and settings panels.
3. Content tab for heading, button, icon and link.
4. Design tabs for block, heading, button, and close controls.
5. Behaviour tab for status, delay timer, animation and animation speed controls.
6. Visibilitytab for control CTA visibility on different screens.

== Changelog ==

= 2.2.0 =
* Added timer modes: Normal and Evergreen with dedicated timer type selector.
* Added Evergreen duration controls (days, hours, minutes, seconds).
* Added Evergreen detection methods: Cookie, IP Address, and User Session.
* Added Evergreen restart controls: None, Restart Immediately, Restart at next visit, and Restart after a specific time.
* Added Restart-after duration inputs and Reset on page reload toggle.
* Improved timer runtime for smoother countdown updates and reduced drift/skips.
* Added rich content tab grouping (Heading, Button, Timer) for cleaner editing flow.

= 2.1.1 =
* Added heading visibility toggle with rich text editor support for heading/subheading content.
* Added rich text editor for timer expired message with typography and color controls.
* Expanded timer expiry actions to: None, Redirect to URL, Hide Timer, Show Message.
* Added redirect URL field and frontend redirect handling for timer expiry.

= 2.1.0 =
* Added built-in countdown timer support for CTAs (now available in this release).
* Added advanced timer controls for digits, separators, labels, and case styling.
* Improved timer builder UI with grouped settings and live preview parity.
* Removed free CTA creation cap; users can now create unlimited CTAs.

= 2.0.1 =
* Free version now limits CTA creation to 3 saved CTAs.
* Added admin upgrade notice with Pro link after the free CTA limit is reached.

= 2.0.0 =
* Major UI/UX upgrade to the CTA builder and preview workflow.
* Added CTA Stats sidebar box (Impressions, Clicks, Conversion Rate).
* Reworked design controls into horizontal tabs (Block, Heading, Button, Close).
* Added close button settings for sticky and popup layouts.
* Improved close button rendering consistency in admin and frontend.
* Added background mode selector: Solid, Gradient, Image, None.
* Added default background image asset support.
* Added and refined controls for border radius, content alignment, content mode, and spacing.
* Improved inline mode alignment behavior and frontend/admin parity.
* Added animation options: None, Fade, Slide Up, Slide Down, Zoom In, Bounce.
* Added animation timing input and default animation set to None for new CTAs.
* Switched animation engine to self-hosted GSAP and removed legacy CSS keyframe system.
* Added smooth entrance/exit motion handling for sticky and popup close interactions.
* Removed unfinished layouts (Floating Button and Sticky Tab) from admin and frontend.
* Removed non-functional visibility placeholders (Page Rules/Country Rules).
* Improved toggle switch usage in Behaviour and Visibility panels.
* Updated defaults, cleaner code paths, and overall codebase cleanup.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 2.2.0 =
Introduces built-in timer modes (Normal and Evergreen) with advanced Evergreen controls, restart logic, and smoother countdown rendering.

= 2.1.1 =
Improves heading and timer content editing with rich text support, plus new timer expiry actions including redirect and hide timer.

= 2.1.0 =
Countdown timer is now available with full design controls and live preview support.

= 2.0.1 =
Free version now allows up to 3 CTAs. Upgrade to Pro for unlimited CTA creation.

= 2.0.0 =
Major release with a redesigned builder UI, upgraded animation system, improved preview/frontend parity, and significant settings cleanup. Review CTA behavior and animation defaults after upgrading.
