echo Tpl::out($ban['banningusername']); ?> with reason: <?php echo Tpl::out($ban['reason']); ?> </td> <td><?php echo Tpl::moment(Date::getDateTime($ban['starttimestamp']), Date::STRING_FORMAT); ?> </td> <td> <?php if (!$ban['endtimestamp']) { echo "Permanent"; } else { echo Tpl::moment(Date::getDateTime($ban['endtimestamp']), Date::STRING_FORMAT); } ?> </td> <td><a class="btn btn-danger btn-xs" href="/admin/user/<?php echo $ban['targetuserid']; ?> /ban/remove?follow=<?php echo rawurlencode($_SERVER['REQUEST_URI']); ?> ">Remove</a> </tr> <?php } ?> </tbody>
<div class="content"> <?php foreach ($model->gifts as $gift): ?> <div class="content-dark clearfix"> <div class="ds-block"> <div> <?php if($gift['recurring'] == 1): ?> <a class="btn btn-danger pull-right cancel-gift" href="/subscription/<?= $gift['subscriptionId'] ?>/cancel">Cancel</a> <?php endif; ?> <h3><?= Tpl::out( $gift['type']['tierLabel'] ) ?> <small>Gifted to <span class="label label-primary"><?= $gift['username'] ?></span></small></h3> <p> <span class="sub-amount">$<?=$gift['type']['amount']?></span> <span>(<?=$gift['type']['billingFrequency']?> <?=strtolower($gift['type']['billingPeriod'])?><?php if($gift['recurring'] == 1): ?> recurring<?php endif; ?>)</span> <small>started on <?=Tpl::moment(Date::getDateTime($gift['createdDate']), Date::FORMAT)?></small> </p> </div> </div> </div> <?php endforeach; ?> </div> </section> <?php endif; ?> <section class="container collapsible"> <h3><span class="fa fa-fw fa-chevron-right expander"></span> Account</h3> <div class="content content-dark clearfix">
echo $article['title']; ?> </a> </div> <div> <?php foreach ($article['categories'] as $categories) { ?> <span><small>Posted in</small> <?php echo Tpl::out($categories['title']); ?> </span> <?php } ?> </div> <?php echo Tpl::moment(Date::getDateTime($article['date']), Date::FORMAT); ?> </div> </div> <?php } ?> </div> </div> </div> </section> <?php }
foreach ($model->usersByIp as $user) { ?> <tr> <td><a href="/admin/user/<?php echo $user['userId']; ?> /edit"><?php echo Tpl::out($user['username']); ?> </a></td> <td><?php echo Tpl::out($user['email']); ?> </td> <td><?php echo Tpl::moment(Date::getDateTime($user['createdDate']), Date::STRING_FORMAT_YEAR); ?> </td> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <div class="ds-block"> <p>No users with the IP "<?php echo Tpl::out($model->searchIp); ?>
?> </dd> <dt>Source:</dt> <dd><?php 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']); ?>
function buildSubscribersTier(array $tier = null, $num) { ?> <?php if (!empty($tier)) { ?> <section class="container"> <h3>T<?php echo $num; ?> Subscribers</h3> <div class="content content-dark clearfix"> <table class="grid"> <thead> <tr> <td style="width: 20px;"></td> <td style="width: 200px;">User</td> <td style="width: 100px;">Recurring</td> <td style="width: 80px;">Created on</td> <td>Ends on</td> </tr> </thead> <tbody> <?php $i = 1; ?> <?php foreach ($tier as $sub) { ?> <tr> <td><?php echo $i; ?> </td> <td> <a href="/admin/user/<?php echo $sub['userId']; ?> /edit"><?php echo Tpl::out($sub['username']); ?> </a> <?php if (!empty($sub['gifter'])) { ?> (<a title="Gifted by" href="/admin/user/<?php echo $sub['gifter']; ?> /edit"><span class="fa fa-gift" title="Gift"></span> <?php echo Tpl::out($sub['gifterUsername']); ?> </a>) <?php } ?> </td> <td><?php echo $sub['recurring'] == 1 ? 'Yes' : 'No'; ?> </td> <td><?php echo Tpl::moment(Date::getDateTime($sub['createdDate']), Date::STRING_FORMAT); ?> </td> <td><?php echo Tpl::moment(Date::getDateTime($sub['endDate']), Date::STRING_FORMAT); ?> </td> </tr> <?php $i++; } ?> </tbody> </table> </div> </section> <?php } ?> <?php }
echo $gift['type']['amount']; ?> </span> <span>(<?php echo $gift['type']['billingFrequency']; ?> <?php echo strtolower($gift['type']['billingPeriod']); if ($gift['recurring'] == 1) { ?> recurring<?php } ?> )</span> <small>started on <?php echo Tpl::moment(Date::getDateTime($gift['createdDate']), Date::FORMAT); ?> </small> </p> </div> </div> </div> <?php } ?> </div> </section> <?php }
?> /delete" class="btn btn-danger btn-xs btn-post">Delete</a></td> <td><?php echo $auth['authProvider']; ?> </td> <td><?php echo !empty($auth['authDetail']) ? Tpl::out($auth['authDetail']) : Tpl::out($auth['authId']); ?> </td> <td><?php echo Tpl::moment(Date::getDateTime($auth['createdDate']), Date::STRING_FORMAT_YEAR); ?> </td> <td><?php echo Tpl::moment(Date::getDateTime($auth['modifiedDate']), Date::STRING_FORMAT_YEAR); ?> </td> </tr> <?php } ?> </tbody> </table> </div> </section> </form> <?php } ?>
foreach ($model->payments as $payment) { ?> <tr> <td><?php echo Tpl::out($payment['paymentId']); ?> </td> <td><?php echo Tpl::out($payment['amount']); ?> <?php echo Tpl::out($payment['currency']); ?> </td> <td><?php echo Tpl::moment(Date::getDateTime($payment['paymentDate']), Date::STRING_FORMAT_YEAR); ?> </td> <td><?php echo Tpl::out($payment['transactionId']); ?> </td> <td><?php echo Tpl::out($payment['transactionType']); ?> </td> <td><?php echo Tpl::out($payment['paymentType']); ?> </td> <td><?php
<table class="grid"> <thead> <tr> <td>Provider</td> <td style="width:100%;">Detail</td> <td>Created</td> <td>Modified</td> </tr> </thead> <tbody> <?php foreach($model->authSessions as $auth): ?> <tr> <td><?= $auth['authProvider'] ?></td> <td><?= (!empty($auth['authDetail'])) ? Tpl::out($auth['authDetail']):Tpl::out($auth['authId']) ?></td> <td><?=Tpl::moment(Date::getDateTime($auth['createdDate']), Date::STRING_FORMAT_YEAR)?></td> <td><?=Tpl::moment(Date::getDateTime($auth['modifiedDate']), Date::STRING_FORMAT_YEAR)?></td> </tr> <?php endforeach; ?> </tbody> </table> </div> </section> <?php endif; ?> <br /> <?php include Tpl::file('seg/commonbottom.php') ?> <script src="<?=Config::cdnv()?>/web/js/admin.js"></script> </body>
?> <section class="container"> <h3>Latest Broadcasts</h3> <div class="content content-dark clearfix"> <?php if (!empty($model->broadcasts)) { ?> <div id="broadcast-context" class="ds-block"> <ul class="unstyled" style="padding: 0;"> <?php foreach ($model->broadcasts as $line) { ?> <li style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> <small class="subtle"><?php echo Tpl::moment(Date::getDateTime($line['timestamp']), Date::STRING_FORMAT, 'h:mm:ss'); ?> </small> <span><?php echo Tpl::out($line['data']); ?> </span> </li> <?php } ?> </ul> </div> <?php } ?>