=== OlliNewsroom ===
Contributors: ollicom
Tags: newsroom, rss, news, ai, content
Requires at least: 6.4
Requires PHP: 8.0
Stable tag: 0.10.47
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

OlliNewsroom turns RSS and Atom sources into a human-reviewed WordPress newsroom.

== Description ==
Discover source items, group likely duplicate reports, create manual or AI-assisted drafts, and publish them as normal WordPress posts. The [ollinewsroom] shortcode renders a responsive magazine-style news page.

AI is optional. Without AI, OlliNewsroom imports the title and content supplied by each RSS/Atom feed and can create drafts or publish automatically according to the source policy. When AI Processing is enabled and an OpenAI API key is configured, OlliNewsroom can rewrite stories, classify age suitability and confidence, and apply the configured AI publishing rules.

== External services ==

OlliNewsroom can optionally connect to the OpenAI API when AI Processing is enabled and an API key is configured by the site administrator. Article titles, excerpts and source material selected for AI processing are sent to OpenAI to classify or rewrite newsroom content. This service is not used when AI Processing is disabled.

OpenAI API: https://openai.com/api/
OpenAI Terms of Use: https://openai.com/policies/terms-of-use/
OpenAI Privacy Policy: https://openai.com/policies/privacy-policy/

OlliNewsroom also retrieves RSS/Atom feeds and, depending on the configured image policy, may request source article pages and images from third-party websites selected by the site administrator. Those requests are necessary to discover feed content and images.

Customer license validation connects to https://ollinewsroom.com/wp-json/olli-license/v1 over HTTPS. Activation and validation send the license key, website URL, installation identifier and, after activation, its activation token to the Ollicom license server. The plugin stores the returned activation status, expiry and website usage locally. Customer activations can be managed in My Account > My Licenses on ollinewsroom.com.

Separate private developer licensing connects to ollicom.eu only when a developer key is configured. This is not the customer purchase workflow.

== Getting Started ==

To show OlliNewsroom on your website:

1. Create or edit a WordPress page.
2. Add a Shortcode block with `[ollinewsroom]`.
3. Publish or update the page.
4. Go to OlliNewsroom > Settings, choose that page under Newsroom page, and save.

Alternatively, use Create News Page on the Story Desk dashboard.

== Installation ==

Upload this ZIP using Plugins > Add New Plugin > Upload Plugin. When updating an existing OlliNewsroom installation, choose Replace current with uploaded. The plugin directory and main plugin file remain ollinewsroom/ollinewsroom.php.

Enter your OLN license key in OlliNewsroom > License, click Save license key, then Activate license. Keys issued by the previous provider need replacement keys from Ollicom. Keep a backup before upgrading.

== Featured Newsrooms (optional external service) ==

Open OlliNewsroom > Featured Newsrooms to preview a free card. Only after you choose Publish my listing, your site sends the site and newsroom URLs, chosen display fields, optional image URL and a random installation credential to https://ollinewsroom.com/. The directory verifies site ownership and shows the card in its directory and rotating spotlight. WordPress cron sends weekly activity confirmations while enrolled. Use Remove my listing to withdraw. Listings expire from public view after 30 days without confirmation. Cards load the selected image from your site.

== Changelog ==

= 0.10.47 =
* Explain how a Featured Newsrooms listing helps readers discover participating sites.

= 0.10.46 =
* Choose, replace or remove the Featured Newsrooms image using the WordPress Media Library.

= 0.10.45 =
* Add optional built-in Featured Newsrooms enrollment, preview, weekly confirmation and withdrawal.


= 0.10.36 =
* Final Pro distribution including Classic, Magazine and News Dashboard templates.
* Includes the 0.10.35 external article link behavior.
* Updated installation and template documentation for the final release.
* Preserved the plugin directory, customer license protocol and existing newsroom functionality.

= 0.10.35 =
* Open external web links in newsroom article content in a new tab, including RSS-provided Read more links.
* Applies to existing articles at render time without rewriting stored post content.
* Preserves internal links and existing rel tokens, adding noopener and noreferrer.

= 0.10.34 =
* Fixed Dashboard headline carousel autoplay and added previous, next and pause controls.
* Pauses on hover / keyboard focus and respects reduced-motion preferences.
* Redesigned Magazine with photographic cover stories, bolder typography, vivid accent panels and asymmetric category grids.
* Preserved saved per-template colors and Classic rendering.

= 0.10.33 =
* Added Pro Magazine and News Dashboard layouts with responsive category and article styling.
* Added schematic template previews and independent saved palettes in Settings > News Template.
* Preserved Classic as default and retained Pro appearance preferences when the license is inactive.
* Kept existing filtering, advertisements, archive navigation and the customer license protocol.
* Added template installation and usage documentation.


= 0.10.32 =
* Final distribution package based on the 0.10.31 commerce integration.
* Synchronized plugin header, internal version and stable tag for WordPress upgrades.
* Updated installation, license-service disclosure and migration documentation.
* Retained the same newsroom features and customer license protocol.


= 0.10.31 =
* Replaced customer license activation with the ollinewsroom.com license API.
* Requires a migrated OLN license key; old customer provider keys are backed up and cannot activate this version.
* Retained separate private developer testing validation.
* Enforced expiry and a maximum 72-hour grace after a valid check during temporary transport failures.
* Commerce integration test build; validate on staging before release.


= 0.10.14 =
* Stable production release based on the tested 0.10.13 newsroom-page routing build.
* Added the required Newsroom page selector as the authoritative destination for All News, archive and newsroom navigation.
* Bound production licensing to Lemon Squeezy Product ID 1390291 and Variant ID 2171430.

= 0.10.13 =
* Fixed legacy/query-string category routes (`?olli_news_category=...`) so they use the same current category template, branding and color settings as normal taxonomy URLs.

= 0.10.12 =
* Fixed Pro template settings save/render consistency.
* Website color detection now applies and stores the detected palette immediately.
* Fixed custom newsroom name and Show by Ollicom rendering across newsroom templates.
* Added explicit unchecked-state handling for Show by Ollicom.


= 0.10.11 =
* Added a Pro-only “Show by Ollicom” branding toggle, enabled by default.
* Without a valid Pro license, “by Ollicom” remains visible and the toggle is locked.
* Applied the configurable newsroom text name consistently to the public News, category and article template headers.

= 0.10.10 =
* Fully greyed out and disabled the complete Pro color/layout controls when the Pro license is inactive.
* Added a Pro-only custom newsroom text name; without a valid Pro license the public branding remains OlliNewsroom. No logo upload functionality was added.
* Made Advertising a Pro-only feature: controls are greyed out without a valid license, saving is blocked server-side, and stored ads are not rendered until Pro is active again.
* Preserved stored branding, layout and advertising settings during license-state changes.

= 0.10.9 =
* Greyed out and disabled AI configuration controls when the Pro license is inactive while preserving stored AI settings.
* Greyed out and disabled Pro color/layout controls when the Pro license is inactive while preserving stored layout settings.
* Added a permanent notice that OpenAI API usage is an external paid service billed separately by OpenAI and is not included with the OlliNewsroom Pro license.

= 0.10.8 =
* Bound the Pro license validator to the OlliNewsroom Pro Lemon Squeezy test product (Product ID 1390132, Variant ID 2171169).
* Retained optional constants OLLINEWSROOM_LS_PRODUCT_ID and OLLINEWSROOM_LS_VARIANT_ID as explicit overrides for later production mapping.

= 0.10.7 =
* Added Lemon Squeezy licensing for OlliNewsroom Pro with activate, validate and deactivate actions.
* Added twice-daily cached license validation with safe handling of temporary license-server connection failures.
* Added a dedicated OlliNewsroom > License administration page.
* A valid OlliNewsroom Pro license enables AI/OpenAI, up to 50 RSS/Atom feeds, unlimited active newsroom articles, and layout/color customization.
* Without a valid Pro license, AI and layout customization are disabled, feeds are limited to 10, and active newsroom articles are limited to 200. Archived newsroom articles do not count toward the active article limit.
* Preserved existing settings, sources, categories, discoveries, articles and stored Pro configuration during license-state changes.
* Added strict Lemon Squeezy Product ID and Variant ID binding; Pro features remain disabled until the OlliNewsroom product mapping is configured.

= 0.10.6 =
* Split dashboard article management into New / Unpublished and Published tab buttons.
* Only one article list is shown at a time.
* Added single Delete action for published OlliNewsroom articles.
* Added Select all and Delete selected for published articles.
* Published deletion removes the linked OlliNewsroom post and its discovery records without affecting ordinary WordPress posts.

= 0.10.5 =
* Split dashboard into unpublished discoveries and published articles.
* Dashboard counters now reflect current workflow/post status instead of historical discovery totals.
* Published items disappear from Latest discoveries immediately after publication.


= 0.10.4 =
* Removed any practical total publication ceiling: the published counter and stored newsroom articles remain unlimited by OlliNewsroom.
* Automatic processing now handles up to 50 queued discoveries per run, then continues with remaining items on later source checks.
* Queue processing now starts with the oldest waiting discoveries so large backlogs are drained predictably.
* StoryDesk clarifies that its latest-discoveries table shows only the latest 100 rows and is not a publication limit.
* Retains the Pro limit of 50 RSS/Atom sources introduced in 0.10.3.

= 0.10.3 =
* Pro source limit increased to 50 RSS/Atom feeds.
* Added “Publish automatically without review” as a general publishing mode and per-source override.
* Direct publishing bypasses AI classification/review while retaining feed filters, duplicate handling, category and image processing.

= 0.10.2 =
* Added a StoryDesk bulk action “Publish now — no AI check” for manually publishing selected discoveries directly from their feed content.
* Existing OlliNewsroom drafts can also be published with the same bulk action without running AI re-evaluation.

= 0.10.1 =
* Removed example text/placeholders from keyword filter fields so empty filters are visually empty.
* Keyword filtering remains optional; only user-saved keywords are applied.

= 0.10.0 =
* Added drag-and-drop ordering for newsroom categories.
* Added accessible move up/down controls as an alternative to dragging.
* Category order now controls frontend navigation, source selectors and subscriber category choices.

= 0.9.9 =
* Added configurable article back button text and visibility.
* Added destination choice: OlliNewsroom News page, another WordPress page, or a custom URL.

= 0.9.8 =
* Added per-source include/exclude keyword filtering.
* Added bulk deletion of selected OlliNewsroom articles/discoveries in StoryDesk.
* Added Select all control and keyword filtering diagnostics.

= 0.9.7 =
* Simplified Advertising to image upload + destination URL.
* Added enabled/new-tab controls and Top, Between articles, Sidebar/after lead and Bottom positions.
* Added configurable article position for between-articles advertisements.


= 0.9.6 =
* Shows the Trending Now carousel on category pages using only articles from the selected category.
* Makes Trending Now continuously loop instead of stopping after the final article.
* Keeps Archive separate from the current-news Trending carousel.

= 0.9.5 =
* Replaced the static homepage Trending Now ticker with the same scrolling article-card carousel used for Latest Articles.
* Trending cards now include image, title and date with previous/next controls and automatic scrolling.
* Improved responsive Trending Now behaviour on smaller screens.

= 0.9.4 =
* Restored the stable 0.9.2 subscription form layout.
* Retained subscriber deletion in the WordPress admin.
* Retained frontend self-unsubscribe functionality.
* Improved compatibility with theme widths and responsive layouts.

= 0.8.2 =
* Fixed newsroom category archives loading without the OlliNewsroom frontend stylesheet and script.
* Category pages now use the same newsroom card, grid, navigation, colors and responsive layout as the main News page.

= 0.8.1 =
* Category navigation is now always visible on the News homepage when categories exist.
* Empty categories remain available in the newsroom navigation.
* Category navigation is rendered before empty-news messages and highlights the active category.
* Fixed frontend CSS that previously hid the category navigation.

= 0.8.0 =
* Added custom News Categories managed from OlliNewsroom > Categories.
* Sources can be assigned to a newsroom category.
* Generated newsroom articles inherit their source category.
* Added frontend category navigation with All News and category filtering.
* Added public newsroom category archive URLs under /news/category/.


= 0.7.1 =
* Release-candidate build after WordPress Plugin Check cleanup.
* Synchronized the internal plugin version constant with the plugin header and stable tag.
* Retains the validated 0.7.0 functionality and WordPress compliance fixes.

= 0.6.7 =
* WordPress Plugin Check compliance and security hardening.
* Added unslashing before sanitizing submitted settings and source data.
* Replaced direct temporary-file deletion with wp_delete_file().
* Removed direct production error_log() usage in favor of a plugin action hook.
* Added WordPress.org readme compatibility and external-service disclosure.
* Updated Tested up to and Stable tag metadata.

= 0.6.3 =
* Added Restore default colors next to Detect website colors.
* Restores all News Template color fields to the original OlliNewsroom defaults before saving.

= 0.6.2 =
* Fixed News home/shortcode color variables so detected News Template colors also apply to the OlliNewsroom main page.
* Homepage cards, trending area and empty state now follow the configured template background color.

= 0.6.1 =
* Fixed Re-evaluate with AI so selected discoveries are actually classified again, including items already linked to a draft or published post.
* AI re-evaluation now records age rating, confidence and decision on linked posts without silently overwriting article content.
* Improved bulk-result reporting for AI re-evaluation, failures, publishing, review and image refresh.
* Added Detect website colors for the News Template using exact colors exposed by WordPress Global Styles/theme.json and common active-theme color settings.
* Added a detected palette preview and explicit Apply detected colors step before settings are saved.

= 0.6.0 =
* Added per-source image policy: disabled, external/feed image, or permitted Media Library import.
* Improved RSS/Media RSS, lazy-load, srcset, relative URL, Open Graph and Twitter image discovery.
* Added WordPress Media Library sideloading with featured-image assignment and safe external fallback.
* Added image status/error tracking and upgraded Refresh images for existing discoveries/articles.
* Preserved existing feeds, settings, discoveries and article data during upgrade.
= 0.5.1 =
* AI Processing can be enabled or disabled; disabled is the default.
* OlliNewsroom remains fully usable without an API key.
* Without AI, feed-provided article content is imported with source attribution.
* Automatic publishing works without AI when allowed by the source/general publishing policy.
* With AI enabled, AI rewriting and classification are available.
* Feed content is retained more completely instead of being reduced to a short plain-text excerpt.

= 0.5.0 =
* Added the dedicated OlliNewsroom News template and customizable colors.
* OlliNewsroom Free branding remains fixed.
* OlliNewsroom Pro is limited to 50 news sources.

= 0.4.0 =
* New magazine-style responsive frontend.
* Hero story, top stories, topic navigation, news cards and compact mobile layout.
* Optional OpenAI-powered AI Draft action using the Responses API.
* AI can combine the source notes in a detected story group into a fresh reviewable draft.
* AI settings for API key, model, language and writing style.
* Improved RSS image detection from enclosures and feed content.
* Source links are appended to AI-generated drafts.
* AI never auto-publishes.

= 0.2.0 =
* Added [ollinewsroom] shortcode and Create News Page action.
* Added responsive frontend news view.

= 0.1.0 =
* Initial prototype.

= 0.9.0 =
* Added configurable News Archive; articles leave the main News page after the configured number of days but remain published and accessible in Archive.
* Added frontend Archive navigation with category filtering.
* Added optional email subscription form and Subscribers admin page (collection only; pending double opt-in workflow).
* Added Advertising admin page with top and footer newsroom ad blocks.
* Added Maintenance tools to clear discoveries or reset OlliNewsroom-generated content without deleting normal WordPress posts.

= 0.9.1 =
* Clarified News versus Archive navigation.
* Archive is now a distinct section instead of a mode mixed with category navigation.
* Added a dedicated archive heading with the configured age threshold.
* Added a separate All Categories/category filter row inside Archive.
* All News always returns directly to current newsroom content.

= 0.9.2 =
* Added frontend story deduplication using story group, original source URL and normalized title fallbacks.
* Expanded Subscribe with optional category and keyword filters.
* Added Immediately, Daily digest and Weekly digest delivery preferences.
* Subscribers admin now shows saved categories, keywords and delivery preference.
* Subscription sending remains disabled/pending until double opt-in, unsubscribe and mail delivery are implemented.

= 0.9.3 =
* Redesigned the frontend Subscribe panel with a cleaner responsive newsroom layout.
* Added self-service unsubscribe from the News page.
* Added secure administrator deletion of subscribers from OlliNewsroom > Subscribers.
* Added clearer subscription confirmation and privacy messaging.
