=== TupaHost Mobile Pages ===
Contributors: tupahost
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.1.24
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generates dedicated AMP pages for WordPress posts, featuring structured support for Google Analytics 4, Google AdSense, Taboola, and sticky ads.

== Description ==
TupaHost Mobile Pages generates lightweight, valid AMP versions of your WordPress posts.
It provides a clean mobile template and structured settings for ads and analytics, without relying on the official AMP plugin.

Features include:
- Dedicated route at /amp/
- Support for Google Analytics 4 through structured AMP analytics settings
- Support for Google AdSense using structured publisher and slot fields
- Support for sticky ads
- Support for Taboola using structured publisher, mode and placement fields
- AMP-safe content sanitization
- Dedicated mobile template for posts

This plugin does not provide arbitrary custom JavaScript, PHP, HTML or CSS insertion fields.

== External services ==

This plugin relies on external services to function correctly in compliance with the AMP framework.

1. **AMP Project CDN (Google)**:
* **What it is used for**: Loads the runtime (v0.js) and script components (ads, analytics, video) required for the page to be a valid AMP page.
* **Data sent**: The visitor's browser makes direct requests to the cdn.ampproject.org domain, sending standard HTTP request data such as IP address and User-Agent.
* **Terms of Service**: [Google Terms of Service](https://policies.google.com/terms)
* **Privacy Policy**: [Google Privacy Policy](https://policies.google.com/privacy)

2. **Google Analytics (optional)**:
* **What it is used for**: If enabled, it sends pageview tracking data.
* **Data sent**: Tracking IDs and visitor interaction events.
* **Terms of Service**: [Analytics Terms](https://marketingplatform.google.com/about/analytics/terms/us/)
* **Privacy Policy**: [Google Privacy Policy](https://policies.google.com/privacy)

3. **Google AdSense (optional)**:
* **What it is used for**: Displays ads in AMP format.
* **Data sent**: Ad requests including page and visitor context data.
* **Terms of Service**: [AdSense Terms](https://www.google.com/adsense/new/localized-terms)
* **Privacy Policy**: [Google Privacy Policy](https://policies.google.com/privacy)

4. **Taboola (optional)**:
* **What it is used for**: Displays content recommendation widgets.
* **Data sent**: Publisher identifiers and article context data.
* **Terms of Service**: [Taboola Terms](https://www.taboola.com/policies/terms-of-use)
* **Privacy Policy**: [Taboola Privacy Policy](https://www.taboola.com/policies/privacy-policy)

== Installation ==
1. Upload the plugin files to the /wp-content/plugins/tupahost-mobile-pages directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the Plugins screen in WordPress.
3. Go to Settings > TupaHost Mobile Pages to configure the options.

== Frequently Asked Questions ==
= Does it require another AMP plugin? =
No. This plugin uses its own rendering flow.

= Can I add custom scripts or arbitrary tags? =
No. To comply with WordPress.org guidelines, the plugin only provides structured settings for supported features.

== Changelog ==
= 1.1.24 =
- Corrige erro onde os scripts principais do AMP não eram impressos no front-end.
- Remove query strings dos arquivos js para evitar problemas de validação no AMP.

= 1.1.23 =
- Fixes an issue where settings (colors, logo, adsense) were not saving correctly.
- Forces async attribute on AMP scripts to resolve slow loading issues.

= 1.1.22 =
- Fixes WPCS escaping warnings and missing resource versions.
- Improves documentation language.
- Migrates script outputs to wp_enqueue standard.

= 1.1.21 =
- Renamed plugin for WordPress.org review.
- Removed arbitrary CSS/HTML/script insertion fields.
- Added external services disclosures.
- Improved settings registration and JSON encoding.

== Upgrade Notice ==
= 1.1.24 =
Atualização crucial para funcionamento correto do front-end AMP e exibição de anúncios.