You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4 KiB

<div class="narrow subscription-status">
<? if($this->subscription->active): ?>
<div class="bs bs-callout bs-callout-success">This subscription is active!</div>
<? else: ?>
<div class="bs bs-callout bs-callout-danger">This subscription is not active</div>
<? endif; ?>
<table class="table">
<?php $tz = -7 * 3600; ?>
<tr>
<td>Feed URL (Topic)</td>
<td><?= $this->feed->feed_url ?></td>
</tr>
<tr>
<td>Callback URL</td>
<td><?= $this->subscription->callback_url ?></td>
</tr>
<tr>
<td>Date Subscription was Requested</td>
<td><?= $this->subscription->date_requested ? friendly_date($this->subscription->date_requested, $tz) : '' ?></td>
</tr>
<tr>
<td>Subscription Verification Response<br>(from your server)</td>
<td><pre><?= htmlspecialchars($this->subscription->challenge_response) ?></pre></td>
</tr>
<tr>
<td>Date Subscription was Confirmed</td>
<td><?= $this->subscription->date_confirmed ? friendly_date($this->subscription->date_confirmed, $tz) : '' ?></td>
</tr>
<? if($this->subscription->date_unsubscribed): ?>
<tr>
<td>Date Unsubscribed</td>
<td><?= friendly_date($this->subscription->date_unsubscribed, $tz) ?></td>
</tr>
<? endif; ?>
<? if($this->subscription->date_expires): ?>
<tr>
<td>Subscription Expiration</td>
<td><?= friendly_date($this->subscription->date_expires, $tz) ?></td>
</tr>
<? endif; ?>
</table>
</div>