', $txt['paid_' . $context['action_type'] . '_subscription'], '

'; if (!empty($context['disable_groups'])) echo '
', $txt['paid_mod_edit_note'], '
'; echo '
', $txt['paid_mod_name'], ':
', $txt['paid_mod_desc'], ':
:
:
', $txt['paid_mod_active_desc'], '

', $txt['paid_mod_prim_group'], ':
', $txt['paid_mod_prim_group_desc'], '
', $txt['paid_mod_add_groups'], ':
', $txt['paid_mod_add_groups_desc'], '
'; // Put a checkbox in for each group foreach ($context['groups'] as $id => $name) echo '
'; echo '
', $txt['paid_mod_reminder'], ':
', $txt['paid_mod_reminder_desc'], '
', $txt['paid_mod_email'], ':
', $txt['paid_mod_email_desc'], '


', $txt['paid_cost'], ' (', str_replace('%1.2f', '', $modSettings['paid_currency_symbol']), '):
', $txt['paid_mod_span'], ':

'; //!! Removed until implemented if (!empty($sdflsdhglsdjgs)) echo '
:
', $txt['paid_mod_allow_partial_desc'], '
'; echo '
', $txt['paid_mod_price_breakdown'], '
', $txt['paid_mod_price_breakdown_desc'], '
', $txt['paid_duration'], '
', $txt['paid_cost'], ' (', preg_replace('~%[df\.\d]+~', '', $modSettings['paid_currency_symbol']), ')
', $txt['paid_per_day'], ':
', $txt['paid_per_week'], ':
', $txt['paid_per_month'], ':
', $txt['paid_per_year'], ':

'; } function template_delete_subscription() { global $context, $scripturl, $txt, $modSettings; echo '

', $txt['paid_delete_subscription'], '

', $txt['paid_mod_delete_warning'], '

'; } // 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 '

', $txt['paid_' . $context['action_type'] . '_subscription'], ' - ', $context['current_subscription']['name'], ' ', empty($context['sub']['username']) ? '' : ' (' . $txt['user'] . ': ' . $context['sub']['username'] . ')', '

'; // Do we need a username? if ($context['action_type'] == 'add') echo '
', $txt['paid_username'], ':
', $txt['one_username'], '
'; echo '
', $txt['paid_status'], ':
', $txt['start_date_and_time'], '   ', (isset($txt['calendar_month']) ? $txt['calendar_month'] : $txt['calendar_month']), '    ', (isset($txt['calendar_day']) ? $txt['calendar_day'] : $txt['calendar_day']), '  ', $txt['hour'], ': ', $txt['minute'], ':
', $txt['end_date_and_time'], '   ', (isset($txt['calendar_month']) ? $txt['calendar_month'] : $txt['calendar_month']), '    ', (isset($txt['calendar_day']) ? $txt['calendar_day'] : $txt['calendar_day']), '  ', $txt['hour'], ': ', $txt['minute'], ':
'; if (!empty($context['pending_payments'])) { echo '

', $txt['pending_payments'], '

', $txt['pending_payments_desc'], '

', $txt['pending_payments_value'], '

'; } echo '
'; } // Template for a user to edit/pick their subscriptions. function template_user_subscription() { global $context, $txt, $scripturl, $modSettings; echo ' '; } // The "choose payment" dialog. function template_choose_payment() { global $context, $txt, $modSettings, $scripturl; echo '
'; } // The "thank you" bit... function template_paid_done() { global $context, $txt, $modSettings, $scripturl; echo ' '; } ?>