Révision dbb0c974
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/colorbox/colorbox.theme.inc | ||
---|---|---|
43 | 43 |
$image['attributes'] = $item['attributes']; |
44 | 44 |
} |
45 | 45 |
|
46 |
// Allow image attributes to be overridden. |
|
47 |
if (isset($variables['item']['override']['attributes'])) { |
|
48 |
foreach (array('width', 'height', 'alt', 'title') as $key) { |
|
49 |
if (isset($variables['item']['override']['attributes'][$key])) { |
|
50 |
$image[$key] = $variables['item']['override']['attributes'][$key]; |
|
51 |
unset($variables['item']['override']['attributes'][$key]); |
|
52 |
} |
|
53 |
} |
|
54 |
if (isset($image['attributes'])) { |
|
55 |
$image['attributes'] = $variables['item']['override']['attributes'] + $image['attributes']; |
|
56 |
} |
|
57 |
else { |
|
58 |
$image['attributes'] = $variables['item']['override']['attributes']; |
|
59 |
} |
|
60 |
} |
|
61 |
|
|
46 | 62 |
$entity_title = entity_label($entity_type, $entity); |
47 | 63 |
|
48 | 64 |
switch ($settings['colorbox_caption']) { |
Formats disponibles : Unified diff
Weekly update of contrib modules