Release 4.7.0
[htmlpurifier-web.git] / phorum-skin.patch
blob4f8f701d10ba0dd54705e2fa1fd9bb6b789f1b38
1 diff -u lightweight/css.tpl htmlpurifier/css.tpl
2 --- lightweight/css.tpl 2012-04-07 21:15:54.000000002 -0400
3 +++ htmlpurifier/css.tpl 2012-04-07 21:15:55.000000002 -0400
4 @@ -465,7 +465,7 @@
6 #phorum #post-body {
7 border: 1px solid {border_color};
8 - background-color: {default_background_color};
9 + background-color: #FFF;
10 padding: 8px;
13 Only in htmlpurifier: css.tpl.orig
14 diff -u lightweight/footer.tpl htmlpurifier/footer.tpl
15 --- lightweight/footer.tpl 2012-04-07 21:15:54.000000002 -0400
16 +++ htmlpurifier/footer.tpl 2012-04-07 21:15:55.000000002 -0400
17 @@ -1,4 +1,3 @@
18 -<div id="footer-plug">This <a href="http://www.phorum.org/">forum</a> is powered by <a href="http://www.phorum.org/">Phorum</a>.</div>
19 -</div>
20 +</div></div> <!-- we added another div -->
21 </body>
22 </html>
23 \ No newline at end of file
24 diff -u lightweight/header.tpl htmlpurifier/header.tpl
25 --- lightweight/header.tpl 2012-04-07 21:15:54.000000002 -0400
26 +++ htmlpurifier/header.tpl 2012-04-07 21:15:55.000000002 -0400
27 @@ -35,12 +35,20 @@
28 <meta name="description" content="{DESCRIPTION}" />
29 {/IF}
31 +<link rel="stylesheet" href="../phorum.css" media="screen,projection" type="text/css" />
32 +<link rel="stylesheet" href="../common.css" media="screen,projection" type="text/css" />
34 {HEAD_TAGS}
36 </head>
37 <body onload="{IF FOCUS_TO_ID}var focuselt=document.getElementById('{FOCUS_TO_ID}'); if (focuselt) focuselt.focus();{/IF}">
39 +<div id="logo"></div>
40 +<div id="header"><a href="../">HTML Purifier</a></div>
41 +{HP_NAVIGATION}
43 {! Please leave this div in your template you can alter anything above this line }
44 +<div id="alt-content">
45 <div id="phorum">
46 {IF NOT PRINTVIEW}
47 <div id="user-info">
48 @@ -61,11 +69,6 @@
49 {/IF}
50 </div>
52 -<div id="logo">
54 -<a href="{URL->BASE}"><img src="{URL->TEMPLATE}/images/logo.png" width="111" height="25" alt="Phorum" border="0" /></a>
55 -</div>
57 <div id="breadcrumb">
58 {VAR FIRST TRUE}
59 {LOOP BREADCRUMBS}
60 Common subdirectories: lightweight/images and htmlpurifier/images
61 diff -u lightweight/info.php htmlpurifier/info.php
62 --- lightweight/info.php 2012-04-07 21:15:54.000000002 -0400
63 +++ htmlpurifier/info.php 2012-04-07 21:15:55.000000002 -0400
64 @@ -2,9 +2,12 @@
66 if(!defined("PHORUM")) return;
68 - $name="Phorum Lightweight Template";
69 - $version="1.0";
70 + $name="HTML Purifier Template";
71 + $version="2.0";
72 // uncomment this to hide this template from the user-select-box
73 //$template_hide=1;
75 -?>
76 + if (basename(dirname(__FILE__)) == 'htmlpurifier.bak') {
77 + $name .= ' Backup';
78 + $template_hide = 1;
79 + }
80 diff -u lightweight/posting.tpl htmlpurifier/posting.tpl
81 --- lightweight/posting.tpl 2012-04-07 21:15:54.000000002 -0400
82 +++ htmlpurifier/posting.tpl 2012-04-07 21:15:55.000000002 -0400
83 @@ -56,7 +56,6 @@
84 {IF SHOW_SPECIALOPTIONS}
86 <div id="post-moderation">
87 - <small>
88 {LANG->Special}:<br />
90 {IF OPTION_ALLOWED->sticky}
91 @@ -68,19 +67,17 @@
92 {/IF}
94 <input type="checkbox" id="allow-reply" name="allow_reply" value="1" {IF POSTING->allow_reply} checked="checked"{/IF} /> <label for="allow-reply">{LANG->AllowReplies}</label>
95 - </small>
96 </div>
97 {/IF}
98 - <small>
99 {IF MODE "moderation"}
100 - {LANG->YourName}:<br/>
101 + {LANG->YourName}:
102 {ELSE}
103 - {LANG->Author}:<br />
104 + {LANG->Author}:
105 {/IF}
106 {IF OPTION_ALLOWED->edit_author}
107 <input type="text" name="author" size="30" value="{POSTING->author}" />
108 {ELSE}
109 - <big><strong>{POSTING->author}</strong></big><br />
110 + <strong>{POSTING->author}</strong><br />
111 {/IF}
112 <br/>
114 @@ -88,7 +85,7 @@
116 {IF NOT LOGGEDIN}
118 - {LANG->YourEmail}:<br />
119 + {LANG->YourEmail}:
120 <input type="text" name="email" size="30" value="{POSTING->email}" /><br />
121 <br />
123 @@ -98,7 +95,7 @@
125 {IF POSTING->user_id 0}
127 - {LANG->Email}:<br />
128 + {LANG->Email}:
129 <input type="text" name="email" size="30" value="{POSTING->email}" /><br />
130 <br />
132 @@ -106,25 +103,24 @@
134 {/IF}
136 - {LANG->Subject}:<br />
137 + {LANG->Subject}:
138 <input type="text" name="subject" id="subject" size="50" value="{POSTING->subject}" /><br />
139 <br />
141 {HOOK "tpl_editor_after_subject"}
143 - </small>
144 {IF POSTING->user_id}
146 - <small>{LANG->Options}:</small><br />
147 + {LANG->Options}:<br />
149 {IF OPTION_ALLOWED->subscribe}
151 - <input type="checkbox" id="subscription-follow" name="subscription_follow" value="1" {IF POSTING->subscription}checked="checked"{/IF} {IF OPTION_ALLOWED->subscribe_mail}onclick="phorum_subscription_displaystate()"{/IF} /> <label for="subscription-follow"><small>{LANG->FollowThread}</small></label><br />
152 + <input type="checkbox" id="subscription-follow" name="subscription_follow" value="1" {IF POSTING->subscription}checked="checked"{/IF} {IF OPTION_ALLOWED->subscribe_mail}onclick="phorum_subscription_displaystate()"{/IF} /> <label for="subscription-follow">{LANG->FollowThread}</label><br />
154 {IF OPTION_ALLOWED->subscribe_mail}
155 <div id="subscription-mail-div">
156 <img src="{URL->TEMPLATE}/images/tree-L.gif" border="0" alt="tree-L" />
157 - <input type="checkbox" id="subscription-mail" name="subscription_mail" value="1" {IF POSTING->subscription "message"}checked="checked"{/IF} /> <label for="subscription-mail"><small>{LANG->EmailReplies}</small></label>
158 + <input type="checkbox" id="subscription-mail" name="subscription_mail" value="1" {IF POSTING->subscription "message"}checked="checked"{/IF} /> <label for="subscription-mail">{LANG->EmailReplies}</label>
159 </div>
161 <script type="text/javascript">
162 @@ -145,13 +141,13 @@
163 {/IF}
164 {/IF}
166 - <input type="checkbox" id="show-signature" name="show_signature" value="1" {IF POSTING->show_signature} checked="checked"{/IF} /> <label for="show-signature"><small>{LANG->AddSig}</small></label><br />
167 + <input type="checkbox" id="show-signature" name="show_signature" value="1" {IF POSTING->show_signature} checked="checked"{/IF} /> <label for="show-signature">{LANG->AddSig}</label><br />
168 <br/>
170 {/IF}
172 {IF ATTACHMENTS}
173 - <small>{LANG->Attachments}:</small><br />
174 + {LANG->Attachments}:<br />
175 {IF POSTING->attachments}
176 <table id="attachment-list" cellspacing="0">
177 {VAR LIST POSTING->attachments}
178 @@ -205,7 +201,7 @@
179 {/IF}
181 {HOOK "tpl_editor_before_textarea"}
182 - <small>{LANG->Message}:</small>
183 + {LANG->Message}:
184 <div id="post-body">
185 <!-- fieldset is a work around for an MSIE rendering bug -->
186 <fieldset>
187 @@ -220,7 +216,9 @@
188 {HOOK "tpl_editor_buttons"}
190 <input type="submit" name="preview" value=" {LANG->Preview} " />
191 - <input type="submit" name="finish" value=" {POSTING->submitbutton_text} " />
192 + {IF PREVIEW}
193 + <input type="submit" name="finish" value=" {POSTING->submitbutton_text} " />
194 + {/IF}
195 {IF SHOW_CANCEL_BUTTON}
196 <input type="submit" name="cancel" onclick="return confirm('{LANG->CancelConfirm}')" value=" {LANG->Cancel} " />
197 {/IF}
198 Only in htmlpurifier: posting.tpl.orig
199 diff -u lightweight/settings.tpl htmlpurifier/settings.tpl
200 --- lightweight/settings.tpl 2012-04-07 21:15:54.000000002 -0400
201 +++ htmlpurifier/settings.tpl 2012-04-07 21:15:55.000000002 -0400
202 @@ -16,7 +16,7 @@
203 {DEFINE show_notify_for_pages "index,list,cc"}
205 {! -- This is the image for the gauge bar to show how full the PM box is -- }
206 -{VAR gauge_image "templates/emerald/images/gauge.gif"}
207 +{VAR gauge_image "templates/htmlpurifier/images/gauge.gif"}
209 {! --- Apply some compression to the template data. This feature is --- }
210 {! --- implemented by Phorum's template parsing code. Possible values --- }
211 @@ -28,13 +28,7 @@
212 {! so it is mainly useful for a production environment. --- }
213 {DEFINE tidy_template 0}
215 -{VAR template_dir "emerald"}
218 -{! -- Fonts -- }
220 -{VAR default_font "Arial"}
221 -{VAR base_font_size "12pt"} {! -- Need this for IE -- }
222 +{VAR template_dir "htmlpurifier"}
224 {VAR font_xx_large "145%"}
225 {VAR font_x_large "125%"}
226 @@ -43,25 +37,21 @@
227 {VAR font_x_small "75%"}
228 {VAR font_xx_small "65%"}
231 {! -- Sizes -- }
232 {VAR max_width "900px"} {! -- No effect in IE 6 -- }
235 {! -- colors -- }
236 -{VAR default_font_color "Black"}
237 -{VAR default_background_color "White"}
238 -{VAR alt_background_color "#edf2ed"} {! -- should compliment default_background_color -- }
239 -{VAR highlight_background_color "#f0f7f0"} {! -- should compliment the two above -- }
240 -{VAR border_color "#4d894d"}
241 +{VAR alt_background_color "#EBEFF4"} {! -- should compliment default_background_color -- }
242 +{VAR highlight_background_color "#F0F1F7"} {! -- should compliment the two above -- }
243 +{VAR border_color "#6480A6"}
244 {VAR border_font_color "White"}
245 {VAR quote_border_color "#808080"}
246 +{VAR link_color "#35355F"}
247 +{VAR link_hover_color "#BB8144"}
248 {VAR pre_border_color "#C4C6A2"}
249 {VAR pre_background_color "#FEFFEC"}
250 -{VAR link_color "#355F35"}
251 -{VAR link_hover_color "#709CCC"}
252 {VAR new_color "red"}
253 -{VAR logo_background_color "#78ad78"}
254 {VAR breadcrumb_border_color "#b6b6b6"}
255 {VAR post_moderation_background_color "#fffdf6"}
257 Only in htmlpurifier: settings.tpl.orig