Share Classicly

Plugin Description

Stable tag: 0.4
Tags: sharing, fediverse, mastodon, classicpress
Contributors: Kelson
License: GPLv2 or later

Adds a link to the ShareOpenly service at the end of your posts for easy sharing to Mastodon, Bluesky, Threads and similar open social media sites.

Description

Adds a link to the ShareOpenly service at the end of you posts so that readers can easily share them to Mastodon, Bluesky, Threads and similar open social media sites. No remote scripts or data are loaded until the visitor clicks on the link.

The plugin is built for ClassicPress, but will probably work fine on WordPress too.

Notes

ShareOpenly is a service built and run by Ben Werdmuller. I just used the link format described at Add ShareOpenly links to your site.

There is a WordPress plugin that does something similar, but it detects when it’s running on ClassicPress and deactivates itself. I thought about forking it, but decided to just write my own, since I’d already done it myself with Eleventy. I did not read any of that plugin’s code except for the function that blocks running on forks — which I’m obviously not using here! — and did not reference any of it when writing this one.

Installation

Add share-classicly.zip from the latest release using your plugin dashboard, or unzip it yourself and upload the share-classicly folder to wp-content/plugins/, or (once it’s approved) install it from the ClassicPress Plugin Directory.

Then just activate it. Nothing else special is needed.

Changelog

[0.4] – 2024-11-23

  • Change default link text and make it customizable.

[0.3] – 2024-11-14

  • More code cleanup.
  • Submit to plugin directory.

[0.2] – 2024-11-11

  • Code cleanup.
  • Use translatable text.
  • Add option for whether to show on posts, pages or both.

[0.1pre] – 2024-10-31

  • Initial prototype.

Source on Codeberg.
Mirror on GitHub.
Plugin page at ClassicPress.

(c) 2024 Kelson Vibber