Merge lp:~gbancroft-canonical/developer-ubuntu-com/up-to-date-update into lp:developer-ubuntu-com/wordpress

Proposed by Graham Bancroft
Status: Merged
Merged at revision: 66
Proposed branch: lp:~gbancroft-canonical/developer-ubuntu-com/up-to-date-update
Merge into: lp:developer-ubuntu-com/wordpress
Diff against target: 263 lines (+91/-40)
8 files modified
css/base.css (+44/-0)
css/gomobile.css (+10/-3)
header.php (+1/-1)
part-blog-latest-articles.php (+4/-1)
part-blog-latest-events.php (+3/-1)
part-social-links.php (+8/-0)
template-gomobile.php (+14/-28)
template-home.php (+7/-6)
To merge this branch: bzr merge lp:~gbancroft-canonical/developer-ubuntu-com/up-to-date-update
Reviewer Review Type Date Requested Status
David Planella Pending
Review via email: mp+149277@code.launchpad.net

Description of the change

Keep up-to-date section updates, HTML & CSS

To post a comment you must log in.
65. By Graham Bancroft

Amend get involved section on go mobile page

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'css/base.css'
2--- css/base.css 2012-12-21 09:38:11 +0000
3+++ css/base.css 2013-02-19 14:41:25 +0000
4@@ -647,3 +647,47 @@
5 padding: 2px 4px 0;
6 white-space: nowrap;
7 }
8+
9+/* keep up-to-date - latest article lists and social links */
10+#keep-up h3 {
11+ color: #ADA79F;
12+ font-size: 16px;
13+ font-weight: 300;
14+}
15+
16+.article h4, .event h4 {
17+ font-weight: normal;
18+}
19+
20+#keep-up .article h4 a {
21+ font-size: 20px;
22+ margin-bottom: 10px;
23+}
24+
25+#keep-up .article p {
26+ font-size: 16px;
27+ margin-bottom: 5px;
28+}
29+
30+#keep-up .event h4 a {
31+ font-size: 16px;
32+}
33+
34+#keep-up .box-clear time {
35+ padding-bottom: 7px;
36+}
37+
38+#keep-up .social-links {
39+ margin-top: 20px;
40+}
41+
42+#keep-up .social-links a {
43+ padding: 4px 0 4px 24px;
44+}
45+
46+#keep-up .social-links a.link-twitter { background: url(../img/icon-twitter.png) 0 50% no-repeat; }
47+
48+#keep-up .social-links a.link-facebook { background: url(../img/icon-facebook.png) 0 50% no-repeat; }
49+
50+#keep-up .social-links a.link-google-plus { background: url(../img/icon-google-plus.png) 0 50% no-repeat; }
51+
52
53=== modified file 'css/gomobile.css'
54--- css/gomobile.css 2012-12-24 14:25:43 +0000
55+++ css/gomobile.css 2013-02-19 14:41:25 +0000
56@@ -315,9 +315,6 @@
57 width: 850px;
58 margin: 5px 0px 0px 20px;
59 }
60-#step-get-involved {
61- margin-bottom: 20px;
62-}
63 .step a {
64 margin-top: 20px;
65 }
66@@ -325,3 +322,13 @@
67 margin: 30px 0 0 40px;
68 float: left;
69 }
70+
71+#get-involved {
72+ background: url(../img/pictogram-love-heart.jpg) 92% 50% no-repeat;
73+ margin-bottom: 20px;
74+ margin-top: 20px;
75+}
76+
77+#get-involved p {
78+ padding-right: 20px;
79+}
80
81=== modified file 'header.php'
82--- header.php 2012-06-22 16:51:34 +0000
83+++ header.php 2013-02-19 14:41:25 +0000
84@@ -7,7 +7,7 @@
85
86 <title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
87
88-<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:400,400italic">
89+<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:300,400,400italic">
90 <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu+Mono:400">
91 <link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/css/reset.css" />
92 <link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/css/960.css" />
93
94=== added file 'img/icon-facebook.png'
95Binary files img/icon-facebook.png 1970-01-01 00:00:00 +0000 and img/icon-facebook.png 2013-02-19 14:41:25 +0000 differ
96=== added file 'img/icon-google-plus.png'
97Binary files img/icon-google-plus.png 1970-01-01 00:00:00 +0000 and img/icon-google-plus.png 2013-02-19 14:41:25 +0000 differ
98=== added file 'img/pictogram-love-heart.jpg'
99Binary files img/pictogram-love-heart.jpg 1970-01-01 00:00:00 +0000 and img/pictogram-love-heart.jpg 2013-02-19 14:41:25 +0000 differ
100=== modified file 'part-blog-latest-articles.php'
101--- part-blog-latest-articles.php 2012-12-18 15:15:10 +0000
102+++ part-blog-latest-articles.php 2013-02-19 14:41:25 +0000
103@@ -3,7 +3,10 @@
104 $args = array('numberposts' => 3, 'category' => $category_id);
105 $posts = get_posts($args);
106 foreach ($posts as $post): ?>
107- <a href="<?php the_permalink(); ?>"><?php the_title(); ?>&nbsp;&rsaquo;</a>
108+<div class="article">
109+ <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?>&nbsp;&rsaquo;</a></h4>
110+ <?php if (has_excerpt() ) { the_excerpt(); } ?>
111 <time datetime="<?php echo get_the_date('Y-m-d') ?>"><?php echo get_the_date('d F Y'); ?></time>
112+</div>
113 <?php endforeach; ?>
114 <a href="/?&amp;feed=rss2"><div class="rss">App developer blog &rsaquo;</div></a>
115
116=== modified file 'part-blog-latest-events.php'
117--- part-blog-latest-events.php 2012-12-18 15:15:10 +0000
118+++ part-blog-latest-events.php 2013-02-19 14:41:25 +0000
119@@ -3,8 +3,10 @@
120 $args = array('numberposts' => 3, 'category' => $category_id);
121 $posts = get_posts($args);
122 foreach ($posts as $post): ?>
123- <a href="<?php the_permalink(); ?>"><?php the_title(); ?>&nbsp;&rsaquo;</a>
124+<div class="event">
125+ <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?>&nbsp;&rsaquo;</a></h4>
126 <span class="location"><?php echo get_post_meta($post->ID, 'location', true); ?></span>
127 <time datetime="<?php echo date('Y-m-d', strtotime(str_replace(',', '', get_post_meta($post->ID, 'date-start', true)))); ?>"><?php echo get_post_meta($post->ID, 'date-start', true); ?> &ndash; <?php echo get_post_meta($post->ID, 'date-end', true); ?></time>
128+</div>
129 <?php endforeach; ?>
130 <a href="/?cat=<?php echo $category_id; ?>&amp;feed=rss2"><div class="rss">All upcoming events &rsaquo;</div></a>
131
132=== added file 'part-social-links.php'
133--- part-social-links.php 1970-01-01 00:00:00 +0000
134+++ part-social-links.php 2013-02-19 14:41:25 +0000
135@@ -0,0 +1,8 @@
136+<div class="social-links box-clear">
137+ <h3>Follow us on:</h3>
138+ <ul>
139+ <li><a class="link-twitter" href="http://twitter.com/ubuntuappdev">Twitter &rsaquo;</a></li>
140+ <li><a class="link-facebook" href="#">Facebook &rsaquo;</a></li>
141+ <li><a class="link-google-plus" href="#">Google+ &rsaquo;</a></li>
142+ </ul>
143+</div>
144\ No newline at end of file
145
146=== modified file 'template-gomobile.php'
147--- template-gomobile.php 2013-02-13 13:10:48 +0000
148+++ template-gomobile.php 2013-02-19 14:41:25 +0000
149@@ -6,8 +6,6 @@
150 ?>
151
152 <?php get_header(); ?>
153-
154-
155 <div class="grid-12">
156 <div class="box clearfix">
157 <h2>The best tools to unlock your creativity</h2>
158@@ -130,49 +128,37 @@
159 </div>
160 </div>
161
162- <div id="step-get-involved" class="step clearfix">
163- <span class="number">5</span>
164- <div>
165+ <div id="get-involved" class="box clearfix">
166+ <div class="grid-8">
167 <h2>Get involved</h2>
168- <div class="infobox">
169- <?php $gomobile_form_shortcode = get_post_meta($post->ID, 'gomobile_form_shortcode', true);
170- if (empty($gomobile_form_shortcode)) {
171- $gomobile_form_shortcode = "[contact-form-7 id='3694' title='Skunkworks']";
172- } ?>
173- <p><?php echo do_shortcode($gomobile_form_shortcode); ?></p>
174- </div>
175- <p>The phone is a huge milestone in the Ubuntu project. One that will generate a huge amount of excitement and get lots of attention. But this is just the beginning.</p>
176-
177- <p>There are a few projects related to Ubuntu on the phone that are currently in the works, and we’d like to engage with community members that are interested in contributing to those projects before they are unveiled.</p>
178-
179- <p>It’s all about creating the technology of the future for the leading free operating system. The same technology that will power the next million Ubuntu phones. It’s about being part of the action and providing input, review and working closely with the best experts in the design and development teams for Ubuntu.</p>
180-
181- <p>If you think this is exciting and want to join us in this journey, tell us a bit about yourself and your areas of expertise in the form on the side.</p>
182-
183- <p>Do get in touch, we’re looking forward to working together!</p>
184+ <p>The phone and tablet are a huge milestone in the Ubuntu project. One that has generated a huge amount of excitement and received lots of attention. But this is just the beginning.</p>
185+ <p>It&rsquo;s all about creating the technology of the future for the leading free operating system. The same technology that will power the next million Ubuntu phones and tablets. It&rsquo;s about being part of the action and providing input, review and working closely with the best experts in the design and development teams for Ubuntu.</p>
186+ <p>We hope you think this is exciting and want to join us in this journey. If you want, tell us a bit about yourself and what you are doing and we can use your email to tell you about key moments along the way.</p>
187+ <p><a href="https://forms.canonical.com/capetown-dev/">Tell us what you are working on &rsaquo;</a></p>
188 </div>
189 </div>
190
191 </div>
192
193- <div class="grid-12">
194+ <div id="keep-up" class="grid-12">
195 <h2>Keep up-to-date</h2>
196
197- <div class="grid-4 alpha border">
198- <h3>Latest from the blog</h3>
199+ <div class="grid-6 alpha border">
200+ <h3>Latest from the blog:</h3>
201 <div class="box-clear border">
202 <?php get_template_part('part', 'blog-latest-articles'); ?>
203 </div>
204 </div>
205
206- <div class="grid-4">
207- <h3>Latest events</h3>
208+ <div class="grid-3">
209+ <h3>Latest events:</h3>
210 <div class="box-clear">
211 <?php get_template_part('part', 'blog-latest-events'); ?>
212+ <?php get_template_part('part', 'social-links'); ?>
213 </div>
214 </div>
215
216- <div class="grid-4 omega">
217+ <div class="grid-3 omega">
218 <div class="box-clear">
219 <div class="container-tweet">
220 <div class="tweet clearfix"></div>
221@@ -182,4 +168,4 @@
222 </div>
223 </div>
224
225-<?php get_footer(); ?>
226+<?php get_footer(); ?>
227\ No newline at end of file
228
229=== modified file 'template-home.php'
230--- template-home.php 2013-02-13 11:36:32 +0000
231+++ template-home.php 2013-02-19 14:41:25 +0000
232@@ -152,24 +152,25 @@
233 </div>
234 </div>
235
236- <div class="grid-12">
237+ <div id="keep-up" class="grid-12">
238 <h2>Keep up-to-date</h2>
239
240- <div class="grid-4 alpha border">
241- <h3>Latest from the blog</h3>
242+ <div class="grid-6 alpha border">
243+ <h3>Latest from the blog:</h3>
244 <div class="box-clear border">
245 <?php get_template_part('part', 'blog-latest-articles'); ?>
246 </div>
247 </div>
248
249- <div class="grid-4">
250- <h3>Latest events</h3>
251+ <div class="grid-3">
252+ <h3>Latest events:</h3>
253 <div class="box-clear">
254 <?php get_template_part('part', 'blog-latest-events'); ?>
255+ <?php get_template_part('part', 'social-links'); ?>
256 </div>
257 </div>
258
259- <div class="grid-4 omega">
260+ <div class="grid-3 omega">
261 <div class="box-clear">
262 <div class="container-tweet">
263 <div class="tweet clearfix"></div>

Subscribers

People subscribed via source and target branches