Changeset 3084932
- Timestamp:
- 05/11/2024 10:32:35 AM (3 months ago)
- Location:
- shareopenly/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
shareopenly/trunk/inc/add-sharing-link.php
r3084512 r3084932 45 45 $url = home_url( add_query_arg( array(), $wp->request ) ); 46 46 47 $content .= '<div class="shareopenly">< span class="dashicons dashicons-share" style="vertical-align: middle;"></span> <a href="https://shareopenly.org/share/?url=' . $url . '&text=' . $title . '">' . $settings['text'] . '</a></div>';47 $content .= '<div class="shareopenly"><> <a href="https://shareopenly.org/share/?url=' . $url . '&text=' . $title . '">' . $settings['text'] . '</a></div>'; 48 48 } 49 49 -
shareopenly/trunk/inc/settings.php
r3084512 r3084932 54 54 function shareopenly_settings_init() { 55 55 56 add_settings_section( 'shareopenly_section', __( 'ShareOpenly', 'shareopenly' ), function () {}, 'discussion' );56 add_settings_section( 'shareopenly_section', __( 'ShareOpenly', 'shareopenly' ), , 'discussion' ); 57 57 58 58 add_settings_field( 'shareopenly_type', __( 'Sharing link location', 'shareopenly' ), 'shareopenly_type_callback', 'discussion', 'shareopenly_section', array( 'label_for' => 'shareopenly_type' ) ); … … 70 70 71 71 add_action( 'admin_init', 'shareopenly_settings_init' ); 72 73 74 75 76 77 78 79 80 81 72 82 73 83 /** -
shareopenly/trunk/inc/shared.php
r3084512 r3084932 59 59 // Add link to the settings page. 60 60 if ( current_user_can( 'manage_options' ) ) { 61 array_unshift( $actions, '<a href="options-discussion.php ">' . __( 'Settings', 'shareopenly' ) . '</a>' );61 array_unshift( $actions, '<a href="options-discussion.php">' . __( 'Settings', 'shareopenly' ) . '</a>' ); 62 62 } 63 63 } -
shareopenly/trunk/readme.txt
r3084512 r3084932 1 1 === ShareOpenly === 2 Contributors: dartiss 2 Contributors: dartiss 3 3 Donate link: https://artiss.blog/donate 4 4 Tags: share, sharing, social media, mastodon, threads … … 6 6 Tested up to: 6.5 7 7 Requires PHP: 8.0 8 Stable tag: 1.0 8 Stable tag: 1.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 21 21 This is where ShareOpenly comes in. 22 22 23 Activate this plugin and, at the bottom of every post and/or page on your site, you’ll see a “share to social media” button. If you click it, you’ll be taken to a page that shows a number of modern, social media sites (see the first screenshot). You can select one of the pre-set sites in the list, and you’ll be taken to share a post there. But if you, for example, have a Mastodon instance, or a Known site, or an indieweb site at a different domain, you can enter that domain in the box, and ShareOpenly will try and find a way to let you share the page with that site.23 Activate this plugin and, at the bottom of every post and/or page on your site, you’ll see a “share to social media” button. If you click it, you’ll be taken to a page that shows a number of modern, social media sites (see the first screenshot). You can select one of the pre-set sites in the list, and you’ll be taken to share a post there. But if you, for example, have a Mastodon instance, or a Known site, or an eb site at a different domain, you can enter that domain in the box, and ShareOpenly will try and find a way to let you share the page with that site. 24 24 25 25 * Tested up to PHP 8.2 … … 48 48 1. If it’s on a “well-known” domain — eg, facebook.com — it’ll send you to the share page there. 49 49 2. It checks to see if it can figure out if the site is on a known platform (currently Mastodon, Known, hosted WordPress, micro.blog, and a few others). If so — hooray! — it knows the share URL, and off you go. 50 3. It looks for a <link rel=“share-url”>header tag on the page. The href attribute should be set to the share URL for the site, with template variables {text} and (optionally) {url} present where the share text and URL should go. (If {url} is not present, the URL to share will be appended at the end of the text.) If it’s there — yay! — we forward there, replacing {text} and {url} as appropriate.50 3. It looks for a header tag on the page. The href attribute should be set to the share URL for the site, with template variables {text} and (optionally) {url} present where the share text and URL should go. (If {url} is not present, the URL to share will be appended at the end of the text.) If it’s there — yay! — we forward there, replacing {text} and {url} as appropriate. 51 51 52 52 Once you’ve shared to a site, the next time you visit ShareOpenly, it will be in the quick links. … … 54 54 = How can I let ShareOpenly know it can share to my social web platform? = 55 55 56 ShareOpenly knows about most major social networks, as well as decentralized platforms like Mastodon, Bluesky, and Known. However, if ShareOpenly is having trouble sharing to your platform, and if your platform supports a share intent, you can add the following meta tag to your page headers:56 ShareOpenly knows about most major social networks, as well as decentralized platforms like Mastodon, Bluesky, and Known. However, if ShareOpenly is having trouble sharing to your platform, and if your platform supports a share intent, you can add the following metatag to your page headers: 57 57 58 58 `<link rel="share-url" href="https://your-site/share/intent?text={text}">` … … 66 66 I use semantic versioning, with the first release being 1.0 67 67 68 69 70 71 72 68 73 = 1.0 = 69 74 * Initial release. … … 71 76 == Upgrade Notice == 72 77 73 = 1.0 =74 * Initial release.78 = 1.0 = 79 * -
shareopenly/trunk/shareopenly.php
r3084512 r3084932 10 10 * Plugin URI: https://wordpress.org/plugins/shareopenly/ 11 11 * Description: The official plugin for ShareOpenly, adding modern, open social media sharing links to your website. 12 * Version: 1.0 12 * Version: 1.0 13 13 * Requires at least: 4.6 14 14 * Requires PHP: 8.0
Note: See TracChangeset
for help on using the changeset viewer.