Révision c12e7e6a
Ajouté par Assos Assos il y a plus de 10 ans
htmltest/sites/all/modules/addthis/addthis_displays/addthis_displays.addthis.inc | ||
---|---|---|
90 | 90 |
function addthis_displays_addthis_display_markup__addthis_basic_button($options = array()) { |
91 | 91 |
|
92 | 92 |
$addthis = AddThis::getInstance(); |
93 |
$settings = $options['#display']['settings']; |
|
93 | 94 |
|
94 | 95 |
$button_img = 'http://s7.addthis.com/static/btn/sm-share-en.gif'; |
95 |
if ($options['#display']['settings']['button_size'] == 'big') {
|
|
96 |
if (isset($settings['buttons_size']) && $settings['buttons_size'] == 'big') {
|
|
96 | 97 |
$button_img = 'http://s7.addthis.com/static/btn/v2/lg-share-en.gif'; |
97 | 98 |
} |
98 | 99 |
$button_img = $addthis->transformToSecureUrl($button_img); |
99 | 100 |
|
101 |
$extra_css = isset($settings['extra_css']) ? $settings['extra_css'] : ''; |
|
100 | 102 |
$element = array( |
101 | 103 |
'#theme' => 'addthis_wrapper', |
102 | 104 |
'#tag' => 'a', |
103 | 105 |
'#attributes' => array( |
104 | 106 |
'class' => array( |
105 | 107 |
'addthis_button', |
106 |
$options['#display']['settings']['extra_css'],
|
|
108 |
$extra_css,
|
|
107 | 109 |
), |
108 | 110 |
), |
109 | 111 |
); |
110 | 112 |
$element['#attributes'] += $addthis->getAddThisAttributesMarkup($options); |
111 | 113 |
|
112 |
// Create img button |
|
114 |
// Create img button.
|
|
113 | 115 |
$image = array( |
114 | 116 |
'#theme' => 'addthis_element', |
115 | 117 |
'#tag' => 'img', |
Formats disponibles : Unified diff
Weekly update of contrib modules