';
}
function template_delete_subscription()
{
global $context, $scripturl, $txt, $modSettings;
echo '
';
}
// Add or edit an existing subscriber.
function template_modify_user_subscription()
{
global $context, $settings, $scripturl, $txt, $modSettings;
// Some quickly stolen javascript from Post, could do with being more efficient :)
echo '
';
echo '
';
if (!empty($context['pending_payments']))
{
echo '
', $txt['pending_payments'], '
', $txt['pending_payments_desc'], '
', $txt['pending_payments_value'], '
';
foreach ($context['pending_payments'] as $id => $payment)
{
echo '
';
}
// Template for a user to edit/pick their subscriptions.
function template_user_subscription()
{
global $context, $txt, $scripturl, $modSettings;
echo '
', $txt['paid_current'], '
', $txt['paid_current_desc'], '
', $txt['paid_name'], '
', $txt['paid_status'], '
', $txt['start_date'], '
', $txt['end_date'], '
';
if (empty($context['current']))
echo '
', $txt['paid_none_yet'], '
';
$alternate = false;
foreach ($context['current'] as $sub)
{
$alternate = !$alternate;
if (!$sub['hide'])
echo '