Esempio n. 1
0
   <?php else: ?>
   <span class="label label-default">Not recurring</span>
   <?php endif; ?>
 </p>
 
 <?php if($model->subscription['recurring'] == 0): ?>
 <dl>
   <dt>Remaining time</dt>
   <dd><?=Date::getRemainingTime(Date::getDateTime($model->subscription['endDate']))?></dd>
 </dl> 
 <?php endif; ?>
 
 <?php if(strcasecmp($model->paymentProfile['state'], 'ActiveProfile')===0): ?>
 <dl>
   <dt>Time remaining until renewal</dt>
   <dd><?=Date::getRemainingTime(Date::getDateTime($model->subscription['endDate']))?></dd>
 </dl> 
 <dl>
   <?php 
   $billingNextDate = Date::getDateTime($model->paymentProfile['billingNextDate']);
   $billingStartDate = Date::getDateTime($model->paymentProfile['billingStartDate']);
   ?>
   <dt>Next billing date</dt>
   <?php if($billingNextDate > $billingStartDate): ?>
   <dd><?=Tpl::moment($billingNextDate, Date::STRING_FORMAT_YEAR)?></dd>
   <?php else: ?>
   <dd><?=Tpl::moment($billingStartDate, Date::STRING_FORMAT_YEAR)?></dd>
   <?php endif; ?>
 </dl>
 <?php endif; ?>
 
Esempio n. 2
0
    echo Tpl::out($model->subscription['subscriptionSource']);
    ?>
</dd>
                <dt>Created date:</dt>
                <dd><?php 
    echo Tpl::moment(Date::getDateTime($model->subscription['createdDate']), Date::STRING_FORMAT_YEAR);
    ?>
</dd>
                <dt>End date:</dt>
                <dd><?php 
    echo Tpl::moment(Date::getDateTime($model->subscription['endDate']), Date::STRING_FORMAT_YEAR);
    ?>
</dd>
                <dt>Time remaining:</dt>
                <dd><?php 
    echo Date::getRemainingTime(Date::getDateTime($model->subscription['endDate']));
    ?>
</dd>

                <?php 
    if (!empty($model->giftee)) {
        ?>
                <dt>Gifted to:</dt>
                <dd><?php 
        echo Tpl::out($model->giftee['username']);
        ?>
</dd>
                <?php 
    }
    ?>