Ejemplo n.º 1
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.º 2
0
 public static function executeFund()
 {
     $fundStartTime = strtotime('2015-11-15');
     $daysActive = floor((time() - $fundStartTime) / (60 * 60 * 24));
     return ['page/fund', ['creditsPerDollar' => CreditApi::getCreditsPerDollar($daysActive), 'creditsPerDollarTomorrow' => CreditApi::getCreditsPerDollar($daysActive + 1)]];
 }
Ejemplo n.º 3
0
<?php

$reward = CreditApi::getCurrentTestCreditReward();
?>
<p>
  Regardless of whether you got LBRY to run or not, your feedback is immensely valuable.
  Everyone who made <em>any</em> effort to install and complete the survey below will receive <?php 
echo i18n::formatCredits($reward);
?>
*.
</p>
<div class="meta spacer1">
  *What is this worth? Who knows! But it will be the largest reward we will <strong>ever</strong> offer to early adopters.
</div>

 public static function executeHome()
 {
     return ['page/home', ['totalUSD' => CreditApi::getTotalDollarSales(), 'totalPeople' => CreditApi::getTotalPeople()]];
 }
Ejemplo n.º 5
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>