|
|
|
|
|
|
|
|
new TwigFunction('get_form_newsletter', [$this, 'getFormNewsletter']), |
|
|
new TwigFunction('get_form_newsletter', [$this, 'getFormNewsletter']), |
|
|
new TwigFunction('get_merchants', [$this, 'getMerchants']), |
|
|
new TwigFunction('get_merchants', [$this, 'getMerchants']), |
|
|
new TwigFunction('get_file_manager_folder', [$this, 'getFileManagerFolder']), |
|
|
new TwigFunction('get_file_manager_folder', [$this, 'getFileManagerFolder']), |
|
|
|
|
|
new TwigFunction('lc_format_price', [$this, 'formatPrice']), |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $form->createView(); |
|
|
return $form->createView(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function formatPrice($price) |
|
|
|
|
|
|
|
|
public function formatPrice($price, $unbreakableSpace = true) |
|
|
{ |
|
|
{ |
|
|
$price = number_format($price, 2, ',', ' '); |
|
|
$price = number_format($price, 2, ',', ' '); |
|
|
$price = $price . ' €'; |
|
|
|
|
|
|
|
|
$price .= $unbreakableSpace ? ' ' : ' ' ; |
|
|
|
|
|
$price .= '€' ; |
|
|
return $price; |
|
|
return $price; |
|
|
} |
|
|
} |
|
|
|
|
|
|