Commit cf2556c4 authored by micropat's avatar micropat
Browse files

Add Mastodon and remove Twitter references

parent 21ce167c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: AddToAny
type: module
description: 'Share buttons by AddToAny, including the AddToAny universal sharing button, Facebook, Twitter, Pinterest, and over 100 more on the <a href="proxy.php?url=https%3A%2F%2Fwww.addtoany.com%2F" target="_blank">AddToAny</a> platform.'
description: 'Share buttons by AddToAny, including the AddToAny universal sharing button, Facebook, Mastodon, Pinterest, and many more on the <a href="proxy.php?url=https%3A%2F%2Fwww.addtoany.com%2F" target="_blank">AddToAny</a> platform.'
package: Other
core_version_requirement: ^9.4 || ^10.0
dependencies:
+2 −2
Original line number Diff line number Diff line
@@ -22,8 +22,8 @@ function addtoany_help($route_name, RouteMatchInterface $route_match) {
    case 'help.page.addtoany':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('<a href="proxy.php?url=https%3A%2F%2Fwww.drupal.org%2Fproject%2Faddtoany">Share Buttons by AddToAny</a> provides a nice suite of share buttons for Drupal. These include the AddToAny universal share button, Facebook, Twitter, Mastodon, Pinterest, WhatsApp and many more.') . '</p>';
      $output .= '<p>' . t('AddToAny is a universal sharing platform that can be integrated into many parts of the website with the use of a web widget. Once installed, visitors to the website can share or save an item using a variety of services, such as Facebook, Twitter, Pinterest, email, and over 100 other services.');
      $output .= '<p>' . t('<a href="proxy.php?url=https%3A%2F%2Fwww.drupal.org%2Fproject%2Faddtoany">Share Buttons by AddToAny</a> provides a nice suite of share buttons for Drupal. These include the AddToAny universal share button, Facebook, Mastodon, Pinterest, WhatsApp, LinkedIn and many more.') . '</p>';
      $output .= '<p>' . t('AddToAny is a universal sharing platform that can be integrated into many parts of the website with the use of a web widget. Once installed, visitors to the website can share or save an item using a variety of services, such as Facebook, Mastodon, Pinterest, email, and over 100 other services.');
      $output .= '<p>' . t('AddToAny icons are Scalable Vector Graphics, meaning they load fast, are mathematically precise, scalable to any size, and are stunning on High-PPI screens such as Retina and Retina HD displays.');
      $output .= '<p>' . t('AddToAny\'s lightweight code follows best practices, and is optimized to load efficiently from locations all around the world. Accessibility, cross-browser fallbacks, graceful degradation are a few AddToAny staples.');
      $output .= '<p>' . t('More documentation about AddToAny in Drupal 8 can be found in Drupal\'s <a href="proxy.php?url=https%3A%2F%2Fwww.drupal.org%2Fnode%2F2719155">Community Documentation </a>.') . '</p>';
+2 −2
Original line number Diff line number Diff line
{
    "name": "drupal/addtoany",
    "type": "drupal-module",
    "description": "Share buttons for Drupal including the AddToAny universal share button, Facebook, Twitter, Pinterest, WhatsApp and many more.",
    "description": "Share buttons for Drupal including the AddToAny universal share button, Facebook, Mastodon, Pinterest, WhatsApp and many more.",
    "keywords": ["Drupal"],
    "license": "GPL-2.0-or-later",
    "homepage": "https://www.drupal.org/project/addtoany",
+1 −1
Original line number Diff line number Diff line
buttons_size: 32
additional_html: |
  <a class="a2a_button_facebook"></a>
  <a class="a2a_button_twitter"></a>
  <a class="a2a_button_mastodon"></a>
  <a class="a2a_button_email"></a>
additional_css: ''
additional_js: ''
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ class AddToAnySettingsForm extends ConfigFormBase {
      '#type'          => 'textarea',
      '#title'         => $this->t('Service Buttons HTML code'),
      '#default_value' => $html_value,
      '#description'   => $this->t('You can add HTML code to display customized <a href="proxy.php?url=https%3A%2F%2Fwww.addtoany.com%2Fbuttons%2Fcustomize%2Fdrupal%2Fstandalone_services" target="_blank">standalone service buttons</a> next to each universal share button. For example: <br /> <code>&lt;a class=&quot;a2a_button_facebook&quot;&gt;&lt;/a&gt;<br />&lt;a class=&quot;a2a_button_twitter&quot;&gt;&lt;/a&gt;<br />&lt;a class=&quot;a2a_button_pinterest&quot;&gt;&lt;/a&gt;</code>
      '#description'   => $this->t('You can add HTML code to display customized <a href="proxy.php?url=https%3A%2F%2Fwww.addtoany.com%2Fbuttons%2Fcustomize%2Fdrupal%2Fstandalone_services" target="_blank">standalone service buttons</a> next to each universal share button. For example: <br /> <code>&lt;a class=&quot;a2a_button_facebook&quot;&gt;&lt;/a&gt;<br />&lt;a class=&quot;a2a_button_mastodon&quot;&gt;&lt;/a&gt;<br />&lt;a class=&quot;a2a_button_pinterest&quot;&gt;&lt;/a&gt;</code>
      '),
      '#attributes' => $attributes_for_code,
    ];
Loading