<?php

declare(strict_types=1);
?>
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>FECA Mailshots Fixture</title>
  <style>
    body { font-family: Georgia, "Times New Roman", serif; background: #f7f6f0; color: #222; margin: 24px auto; max-width: 960px; padding: 0 16px; }
    a { color: #0b5e8a; }
    pre { background: #f3f1e6; border: 1px solid #ddd9c8; padding: 12px; overflow: auto; }
    .card { background: #fffef9; border: 1px solid #d7d4c6; padding: 14px; margin-bottom: 12px; }
  </style>
</head>
<body>
  <h1>FECA Mailshots Fixture</h1>
  <div class="card">
    <p>This fixture harness runs plugin code without WordPress install.</p>
    <ul>
      <li><a href="mailshots_fixture.php">Mailshots Fixture UI</a></li>
      <li><a href="router.php?hook=admin_post_feca_mailshots_data_sources_api&op=list">Data Sources API (list)</a></li>
      <li><a href="router.php?hook=admin_post_feca_mailshots_mailshots_api&op=list">Mailshots API (list)</a></li>
      <li><a href="router.php?hook=admin_post_feca_mailshots_attachments_api&op=list">Attachments API (list)</a></li>
      <li><a href="router.php?hook=admin_post_feca_mailshots_pdf_assets_api&op=list">PDF Assets API (list)</a></li>
    </ul>
  </div>
  <div class="card">
    <p>Example API calls:</p>
<pre>POST /router.php?hook=admin_post_feca_mailshots_mailshots_api
op=save
Purpose=Renewal Reminder
DataSource=...existing datasource name...
Subject=Hello
Message=&lt;p&gt;Body&lt;/p&gt;
AttachmentNames=["terms.pdf"]
</pre>
  </div>
</body>
</html>
