Plugin Directory

Changeset 3787822


Ignore:
Timestamp:
11/06/2026 11:48:51 AM (18 hours ago)
Author:
khlumen
Message:

Mador 1.2.0

Location:
mador
Files:
6 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • mador/tags/1.2.0/inc/impostazioni.php

    r3780686 r3787822  
    175175        mador_riquadro_stato( $codice, $lingua );
    176176
     177        mador_riquadro_pubblica();
     178
    177179        echo '</div>';
    178180}
  • mador/tags/1.2.0/mador.php

    r3780686 r3787822  
    33 * Plugin Name:       Mador
    44 * Plugin URI:        https://mador.ai/plugin
    5  * Description:       Connects your WordPress site to Mador: the site verification tag, your questions and answers with FAQ structured data, the measurement badge and the certificate.
    6  * Version:           1.1.1
     5 * Description:       Connects your WordPress site to Mador: the site verification tag, your questions and answers with FAQ structured data, the measurement badge, the certificate and, with the Growth plan, the pages Mador writes for you.
     6 * Version:           1.2.0
    77 * Requires at least: 6.0
    88 * Requires PHP:      7.4
    … …  
    1717
    1818/*
    19  * What this plugin does — four things, nothing else:
     19 * What this plugin does, five things and nothing else:
    2020 *
    2121 * 1. `<meta name="mador-verifica">` in the head of every page, so Mador can
    … …  
    2525 *    credit link under them is off unless turned on in the settings);
    2626 * 3. `[mador-badge]`: the measurement badge (an `<img>` inside an `<a>`);
    27  * 4. `[mador-certificato]`: the measurement certificate (an `<iframe>`).
     27 * 4. `[mador-certificato]`: the measurement certificate (an `<iframe>`);
     28 * 5. since 1.2.0, off until the owner connects the site with a one-time
     29 *    code: publishing the pages Mador writes as WordPress pages or posts
     30 *    (`inc/pubblica.php`).
    2831 *
    29  * No secret keys, no tokens, no JavaScript, no dependencies. The only
    30  * setting that identifies anything is the report code, which is already
    31  * public (it is part of the badge URL). The plugin reads public addresses
    32  * on mador.ai and sends nothing but the request itself.
     32 * No JavaScript, no dependencies. Items 1-4 read public addresses on
     33 * mador.ai with the report code, which is already public. Item 5 is the
     34 * only one that sends anything: signed requests with the state of the
     35 * pages it wrote. Its key pair is generated on this site; the secret half
     36 * never leaves it, Mador only holds the public half, and everything Mador
     37 * sends back is checked against Mador's own signature before use.
    3338 */
    3439
    … …  
    3641
    3742/** Plugin version. Keep in sync with the header above and `readme.txt`. */
    38 define( 'MADOR_VERSIONE', '1.1.1' );
     43define( 'MADOR_VERSIONE', '1.2.0' );
    3944
    4045/** Main plugin file, for `plugin_basename()`. */
    … …  
    5661require_once __DIR__ . '/inc/certificato.php';
    5762require_once __DIR__ . '/inc/faq.php';
     63require_once __DIR__ . '/inc/protocollo.php';
     64require_once __DIR__ . '/inc/pubblica.php';
    5865
    5966if ( is_admin() ) {
    6067        require_once __DIR__ . '/inc/impostazioni.php';
     68        require_once __DIR__ . '/inc/pubblica-admin.php';
    6169}
    6270
  • mador/tags/1.2.0/readme.txt

    r3780686 r3787822  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.1
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    1515[Mador](https://mador.ai) measures how often AI assistants (ChatGPT, Gemini, Perplexity, Claude and others) name a business when a customer asks, and writes the pages that help them name it. This plugin brings that work onto the business's own WordPress site.
    1616
    17 It does four things, and nothing else:
     17It does five things, and nothing else:
    1818
    1919* **Site verification.** It adds `<meta name="mador-verifica">` to the head of every page, so Mador can confirm the site belongs to your account. Nothing to paste.
    … …  
    2121* **Badge.** `[mador-badge]` shows your latest measurement, linking to the certificate.
    2222* **Certificate.** `[mador-certificato]` embeds the full measurement certificate.
     23* **Your pages, published here (Growth plan).** The pages Mador writes for your business can be published on this site as regular pages or posts, live or as drafts. Off until you connect the site with a one-time code from your Mador account. A page you edit in WordPress is never overwritten without your say, taking a page down puts it back to draft, and nothing is ever deleted.
    2324
    24 No API key, no account password, no tracking, no JavaScript, no stylesheets, no external libraries. The only setting that identifies anything is your report code, which is already public.
     25No API key, no account password, no tracking, no JavaScript, no stylesheets, no external libraries. The only setting that identifies anything is your report code, which is already public. Publishing your pages uses a key pair created on your site: the secret half never leaves it, and every page Mador sends is checked against Mador's signature before it is saved.
    2526
    2627The plugin adds no links to your public pages on its own. The badge and the certificate appear only where you place their shortcodes. The "Measured and written with Mador" credit link under the questions and answers is off until you turn it on in **Settings → Mador**.
    … …  
    9495* **Settings page**: **Settings → Mador** shows your real badge, so the administrator's browser loads `https://mador.ai/r/{report code}/badge.svg` while that page is open, with the same details as above.
    9596* **Verification**: the meta tag is read by Mador when you press the verify button in the Mador area; the plugin itself sends nothing.
     97* **Publishing your pages** (only after you connect the site in **Settings → Mador** with a one-time code): at connection, your server sends `https://mador.ai/api/wp/collega` the code, a public key generated on your site, your site address and the plugin version. Then, once an hour and when you press "Check now", your server sends `https://mador.ai/api/wp/sincronizza` a signed request with, for each page the plugin published, its id, version, WordPress status, address and whether it was edited; the answer contains the pages to publish, update or take down. Mador may also call `/wp-json/mador/v1/campanello` on your site, with no content, to bring the next check forward. Mador also reads each published page, like a visitor, after it goes online and then once a week, to confirm it is still there. No visitor data is sent. Disconnecting stops all of this.
    9698
    9799Mador terms of service: https://mador.ai/en/termini
    … …  
    99101
    100102== Changelog ==
     103
     104= 1.2.0 =
     105* With the Growth plan, the pages Mador writes can be published on your site as pages or posts, live or as drafts. Off until you connect the site with a one-time code from your Mador account.
     106* Signed exchange with Mador: a key pair is created on your site and Mador only holds the public half; every page Mador sends is checked against Mador's signature.
     107* Pages you edit in WordPress are never overwritten without your choice in the Mador account; taking a page down puts it back to draft; uninstalling leaves every page in place.
     108* Posts published by Mador arrive with comments closed; you can open them in WordPress. Pages keep your site's setting.
     109* `<meta name="mador-pagina">` and the page's structured data in the head of the pages the plugin published.
    101110
    102111= 1.1.1 =
    … …  
    113122== Upgrade Notice ==
    114123
     124= 1.2.0 =
     125Adds publishing of your Mador pages on this site (Growth plan). Nothing changes until you connect the site in Settings → Mador.
     126
    115127= 1.1.0 =
    116128The credit link under the questions and answers is now off by default. Turn it on under Settings → Mador if you want to keep it.
  • mador/tags/1.2.0/uninstall.php

    r3780686 r3787822  
    44 *
    55 * - the `mador_opzioni` option (report code, language, credit link);
    6  * - the `mador_faq_*` transients that cache the questions and answers.
     6 * - the `mador_faq_*` transients that cache the questions and answers;
     7 * - since 1.2.0, the connection (`mador_sito`, with the site's key pair),
     8 *   the list of deleted pages still to report and the hourly event.
     9 *
     10 * The pages and posts the plugin published are NOT removed: they belong
     11 * to the site owner. Only the plugin's bookkeeping goes.
    712 *
    813 * On multisite the option and the transients live per site, and
    … …  
    2631
    2732        delete_option( 'mador_opzioni' );
     33        delete_option( 'mador_sito' );
     34        delete_option( 'mador_assenti' );
     35        wp_clear_scheduled_hook( 'mador_giro' );
    2836
    2937        // A direct query because there is no API to list transients by prefix;
  • mador/trunk/inc/impostazioni.php

    r3780686 r3787822  
    175175        mador_riquadro_stato( $codice, $lingua );
    176176
     177        mador_riquadro_pubblica();
     178
    177179        echo '</div>';
    178180}
  • mador/trunk/mador.php

    r3780686 r3787822  
    33 * Plugin Name:       Mador
    44 * Plugin URI:        https://mador.ai/plugin
    5  * Description:       Connects your WordPress site to Mador: the site verification tag, your questions and answers with FAQ structured data, the measurement badge and the certificate.
    6  * Version:           1.1.1
     5 * Description:       Connects your WordPress site to Mador: the site verification tag, your questions and answers with FAQ structured data, the measurement badge, the certificate and, with the Growth plan, the pages Mador writes for you.
     6 * Version:           1.2.0
    77 * Requires at least: 6.0
    88 * Requires PHP:      7.4
    … …  
    1717
    1818/*
    19  * What this plugin does — four things, nothing else:
     19 * What this plugin does, five things and nothing else:
    2020 *
    2121 * 1. `<meta name="mador-verifica">` in the head of every page, so Mador can
    … …  
    2525 *    credit link under them is off unless turned on in the settings);
    2626 * 3. `[mador-badge]`: the measurement badge (an `<img>` inside an `<a>`);
    27  * 4. `[mador-certificato]`: the measurement certificate (an `<iframe>`).
     27 * 4. `[mador-certificato]`: the measurement certificate (an `<iframe>`);
     28 * 5. since 1.2.0, off until the owner connects the site with a one-time
     29 *    code: publishing the pages Mador writes as WordPress pages or posts
     30 *    (`inc/pubblica.php`).
    2831 *
    29  * No secret keys, no tokens, no JavaScript, no dependencies. The only
    30  * setting that identifies anything is the report code, which is already
    31  * public (it is part of the badge URL). The plugin reads public addresses
    32  * on mador.ai and sends nothing but the request itself.
     32 * No JavaScript, no dependencies. Items 1-4 read public addresses on
     33 * mador.ai with the report code, which is already public. Item 5 is the
     34 * only one that sends anything: signed requests with the state of the
     35 * pages it wrote. Its key pair is generated on this site; the secret half
     36 * never leaves it, Mador only holds the public half, and everything Mador
     37 * sends back is checked against Mador's own signature before use.
    3338 */
    3439
    … …  
    3641
    3742/** Plugin version. Keep in sync with the header above and `readme.txt`. */
    38 define( 'MADOR_VERSIONE', '1.1.1' );
     43define( 'MADOR_VERSIONE', '1.2.0' );
    3944
    4045/** Main plugin file, for `plugin_basename()`. */
    … …  
    5661require_once __DIR__ . '/inc/certificato.php';
    5762require_once __DIR__ . '/inc/faq.php';
     63require_once __DIR__ . '/inc/protocollo.php';
     64require_once __DIR__ . '/inc/pubblica.php';
    5865
    5966if ( is_admin() ) {
    6067        require_once __DIR__ . '/inc/impostazioni.php';
     68        require_once __DIR__ . '/inc/pubblica-admin.php';
    6169}
    6270
  • mador/trunk/readme.txt

    r3780686 r3787822  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.1
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    1515[Mador](https://mador.ai) measures how often AI assistants (ChatGPT, Gemini, Perplexity, Claude and others) name a business when a customer asks, and writes the pages that help them name it. This plugin brings that work onto the business's own WordPress site.
    1616
    17 It does four things, and nothing else:
     17It does five things, and nothing else:
    1818
    1919* **Site verification.** It adds `<meta name="mador-verifica">` to the head of every page, so Mador can confirm the site belongs to your account. Nothing to paste.
    … …  
    2121* **Badge.** `[mador-badge]` shows your latest measurement, linking to the certificate.
    2222* **Certificate.** `[mador-certificato]` embeds the full measurement certificate.
     23* **Your pages, published here (Growth plan).** The pages Mador writes for your business can be published on this site as regular pages or posts, live or as drafts. Off until you connect the site with a one-time code from your Mador account. A page you edit in WordPress is never overwritten without your say, taking a page down puts it back to draft, and nothing is ever deleted.
    2324
    24 No API key, no account password, no tracking, no JavaScript, no stylesheets, no external libraries. The only setting that identifies anything is your report code, which is already public.
     25No API key, no account password, no tracking, no JavaScript, no stylesheets, no external libraries. The only setting that identifies anything is your report code, which is already public. Publishing your pages uses a key pair created on your site: the secret half never leaves it, and every page Mador sends is checked against Mador's signature before it is saved.
    2526
    2627The plugin adds no links to your public pages on its own. The badge and the certificate appear only where you place their shortcodes. The "Measured and written with Mador" credit link under the questions and answers is off until you turn it on in **Settings → Mador**.
    … …  
    9495* **Settings page**: **Settings → Mador** shows your real badge, so the administrator's browser loads `https://mador.ai/r/{report code}/badge.svg` while that page is open, with the same details as above.
    9596* **Verification**: the meta tag is read by Mador when you press the verify button in the Mador area; the plugin itself sends nothing.
     97* **Publishing your pages** (only after you connect the site in **Settings → Mador** with a one-time code): at connection, your server sends `https://mador.ai/api/wp/collega` the code, a public key generated on your site, your site address and the plugin version. Then, once an hour and when you press "Check now", your server sends `https://mador.ai/api/wp/sincronizza` a signed request with, for each page the plugin published, its id, version, WordPress status, address and whether it was edited; the answer contains the pages to publish, update or take down. Mador may also call `/wp-json/mador/v1/campanello` on your site, with no content, to bring the next check forward. Mador also reads each published page, like a visitor, after it goes online and then once a week, to confirm it is still there. No visitor data is sent. Disconnecting stops all of this.
    9698
    9799Mador terms of service: https://mador.ai/en/termini
    … …  
    99101
    100102== Changelog ==
     103
     104= 1.2.0 =
     105* With the Growth plan, the pages Mador writes can be published on your site as pages or posts, live or as drafts. Off until you connect the site with a one-time code from your Mador account.
     106* Signed exchange with Mador: a key pair is created on your site and Mador only holds the public half; every page Mador sends is checked against Mador's signature.
     107* Pages you edit in WordPress are never overwritten without your choice in the Mador account; taking a page down puts it back to draft; uninstalling leaves every page in place.
     108* Posts published by Mador arrive with comments closed; you can open them in WordPress. Pages keep your site's setting.
     109* `<meta name="mador-pagina">` and the page's structured data in the head of the pages the plugin published.
    101110
    102111= 1.1.1 =
    … …  
    113122== Upgrade Notice ==
    114123
     124= 1.2.0 =
     125Adds publishing of your Mador pages on this site (Growth plan). Nothing changes until you connect the site in Settings → Mador.
     126
    115127= 1.1.0 =
    116128The credit link under the questions and answers is now off by default. Turn it on under Settings → Mador if you want to keep it.
  • mador/trunk/uninstall.php

    r3780686 r3787822  
    44 *
    55 * - the `mador_opzioni` option (report code, language, credit link);
    6  * - the `mador_faq_*` transients that cache the questions and answers.
     6 * - the `mador_faq_*` transients that cache the questions and answers;
     7 * - since 1.2.0, the connection (`mador_sito`, with the site's key pair),
     8 *   the list of deleted pages still to report and the hourly event.
     9 *
     10 * The pages and posts the plugin published are NOT removed: they belong
     11 * to the site owner. Only the plugin's bookkeeping goes.
    712 *
    813 * On multisite the option and the transients live per site, and
    … …  
    2631
    2732        delete_option( 'mador_opzioni' );
     33        delete_option( 'mador_sito' );
     34        delete_option( 'mador_assenti' );
     35        wp_clear_scheduled_hook( 'mador_giro' );
    2836
    2937        // A direct query because there is no API to list transients by prefix;
Note: See TracChangeset for help on using the changeset viewer.