=== Yaakov AI Affiliate ===
Contributors: yaakovtzedek
Tags: affiliate, banners, popup, courses, hebrew
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Shows promotions for Yaakov Tzedek's Hebrew AI video courses (tzedek.me) on your site, with your personal affiliate code. Simple Hebrew settings page.

== Description ==

התוסף מציג באתר שלכם פרסומות לקורסי הווידאו של יעקב צדק עם קוד השותף האישי שלכם, ויוצר את עמודי הקורסים.

* קוד שותף: כל עוד השדה ריק, לא מוצג כלום באתר.
* כמות: מעט / בינוני / הרבה / מקסימום.
* סוגים: חלון קופץ, סרגל תחתון, באנר בתוך המאמר, באנר צף בצד, קוביות קורסים (או אוטומטי לפי הכמות).
* מתג הפעלה וכיבוי כללי.
* כפתור "צור עמודי קורסים": יוצר עמוד אינדקס בכתובת /video-courses/ ועוד 14 עמודי קורסים. יוצר רק עמודים חסרים, לא מוחק ולא משנה שום דבר קיים.

Technical notes:

* The script is bundled (no external requests except the optional lecturer photo from tzedek.me), uses Shadow DOM with the `tzp-` prefix, and never runs twice on a page (guard: `data-tzp-loaded` on the html element).
* All affiliate links use rel="sponsored nofollow".
* Kill switch for one browser: add `?tzp=off` to any URL (`?tzp=on` to undo).
* Uninstalling removes the plugin settings only. Created pages are kept.

== Installation ==

1. Plugins > Add New > Upload Plugin > choose the zip > Install Now > Activate.
2. Open "Yaakov AI Affiliate" in the admin menu, enter your affiliate code, choose the amount, Save.
3. Done. The course pages are created automatically on the first save (can be turned off).

If an older WPCode snippet named "Tzedek Affiliate Promo" is still active, the two never show ads together (only one runs). Deactivate the old snippet so the settings of this plugin are the ones used.

== Changelog ==

= 1.0.0 =
* First release (based on promo.js v2.1).
