Merge lp:~ronnie.vd.c/ubuntu-nl-artwork/smf-common-header into lp:ubuntu-nl-artwork/light-smf-theme

Proposed by Ronnie
Status: Merged
Merged at revision: 4
Proposed branch: lp:~ronnie.vd.c/ubuntu-nl-artwork/smf-common-header
Merge into: lp:ubuntu-nl-artwork/light-smf-theme
Diff against target: 327 lines (+104/-85)
2 files modified
css/index.css (+49/-46)
index.template.php (+55/-39)
To merge this branch: bzr merge lp:~ronnie.vd.c/ubuntu-nl-artwork/smf-common-header
Reviewer Review Type Date Requested Status
Registry Administrators Pending
Review via email: mp+83477@code.launchpad.net

Description of the change

Integratie van de globale site header

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'css/index.css'
2--- css/index.css 2011-09-25 17:23:29 +0000
3+++ css/index.css 2011-11-26 12:30:30 +0000
4@@ -33,8 +33,8 @@
5 /* Set a fontsize that will look the same in all browsers. */
6 body
7 {
8- background: #FFF url(../images/theme/backdrop.png);
9- font: 80%/130% "Ubuntu", "Verdana", "Arial", "Helvetica", sans-serif;
10+ background: url("../images/dotted.png") repeat scroll 0 0 #F7F7F7;
11+ font: 80%/130% 'Ubuntu','Ubuntubeta','Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;
12 margin: 0 auto;
13 }
14
15@@ -48,7 +48,6 @@
16 body, td, th, tr
17 {
18 color: #333;
19- width: 980px;
20 }
21
22 /* This division wraps the entire forum when a forum width is set. */
23@@ -971,6 +970,10 @@
24 padding: 0.5em 1.2em;
25 margin: 0;
26 border: none;
27+ background-color: #FFFFFF;
28+ border-radius: 4px 4px 4px 4px;
29+ box-shadow: 1px 1px 2px #CCCCCC;
30+ margin: 10px 0;
31 }
32 .content p
33 {
34@@ -1021,10 +1024,6 @@
35 {
36 display: none;
37 }
38-#page-related
39-{
40- min-height: 40px;
41-}
42 .dropmenu, .dropmenu ul
43 {
44 list-style: none;
45@@ -1092,14 +1091,13 @@
46 z-index: 90;
47 display: block;
48 font-weight: normal;
49- width: 920px;
50- margin: 0 20px;
51- padding: 0 10px;
52- background-color: #f7f7f7;
53 height: 40px;
54- border-bottom-left-radius: 8px;
55- border-bottom-right-radius: 8px;
56+
57+ background-color: #F7F7F7;
58 box-shadow: 0 1px 1px #DFDFDF;
59+ margin: 2px 0 20px;
60+ padding: 0;
61+ width: 100%;
62 }
63 #main_menu .dropmenu li:hover ul
64 {
65@@ -1310,10 +1308,11 @@
66 clear: both;
67 background-color: #fff;
68 }
69-#header div.frame
70-{
71- border-left: 1px solid #efefef;
72- border-right: 1px solid #efefef;
73+#header .container {
74+ max-width: 980px;
75+ margin: 0 auto;
76+ overflow: hidden;
77+ height: 65px;
78 }
79 /* the content section */
80 #content_section
81@@ -1464,33 +1463,36 @@
82 margin-right: 14px;
83 font-size: 0.8em;
84 }
85-#top_section
86-{
87- min-height: 70px;
88- background: url("../images/header.png") repeat-x scroll 0 0 #DD4814;
89+#top-section {
90+ background-color: #DD4814;
91+ box-shadow: 0 1px 1px #C8C8C8;
92+ height: 65px;
93+}
94+#main-nav:after {
95+ content: url("../images/topnav_divider.png");
96+ float: left;
97+}
98+#main-nav:before {
99+ content: url("../images/topnav_divider.png");
100+ float: left;
101 }
102 #main-nav {
103- border-left: 1px solid #EF7149;
104- z-index: 10;
105+ border-left: medium none;
106+ height: 65px;
107+ max-width: 770px;
108+ width: auto;
109+ font-size: 14px;
110 float: left;
111- font-size: 0.875em;
112- padding-left: 10px;
113 }
114-#main-nav .main-nav-item, #main-nav .main-nav-item:visited {
115- border-bottom: 0 none;
116- border-right: 1px solid #EF7149;
117- border-top: 0 none;
118+a.main-nav-item, a.main-nav-item:visited {
119+ line-height: 65px;
120 color: #FFFFFF;
121 display: block;
122 float: left;
123- height: 70px;
124- line-height: 70px;
125- margin: 0;
126 padding: 0 15px;
127 text-shadow: 1px 1px 1px #333333;
128- font-size: 1.2em;
129 }
130-.main-nav-item.current, .main-nav-item:hover, .main-nav-item:active, .main-nav-item:focus {
131+a.main-nav-item.current, a.main-nav-item:hover, a.main-nav-item:active, a.main-nav-item:focus {
132 background: url("../images/mainnav.png") repeat scroll 0 0 transparent;
133 text-decoration: none;
134 }
135@@ -1499,7 +1501,7 @@
136 line-height: 1.5em;
137 text-align: right;
138 float: right;
139- margin: 5px 10px 5px 0;
140+ margin: 0 10px 5px 0;
141 padding: 10px 10px 0 0;
142 width: 180px;
143 font-size: 0.875em;
144@@ -1517,29 +1519,30 @@
145 color: #FFFFFF;
146 display: block;
147 float: right;
148- font-size: 1.4em;
149+ font-size: 14px;
150 font-weight: normal;
151+ line-height: 21px;
152 }
153 #sub-nav-container {
154- background-color: #F7F7F7;
155- border-bottom-left-radius: 8px;
156- border-bottom-right-radius: 8px;
157- box-shadow: 0 1px 1px #DFDFDF;
158- height: 40px;
159- margin: 0 10px;
160- width: 940px;
161+ margin: 0 auto;
162+ width: 980px;
163 }
164 #sub-nav {
165 float: left;
166 padding: 0 10px;
167- font-size: 0.75em;
168+ font-size: 12px;
169 }
170-.sub-nav-item, .sub-nav-item:visited {
171+a.sub-nav-item, a.sub-nav-item:visited {
172 color: #333333;
173 display: block;
174 float: left;
175 line-height: 40px;
176- padding: 0 10px 0 10px;
177+ margin: 0;
178+ padding: 0 15px;
179+}
180+a.sub-nav-item.current, a.sub-nav-item:hover, a.sub-nav-item:active, a.sub-nav-item:focus {
181+ background-color: #EFEFEF;
182+ color: #DD4814;
183 }
184 #upper_section
185 {
186
187=== added file 'images/dotted.png'
188Binary files images/dotted.png 1970-01-01 00:00:00 +0000 and images/dotted.png 2011-11-26 12:30:30 +0000 differ
189=== added file 'images/topnav_divider.png'
190Binary files images/topnav_divider.png 1970-01-01 00:00:00 +0000 and images/topnav_divider.png 2011-11-26 12:30:30 +0000 differ
191=== modified file 'index.template.php'
192--- index.template.php 2011-09-25 17:23:29 +0000
193+++ index.template.php 2011-11-26 12:30:30 +0000
194@@ -173,15 +173,51 @@
195 {
196 global $context, $settings, $options, $scripturl, $txt, $modSettings;
197
198- echo !empty($settings['forum_width']) ? '
199-<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
200- <div id="top-nav">
201- <div class="container">
202- <div id="top-login">';
203+ echo'
204+ <div id="header"><div class="frame">
205+ <div id="top-section">
206+ <div class="container">
207+ <div id="main-nav">
208+ <a href="http://communityserver.ubuntu-nl.org/ubuntu" class="main-nav-item">Ubuntu</a>
209+ <a href="http://communityserver.ubuntu-nl.org/ondersteuning" class="main-nav-item current">Ondersteuning</a>
210+ <a href="http://communityserver.ubuntu-nl.org/gemeenschap" class="main-nav-item">Gemeenschap</a>
211+ <a href="http://communityserver.ubuntu-nl.org/agenda" class="main-nav-item">Agenda</a>
212+ <a href="http://communityserver.ubuntu-nl.org/nieuws" class="main-nav-item">Nieuws</a>
213+ <a href="http://communityserver.ubuntu-nl.org/partners" class="main-nav-item">Partners</a>
214+ </div>
215+ <h1 id="top-logo">
216+ <a href="/">
217+ <span id="the-logo"></span>
218+ <span id="loco">'.$context['forum_name'].'</span>
219+ </a>
220+ </h1>
221+ </div>
222+ </div>
223+ <div id="page-related">
224+ <div id="sub-nav-container" class="container">
225+ <div id="sub-nav">
226+ <a href="http://wiki.ubuntu-nl.org/" class="sub-nav-item">Documentatie</a>
227+ <a href="/forum/" class="sub-nav-item current">Forum</a>
228+ <a href="http://chat.ubuntu-nl.org/" class="sub-nav-item">Live chat</a>
229+ <a href="http://kaart.ubuntu-nl.org/" class="sub-nav-item">Steunpunten</a>
230+ <a href="http://lists.ubuntu-nl.org/" class="sub-nav-item">Mailinglijst</a>
231+ <a href="http://www.ubuntu.com/support/community" class="sub-nav-item">Engelstalig</a>
232+ </div>
233+ </div>
234+ </div>
235+ </div></div>';
236+
237+ echo !empty($settings['forum_width']) ? '
238+ <div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '','
239+ <div class="content">
240+ <div id="upper_section" class="middletext">
241+ <div id="top-login">';
242 if ($context['user']['is_logged']) {
243 echo'
244 <ul class="reset">
245+
246 <li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
247+
248 <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
249 <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
250 // Is the forum in maintenance mode?
251@@ -204,30 +240,6 @@
252 }
253 echo '
254 </div>
255- <div id="top-related">
256- <a href="http://www.ubuntu.com" class="top-nav-item">Website</a>
257- <a href="http://www.ubuntu.com/community" class="top-nav-item">Forum</a>
258- <a href="http://www.ubuntu.com/support" class="top-nav-item">Documentatie</a>
259- <a href="http://www.ubuntu.com/partners" class="top-nav-item">Nieuws</a>
260- </div>
261- </div>
262- </div>
263- <div id="header"><div class="frame">
264- <div id="top_section">
265- <div class="container">',
266- template_menu()
267- ,'
268- <h1 id="top-logo">
269- <a href="/">
270- <span id="the-logo"></span>
271- <span id="loco">Nederlands Forum</span>
272- </a>
273- </h1>
274- </div>
275- </div>
276- <div id="page-related">
277- </div>
278- <div id="upper_section" class="middletext">
279 <div class="user">';
280 // Show a random news item? (or you could pick one from news_lines...)
281 if (!empty($settings['enable_news']))
282@@ -287,22 +299,26 @@
283 });
284 // ]]></script>';
285
286- // Show the menu here, according to the menu sub template.
287- //template_menu();
288+
289+
290+ // Custom banners and shoutboxes should be placed here, before the linktree.
291+ // Show the navigation tree.
292+ theme_linktree();
293
294 echo '
295 <br class="clear" />
296- </div></div>';
297+ </div>';
298
299 // The main content should go here.
300 echo '
301 <div id="content_section"><div class="frame">
302 <div id="main_content_section">';
303-
304- // Custom banners and shoutboxes should be placed here, before the linktree.
305-
306- // Show the navigation tree.
307- theme_linktree();
308+
309+ // Show the menu here, according to the menu sub template.
310+ template_menu();
311+
312+ echo'
313+ <br class="clear" />';
314 }
315
316 function template_body_below()
317@@ -395,8 +411,8 @@
318 global $context, $settings, $options, $scripturl, $txt;
319
320 echo '
321- <div id="main_menu">
322- <ul class="dropmenu" id="menu_nav">';
323+ <div id="smf_main_menu">
324+ <ul class="dropmenu" id="smf_menu_nav">';
325
326 foreach ($context['menu_buttons'] as $act => $button)
327 {

Subscribers

People subscribed via source and target branches