Commit | Line | Data |
---|---|---|
3e93caf9 | 1 | {capture assign='headContent'} |
e73af021 MW |
2 | {if PAID_SUBSCRIPTION_ENABLE_TOS_CONFIRMATION} |
3 | <script data-relocate="true"> | |
4 | $(function() { | |
5 | $('#tosConfirmed').change(function () { | |
6 | if ($('#tosConfirmed').is(':checked')) { | |
7 | $('.paidSubscriptionList button').enable(); | |
8 | } | |
9 | else { | |
10 | $('.paidSubscriptionList button').disable(); | |
11 | } | |
12 | }); | |
13 | $('#tosConfirmed').change(); | |
14 | }); | |
15 | </script> | |
16 | ||
17 | <noscript> | |
18 | <style type="text/css"> | |
19 | .paidSubscriptionList button { | |
20 | display: none; | |
21 | } | |
22 | </style> | |
23 | </noscript> | |
24 | {/if} | |
3e93caf9 | 25 | {/capture} |
4d8036f5 MW |
26 | |
27 | {include file='userMenuSidebar'} | |
28 | ||
95961bdf | 29 | {include file='header'} |
4d8036f5 | 30 | |
4d8036f5 | 31 | {if $subscriptions|count} |
95961bdf MW |
32 | <section class="section sectionContainerList paidSubscriptionList"> |
33 | <header class="sectionHeader"> | |
34 | <h2 class="sectionTitle">{lang}wcf.paidSubscription.availableSubscriptions{/lang}</h2> | |
35 | {if PAID_SUBSCRIPTION_ENABLE_TOS_CONFIRMATION} | |
36 | <div class="sectionDescription"><label><input type="checkbox" id="tosConfirmed" name="tosConfirmed" value="1" /> {lang}wcf.paidSubscription.confirmTOS{/lang}</label></div> | |
37 | {/if} | |
38 | </header> | |
4d8036f5 | 39 | |
4d8036f5 MW |
40 | <ul class="containerList"> |
41 | {foreach from=$subscriptions item=subscription} | |
42 | <li> | |
43 | <div class="containerHeadline"> | |
95961bdf | 44 | <h3>{$subscription->title|language} <span class="badge label">{lang}wcf.paidSubscription.formattedCost{/lang}</span></h3> |
127bc00e | 45 | <p>{@$subscription->description|language|newlineToBreak}</p> |
95961bdf MW |
46 | </div> |
47 | ||
48 | <div class="containerContent"> | |
49 | <ul class="buttonList"> | |
4d8036f5 MW |
50 | {foreach from=$subscription->getPurchaseButtons() item=button} |
51 | <li>{@$button}</li> | |
52 | {/foreach} | |
53 | </ul> | |
54 | </div> | |
55 | </li> | |
56 | {/foreach} | |
57 | </ul> | |
95961bdf | 58 | </section> |
4d8036f5 MW |
59 | {/if} |
60 | ||
61 | {if $userSubscriptions|count} | |
95961bdf MW |
62 | <section class="section sectionContainerList"> |
63 | <h2 class="sectionTitle">{lang}wcf.paidSubscription.purchasedSubscriptions{/lang}</h2> | |
4d8036f5 | 64 | |
4d8036f5 MW |
65 | <ul class="containerList"> |
66 | {foreach from=$userSubscriptions item=userSubscription} | |
67 | <li> | |
68 | <div class="containerHeadline"> | |
69 | <h3>{$userSubscription->getSubscription()->title|language}</h3> | |
127bc00e | 70 | <p>{@$userSubscription->getSubscription()->description|language|newlineToBreak}</p> |
4d8036f5 | 71 | </div> |
95961bdf MW |
72 | |
73 | {if $userSubscription->endDate} | |
74 | <div class="containerContent"> | |
75 | <dl class="plain inlineDataList"> | |
76 | <dt>{lang}wcf.paidSubscription.expires{/lang}</dt> | |
77 | <dd>{@$userSubscription->endDate|time}</dd> | |
78 | </dl> | |
79 | </div> | |
80 | {/if} | |
4d8036f5 MW |
81 | </li> |
82 | {/foreach} | |
83 | </ul> | |
95961bdf | 84 | </section> |
4d8036f5 MW |
85 | {/if} |
86 | ||
87 | {if !$subscriptions|count && !$userSubscriptions|count} | |
1e3626d5 | 88 | <p class="info">{lang}wcf.global.noItems{/lang}</p> |
4d8036f5 MW |
89 | {/if} |
90 | ||
e7b063d6 | 91 | <footer class="contentFooter"> |
4d8036f5 | 92 | {hascontent} |
e7b063d6 | 93 | <nav class="contentFooterNavigation"> |
4d8036f5 | 94 | <ul> |
e7b063d6 | 95 | {content}{event name='contentFooterNavigation'}{/content} |
4d8036f5 MW |
96 | </ul> |
97 | </nav> | |
98 | {/hascontent} | |
e7b063d6 | 99 | </footer> |
4d8036f5 MW |
100 | |
101 | {include file='footer'} |