public static function executeHome()
 {
     return ['page/home', ['totalUSD' => CreditApi::getTotalDollarSales(), 'totalPeople' => CreditApi::getTotalPeople()]];
 }
Ejemplo n.º 2
0
<?php

$goalAmount = round(CreditApi::getTotalDollarSales() * 2, -4);
$percent = round(CreditApi::getTotalDollarSales() / $goalAmount * 100, 2);
?>
<div class="goal-wrap spacer1">
  <h4 class="text-center">
    <strong><?php 
echo __('At %amount% we\'ll release Android and iPhone applications.', ['%amount%' => I18n::formatCurrency($goalAmount)]);
?>
</strong>
    <a href="/goals" class="link-primary">See all goals</a>.
  </h4>
  <div class="goal-glass">
    <div class="goal-progress" style="width: <?php 
echo $percent;
?>
%">
    </div>
  </div>
  <div class="goal-amount"><span class="goal-number"><?php 
echo I18n::formatCurrency($goalAmount);
?>
</span></div>
  <div class="goal-stat">
    <span class="goal-number"><?php 
echo $percent;
?>
%</span>
    <span class="goal-label">funded</span>
  </div>
Ejemplo n.º 3
0
<?php

$totalUSD = CreditApi::getTotalDollarSales();
$totalPeople = CreditApi::getTotalPeople();
?>
<div class="row-fluid">
  <div class="span6">
    <h1 class="text-center"><img src="/img/lbry-white-485x160.png" alt="Fund LBRY"/></h1>
  </div>
  <div class="span6" >
    <div class="cover-simple cover-center" style="min-height: 160px">
      <h2 class="text-center sale-title">
        <span class="sale-title-emphasis"><?php 
echo $totalPeople;
?>
</span>
        <span class="sale-title-filler">people gave</span>
        <span class="sale-title-emphasis"><?php 
echo i18n::formatCurrency($totalUSD);
?>
</span>
        <span class="sale-title-filler">to</span>
        <span class="label-cycle sale-ctas">
          <span class="sale-cta"><?php 
echo implode('</span><span class="sale-cta">', [__('build a better future'), __('eliminate corporate middlemen'), __('keep art alive'), __('create a more sustainable internet'), __('protect freedom of speech'), __('reduce the cost of education')]);
?>
</span>
        </span>
      </h2>
    </div>
  </div>