7 {
include="page.header"}
10 {$ratioLabelMobile='
7-
8'}
12 {$ratioInputMobile='
1-
8'}
14 <form method=
"POST" action=
"#" name=
"configform" id=
"configform">
16 <div class=
"pure-u-lg-1-6 pure-u-1-8"></div>
17 <div class=
"pure-u-lg-2-3 pure-u-3-4 page-form page-form-complete">
18 <h2 class=
"window-title">{'Configure'|t}
</h2>
20 <div class=
"pure-u-lg-{$ratioLabel} pure-u-1">
21 <div class=
"form-label">
23 <span class=
"label-name">Shaarli {'title'|t}
</span>
27 <div class=
"pure-u-lg-7-12 pure-u-1">
28 <div class=
"form-input">
29 <input type=
"text" name=
"title" id=
"title" size=
"50" value=
"{$title}">
34 <div class=
"pure-u-lg-{$ratioLabel} pure-u-1">
35 <div class=
"form-label">
36 <label for=
"titleLink">
37 <span class=
"label-name">{'Title link'|t}
</span><br>
38 <span class=
"label-desc">{'Default value'|t}: ?
</span>
42 <div class=
"pure-u-lg-{$ratioInput} pure-u-1">
43 <div class=
"form-input">
44 <input type=
"text" name=
"titleLink" id=
"titleLink" size=
"50" value=
"{$titleLink}">
49 <div class=
"pure-u-lg-{$ratioLabel} pure-u-1 ">
50 <div class=
"form-label">
52 <span class=
"label-name">{'Timezone'|t}
</span>
56 <div class=
"pure-u-lg-{$ratioInput} pure-u-1 ">
57 <div class=
"form-input">
58 {ignore}FIXME! too hackish, needs to be fixed upstream{/ignore}
59 <div class=
"timezone" id=
"timezone-remove">{$timezone_form}
</div>
60 <div class=
"timezone" id=
"timezone-add"></div>
65 <div class=
"pure-u-lg-{$ratioLabel} pure-u-1 ">
66 <div class=
"form-label">
67 <label for=
"redirector">
68 <span class=
"label-name">{'Redirector'|t}
</span><br>
69 <span class=
"label-desc">{'e. g.'|t}
<i>http://anonym.to/?
</i> {'will mask the HTTP_REFERER'|t}
</span>
73 <div class=
"pure-u-lg-{$ratioInput} pure-u-1 ">
74 <div class=
"form-input">
75 <input type=
"text" name=
"redirector" id=
"redirector" size=
"50" value=
"{$redirector}">
80 <div class=
"pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile} ">
81 <div class=
"form-label">
82 <label for=
"disablesessionprotection">
83 <span class=
"label-name">{'Disable session cookie hijacking protection'|t}
</span><br>
84 <span class=
"label-desc">
85 {'Check this if you get disconnected or if your IP address changes often'|t}
90 <div class=
"pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile} ">
91 <div class=
"form-input">
92 <input type=
"checkbox" name=
"disablesessionprotection" id=
"disablesessionprotection"
93 {
if=
"$session_protection_disabled"}checked{/if}
>
98 <div class=
"pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile} ">
99 <div class=
"form-label">
100 <label for=
"privateLinkByDefault">
101 <span class=
"label-name">{'Private links by default'|t}
</span><br>
102 <span class=
"label-desc">{'All new links are private by default'|t}
</span>
106 <div class=
"pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile} ">
107 <div class=
"form-input">
108 <input type=
"checkbox" name=
"privateLinkByDefault" id=
"privateLinkByDefault"
109 {
if=
"$private_links_default"}checked{/if}
/>
114 <div class=
"pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile} ">
115 <div class=
"form-label">
116 <label for=
"enableRssPermalinks">
117 <span class=
"label-name">{'RSS direct links'|t}
</span><br>
118 <span class=
"label-desc">{'Check this to use direct URL instead of permalink in feeds'|t}
</span>
122 <div class=
"pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile} ">
123 <div class=
"form-input">
124 <input type=
"checkbox" name=
"enableRssPermalinks" id=
"enableRssPermalinks"
125 {
if=
"$enable_rss_permalinks"}checked{/if}
/>
130 <div class=
"pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}">
131 <div class=
"form-label">
132 <label for=
"hidePublicLinks">
133 <span class=
"label-name">{'Hide public links'|t}
</span><br>
134 <span class=
"label-desc">{'Do not show any links if the user is not logged in'|t}
</span>
138 <div class=
"pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}">
139 <div class=
"form-input">
140 <input type=
"checkbox" name=
"hidePublicLinks" id=
"hidePublicLinks"
141 {
if=
"$hide_public_links"}checked{/if}
/>
146 <div class=
"pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}">
147 <div class=
"form-label">
148 <label for=
"hidePublicLinks">
149 <span class=
"label-name">{'Check updates'|t}
</span><br>
150 <span class=
"label-desc">{'Notify me when a new release is ready'|t}
</span>
154 <div class=
"pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}">
155 <div class=
"form-input">
156 <input type=
"checkbox" name=
"updateCheck" id=
"updateCheck"
157 {
if=
"$enable_update_check"}checked{/if}
/>
162 <input type=
"submit" value=
"{'Save'|t}" name=
"save">
166 <input type=
"hidden" name=
"token" value=
"{$token}">
169 {
include="page.footer"}
172 (function (window, document) {
173 var toRemove = document.getElementById('timezone-remove');
174 var firstSelect = toRemove.getElementsByTagName('select')[
0];
175 var secondSelect = toRemove.getElementsByTagName('select')[
1];
176 toRemove.parentNode.removeChild(toRemove);
177 var toAdd = document.getElementById('timezone-add');
178 var newTimezone = '
<span class=
"timezone-continent">Continent ' + firstSelect.outerHTML + '
</span>';
179 newTimezone += '
<span class=
"timezone-country">Country ' + secondSelect.outerHTML + '
</span>';
180 toAdd.innerHTML = newTimezone;
181 })(this, this.document);