fetchJson('/user/profile/' . $creatorPubkey, 'cesiumplus'); $data = json_decode($json); include('header.php'); echo '

' . htmlspecialchars($data->_source->title) . '

'; if (isset($data->_source->avatar)) { echo '

'; } $fourMonthsAgo = (new DateTime())->sub(new DateInterval('P4M')); $lastMonth = (new DateTime())->sub(new DateInterval('P1M')); $threeMonths = new Crowdfunding($creatorPubkey, 'relative', $fourMonthsAgo->format('Y-m-') . '01', $lastMonth->format('Y-m-t')); echo '

' . round($threeMonths->getAmountCollected()/3) . ' DUG1 collectés par mois

'; echo '

' . $threeMonths->getDonorsNb() . ' donateurs

'; echo '

Faire un don

'; echo '

Et maintenant collez-la dans votre client Ğ1 (Cesium par exemple) afin de faire votre don 😉

Merci pour votre générosité ❤️

'; ?>

Que soutenez-vous ?

'. nl2br(htmlspecialchars($data->_source->description)) .'

'; echo '

Ils soutiennent ' . htmlspecialchars($data->_source->title) . '

'; $donors = $threeMonths->getDonors(); if (empty($donors)) { echo _('Pas encore de donnateur.'); } else { echo ' '; } ?> setTarget(1000); $chart = new Chart($CF); $amountCumulativeGraph = new Graph($chart->getAmountCollectedByDayCumulativePoints(), _('Montant total récolté')); $amountCumulativeGraph->setStyle('type', 'line'); $amountCumulativeGraph->setStyle('borderColor', '#662b00'); $amountCumulativeGraph->setStyle('backgroundColor', 'green'); $amountCumulativeGraph->setStyle('lineTension', 0); $amountCumulativeGraph->setStyle('pointRadius', 1); $amountCumulativeGraph->setStyle('borderWidth', 2); $amountCumulativeGraph->setStyle('steppedLine', true); $chart->addGraph($amountCumulativeGraph); $footerScripts = ''; $footerScripts .= $chart->getScripts('fr', '#chart', ROOT_URL . 'lib/crowdfunding/'); $footerScripts .= ' '; include('footer.php');