Révision c12e7e6a
Ajouté par Assos Assos il y a plus de 10 ans
htmltest/sites/all/modules/addthis/classes/AddThis.php | ||
---|---|---|
286 | 286 |
|
287 | 287 |
if (!isset($loaded)) { |
288 | 288 |
$loaded = TRUE; |
289 |
$this::addWidgetJs();
|
|
289 |
$this->addWidgetJs();
|
|
290 | 290 |
|
291 | 291 |
return TRUE; |
292 | 292 |
} |
... | ... | |
354 | 354 |
return array(); |
355 | 355 |
} |
356 | 356 |
|
357 |
/** |
|
358 |
* Get the type used for the block. |
|
359 |
*/ |
|
357 | 360 |
public function getBlockDisplayType() { |
358 | 361 |
return variable_get(self::BLOCK_WIDGET_TYPE_KEY, self::WIDGET_TYPE_DISABLED); |
359 | 362 |
} |
360 | 363 |
|
364 |
/** |
|
365 |
* Get the settings used by the block display. |
|
366 |
*/ |
|
361 | 367 |
public function getBlockDisplaySettings() { |
362 |
return variable_get(self::BLOCK_WIDGET_SETTINGS_KEY, array()); |
|
368 |
$settings = variable_get(self::BLOCK_WIDGET_SETTINGS_KEY, NULL); |
|
369 |
|
|
370 |
if ($settings == NULL && $this->getBlockDisplayType() != self::WIDGET_TYPE_DISABLED) { |
|
371 |
$settings = field_info_formatter_settings($this->getBlockDisplayType()); |
|
372 |
} |
|
373 |
|
|
374 |
return $settings; |
|
363 | 375 |
} |
364 | 376 |
|
365 | 377 |
public function getProfileId() { |
Formats disponibles : Unified diff
Weekly update of contrib modules