Projet

Général

Profil

Révision 4543c6c7

Ajouté par Assos Assos il y a plus de 10 ans

Weekly update of contrib modules

Voir les différences:

htmltest/sites/all/modules/addthis/addthis_displays/addthis_displays.addthis.inc
89 89
 */
90 90
function addthis_displays_addthis_display_markup__addthis_basic_button($options = array()) {
91 91

  
92
  $addthis = AddThis::getInstance();
93

  
92 94
  $button_img = 'http://s7.addthis.com/static/btn/sm-share-en.gif';
93 95
  if ($options['#display']['settings']['button_size'] == 'big') {
94 96
    $button_img = 'http://s7.addthis.com/static/btn/v2/lg-share-en.gif';
95 97
  }
98
  $button_img = $addthis->transformToSecureUrl($button_img);
96 99

  
97 100
  $element = array(
98 101
    '#theme' => 'addthis_wrapper',
......
104 107
      ),
105 108
    ),
106 109
  );
107
  $element['#attributes'] += AddThis::getInstance()->getAddThisAttributesMarkup($options);
110
  $element['#attributes'] += $addthis->getAddThisAttributesMarkup($options);
108 111

  
109 112
  // Create img button
110 113
  $image = array(

Formats disponibles : Unified diff