parent
793909bafc
commit
044f511455
|
@ -5,6 +5,9 @@ class Airtime_View_Helper_TrialRemaining extends Zend_View_Helper_Abstract
|
|||
public function trialRemaining()
|
||||
{
|
||||
$ending_date = Application_Model_Preference::GetTrialEndingDate();
|
||||
if ($ending_date == '') {
|
||||
return '';
|
||||
}
|
||||
$datetime1 = new DateTime();
|
||||
$datetime2 = new DateTime($ending_date);
|
||||
$interval = $datetime1->diff($datetime2);
|
||||
|
|
|
@ -36,15 +36,15 @@
|
|||
<li><span class="name"><?php echo $this->user ?></span> | <a href="/Login/logout">Logout</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if($this->is_trial){?>
|
||||
<?php if($this->trial_remain != '' && $this->trial_remain != "Trial expired."){?>
|
||||
<div class="trial-box">
|
||||
<p>Your Trial expires in</p>
|
||||
<p>Your trial expires in</p>
|
||||
<div class="trial-box-calendar">
|
||||
<span class="trial-box-calendar-white"><?php echo $this->trial_remain?></span>
|
||||
<div class="trial-box-calendar-gray">days</div>
|
||||
</div>
|
||||
<div class="trial-box-button">
|
||||
<a title="Purchase your copy of Airtime" href="https://account.sourcefabric.com/clientarea.php" target="_blank">Buy Now</a>
|
||||
<a title="Purchase your copy of Airtime" href="https://account.sourcefabric.com/clientarea.php" target="_blank">My Account</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
|
Loading…
Reference in New Issue