Plugin Directory

Changeset 3217191 for shariff


Ignore:
Timestamp:
01/05/2025 01:26:59 PM (15 months ago)
Author:
3UU
Message:

added Bluesky integration (many thanks to Robert / seyfro )

Location:
shariff
Files:
2 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shariff/tags/4.6.15/admin/admin-menu.php

    r3103137 r3217191  
    313313    );
    314314   
     315    // Bluesky via.
     316    add_settings_field(
     317        'shariff3uu_text_blueskyvia',
     318        __( 'Bluesky username for the via tag:', 'shariff' ),
     319        'shariff3uu_text_blueskyvia_render',
     320        'shariff3uu_advanced',
     321        'shariff3uu_advanced_section'
     322    );
     323
    315324    // Mastodon via.
    316325    add_settings_field(
     
    693702    if ( isset( $input['twitter_via'] ) ) {
    694703        $valid['twitter_via'] = str_replace( '@', '', sanitize_text_field( $input['twitter_via'] ) );
     704    }
     705    if ( isset( $input['bluesky_via'] ) ) {
     706        $valid['bluesky_via'] = ltrim( sanitize_text_field( $input['bluesky_via'] ), "@");
    695707    }
    696708    if ( isset( $input['mastodon_via'] ) ) {
     
    841853    }
    842854    echo '<input type="text" name="shariff3uu_basic[services]" value="' . esc_html( $services ) . '" size="90" placeholder="mastodon|facebook|linkedin|info">';
    843     echo '<p><code>bitcoin|buffer|diaspora|facebook|flipboard|info|linkedin|mailto|mastodon|mewe|mix</code></p>';
    844     echo '<p><code>odnoklassniki|patreon|paypal|paypalme|pinterest|pocket|printer|reddit|rss|sms</code></p>';
    845     echo '<p><code>telegram|threema|tumblr|twitter|vk|wallabag|weibo|whatsapp|xing</code></p>';
     855    echo '<p><code>bitcoin|bluesky|buffer|diaspora|facebook|flipboard|info|linkedin|mailto|mastodon</code></p>';
     856    echo '<p><code>|mewe|mix|odnoklassniki|patreon|paypal|paypalme|pinterest|pocket|printer|reddit</code></p>';
     857    echo '<p><code>|rss|sms|telegram|threema|tumblr|twitter|vk|wallabag|weibo|whatsapp|xing</code></p>';
    846858    echo '<p>' . esc_html__( 'Use the pipe sign | (Alt Gr + &lt; or &#8997; + 7) between two or more services.', 'shariff' ) . '</p>';
    847859}
     
    13251337    }
    13261338    echo '<input type="text" name="shariff3uu_advanced[twitter_via]" value="' . esc_html( $twitter_via ) . '" size="50" placeholder="' . esc_html__( 'username', 'shariff' ) . '">';
     1339}
     1340
     1341/**
     1342 * Bluesky via attribute.
     1343 */
     1344function shariff3uu_text_blueskyvia_render() {
     1345    if ( isset( $GLOBALS['shariff3uu_advanced']['bluesky_via'] ) ) {
     1346        $bluesky_via = $GLOBALS['shariff3uu_advanced']['bluesky_via'];
     1347    } else {
     1348        $bluesky_via = '';
     1349    }
     1350    echo '<input type="text" name="shariff3uu_advanced[bluesky_via]" value="' . esc_html( $bluesky_via ) . '" size="50" placeholder="' . esc_html__( 'username', 'shariff' ) . '">';
    13271351}
    13281352
     
    17181742        echo '<div style="display:table-row">';
    17191743            echo '<div style="display:table-cell;border:1px solid;padding:10px">services</div>';
    1720             echo '<div style="display:table-cell;border:1px solid;padding:10px">bitcoin<br>buffer<br>diaspora<br>facebook<br>flipboard<br>info<br>linkedin<br>mailto<br>mastodon<br>mewe<br>mix<br>odnoklassniki<br>patreon<br>paypal<br>paypalme<br>pinterest<br>pocket<br>printer<br>reddit<br>rss<br>sms<br>telegram<br>threema<br>tumblr<br>twitter<br>vk<br>wallabag<br>weibo<br>whatsapp<br>xing</div>';
     1744            echo '<div style="display:table-cell;border:1px solid;padding:10px">bitcoin<br>blueksy<br>buffer<br>diaspora<br>facebook<br>flipboard<br>info<br>linkedin<br>mailto<br>mastodon<br>mewe<br>mix<br>odnoklassniki<br>patreon<br>paypal<br>paypalme<br>pinterest<br>pocket<br>printer<br>reddit<br>rss<br>sms<br>telegram<br>threema<br>tumblr<br>twitter<br>vk<br>wallabag<br>weibo<br>whatsapp<br>xing</div>';
    17211745            echo '<div style="display:table-cell;border:1px solid;padding:10px">mastodon|facebook|linkedin|info</div>';
    17221746            echo '<div style="display:table-cell;border:1px solid;padding:10px">[shariff services="facebook|mastodon|mailto"]</div>';
     
    18341858            echo '<div style="display:table-cell;border:1px solid;padding:10px">[shariff twitter_via="your_twittername"]</div>';
    18351859            echo '<div style="display:table-cell;border:1px solid;padding:10px">' . esc_html__( 'Sets the Twitter via tag.', 'shariff' ) . '</div>';
     1860        echo '</div>';
     1861        echo '<div style="display:table-row">';
     1862            echo '<div style="display:table-cell;border:1px solid;padding:10px">bluesky_via</div>';
     1863            echo '<div style="display:table-cell;border:1px solid;padding:10px"></div>';
     1864            echo '<div style="display:table-cell;border:1px solid;padding:10px"></div>';
     1865            echo '<div style="display:table-cell;border:1px solid;padding:10px">[shariff bluesky_via="your_blueskyhandle"]</div>';
     1866            echo '<div style="display:table-cell;border:1px solid;padding:10px">' . esc_html__( 'Sets the Bluesky via tag.', 'shariff' ) . '</div>';
    18361867        echo '</div>';
    18371868        // Mastodon_via.
  • shariff/tags/4.6.15/changelog.txt

    r3047668 r3217191  
    22
    33== Changelog ==
     4
     5= 4.6.15 =
     6- added Bluesky integration (many thanks to Robert / seyfro )
     7
     8= 4.6.14 =
     9- removed Reddit from the share counts because requests without API keys are blocked now
     10- fix to avoid unauthenticated local file inclusion. Many thanks to haidv35
     11
     12= 4.6.13 =
     13- cleanup code (please check the basic options menu. We changed some
     14internal names of variables that differ from original WP namings for
     15post/page/custom type. This should have been migrated with this update but
     16please have a look on your 'baisc options'. 
     17- fix possible XSS with the (internal) variabe 'timestamp' (thanks to Ngo Thien An for the hint)
     18
     19= 4.6.12 =
     20- French translation for some service corrected (thanks to Ensam57)
     21- additional security fix after code review
    422
    523= 4.6.11 =
  • shariff/tags/4.6.15/readme.txt

    r3103137 r3217191  
    44Requires at least: 4.9
    55Requires PHP: 7.4
    6 Tested up to: 6.5
    7 Stable tag: 4.6.14
     6Tested up to: 6.7
     7Stable tag: 4.6.15
    88License: MIT
    99License URI: http://opensource.org/licenses/mit
     
    145145
    146146== Changelog ==
     147
     148= 4.6.15 =
     149- added Bluesky integration
     150
    147151= 4.6.14 =
    148 - removed Reddit from the share counts because requests without API keys are
    149 blocked now
     152- removed Reddit from the share counts because requests without API keys are blocked now
    150153- fix to avoid unauthenticated local file inclusion. Many thanks to haidv35
    151154
  • shariff/tags/4.6.15/shariff.php

    r3103143 r3217191  
    3535function shariff3uu_update() {
    3636    // Adjust code version.
    37     $code_version = '4.6.14';
     37    $code_version = '4.6.15';
    3838
    3939    // Get basic options.
     
    6565On our website we offer you the possibility to use so called "Social Media Buttons". To protect your data, we use a solution called "Shariff". Hereby the share buttons are implemented as static images, which contain a link to the corresponding social network site. If you click on such a button, you will be redirected to the respective social network site in the same way, as normal links would do as well. Only in that moment of time the provider of the social network site will get information about you, for example your IP address. If you do not click on such a share button, no data will be transmitted. Information about the collection and usage of your date on the social network sites can be found in the corresponding terms of use of the respective provider. More information about the plugin and the Shariff solution can be found here: <a href="https://wordpress.org/plugins/shariff/">https://wordpress.org/plugins/shariff/</a>
    6666
    67 On our website we offer share buttons for the following services / companies: Diaspora, Facebook, Flattr, Flipboard, LinkedIn, Mastodon, Mix, Odnoklassniki, Patreon, PayPal, Pinterest, Pocket, Qzone, Reddit, Telegram, TencentWeibo, Threema, Tumblr, Twitter, VK, Wallabag, Weibo, WhatsApp, Xing.',
     67On our website we offer share buttons for the following services / companies: Bluesky, Diaspora, Facebook, Flattr, Flipboard, LinkedIn, Mastodon, Mix, Odnoklassniki, Patreon, PayPal, Pinterest, Pocket, Qzone, Reddit, Telegram, TencentWeibo, Threema, Tumblr, Twitter, VK, Wallabag, Weibo, WhatsApp, Xing.',
    6868            'shariff'
    6969        );
  • shariff/trunk/admin/admin-menu.php

    r3103137 r3217191  
    313313    );
    314314   
     315    // Bluesky via.
     316    add_settings_field(
     317        'shariff3uu_text_blueskyvia',
     318        __( 'Bluesky username for the via tag:', 'shariff' ),
     319        'shariff3uu_text_blueskyvia_render',
     320        'shariff3uu_advanced',
     321        'shariff3uu_advanced_section'
     322    );
     323
    315324    // Mastodon via.
    316325    add_settings_field(
     
    693702    if ( isset( $input['twitter_via'] ) ) {
    694703        $valid['twitter_via'] = str_replace( '@', '', sanitize_text_field( $input['twitter_via'] ) );
     704    }
     705    if ( isset( $input['bluesky_via'] ) ) {
     706        $valid['bluesky_via'] = ltrim( sanitize_text_field( $input['bluesky_via'] ), "@");
    695707    }
    696708    if ( isset( $input['mastodon_via'] ) ) {
     
    841853    }
    842854    echo '<input type="text" name="shariff3uu_basic[services]" value="' . esc_html( $services ) . '" size="90" placeholder="mastodon|facebook|linkedin|info">';
    843     echo '<p><code>bitcoin|buffer|diaspora|facebook|flipboard|info|linkedin|mailto|mastodon|mewe|mix</code></p>';
    844     echo '<p><code>odnoklassniki|patreon|paypal|paypalme|pinterest|pocket|printer|reddit|rss|sms</code></p>';
    845     echo '<p><code>telegram|threema|tumblr|twitter|vk|wallabag|weibo|whatsapp|xing</code></p>';
     855    echo '<p><code>bitcoin|bluesky|buffer|diaspora|facebook|flipboard|info|linkedin|mailto|mastodon</code></p>';
     856    echo '<p><code>|mewe|mix|odnoklassniki|patreon|paypal|paypalme|pinterest|pocket|printer|reddit</code></p>';
     857    echo '<p><code>|rss|sms|telegram|threema|tumblr|twitter|vk|wallabag|weibo|whatsapp|xing</code></p>';
    846858    echo '<p>' . esc_html__( 'Use the pipe sign | (Alt Gr + &lt; or &#8997; + 7) between two or more services.', 'shariff' ) . '</p>';
    847859}
     
    13251337    }
    13261338    echo '<input type="text" name="shariff3uu_advanced[twitter_via]" value="' . esc_html( $twitter_via ) . '" size="50" placeholder="' . esc_html__( 'username', 'shariff' ) . '">';
     1339}
     1340
     1341/**
     1342 * Bluesky via attribute.
     1343 */
     1344function shariff3uu_text_blueskyvia_render() {
     1345    if ( isset( $GLOBALS['shariff3uu_advanced']['bluesky_via'] ) ) {
     1346        $bluesky_via = $GLOBALS['shariff3uu_advanced']['bluesky_via'];
     1347    } else {
     1348        $bluesky_via = '';
     1349    }
     1350    echo '<input type="text" name="shariff3uu_advanced[bluesky_via]" value="' . esc_html( $bluesky_via ) . '" size="50" placeholder="' . esc_html__( 'username', 'shariff' ) . '">';
    13271351}
    13281352
     
    17181742        echo '<div style="display:table-row">';
    17191743            echo '<div style="display:table-cell;border:1px solid;padding:10px">services</div>';
    1720             echo '<div style="display:table-cell;border:1px solid;padding:10px">bitcoin<br>buffer<br>diaspora<br>facebook<br>flipboard<br>info<br>linkedin<br>mailto<br>mastodon<br>mewe<br>mix<br>odnoklassniki<br>patreon<br>paypal<br>paypalme<br>pinterest<br>pocket<br>printer<br>reddit<br>rss<br>sms<br>telegram<br>threema<br>tumblr<br>twitter<br>vk<br>wallabag<br>weibo<br>whatsapp<br>xing</div>';
     1744            echo '<div style="display:table-cell;border:1px solid;padding:10px">bitcoin<br>blueksy<br>buffer<br>diaspora<br>facebook<br>flipboard<br>info<br>linkedin<br>mailto<br>mastodon<br>mewe<br>mix<br>odnoklassniki<br>patreon<br>paypal<br>paypalme<br>pinterest<br>pocket<br>printer<br>reddit<br>rss<br>sms<br>telegram<br>threema<br>tumblr<br>twitter<br>vk<br>wallabag<br>weibo<br>whatsapp<br>xing</div>';
    17211745            echo '<div style="display:table-cell;border:1px solid;padding:10px">mastodon|facebook|linkedin|info</div>';
    17221746            echo '<div style="display:table-cell;border:1px solid;padding:10px">[shariff services="facebook|mastodon|mailto"]</div>';
     
    18341858            echo '<div style="display:table-cell;border:1px solid;padding:10px">[shariff twitter_via="your_twittername"]</div>';
    18351859            echo '<div style="display:table-cell;border:1px solid;padding:10px">' . esc_html__( 'Sets the Twitter via tag.', 'shariff' ) . '</div>';
     1860        echo '</div>';
     1861        echo '<div style="display:table-row">';
     1862            echo '<div style="display:table-cell;border:1px solid;padding:10px">bluesky_via</div>';
     1863            echo '<div style="display:table-cell;border:1px solid;padding:10px"></div>';
     1864            echo '<div style="display:table-cell;border:1px solid;padding:10px"></div>';
     1865            echo '<div style="display:table-cell;border:1px solid;padding:10px">[shariff bluesky_via="your_blueskyhandle"]</div>';
     1866            echo '<div style="display:table-cell;border:1px solid;padding:10px">' . esc_html__( 'Sets the Bluesky via tag.', 'shariff' ) . '</div>';
    18361867        echo '</div>';
    18371868        // Mastodon_via.
  • shariff/trunk/changelog.txt

    r3047668 r3217191  
    22
    33== Changelog ==
     4
     5= 4.6.15 =
     6- added Bluesky integration (many thanks to Robert / seyfro )
     7
     8= 4.6.14 =
     9- removed Reddit from the share counts because requests without API keys are blocked now
     10- fix to avoid unauthenticated local file inclusion. Many thanks to haidv35
     11
     12= 4.6.13 =
     13- cleanup code (please check the basic options menu. We changed some
     14internal names of variables that differ from original WP namings for
     15post/page/custom type. This should have been migrated with this update but
     16please have a look on your 'baisc options'. 
     17- fix possible XSS with the (internal) variabe 'timestamp' (thanks to Ngo Thien An for the hint)
     18
     19= 4.6.12 =
     20- French translation for some service corrected (thanks to Ensam57)
     21- additional security fix after code review
    422
    523= 4.6.11 =
  • shariff/trunk/readme.txt

    r3103137 r3217191  
    44Requires at least: 4.9
    55Requires PHP: 7.4
    6 Tested up to: 6.5
    7 Stable tag: 4.6.14
     6Tested up to: 6.7
     7Stable tag: 4.6.15
    88License: MIT
    99License URI: http://opensource.org/licenses/mit
     
    145145
    146146== Changelog ==
     147
     148= 4.6.15 =
     149- added Bluesky integration
     150
    147151= 4.6.14 =
    148 - removed Reddit from the share counts because requests without API keys are
    149 blocked now
     152- removed Reddit from the share counts because requests without API keys are blocked now
    150153- fix to avoid unauthenticated local file inclusion. Many thanks to haidv35
    151154
  • shariff/trunk/shariff.php

    r3103143 r3217191  
    3535function shariff3uu_update() {
    3636    // Adjust code version.
    37     $code_version = '4.6.14';
     37    $code_version = '4.6.15';
    3838
    3939    // Get basic options.
     
    6565On our website we offer you the possibility to use so called "Social Media Buttons". To protect your data, we use a solution called "Shariff". Hereby the share buttons are implemented as static images, which contain a link to the corresponding social network site. If you click on such a button, you will be redirected to the respective social network site in the same way, as normal links would do as well. Only in that moment of time the provider of the social network site will get information about you, for example your IP address. If you do not click on such a share button, no data will be transmitted. Information about the collection and usage of your date on the social network sites can be found in the corresponding terms of use of the respective provider. More information about the plugin and the Shariff solution can be found here: <a href="https://wordpress.org/plugins/shariff/">https://wordpress.org/plugins/shariff/</a>
    6666
    67 On our website we offer share buttons for the following services / companies: Diaspora, Facebook, Flattr, Flipboard, LinkedIn, Mastodon, Mix, Odnoklassniki, Patreon, PayPal, Pinterest, Pocket, Qzone, Reddit, Telegram, TencentWeibo, Threema, Tumblr, Twitter, VK, Wallabag, Weibo, WhatsApp, Xing.',
     67On our website we offer share buttons for the following services / companies: Bluesky, Diaspora, Facebook, Flattr, Flipboard, LinkedIn, Mastodon, Mix, Odnoklassniki, Patreon, PayPal, Pinterest, Pocket, Qzone, Reddit, Telegram, TencentWeibo, Threema, Tumblr, Twitter, VK, Wallabag, Weibo, WhatsApp, Xing.',
    6868            'shariff'
    6969        );
Note: See TracChangeset for help on using the changeset viewer.