=== Tecnología Geek Loterías en Vivo ===
Contributors: tecnologiageek, yasminmultiservice809
Tags: loterias, dominicana, resultados, loteria, quisqueya
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Live Dominican Republic lottery results: Leidsa, Lotería Nacional, Loto Real, La Primera, Loteka, La Suerte and LoteDom, updated automatically.

== Description ==

**Tecnología Geek Loterías en Vivo** displays today's results for the main Dominican Republic lotteries on any page of your WordPress site, with the balls, each draw's date and the official logos. Results update automatically: your page never goes blank, because the plugin keeps the last good copy and keeps showing it if the feed fails.

Just paste the `[tgloterias_en_vivo]` shortcode and you are done. The `[tgloterias_rd]` shortcode works as an alias.

* All 7 Dominican companies: Leidsa, Lotería Nacional, Loto Real, La Primera, Loteka, La Suerte and LoteDom (40+ draws), all visible and fully functional.
* Automatic updates every 30 minutes, plus in-page refresh without reloading.
* Responsive design for phones and tablets.
* No accounts or API keys: install and use.
* Reference results only: this plugin does not sell tickets and is not affiliated with any lottery company.

== External services ==

This plugin connects to **one external service only**: the public results feed of **Loterías Dominicanas** (provider site: https://loteriasdominicanas.com/), served from the domain `api.loteriasdominicanas.com`.

* **What it is used for:** downloading the catalog of companies and games and the day's results, through GET requests to `/dominicana/sites/env` and `/dominicana/sessions`. The company and game logos that are part of that data load from the same service's CDN (`cdn.kiskoo.com`); no other external resource is loaded in the frontend.
* **What data is sent:** none about you, your visitors or your site. Requests carry only the plugin's generic user agent. There is no telemetry, no user tracking and no accounts of any kind.
* **When it is queried:** when the plugin is activated and periodically via WP-Cron (every 30 minutes), only to fetch results. If the service fails, the plugin displays the last saved copy of the results.
* **Terms of Service of the provider:** https://loteriasdominicanas.com/pagina/terminos/
* **Privacy Policy of the provider:** https://loteriasdominicanas.com/pagina/politica-de-privacidad/

**En español:** Este plugin se conecta a un único servicio externo: el feed público de resultados de Loterías Dominicanas (sitio del proveedor: https://loteriasdominicanas.com/), servido desde el dominio `api.loteriasdominicanas.com`. Se usa únicamente para descargar el catálogo de compañías y juegos y los resultados del día, mediante peticiones GET a `/dominicana/sites/env` y `/dominicana/sessions`. Los logos de compañías y juegos que forman parte de esos datos se cargan desde el CDN del mismo servicio (`cdn.kiskoo.com`); no se carga ningún otro recurso externo en el frontend. No se envía ningún dato sobre ti, tus visitantes o tu sitio: la petición solo viaja con el agente de usuario genérico del plugin. No hay telemetría, ni rastreo de usuarios, ni cuentas de ningún tipo. Se consulta al activar el plugin y periódicamente con WP-Cron (cada 30 minutos), únicamente para traer resultados; si el servicio falla, el plugin muestra la última copia de resultados guardada. Términos del servicio del proveedor: https://loteriasdominicanas.com/pagina/terminos/ — Política de privacidad del proveedor: https://loteriasdominicanas.com/pagina/politica-de-privacidad/

== Installation ==

1. Upload the `tecnologia-geek-loterias-en-vivo` folder to `/wp-content/plugins/` or install the plugin from the WordPress dashboard.
2. Activate "Tecnología Geek Loterías en Vivo" in the Plugins menu.
3. Paste the `[tgloterias_en_vivo]` shortcode on the page where you want the results.

== Frequently Asked Questions ==

= How often are the results updated? =
Every 30 minutes, automatically. The block on the page also refreshes itself without reloading.

= Which lotteries are included? =
Leidsa, Lotería Nacional, Loto Real, La Primera, Loteka, La Suerte and LoteDom: all the companies of the Dominican feed, with all their draws.

= Do I need an account or an API key? =
No. The plugin works as soon as you activate it.

= What happens if the results feed fails? =
The plugin keeps the last good copy of the results and keeps displaying it; it also leaves a discreet notice in the admin for the administrator. Your page never goes blank.

= Which shortcodes can I use? =
`[tgloterias_en_vivo]` is the main shortcode; `[tgloterias_rd]` is accepted as an alias.

= Which languages are available? =
The plugin's source strings are in English and the Spanish translation is provided through translate.wordpress.org language packs, so it follows your site's language automatically.

== Screenshots ==

1. Results block with the Dominican companies and their draws of the day.
2. Draw card with date and balls.
3. Settings page with the feed status information.

== Changelog ==

= 2.1.0 =
* Renamed to Tecnología Geek Loterías en Vivo, with the new slug `tecnologia-geek-loterias-en-vivo` (also the text domain).
* Dominican Republic companies only, all fully visible and functional: the code that kept companies hidden was removed.
* Shortcodes renamed to `[tgloterias_en_vivo]` and `[tgloterias_rd]`; all internal prefixes unified under `tgloterias_`.
* Removed the bundled translation files (.po/.mo); translations are now delivered through translate.wordpress.org.
* Removed the `load_plugin_textdomain()` call (no longer needed on WordPress.org).
* Readme: documented the provider's Terms of Service and Privacy Policy links in the External services section.

= 2.0.0 =
* First public release as a product by Tecnología Geek.
* Settings page under Settings → TG Loterías en Vivo with the feed status.
* Hardened data source: persistent last-good copy, last-failure log and a discreet admin notice.
* Feed URL filterable with `tgloterias_feed_url`.

= 1.0.0 =
* Initial internal-use version: Dominican Republic results updating every 30 minutes.
