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-8 pure-u-1-24"></div>
17 <div class=
"pure-u-lg-3-4 pure-u-22-24 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">
51 <label for=
"titleLink">
52 <span class=
"label-name">{'Theme'|t}
</span>
56 <div class=
"pure-u-lg-{$ratioInput} pure-u-1">
57 <div class=
"form-input">
58 <select name=
"theme" id=
"theme">
59 {
loop="$theme_available"}
60 <option value=
"{$value}"
61 {
if=
"$value===$theme"}
71 <div class=
"pure-u-lg-{$ratioLabel} pure-u-1 ">
72 <div class=
"form-label">
74 <span class=
"label-name">{'Timezone'|t}
</span>
78 <div class=
"pure-u-lg-{$ratioInput} pure-u-1 ">
79 <div class=
"form-input">
80 {ignore}FIXME! too hackish, needs to be fixed upstream{/ignore}
81 <div class=
"timezone" id=
"timezone-remove">{$timezone_form}
</div>
82 <div class=
"timezone" id=
"timezone-add"></div>
87 <div class=
"pure-u-lg-{$ratioLabel} pure-u-1 ">
88 <div class=
"form-label">
89 <label for=
"redirector">
90 <span class=
"label-name">{'Redirector'|t}
</span><br>
91 <span class=
"label-desc">{'e. g.'|t}
<i>http://anonym.to/?
</i> {'will mask the HTTP_REFERER'|t}
</span>
95 <div class=
"pure-u-lg-{$ratioInput} pure-u-1 ">
96 <div class=
"form-input">
97 <input type=
"text" name=
"redirector" id=
"redirector" size=
"50" value=
"{$redirector}">
101 <div class=
"clear"></div>
103 <div class=
"pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile} ">
104 <div class=
"form-label">
105 <label for=
"disablesessionprotection">
106 <span class=
"label-name">{'Disable session cookie hijacking protection'|t}
</span><br>
107 <span class=
"label-desc">
108 {'Check this if you get disconnected or if your IP address changes often'|t}
113 <div class=
"pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile} ">
114 <div class=
"form-input">
115 <input type=
"checkbox" name=
"disablesessionprotection" id=
"disablesessionprotection"
116 {
if=
"$session_protection_disabled"}checked{/if}
>
121 <div class=
"pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile} ">
122 <div class=
"form-label">
123 <label for=
"privateLinkByDefault">
124 <span class=
"label-name">{'Private links by default'|t}
</span><br>
125 <span class=
"label-desc">{'All new links are private by default'|t}
</span>
129 <div class=
"pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile} ">
130 <div class=
"form-input">
131 <input type=
"checkbox" name=
"privateLinkByDefault" id=
"privateLinkByDefault"
132 {
if=
"$private_links_default"}checked{/if}
/>
137 <div class=
"pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile} ">
138 <div class=
"form-label">
139 <label for=
"enableRssPermalinks">
140 <span class=
"label-name">{'RSS direct links'|t}
</span><br>
141 <span class=
"label-desc">{'Check this to use direct URL instead of permalink in feeds'|t}
</span>
145 <div class=
"pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile} ">
146 <div class=
"form-input">
147 <input type=
"checkbox" name=
"enableRssPermalinks" id=
"enableRssPermalinks"
148 {
if=
"$enable_rss_permalinks"}checked{/if}
/>
153 <div class=
"pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}">
154 <div class=
"form-label">
155 <label for=
"hidePublicLinks">
156 <span class=
"label-name">{'Hide public links'|t}
</span><br>
157 <span class=
"label-desc">{'Do not show any links if the user is not logged in'|t}
</span>
161 <div class=
"pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}">
162 <div class=
"form-input">
163 <input type=
"checkbox" name=
"hidePublicLinks" id=
"hidePublicLinks"
164 {
if=
"$hide_public_links"}checked{/if}
/>
169 <div class=
"pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}">
170 <div class=
"form-label">
171 <label for=
"hidePublicLinks">
172 <span class=
"label-name">{'Check updates'|t}
</span><br>
173 <span class=
"label-desc">{'Notify me when a new release is ready'|t}
</span>
177 <div class=
"pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}">
178 <div class=
"form-input">
179 <input type=
"checkbox" name=
"updateCheck" id=
"updateCheck"
180 {
if=
"$enable_update_check"}checked{/if}
/>
185 <input type=
"submit" value=
"{'Save'|t}" name=
"save">
189 <input type=
"hidden" name=
"token" value=
"{$token}">
192 {
include="page.footer"}
195 (function (window, document) {
196 var toRemove = document.getElementById('timezone-remove');
197 var firstSelect = toRemove.getElementsByTagName('select')[
0];
198 var secondSelect = toRemove.getElementsByTagName('select')[
1];
199 toRemove.parentNode.removeChild(toRemove);
200 var toAdd = document.getElementById('timezone-add');
201 var newTimezone = '
<span class=
"timezone-continent">Continent ' + firstSelect.outerHTML + '
</span>';
202 newTimezone += '
<span class=
"timezone-country">Country ' + secondSelect.outerHTML + '
</span>';
203 toAdd.innerHTML = newTimezone;
204 })(this, this.document);