Révision f066bdb5
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/commerce_price_flexyformatter/commerce_price_flexyformatter.module | ||
---|---|---|
26 | 26 |
'field types' => array('commerce_price'), |
27 | 27 |
'settings' => array( |
28 | 28 |
'base' => array('selection' => array('base_price' => 'base_price'), 'weight' => 0, 'calc' => 'default'), |
29 |
'reference1' => array('class' => '.flexy-striked', 'weight' => -10, 'calc' => 'default'),
|
|
29 |
'reference1' => array('class' => 'flexy-striked', 'weight' => -10, 'calc' => 'default'), |
|
30 | 30 |
'reference2' => array('weight' => 10, 'calc' => 'default'), |
31 | 31 |
'raw' => array(), |
32 | 32 |
// need this to load all price components, hoping will not be changed |
... | ... | |
350 | 350 |
drupal_add_css(drupal_get_path('module', 'commerce_price_flexyformatter') . '/commerce_price_flexyformatter.css'); |
351 | 351 |
foreach ($variables as $key => $variable) { |
352 | 352 |
if (isset($variable['weight']) && is_numeric($variable['weight']) && ($key == 'base' || $variable['enabled'])) { |
353 |
$output .= '<span class=flexy-item' . ($variable['class']?' ' . $variable['class']:'') . '><span class"flexy-title">' . $variable['label'] . '</span><span class="flexy-amount">' . ($variables['raw'] == false ? commerce_currency_format($variable['amount'], $variables['currency_code']): commerce_price_flexyformatter_raw_format($variable['amount'], $variables['currency_code'])) . '</span></span>';
|
|
353 |
$output .= '<span class="flexy-item' . ($variable['class']?' ' . $variable['class']:'') . '"><span class="flexy-title">' . $variable['label'] . '</span><span class="flexy-amount">' . ($variables['raw'] == false ? commerce_currency_format($variable['amount'], $variables['currency_code']): commerce_price_flexyformatter_raw_format($variable['amount'], $variables['currency_code'])) . '</span></span>';
|
|
354 | 354 |
} |
355 | 355 |
} |
356 | 356 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules