Plugin Directory

Changeset 3084932

Timestamp:
05/11/2024 10:32:35 AM (3 months ago)
Author:
dartiss
Message:

Version 1.0.1

Location:
shareopenly/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • shareopenly/trunk/inc/add-sharing-link.php

    r3084512 r3084932  
    4545        $url = home_url( add_query_arg( array(), $wp->request ) );
    4646
    47         $content .= '<div class="shareopenly"><span class="dashicons dashicons-share" style="vertical-align: middle;"></span>&nbsp;<a href="https://shareopenly.org/share/?url=' . $url . '&text=' . $title . '">' . $settings['text'] . '</a></div>';
     47        $content .= '<div class="shareopenly"><>&nbsp;<a href="https://shareopenly.org/share/?url=' . $url . '&text=' . $title . '">' . $settings['text'] . '</a></div>';
    4848    }
    4949
  • shareopenly/trunk/inc/settings.php

    r3084512 r3084932  
    5454function shareopenly_settings_init() {
    5555
    56     add_settings_section( 'shareopenly_section', __( 'ShareOpenly', 'shareopenly' ), function () {}, 'discussion' );
     56    add_settings_section( 'shareopenly_section', __( 'ShareOpenly', 'shareopenly' ), , 'discussion' );
    5757
    5858    add_settings_field( 'shareopenly_type', __( 'Sharing link location', 'shareopenly' ), 'shareopenly_type_callback', 'discussion', 'shareopenly_section', array( 'label_for' => 'shareopenly_type' ) );
     
    7070
    7171add_action( 'admin_init', 'shareopenly_settings_init' );
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
    7282
    7383/**
  • shareopenly/trunk/inc/shared.php

    r3084512 r3084932  
    5959        // Add link to the settings page.
    6060        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>' );
    6262        }
    6363    }
  • shareopenly/trunk/readme.txt

    r3084512 r3084932  
    11=== ShareOpenly ===
    2 Contributors: dartiss
     2Contributors: dartiss
    33Donate link: https://artiss.blog/donate
    44Tags: share, sharing, social media, mastodon, threads
     
    66Tested up to: 6.5
    77Requires PHP: 8.0
    8 Stable tag: 1.0
     8Stable tag: 1.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2121This is where ShareOpenly comes in.
    2222
    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.
     23Activate 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.
    2424
    2525* Tested up to PHP 8.2
     
    48481. If it’s on a “well-known” domain — eg, facebook.com — it’ll send you to the share page there.
    49492. 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.
     503. 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.
    5151
    5252Once you’ve shared to a site, the next time you visit ShareOpenly, it will be in the quick links.
     
    5454= How can I let ShareOpenly know it can share to my social web platform? =
    5555
    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:
     56ShareOpenly 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:
    5757
    5858`<link rel="share-url" href="https://your-site/share/intent?text={text}">`
     
    6666I use semantic versioning, with the first release being 1.0
    6767
     68
     69
     70
     71
     72
    6873= 1.0 =
    6974* Initial release.
     
    7176== Upgrade Notice ==
    7277
    73 = 1.0 =
    74 * Initial release.
     78= 1.0 =
     79*
  • shareopenly/trunk/shareopenly.php

    r3084512 r3084932  
    1010 * Plugin URI:        https://wordpress.org/plugins/shareopenly/
    1111 * Description:       The official plugin for ShareOpenly, adding modern, open social media sharing links to your website.
    12  * Version:           1.0
     12 * Version:           1.0
    1313 * Requires at least: 4.6
    1414 * Requires PHP:      8.0
Note: See TracChangeset for help on using the changeset viewer.