=== Sticky Ads Lightweight ===

Contributors: saurabhgtr
Donate link: https://www.paypal.com/paypalme/SaurabhGuttedar
Tags: adsense, ad, google adsense, advertising, banner
Requires at least: 4.0.0
Tested up to: 7.0.3
Stable tag: 3.3.0
Requires PHP: 5.3
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.txt

Display Sticky Ad in the Top/Bottom of your screen easily

== Description ==

Start earning more with Sticky Ads using our lightweight, highly configurable WordPress plugin. Sticky Ad Lightweight lets you easily input your AD Code and customize the display of your sticky ads. Once installed, simply go to Settings > Sticky Ads Lightweight and input your AD Code.

Features:

* **Global Output Control**:
Display your sticky ad automatically on every page at the top or bottom (or both) of your site. Simply enable "Display on Top" and/or "Display on Bottom" in the settings.

* **Shortcode Support**:
Display an ad only on selected posts or pages with `[sticky_ad_lightweight]`. Use `[sticky_ad_lightweight position="top"]` for a top placement. Shortcode output automatically replaces global output on that page.

* **Device Targeting**:
Easily toggle on Desktop/Mobile to render your sticky ads

* **Scheduling & Auto-Hide**:
Set a start and end time for your ad to display. Optionally, set an auto-hide delay for a smooth fade-out transition, similar to Google anchor ads.

* **Customizable Close Button**:
Choose from three close button types:

* Text: Simple text that can be customized.
* Image: Upload or enter an image URL.
* SVG: Paste your SVG code directly.
This allows you to match the close button to your site's design.

* **Background Color Adjustment**:
Control the ad container’s background color directly from the settings. The inline background style will override the default CSS, ensuring your chosen color is applied.

* **Flexible Ad Code Input**:
The plugin supports a wide range of HTML tags—including <script>, <img>, <div>, <span>—as well as shortcodes. This gives you the flexibility to integrate AdSense code or any other ad network’s script without issues.


== Installation ==

1. Upload `sticky-ads-lightweight` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to *Settings > Sticky Ads LightWeight* to configure.

== Frequently Asked Questions ==

= How do I display an ad only on selected posts or pages? =

Disable both global placement options and add `[sticky_ad_lightweight]` to the desired content. The shortcode defaults to the bottom position. Use `[sticky_ad_lightweight position="top"]` for the top position.

= What happens if I use the shortcode while a global placement is enabled? =

The shortcode takes priority on that page, and the global output is suppressed to prevent duplicate ads.

= Which timezone is used for scheduling? =

Scheduling uses the timezone configured under Settings > General in WordPress. Schedules that cross midnight, such as 22:00 to 06:00, are supported.

= Can I use an image or SVG for the close button? =

Yes. You can choose text, an image URL, or sanitized SVG markup in the plugin settings.

== Screenshots ==

1. Configure ad code, global placements, and device targeting.
2. Configure scheduling, automatic hiding, and sanitized SVG close controls.
3. Adjust appearance and review optional WordPress tools.

== Changelog ==

= 3.3.0 =
* Redesigned the settings screen with a modern, responsive interface and WARP-inspired blue styling.
* Added contextual close button fields that only show the selected control type.
* Updated WordPress compatibility and plugin metadata.
* Fixed shortcode-only rendering and duplicate global output.
* Added unique container IDs for every rendered placement.
* Added top and bottom shortcode position support.
* Sanitized custom SVG close button markup.
* Added support for schedules that cross midnight.
* Added FAQ, screenshots, and upgrade guidance.
* Added a limited recommendations section to the plugin settings page.

= 3.2.0 =
* Added support for Desktop and Mobile rendering

= 3.1.0 =
* Improved Settings UI

= 3.0.0 =
* Added New Features
* Added Display Top/Bottom control
* Added Scheduling Start and End option
* Added Auto Hide option
* Added Close button customization (Text | Image | SVG Code)
* Added Background Customization
* Added Shortcode function (Disable display toggle and use shortcode to display sticky Ad on specific post/page)

= 2.0.0 =
* Fixed Adsense loading issues
* Added new controls for individual placements
* Added toggle switch to provide more control for Top and Bottom Placements

= 1.0.0 =
* First Release

== Upgrade Notice ==

= 3.3.0 =
Introduces a redesigned settings screen and fixes shortcode rendering, duplicate ads, SVG sanitization, and overnight schedules. Also updates compatibility metadata for WordPress 7.0.3.
