getAmountCollected()); ?>
printUnit(); ?>
hasTarget()) {
echo sprintf(_('sur un total de %s %s'), $myCrowdfunding->getTarget(), $myCrowdfunding->printUnit());
}
?>
hasStartedYet()) {
?>
?
getStartDate()->getTimestamp()
)
);
?>
isEvergreen() != 'forever') {
$daysLeft = $myCrowdfunding->getDaysLeft();
?>
isOver()) {
$daysPassed = abs($daysLeft) + 1;
?>
getMustDisplayButton()) {
?>
getTargetLinePoints(), _('Objectif'));
$targetGraph->setStyle('type', 'line');
$targetGraph->setStyle('borderColor', '#FF3E3D');
$targetGraph->setStyle('borderDash', [5, 5]);
$targetGraph->setStyle('radius', 0);
$targetGraph->setStyle('fill', false);
$chart->addGraph($targetGraph);
$amountDailyGraph = new Graph($chart->getAmountCollectedByDayPoints(), _('Contributions du jour'));
$amountDailyGraph->setStyle('type', 'bar');
$amountDailyGraph->setStyle('borderColor', 'rgba(0,200,100,0.7)');
$amountDailyGraph->setStyle('backgroundColor', 'rgba(96,200,120,0.7)');
$amountDailyGraph->setStyle('borderWidth', 2);
$chart->addGraph($amountDailyGraph);
$amountCumulativeGraph = new Graph($chart->getAmountCollectedByDayCumulativePoints(), _('Montant total récolté'));
$amountCumulativeGraph->setStyle('type', 'line');
$amountCumulativeGraph->setStyle('borderColor', '#0099FF');
$amountCumulativeGraph->setStyle('backgroundColor', '#80CCFF');
$amountCumulativeGraph->setStyle('lineTension', 0);
$amountCumulativeGraph->setStyle('pointRadius', 1);
$amountCumulativeGraph->setStyle('borderWidth', 2);
$amountCumulativeGraph->setStyle('steppedLine', true);
$chart->addGraph($amountCumulativeGraph);
echo $chart->getScripts($lang, '#main');
}
?>