Merge lp:~ya-bo-ng/resource-centre/update-post into lp:resource-centre
- update-post
- Merge into resource-centre
Proposed by
Anthony Dillon
Status: | Merged |
---|---|
Approved by: | Karl Williams |
Approved revision: | 113 |
Merged at revision: | 113 |
Proposed branch: | lp:~ya-bo-ng/resource-centre/update-post |
Merge into: | lp:resource-centre |
Diff against target: |
1281 lines (+794/-480) 1 file modified
single.php (+794/-480) |
To merge this branch: | bzr merge lp:~ya-bo-ng/resource-centre/update-post |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Karl Williams (community) | Approve | ||
Review via email: mp+383132@code.launchpad.net |
Commit message
Update the single post template to mimic the new blog for previewing posts
Description of the change
## Done
Updated the template for single posts to mimic the look of the new https:/
## QA
- Go to http://
- Check the theme looks like https:/
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 'single.php' |
2 | --- single.php 2017-06-06 20:43:43 +0000 |
3 | +++ single.php 2020-04-29 11:03:05 +0000 |
4 | @@ -1,482 +1,796 @@ |
5 | -<?php |
6 | - |
7 | -// Exit if accessed directly |
8 | -if ( !defined('ABSPATH')) exit; |
9 | - |
10 | -/** |
11 | - * Single Template |
12 | - * |
13 | - * |
14 | - * @file single.php |
15 | - * @package Ubuntu blog theme |
16 | - * @author Canonical Web Team |
17 | - * @copyright 2012 Canonical Ltd |
18 | - * @license |
19 | - * @version Release: 1.0 |
20 | - * @filesource wp-content/themes/insights-theme/single.php |
21 | - * @link http://codex.wordpress.org/Theme_Development#Footer_.28footer.php.29 |
22 | - * @since available since Release 1.0 |
23 | - */ |
24 | - |
25 | -get_header(); |
26 | - $field = 'dbt_ga_tracking_label'; |
27 | - $ga_conversion = get_post_meta($post->ID, $field, TRUE); |
28 | - $the_ga_code = $ga_conversion; |
29 | - $key = 'postVideo'; |
30 | - $video_content = get_post_meta($post->ID, $key, TRUE); |
31 | - $lock = 'dbt_checkbox_gated'; |
32 | - $gated_content = get_post_meta($post->ID, $lock, TRUE); |
33 | - $posted = $_GET['posted']; |
34 | - $postdate = get_the_time('sgymd'); |
35 | - $postid = get_the_ID(); |
36 | - $post_type = get_post_type_object( get_post_type($post) ); |
37 | - global $wpdb; |
38 | - global $posted; |
39 | - $attachment_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_status = 'inherit' AND post_type='attachment' ORDER BY post_date DESC LIMIT 1"); |
40 | - $articlecat = $category = get_the_category()->category_nicename; |
41 | - $category = get_the_category(); |
42 | - $category = $category[0]->category_nicename; |
43 | - $firstCategory = $category[0]->category_description; |
44 | - $registration = get_post_meta( $post->ID, '_event_registration', true ); |
45 | - $press_cats = array('press-releases', 'news'); |
46 | -?> |
47 | - |
48 | -<?php if ( has_tag( 'cloud-chatter') ) : ?><div class="row glossary-box glossary-box-chatter-cloud no-border"> |
49 | - <div class="inner-wrapper"> |
50 | - <div class="seven-col no-margin-bottom"> |
51 | - <h1 itemprop="name"><?php the_title(); ?></h1> |
52 | - <?php get_template_part("includes/_post_meta"); ?> |
53 | - <p class="intro clear"><?php echo get_the_excerpt(); ?></p> |
54 | +<!doctype html> |
55 | + |
56 | +<html prefix="og: http://ogp.me/ns#" class="" lang="en" dir="ltr"> |
57 | +<head> |
58 | + <meta charset="UTF-8"> |
59 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
60 | + |
61 | + <title>Preview | Ubuntu blog</title> |
62 | + |
63 | + <link rel="preconnect" href="https://res.cloudinary.com"> |
64 | + |
65 | + |
66 | + <script src="https://assets.ubuntu.com/v1/703e23c9-lazysizes+noscript+native-loading.5.1.2.min.js" defer></script> |
67 | + |
68 | + <!-- Temporary fix for IE11 (see: https://github.com/canonical-web-and-design/ubuntu.com/issues/6660) --> |
69 | + <script src="https://polyfill.io/v3/polyfill.min.js?features=URLSearchParams%2CArray.from%2CNodeList.prototype.forEach%2Cfetch%2CString.prototype.startsWith%2CElement.prototype.closest"></script> |
70 | + <script src="https://assets.ubuntu.com/v1/4176b39e-serialize.js"></script> |
71 | + <script src="https://www.google.com/recaptcha/api.js?onload=CaptchaCallback&render=explicit" defer></script> |
72 | + <script src="https://ubuntu.com/static/js/build/main.min.js?v=b9ce682" defer></script> |
73 | + |
74 | + <link rel="stylesheet" type="text/css" media="screen" href="https://ubuntu.com/static/css/styles.css?v=7f1ff52"> |
75 | + <link rel="stylesheet" type="text/css" media="print" href="https://ubuntu.com/static/css/print.css?v=92ca18c"> |
76 | + <script>performance.mark("Stylesheets finished")</script> |
77 | + |
78 | + <link rel="canonical" href="https://snapcraft.io/blog/work-smart-not-hard-fun-applications-to-help-you-do-less-in-your-day"> |
79 | + |
80 | + <link rel="shortcut icon" href="https://assets.ubuntu.com/v1/49a1a858-favicon-32x32.png" type="image/x-icon"> |
81 | + <link rel="apple-touch-icon" href="https://assets.ubuntu.com/v1/17b68252-apple-touch-icon-180x180-precomposed-ubuntu.png"> |
82 | + |
83 | + <link type="text/plain" rel="author" href="https://ubuntu.com/static/files/humans.txt?v=44f44f8"> |
84 | + |
85 | + |
86 | + |
87 | + <link rel="preload" as="font" type="font/woff2" href="https://assets.ubuntu.com/v1/e8c07df6-Ubuntu-L_W.woff2" crossorigin> |
88 | + <link rel="preload" as="font" type="font/woff2" href="https://assets.ubuntu.com/v1/7f100985-Ubuntu-Th_W.woff2" crossorigin> |
89 | + <link rel="preload" as="font" type="font/woff2" href="https://assets.ubuntu.com/v1/f8097dea-Ubuntu-LI_W.woff2" crossorigin> |
90 | + <link rel="preload" as="font" type="font/woff2" href="https://assets.ubuntu.com/v1/fff37993-Ubuntu-R_W.woff2" crossorigin> |
91 | + |
92 | + <meta name="description" content="Modern-day life is fast, hectic, demanding. Time is precious, and we often need to be able to squeeze every atom of efficiency from our environment and our tools. But sometimes, the best thing you can do for your productivity is – to do nothing. Sometimes, less is more. In this article, we want to show […]"> |
93 | + |
94 | + <meta name="theme-color" content="#E95420"> |
95 | + <meta name="twitter:account_id" content="4503599627481511"> |
96 | + <meta name="twitter:site" content="@ubuntu"> |
97 | + <meta property="og:type" content="website"> |
98 | + <meta property="og:url" content="https://ubuntu.com/blog/work-smart-not-hard-fun-applications-to-help-you-do-less-in-your-day"> |
99 | + <meta property="og:site_name" content="Ubuntu"> |
100 | + <meta name="copydoc" content="https://drive.google.com/drive/folders/0B4s80tIYQW4BMjNiMGFmNzQtNDkxZC00YmQ0LWJiZWUtNTk2YThlY2MzZmJh"> |
101 | + <meta name="google-site-verification" content="ddh2iq7ZuKf1LpkL_gtM_T7DkKDVD7ibq6Ceue4a_3M"> |
102 | + |
103 | + |
104 | + <meta name="twitter:title" content="Work smart, not hard – fun applications to help you do less in your day | Ubuntu"> |
105 | + <meta property="og:title" content="Work smart, not hard – fun applications to help you do less in your day | Ubuntu"> |
106 | + |
107 | + |
108 | + <meta name="twitter:description" content="Modern-day life is fast, hectic, demanding. Time is precious, and we often need to be able to squeeze every atom of efficiency from our environment and our tools. But sometimes, the best thing you can do for your productivity is – to do nothing. Sometimes, less is more. In this article, we want to show […]"> |
109 | + <meta property="og:description" content="Modern-day life is fast, hectic, demanding. Time is precious, and we often need to be able to squeeze every atom of efficiency from our environment and our tools. But sometimes, the best thing you can do for your productivity is – to do nothing. Sometimes, less is more. In this article, we want to show […]"> |
110 | + |
111 | + |
112 | + |
113 | + <!-- Meta image: https://admin.insights.ubuntu.com/wp-content/uploads/c576/matthew-henry-U5rMrSI7Pn4-unsplash-smaller.jpg --> |
114 | + |
115 | + <meta name="twitter:card" content="summary_large_image"> |
116 | + <meta name="twitter:image" content="https://admin.insights.ubuntu.com/wp-content/uploads/c576/matthew-henry-U5rMrSI7Pn4-unsplash-smaller.jpg"> |
117 | + <meta property="og:image" content="https://admin.insights.ubuntu.com/wp-content/uploads/c576/matthew-henry-U5rMrSI7Pn4-unsplash-smaller.jpg"> |
118 | + |
119 | + |
120 | + <!-- Google Analytics and Google Optimize --> |
121 | + <script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
122 | + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
123 | + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
124 | + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
125 | + ga('create', 'UA-1018242-59', 'auto', {'allowLinker': true}); |
126 | + ga('require', 'GTM-N2MDH37'); |
127 | + ga('require', 'linker'); |
128 | + ga('linker:autoLink', ['conjure-up.io', 'login.ubuntu.com', 'www.ubuntu.com', |
129 | + 'ubuntu.com', 'insights.ubuntu.com', 'developer.ubuntu.com', 'cn.ubuntu.com', |
130 | + 'design.ubuntu.com', 'maas.io', 'canonical.com', 'landscape.canonical.com', |
131 | + 'pages.ubuntu.com', '/tutorials', 'docs.ubuntu.com']); |
132 | + </script> |
133 | + <!-- End Google Analytics and Google Optimize --> |
134 | + |
135 | + <!-- Google Tag Manager --> |
136 | + <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': |
137 | + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], |
138 | + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
139 | + '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
140 | + })(window,document,'script','dataLayer','GTM-K92JCQ');</script> |
141 | + <!-- End Google Tag Manager --> |
142 | +</head> |
143 | + |
144 | +<body class="blog-article"> |
145 | + <!-- google tag manager --> |
146 | + <noscript> |
147 | + <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K92JCQ" height="0" width="0" style="display:none;visibility:hidden"></iframe> |
148 | + </noscript> |
149 | + <!-- end google tag manager --> |
150 | + |
151 | +<header id="navigation" class="p-navigation"> |
152 | + <div class="p-navigation__row u-fixed-width"> |
153 | + <div class="p-navigation__banner"> |
154 | + <div class="p-navigation__logo"> |
155 | + <a class="p-navigation__link" href="https://ubuntu.com/"> |
156 | + <svg class="p-navigation__image" width="107px" height="32px" viewBox="0 0 107 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="ubuntu-logo"><path d="M100.470409,13.7615448 C96.9385448,13.7615448 94.0754031,10.8982838 94.0754031,7.36627238 C94.0754031,3.83426097 96.9385448,0.971 100.470409,0.971 C104.002273,0.971 106.865415,3.83426097 106.865415,7.36627238 C106.865415,10.8982838 104.002273,13.7615448 100.470409,13.7615448 Z M96.479398,6.59820047 C96.0559273,6.59820047 95.7123568,6.9417853 95.7123568,7.36727117 C95.7123568,7.78976066 96.0559273,8.13434429 96.479398,8.13434429 C96.9038674,8.13434429 97.2504342,7.78976066 97.2504342,7.36727117 C97.2504342,6.9417853 96.9038674,6.59820047 96.479398,6.59820047 Z M101.966539,10.0919788 C101.601995,10.3017254 101.475153,10.7731557 101.684891,11.1377152 C101.898624,11.5092663 102.369036,11.6341154 102.73358,11.4213725 C103.103118,11.2116259 103.22996,10.7401956 103.015228,10.3726397 C102.803493,10.0030862 102.334079,9.87823709 101.966539,10.0929776 L101.966539,10.0919788 Z M98.1493106,7.36727117 C98.1493106,6.6081884 98.5268386,5.93500183 99.104117,5.52949182 L98.5428187,4.58762991 C97.8686614,5.03708681 97.3682869,5.72425648 97.1605465,6.52828495 C97.4062394,6.72804357 97.5580496,7.02768151 97.5580496,7.36727117 C97.5580496,7.70386446 97.4062394,8.00649877 97.1605465,8.20425981 C97.3682869,9.00828828 97.8696601,9.69445915 98.5428187,10.1419185 L99.104117,9.20305294 C98.5268386,8.79754293 98.1493106,8.12435636 98.1493106,7.36727117 Z M100.392506,5.11998664 C101.568037,5.11998664 102.529835,6.02089804 102.62971,7.16951013 L103.726339,7.14953427 C103.671408,6.30555408 103.30187,5.54147734 102.73358,4.98714716 C102.438948,5.09501681 102.100372,5.08003492 101.809735,4.90924129 C101.518099,4.74144405 101.337325,4.4577868 101.286389,4.15015852 C101.001745,4.07225265 100.703118,4.03030334 100.392506,4.03030334 C99.8631682,4.03030334 99.3617949,4.15415369 98.9143542,4.37388818 L99.4486863,5.33073199 C99.735328,5.19589492 100.057925,5.12098543 100.392506,5.12098543 L100.392506,5.11998664 Z M100.392506,9.61155932 C100.056926,9.61155932 99.735328,9.53565105 99.4486863,9.40181277 L98.9143542,10.3586566 C99.3607962,10.5783911 99.8631682,10.7022414 100.392506,10.7022414 C100.704117,10.7022414 101.001745,10.6622897 101.286389,10.5823862 C101.336327,10.2727604 101.518099,9.98810433 101.809735,9.82130588 C102.103368,9.65350864 102.438948,9.63553036 102.73358,9.74839398 C103.302868,9.18607345 103.670409,8.42599188 103.726339,7.5810129 L102.62971,7.56503221 C102.529835,8.71064793 101.568037,9.61056053 100.392506,9.61056053 L100.392506,9.61155932 Z M101.966539,4.64156473 C102.334079,4.85430767 102.803493,4.72945853 103.015228,4.35990507 C103.22996,3.993348 103.103118,3.52091885 102.735578,3.30917471 C102.370035,3.09942815 101.899623,3.22427729 101.686888,3.59183316 C101.474154,3.95839024 101.600996,4.4288218 101.966539,4.64056594 L101.966539,4.64156473 Z M12.7910109,24.1489933 C12.1418224,24.3107977 11.2828961,24.4855865 10.2172282,24.6663681 C9.15056154,24.850146 7.91610464,24.942035 6.5178525,24.942035 C5.29737813,24.942035 4.27365781,24.7642498 3.43970028,24.4086795 C2.60774025,24.0541079 1.93857672,23.551715 1.4322097,22.9005019 C0.922846416,22.2512863 0.558302106,21.4842132 0.335580515,20.6032777 C0.109862669,19.7153506 0,18.7385309 0,17.6598343 L0,8.76857793 L2.83146059,8.76857793 L2.83146059,17.0515693 C2.83146059,18.9822364 3.13508106,20.3635673 3.746317,21.1945632 C4.35555543,22.0275567 5.38127325,22.4430546 6.82247172,22.4430546 C7.12609218,22.4430546 7.44169767,22.4330667 7.76629191,22.4110932 C8.09188491,22.3911174 8.39750288,22.3661475 8.67915081,22.3361837 C8.96279625,22.3062199 9.22247165,22.2762561 9.45617951,22.2462924 C9.68988736,22.214331 9.85568012,22.1813708 9.95955028,22.1384227 L9.95955028,8.76857793 L12.7910109,8.76857793 L12.7910109,24.1499921 L12.7910109,24.1489933 Z M19.7033702,9.46773311 C20.049937,9.24600104 20.5722841,9.01028586 21.2734076,8.76857793 C21.9725337,8.5258712 22.7785262,8.40202085 23.6943813,8.40202085 C24.8299618,8.40202085 25.8396996,8.60777223 26.7235947,9.01128466 C27.6084886,9.41679466 28.3535572,9.98710554 28.9637944,10.7192209 C29.5700366,11.4483399 30.0324586,12.3212851 30.3470653,13.3360589 C30.6636695,14.3518315 30.8204735,15.469481 30.8204735,16.6880086 C30.8204735,17.9664638 30.6327082,19.1180723 30.2551802,20.1438328 C29.8786508,21.1685946 29.3463163,22.0365458 28.6571777,22.7466877 C27.9660416,23.459826 27.1350804,24.005167 26.1583014,24.3917 C25.1865161,24.7782329 24.0908857,24.971 22.8694126,24.971 C21.5490631,24.971 20.3825213,24.8781122 19.366791,24.6953331 C18.3520594,24.512554 17.5191006,24.328776 16.8699121,24.1459969 L16.8699121,1.45940984 L19.7023715,0.971998793 L19.7023715,9.46773311 L19.700374,9.46773311 L19.7033702,9.46773311 Z M20.9078646,22.3661475 C21.4242191,22.4390594 22.0664163,22.4730184 22.8404488,22.4730184 C24.3605486,22.4730184 25.5820217,21.9686279 26.4938819,20.9648408 C27.4077395,19.9590561 27.8651677,18.5327795 27.8651677,16.686011 C27.8651677,15.8739922 27.7852676,15.1129119 27.6214724,14.4007724 C27.4586759,13.6896317 27.1940067,13.0763727 26.8294624,12.557999 C26.4639193,12.0386266 25.9905111,11.636113 25.4152302,11.3394714 C24.8339568,11.0438287 24.1388258,10.8970061 23.3278395,10.8970061 C22.5548058,10.8970061 21.8456923,11.0298456 21.195505,11.2915294 C20.5463165,11.5582071 20.0469408,11.8308776 19.7023715,12.1155337 L19.7023715,22.1354263 C19.9880144,22.2203237 20.3885138,22.296232 20.9078646,22.3661475 Z M46.6257165,24.1489933 C45.976528,24.3107977 45.1176017,24.4855865 44.0529326,24.6663681 C42.9872647,24.850146 41.7528078,24.942035 40.3505606,24.942035 C39.1340813,24.942035 38.1083635,24.7642498 37.2764034,24.4086795 C36.4444434,24.0541079 35.7742811,23.551715 35.2689128,22.9005019 C34.7575521,22.2512863 34.3940065,21.4842132 34.1702862,20.6032777 C33.9475646,19.7173482 33.8367032,18.7395297 33.8367032,17.6618319 L33.8367032,8.77057551 L36.6681637,8.77057551 L36.6681637,17.0535669 C36.6681637,18.984234 36.9717842,20.3655649 37.5810226,21.1965608 C38.1902611,22.0295542 39.2149802,22.4450522 40.6571774,22.4450522 C40.9617966,22.4450522 41.2784008,22.4350643 41.6029951,22.4130908 C41.9275893,22.3931149 42.2322085,22.3681451 42.5168527,22.3381813 C42.7994994,22.3082175 43.0591748,22.2782537 43.2938814,22.2482899 C43.5255918,22.2153298 43.693382,22.1823696 43.7962534,22.1384227 L43.7962534,8.77057551 L46.6287128,8.77057551 L46.6287128,24.1519896 L46.6267153,24.1519896 L46.6257165,24.1489933 Z M50.7066153,9.22602518 C51.3558038,9.06222311 52.2177263,8.89142948 53.2953793,8.70665275 C54.3710347,8.52686999 55.6084878,8.43398223 57.010735,8.43398223 C58.2711594,8.43398223 59.3148547,8.61176741 60.1468148,8.96633897 C60.9807723,9.32190932 61.6449421,9.8183095 62.1423203,10.4585359 C62.6396986,11.0977635 62.9912591,11.8648366 63.1940057,12.7557601 C63.3957535,13.6526763 63.4976262,14.6354887 63.4976262,15.7121877 L63.4976262,24.6054417 L60.6641681,24.6054417 L60.6641681,16.3214515 C60.6641681,15.3456307 60.5982505,14.513636 60.467414,13.8244687 C60.3355788,13.1313063 60.117851,12.5759773 59.812233,12.1494927 C59.5096113,11.7200116 59.1011219,11.4123833 58.5937561,11.220615 C58.0873891,11.0238528 57.4551794,10.9289675 56.7061157,10.9289675 C56.4014965,10.9289675 56.0868898,10.9419518 55.764293,10.9619276 C55.4387,10.9819035 55.1280883,11.0078721 54.8354541,11.0378359 C54.5358287,11.0677997 54.2761533,11.1037563 54.0414466,11.143708 C53.8057413,11.1836597 53.6389498,11.2156211 53.5380759,11.2335994 L53.5380759,24.6044429 L50.7066153,24.6044429 L50.7066153,9.22602518 Z M70.0444424,8.76857793 L76.0449416,8.76857793 L76.0449416,11.143708 L70.0444424,11.143708 L70.0444424,18.4548737 C70.0444424,19.2439202 70.106365,19.9031237 70.2292115,20.4175021 C70.3490617,20.9368746 70.5328319,21.3443822 70.7765273,21.6380273 C71.0202227,21.9296749 71.3258407,22.1374239 71.6893862,22.262273 C72.0549293,22.3841258 72.4813962,22.4440534 72.9677882,22.4440534 C73.8396983,22.4440534 74.5298356,22.3471705 75.0401976,22.1544034 C75.5465646,21.9606375 75.8921327,21.8248017 76.0739054,21.7419018 L76.6831439,24.0591019 C76.3994984,24.2009305 75.8961277,24.3827108 75.1750291,24.6054417 C74.455928,24.8301702 73.6389492,24.9430338 72.7250916,24.9430338 C71.6484374,24.9430338 70.7595485,24.8061991 70.058425,24.5305322 C69.3592989,24.2548653 68.796003,23.8453601 68.3705349,23.2970227 C67.9430692,22.7496841 67.6434438,22.0744999 67.4716585,21.2724691 C67.2978757,20.4684406 67.2119831,19.5405618 67.2119831,18.4858362 L67.2119831,4.35191473 L70.0424449,3.8625061 L70.0424449,8.77057551 L70.0444424,8.77057551 L70.0444424,8.76857793 Z M91.4556778,24.1489933 C90.803493,24.3107977 89.947563,24.4855865 88.8788988,24.6663681 C87.8142297,24.850146 86.5817703,24.942035 85.1835182,24.942035 C83.9630438,24.942035 82.9393235,24.7642498 82.1073634,24.4086795 C81.2714084,24.0541079 80.6022449,23.551715 80.0958779,22.9005019 C79.5865146,22.2512863 79.2239678,21.4842132 78.9972512,20.6032777 C78.7775258,19.7173482 78.6626694,18.7395297 78.6626694,17.6618319 L78.6626694,8.77057551 L81.4991238,8.77057551 L81.4991238,17.0535669 C81.4991238,18.984234 81.8027442,20.3655649 82.4109839,21.1965608 C83.0202223,22.0295542 84.0459402,22.4450522 85.4871386,22.4450522 C85.7917578,22.4450522 86.1063646,22.4350643 86.4319576,22.4130908 C86.7535556,22.3931149 87.0591735,22.3681451 87.3438177,22.3381813 C87.6274632,22.3082175 87.8891361,22.2782537 88.1198477,22.2482899 C88.3535555,22.2153298 88.5223445,22.1823696 88.6242172,22.1384227 L88.6242172,8.77057551 L91.4576753,8.77057551 L91.4576753,24.1519896 L91.4556778,24.1519896 L91.4556778,24.1489933 Z" id="ubuntu" fill="#FFFFFF" fill-rule="nonzero"></path></g></svg> |
157 | + <script>performance.mark("Logo rendered")</script> |
158 | + </a> |
159 | + <h5 class="p-navigation--secondary__logo u-hide--nav-threshold-up"> |
160 | + <a class="p-navigation--secondary__banner" href="https://ubuntu.com/blog"> |
161 | + Blog |
162 | + </a> |
163 | + </h5> |
164 | + </div> |
165 | + </div> |
166 | + <nav class="p-navigation__nav"> |
167 | + <span class="u-off-screen"> |
168 | + <a href="#main-content">Jump to main content</a> |
169 | + </span> |
170 | + <ul class="p-navigation__links u-hide js-show-nav" role="menu"> |
171 | + <li class="p-navigation__dropdown-link" role="menuitem" id="enterprise" onmouseover="fetchDropdown('https://ubuntu.com/templates/_navigation-enterprise-h', 'enterprise-content'); this.onmouseover = null;"> |
172 | + <a class="p-navigation__link-anchor" href="#enterprise-content" onfocus="fetchDropdown('https://ubuntu.com/templates/_navigation-enterprise-h', 'enterprise-content');">Enterprise</a> |
173 | + </li> |
174 | + <li class="p-navigation__dropdown-link" role="menuitem" id="developer" onmouseover="fetchDropdown('https://ubuntu.com/templates/_navigation-developer-h', 'developer-content'); this.onmouseover = null;"> |
175 | + <a class="p-navigation__link-anchor" href="#developer-content" onfocus="fetchDropdown('https://ubuntu.com/templates/_navigation-developer-h', 'developer-content');">Developer</a> |
176 | + </li> |
177 | + <li class="p-navigation__dropdown-link" role="menuitem" id="community" onmouseover="fetchDropdown('https://ubuntu.com/templates/_navigation-community-h', 'community-content'); this.onmouseover = null;"> |
178 | + <a class="p-navigation__link-anchor" href="#community-content" onfocus="fetchDropdown('https://ubuntu.com/templates/_navigation-community-h', 'community-content');">Community</a> |
179 | + </li> |
180 | + <li class="p-navigation__dropdown-link" role="menuitem" id="download" onmouseover="fetchDropdown('https://ubuntu.com/templates/_navigation-download-h', 'download-content'); this.onmouseover = null;"> |
181 | + <a class="p-navigation__link-anchor" href="#download-content" onfocus="fetchDropdown('https://ubuntu.com/templates/_navigation-download-h', 'download-content');">Download</a> |
182 | + </li> |
183 | + </ul> |
184 | + <noscript> |
185 | + <ul class="p-navigation__links" role="menu"> |
186 | + <li class="p-navigation__dropdown-link--noscript" role="menuitem"><a class="p-navigation__link-anchor" href="https://ubuntu.com/openstack">OpenStack</a></li> |
187 | + <li class="p-navigation__dropdown-link--noscript" role="menuitem"><a class="p-navigation__link-anchor" href="https://ubuntu.com/kubernetes">Kubernetes</a></li> |
188 | + <li class="p-navigation__dropdown-link--noscript" role="menuitem"><a class="p-navigation__link-anchor" href="https://ubuntu.com/desktop">Desktop</a></li> |
189 | + <li class="p-navigation__dropdown-link--noscript" role="menuitem"><a class="p-navigation__link-anchor" href="https://ubuntu.com/internet-of-things">IoT</a></li> |
190 | + <li class="p-navigation__dropdown-link--noscript" role="menuitem"><a class="p-navigation__link-anchor" href="https://ubuntu.com/support">Support</a></li> |
191 | + <li class="p-navigation__dropdown-link--noscript" role="menuitem"><a class="p-navigation__link-anchor" href="https://ubuntu.com/download">Downloads</a></li> |
192 | + </ul> |
193 | + </noscript> |
194 | + <div class="p-navigation__search"> |
195 | + <form action="/search" class="p-search-box" id="google-appliance-search-form"> |
196 | + <input type="search" class="p-search-box__input" name="q" placeholder="Search" required="" aria-label="Search"> |
197 | + <button type="reset" class="p-search-box__reset u-no-margin--right"><i class="p-icon--close">Clear</i></button> |
198 | + <button type="submit" class="p-search-box__button"><i class="p-icon--search">Search</i></button> |
199 | + </form> |
200 | + </div> |
201 | + </nav> |
202 | + </div> |
203 | + |
204 | +</header> |
205 | +<div class="dropdown-window-overlay fade-animation"></div> |
206 | +<div class="dropdown-window slide-animation"> |
207 | + <div class="u-hide" id="enterprise-content"></div> |
208 | + <div class="u-hide" id="developer-content"> </div> |
209 | + <div class="u-hide" id="community-content"></div> |
210 | + <div class="u-hide" id="download-content"></div> |
211 | +</div> |
212 | + |
213 | + |
214 | +<nav class="p-navigation--secondary"> |
215 | + <div class="row"> |
216 | + <div class="col-12 u-equal-height"> |
217 | + <a class="p-navigation--secondary__banner u-hide--nav-threshold-down" href="https://ubuntu.com/blog"> |
218 | + <h5 class="p-navigation--secondary__logo"> |
219 | + Blog |
220 | + </h5> |
221 | + </a> |
222 | + |
223 | + <ul class="breadcrumbs--secondary"> |
224 | + <li class="breadcrumbs__item"> |
225 | + <a class="breadcrumbs__link p-link--soft" href="https://ubuntu.com/blog">Overview</a> |
226 | + </li> |
227 | + <li class="breadcrumbs__item"> |
228 | + <a class="breadcrumbs__link p-link--soft" href="https://ubuntu.com/blog/internet-of-things">Internet of Things</a> |
229 | + </li> |
230 | + <li class="breadcrumbs__item"> |
231 | + <a class="breadcrumbs__link p-link--soft" href="https://ubuntu.com/blog/desktop">Desktop</a> |
232 | + </li> |
233 | + <li class="breadcrumbs__item"> |
234 | + <a class="breadcrumbs__link p-link--soft" href="https://ubuntu.com/blog/cloud-and-server">Cloud and Server</a> |
235 | + </li> |
236 | + <li class="breadcrumbs__item p-contextual-menu u-hide--small"> |
237 | + <a aria-controls="#topics" data-trigger="hover" class="breadcrumbs__link u-no-margin--bottom p-link--soft p-contextual-menu__toggle" href="#">Topics</a> |
238 | + <span class="p-contextual-menu__dropdown" id="topics" aria-hidden="true" aria-label="submenu" style="left: 1rem; font-size: .875rem;"> |
239 | + <span class="p-contextual-menu__group"> |
240 | + <a href="https://ubuntu.com/blog/topics/design" class="p-contextual-menu__link breadcrumbs p-link--soft">Design</a> |
241 | + <a href="https://ubuntu.com/blog/topics/juju" class="p-contextual-menu__link breadcrumbs p-link--soft">Juju</a> |
242 | + <a href="https://ubuntu.com/blog/topics/maas" class="p-contextual-menu__link breadcrumbs p-link--soft">MAAS</a> |
243 | + <a href="https://ubuntu.com/blog/topics/robotics" class="p-contextual-menu__link breadcrumbs p-link--soft">Robotics</a> |
244 | + <a href="https://ubuntu.com/blog/topics/snapcraft" class="p-contextual-menu__link breadcrumbs p-link--soft">Snapcraft</a> |
245 | + </span> |
246 | + </span> |
247 | + </li> |
248 | + <li class="breadcrumbs__item"> |
249 | + <a class="breadcrumbs__link p-link--soft" href="https://ubuntu.com/blog/press-centre">Press centre</a> |
250 | + </li> |
251 | + <li class="breadcrumbs__item u-hide--medium u-hide--large"> |
252 | + <a class="breadcrumbs__link p-link--soft " href="https://ubuntu.com/blog/topics/design">Design</a> |
253 | + </li> |
254 | + |
255 | + <li class="breadcrumbs__item u-hide--medium u-hide--large"> |
256 | + <a class="breadcrumbs__link p-link--soft " href="https://ubuntu.com/blog/topics/juju">Juju</a> |
257 | + </li> |
258 | + |
259 | + <li class="breadcrumbs__item u-hide--medium u-hide--large"> |
260 | + <a class="breadcrumbs__link p-link--soft " href="https://ubuntu.com/blog/topics/maas">MAAS</a> |
261 | + </li> |
262 | + |
263 | + <li class="breadcrumbs__item u-hide--medium u-hide--large"> |
264 | + <a class="breadcrumbs__link p-link--soft " href="https://ubuntu.com/blog/topics/robotics">Robotics</a> |
265 | + </li> |
266 | + |
267 | + <li class="breadcrumbs__item u-hide--medium u-hide--large"> |
268 | + <a class="breadcrumbs__link p-link--soft " href="https://ubuntu.com/blog/topics/snapcraft">Snapcraft</a> |
269 | + </li> |
270 | + </ul> |
271 | + </div> |
272 | + </div> |
273 | +</nav> |
274 | + |
275 | +<script> |
276 | + var nav = document.querySelector('.js-show-nav'); |
277 | + var hash = window.location.hash; |
278 | + nav.classList.remove('u-hide'); |
279 | + |
280 | + // If the page loads with a preselected hash load and open the menu |
281 | + if (hash) { |
282 | + try { |
283 | + var selected = nav.querySelector(hash); |
284 | + } catch(error) { |
285 | + console.warn("Hash " + hash + " not found in topnav"); |
286 | + } |
287 | + if (selected) { |
288 | + selected.onmouseover(); |
289 | + } |
290 | + } |
291 | + |
292 | + function fetchDropdown(url, id) { |
293 | + var div = document.getElementById(id); |
294 | + var req = new XMLHttpRequest(); |
295 | + req.open('GET', url); |
296 | + req.send(); |
297 | + req.addEventListener('load', function() { |
298 | + div.innerHTML = this.responseText; |
299 | + }); |
300 | + } |
301 | +</script> |
302 | + |
303 | + <div class="wrapper u-no-margin--top"> |
304 | + <div id="main-content" class="inner-wrapper"> |
305 | + <article> |
306 | + <header class="p-strip--image is-shallow" style="background-image: url(https://assets.ubuntu.com/v1/f8a323a7-image-background-paper.png);"> |
307 | + <div class="row"> |
308 | + <div class="col-8"> |
309 | + <h1><?php the_title(); ?></h1> |
310 | + </div> |
311 | + </div> |
312 | + |
313 | + <div class="row"> |
314 | + <div class="col-8"> |
315 | + <div class="p-media-object"> |
316 | + <?php if (have_posts()) : while (have_posts()) : the_post(); ?> |
317 | + <img src="https://secure.gravatar.com/avatar/fe0589ad41ef5c32641d0dbf4e77a589?s=96&d=mm&r=g" class="p-media-object__image is-round"> |
318 | + |
319 | + |
320 | + <div class="p-media-object__details"> |
321 | + |
322 | + <h3 class="p-media-object__title"> |
323 | + <a href="https://ubuntu.com/blog/author/<?php echo get_the_author_meta( 'nickname' ); ?>" title="More about <?php echo get_the_author_meta( 'display_name' ); ?>"><?php echo get_the_author_meta( 'display_name' ); ?></a> |
324 | + </h3> |
325 | + |
326 | + <p class="p-media-object__content">on <?php echo get_the_date()?></p> |
327 | + <?php endwhile; endif; // done our wordpress loop. Will start again for each category ?> |
328 | + </div> |
329 | + </div> |
330 | + </div> |
331 | + <div class="col-4"> |
332 | + <ul class="p-inline-list-icons u-no-padding--left u-no-margin--left"> |
333 | + <li class="p-inline-list__item"> |
334 | + Share on: |
335 | + </li> |
336 | + |
337 | + <li class="p-inline-list__item"> |
338 | + <a class="p-icon--facebook" title="Share on Facebook" href=""> |
339 | |
340 | + </a> |
341 | + </li> |
342 | + |
343 | + <li class="p-inline-list__item"> |
344 | + <a class="p-icon--twitter" title="Share on Twitter" href=""> |
345 | |
346 | + </a> |
347 | + </li> |
348 | + |
349 | + <li class="p-inline-list__item"> |
350 | + <a class="p-icon--linkedin" title="Share on LinkedIn" href=""> |
351 | |
352 | + </a> |
353 | + </li> |
354 | + </ul> |
355 | + </div> |
356 | + </div> |
357 | + <div class="row"> |
358 | + <div class="col-10"> |
359 | + <p> |
360 | + <strong>Tags:</strong> |
361 | + <?php |
362 | + if (have_posts()) : while (have_posts()) : the_post(); |
363 | + $post_tags = get_the_tags(); |
364 | + if ( $post_tags ) { |
365 | + foreach( $post_tags as $tag ) { |
366 | + echo '<a href="https://ubuntu.com/blog/tag/'.$tag->name.'">'.$tag->name.'</a>, '; |
367 | + } |
368 | + } |
369 | + endwhile; endif; // done our wordpress loop. Will start again for each category |
370 | + ?> |
371 | + </p> |
372 | + </div> |
373 | + </div> |
374 | + </header> |
375 | + |
376 | + <section class="p-strip is-shallow" style="overflow-x: initial;"> |
377 | + <div class="row u-equal-height"> |
378 | + <div class="col-8"> |
379 | + <div class="p-post__content"> |
380 | + <?php the_content(); ?> |
381 | + </div> |
382 | + </div> |
383 | + |
384 | + <div class="col-4"> |
385 | + <div style="position: sticky; top: 2rem;"> |
386 | + <div class="blog-p-card--muted"> |
387 | + <header class="blog-p-card__header"> |
388 | + <h5 class="p-muted-heading u-no-margin--bottom">Newsletter signup</h5> |
389 | + </header> |
390 | + |
391 | + <div class="blog-p-card__content"> |
392 | + <form action="https://pages.canonical.com/index.php/leadCapture/save" method="post" id="mktoForm_1212" novalidate="novalidate" onsubmit="ga('send', 'Newsletter', 'Signup', 'New homepage newsletter signup');"> |
393 | + <h3 class="p-card--title p-heading--four">Select topics you’re <br />interested in</h3> |
394 | + |
395 | + <ul class="p-list"> |
396 | + <li class="p-list__item u-clearfix"> |
397 | + <input class="mktoLogicalField mktoCheckboxList mktoHasWidth" type="checkbox" id="insightscloudserver" name="insightscloudserver" value="Cloud and server" /> |
398 | + <label for="insightscloudserver">Cloud and Server</label> |
399 | + </li> |
400 | + |
401 | + <li class="p-list__item u-clearfix"> |
402 | + <input class="mktoLogicalField mktoCheckboxList mktoHasWidth" type="checkbox" id="insightsdesktop" name="insightsdesktop" value="Desktop" /> |
403 | + <label for="insightsdesktop">Desktop</label> |
404 | + </li> |
405 | + |
406 | + <li class="p-list__item u-clearfix"> |
407 | + <input class="mktoLogicalField mktoCheckboxList mktoHasWidth" type="checkbox" id="insightsiot" name="insightsiot" value="Internet of Things" /> |
408 | + <label for="insightsiot">Internet of Things</label> |
409 | + </li> |
410 | + |
411 | + <li class="p-list__item u-clearfix"> |
412 | + <input class="mktoLogicalField mktoCheckboxList mktoHasWidth" id="insightsrobotics" name="insightsrobotics" value="Robotics" type="checkbox"> |
413 | + <label for="insightsrobotics">Robotics</label> |
414 | + </li> |
415 | + |
416 | + <li class="p-list__item u-clearfix"> |
417 | + <input class="mktoLogicalField mktoCheckboxList mktoHasWidth" id="insightstutorials" name="insightstutorials" value="Tutorials" type="checkbox"> |
418 | + <label for="insightstutorials">Tutorials</label> |
419 | + </li> |
420 | + </ul> |
421 | + |
422 | + <div class="mktFormReq mktField"> |
423 | + <label> |
424 | + <span class="u-no-margin--top">Work email: <span>*</span></span> |
425 | + <input required id="Email" name="Email" maxlength="255" type="email" class="mktoField mktoEmailField mktoRequired" /> |
426 | + </label> |
427 | + </div> |
428 | + |
429 | + <div class="mktField mktLblRight"> |
430 | + <span class="mktInput mktLblRight"> |
431 | + <input class="u-no-margin--top mktFormCheckbox" name="canonicalUpdatesOptIn" id="CanonicalUpdatesOptIn" value="Receive updates" type="checkbox" /> |
432 | + <label for="CanonicalUpdatesOptIn" class="p-form__label u-no-margin--top"> |
433 | + <small>I agree to receive information about Canonical’s products and services.</small> |
434 | + </label> |
435 | + <span class="mktFormMsg"></span> |
436 | + </span> |
437 | + </div> |
438 | + |
439 | + <div class="g-recaptcha" data-sitekey="6LfYBloUAAAAAINm0KzbEv6TP0boLsTEzpdrB8if"></div> |
440 | + |
441 | + <p> |
442 | + <small>In submitting this form, I confirm that I have read and agree to <a href="https://ubuntu.com/legal/data-privacy/newsletter">Canonical’s Privacy Notice</a> and <a href="https://ubuntu.com/legal/data-privacy">Privacy Policy</a>.</small> |
443 | + </p> |
444 | + |
445 | + <div> |
446 | + <span class="mktoButtonWrap p-card--content"> |
447 | + <button type="submit" class="u-no-margin--bottom">Subscribe now</button> |
448 | + </span> |
449 | + |
450 | + <input type="hidden" name="Consent_to_Processing__c" value="yes" /> |
451 | + |
452 | + <input value="1959" class="mktoField mktoFieldDescriptor" name="lpId" type="hidden"> |
453 | + |
454 | + <input value="30" class="mktoField mktoFieldDescriptor" name="subId" type="hidden"> |
455 | + |
456 | + <input name="lpurl" value="https://pages.canonical.com/Insights-Subscription_Insights-Subscription-test.html?cr={creative}&kw={keyword}" type="hidden"> |
457 | + <input value="1212" class="mktoField mktoFieldDescriptor" name="formid" type="hidden"> |
458 | + <input type="hidden" name="ret" value="?newsletter=true" /> |
459 | + <input value="066-EOV-335" class="mktoField mktoFieldDescriptor" name="munchkinId" type="hidden"> |
460 | + <input name="kw" value="" type="hidden"> |
461 | + <input name="cr" value="" type="hidden"> |
462 | + <input name="searchstr" value="" type="hidden"> |
463 | + <input name="_mkt_disp" value="return" type="hidden"> |
464 | + <input name="_mkt_trk" value="id:066-EOV-335&token:_mch-ubuntu.com-1473266321199-95160" type="hidden"> |
465 | + <input type="hidden" name="thankyoumessage" value="Thank you for subscribing!<br />You will begin receiving emails as new content is posted. You may unsubscribe any time by clicking the link in the email."> |
466 | + </div> |
467 | + </form> |
468 | + </div> |
469 | + </div> |
470 | + |
471 | + <script src="https://assets.ubuntu.com/v1/5d7e5bbf-jquery-2.2.0.min.js"></script> |
472 | + <script src="https://assets.ubuntu.com/v1/d55f58bb-jquery.validate.js"></script> |
473 | + <script> |
474 | + $("#mktoForm_1212").validate({ |
475 | + errorPlacement: function(error, element) { |
476 | + error.appendTo( element.parent().addClass( "p-form-validation is-error" )); |
477 | + error.appendTo( element.addClass( "p-form-validation__input" )); |
478 | + }, |
479 | + errorElement: "span", |
480 | + errorClass: "p-form-validation__message" |
481 | + }); |
482 | + </script> |
483 | + </div> |
484 | + </div> |
485 | + </div> |
486 | + </section> |
487 | + </article> |
488 | + <section class="p-strip--light is-shallow"> |
489 | + <div class="row"> |
490 | + <div class="col-8"> |
491 | + <h3>Related posts</h3> |
492 | + </div> |
493 | + </div> |
494 | + |
495 | + <div class="row p-divider"> |
496 | + <div class="col-4 p-divider__block"> |
497 | + <h4> |
498 | + <a href="https://ubuntu.com/blog/we-are-changing-the-way-you-build-snaps-from-github-repos"> |
499 | + We are changing the way you build snaps from GitHub repos |
500 | + </a> |
501 | + </h4> |
502 | + <p>On the 11th March 2020 we introduced a new process for building a snap using GitHub repos to snapcraft.io. Here is all you need to know about this update....</p> |
503 | + </div> |
504 | + |
505 | + <div class="col-4 p-divider__block"> |
506 | + <h4> |
507 | + <a href="https://ubuntu.com/blog/gnome-3-34-snapcraft-extension"> |
508 | + GNOME 3.34 snapcraft extension |
509 | + </a> |
510 | + </h4> |
511 | + <p>We constantly strive to empower developers. Part of that aim extends to making development easier, for example improving build tools and documentation. As an...</p> |
512 | + </div> |
513 | + |
514 | + <div class="col-4 p-divider__block"> |
515 | + <h4> |
516 | + <a href="https://ubuntu.com/blog/an-adventure-through-the-snap-store"> |
517 | + An adventure through the Snap Store |
518 | + </a> |
519 | + </h4> |
520 | + <p>An application store with a large number of entries is a double-edged sword. It’s often a good sign of a vibrant, thriving community of software creators,...</p> |
521 | + </div> |
522 | + </div> |
523 | + </section> |
524 | + </div><!-- /.inner-wrapper --> |
525 | + </div><!-- /.wrapper --> |
526 | + |
527 | + <footer class="p-footer p-strip u-clearfix"> |
528 | + <div class="u-fixed-width p-footer__container"> |
529 | + <p class="u-hide--medium u-hide--large link-to-top"><a href="#"><small>Back to top</small></a></p> |
530 | + <nav id="main-navigation" class="p-footer__nav u-clearfix row u-no-padding--left u-no-padding--right"> |
531 | + <div class="p-footer__nav-col col-2 u-no-margin--bottom"> |
532 | + <ul class="p-footer__links"> |
533 | + <li class="p-footer__item"> |
534 | + <h2 class="p-footer__title"> |
535 | + <a class="p-link--soft" href="https://ubuntu.com/openstack">OpenStack</a> |
536 | + </h2> |
537 | + <ul class="second-level-nav"> |
538 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/openstack/what-is-openstack">What is OpenStack</a></li> |
539 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/openstack/features">Features</a></li> |
540 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/openstack/managed">Managed</a></li> |
541 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/openstack/consulting">Consulting</a></li> |
542 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/openstack/compare">Compare</a></li> |
543 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/tco-calculator">TCO calculator</a></li> |
544 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/openstack/install">Install</a></li> |
545 | + </ul> |
546 | + </li> |
547 | + <li class="p-footer__item"> |
548 | + <h2 class="p-footer__title"> |
549 | + <a class="p-link--soft" href="https://ubuntu.com/pricing">Pricing</a> |
550 | + </h2> |
551 | + <ul class="second-level-nav"> |
552 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/pricing/infra">Support</a></li> |
553 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/pricing/consulting">Consulting</a></li> |
554 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/pricing/devices">Devices</a></li> |
555 | + </ul> |
556 | + </li> |
557 | + </ul> |
558 | + </div> |
559 | + <div class="p-footer__nav-col col-2 u-no-margin--bottom"> |
560 | + <ul class="p-footer__links"> |
561 | + <li class="p-footer__item"> |
562 | + <h2 class="p-footer__title"> |
563 | + <a class="p-link--soft" href="https://ubuntu.com/kubernetes">Kubernetes</a> |
564 | + </h2> |
565 | + <ul class="second-level-nav"> |
566 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/kubernetes/features">Features</a></li> |
567 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/kubernetes/managed">Managed</a></li> |
568 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/tco-calculator">TCO calculator</a></li> |
569 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/kubernetes/install">Install</a></li> |
570 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/kubernetes/docs">Docs</a></li> |
571 | + </ul> |
572 | + </li> |
573 | + <li class="p-footer__item"> |
574 | + <h2 class="p-footer__title"> |
575 | + <a class="p-link--soft" href="https://ubuntu.com/kubeflow">Kubeflow</a> |
576 | + </h2> |
577 | + <ul class="second-level-nav"> |
578 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/kubeflow/what-is-kubeflow">What is Kubeflow</a></li> |
579 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/kubeflow/features">Features</a></li> |
580 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/kubeflow/install">Install</a></li> |
581 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/kubeflow/consulting">Consulting</a></li> |
582 | + </ul> |
583 | + </li> |
584 | + </ul> |
585 | + </div> |
586 | + <div class="p-footer__nav-col col-2 u-no-margin--bottom"> |
587 | + <ul class="p-footer__links"> |
588 | + <li class="p-footer__item"> |
589 | + <h2 class="p-footer__title"> |
590 | + <a class="p-link--soft" href="https://ubuntu.com/desktop">Desktop</a> |
591 | + </h2> |
592 | + |
593 | + <ul class="second-level-nav"> |
594 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/desktop/features">Features</a></li> |
595 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/desktop/organisations">Organisations</a></li> |
596 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/desktop/developers">Developers</a></li> |
597 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/desktop/partners">Partners</a></li> |
598 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/desktop/statistics">Statistics</a></li> |
599 | + </ul> |
600 | + </li> |
601 | + <li class="p-footer__item"> |
602 | + <h2 class="p-footer__title"> |
603 | + <a class="p-link--soft" href="https://ubuntu.com/internet-of-things">IoT</a> |
604 | + </h2> |
605 | + <ul class="second-level-nav"> |
606 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/internet-of-things/digital-signage">Digital signage</a></li> |
607 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/robotics">Robotics</a></li> |
608 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/internet-of-things/gateways">Gateways</a></li> |
609 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/internet-of-things/appstore">App store</a></li> |
610 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/embedded">Embedded Linux</a></li> |
611 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/automotive">Automotive</a></li> |
612 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/internet-of-things/networking">Networking</a></li> |
613 | + </ul> |
614 | + </li> |
615 | + </ul> |
616 | + </div> |
617 | + <div class="p-footer__nav-col col-2 u-no-margin--bottom"> |
618 | + <ul class="p-footer__links"> |
619 | + <li class="p-footer__item"> |
620 | + <h2 class="p-footer__title"> |
621 | + <a class="p-link--soft" href="https://ubuntu.com/server">Server</a> |
622 | + </h2> |
623 | + <ul class="second-level-nav"> |
624 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/server/hyperscale">Hyperscale</a></li> |
625 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/server/docs">Docs</a></li> |
626 | + </ul> |
627 | + </li> |
628 | + <li class="p-footer__item"> |
629 | + <h2 class="p-footer__title"> |
630 | + <a class="p-link--soft" href="https://ubuntu.com/support">Support</a> |
631 | + </h2> |
632 | + <ul class="second-level-nav"> |
633 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/support/plans-and-pricing">Pricing</a></li> |
634 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/support/community-support">Community support</a></li> |
635 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/esm">ESM</a></li> |
636 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/livepatch">Livepatch</a></li> |
637 | + </ul> |
638 | + </li> |
639 | + <li class="p-footer__item"> |
640 | + <h2 class="p-footer__title"> |
641 | + <a class="p-link--soft" href="https://ubuntu.com/security">Security</a> |
642 | + </h2> |
643 | + <ul class="second-level-nav"> |
644 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/security/certifications">Certifications</a></li> |
645 | + <li class="p-footer-list--margin"><a href="https://usn.ubuntu.com">Notices</a></li> |
646 | + </ul> |
647 | + </li> |
648 | + </ul> |
649 | + </div> |
650 | + <div class="p-footer__nav-col col-2 u-no-margin--bottom"> |
651 | + <ul class="p-footer__links"> |
652 | + <li class="p-footer__item"> |
653 | + <h2 class="p-footer__title"> |
654 | + <a class="p-link--soft" href="https://ubuntu.com/download">Downloads</a> |
655 | + </h2> |
656 | + <ul class="second-level-nav"> |
657 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/download/cloud">Cloud</a></li> |
658 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/download/iot">IoT</a></li> |
659 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/download/raspberry-pi">Raspberry Pi</a></li> |
660 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/download/server">Server</a></li> |
661 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/download/desktop">Desktop</a></li> |
662 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/download/alternative-downloads">Alternative downloads</a></li> |
663 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/download/flavours">Ubuntu flavours</a></li> |
664 | + </ul> |
665 | + </li> |
666 | + </ul> |
667 | + </div> |
668 | + <div class="p-footer__nav-col col-2 u-no-margin--bottom last-col"> |
669 | + <ul class="p-footer__links"> |
670 | + <li class="p-footer__item p-footer__item--spaced"> |
671 | + <h2 class="p-footer__title p-footer__title-text"> |
672 | + <span>Sectors</span> |
673 | + </h2> |
674 | + <ul class="second-level-nav"> |
675 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/telecommunications">Telco</a></li> |
676 | + <li class="p-footer-list--margin"><a href="https://ubuntu.com/financial-services">Finance</a></li> |
677 | + </ul> |
678 | + </li> |
679 | + <li> |
680 | + <ul class="second-level-nav second-level-nav-small"> |
681 | + <li class="p-footer-list--margin p-footer-list-single-child"> |
682 | + <a class="p-link--soft" href="https://ubuntu.com/public-cloud"><small>Public cloud</small></a> |
683 | + </li> |
684 | + <li class="p-footer-list--margin p-footer-list-single-child"> |
685 | + <a class="p-link--soft" href="https://ubuntu.com/containers"><small>Containers</small></a> |
686 | + </li> |
687 | + <li class="p-footer-list--margin p-footer-list-single-child"> |
688 | + <a class="p-link--soft" href="https://ubuntu.com/core"><small>Core</small></a> |
689 | + </li> |
690 | + <li class="p-footer-list--margin p-footer-list-single-child"> |
691 | + <a class="p-link--soft" href="https://ubuntu.com/tutorials"><small>Tutorials</small></a> |
692 | + </li> |
693 | + <li class="p-footer-list--margin p-footer-list-single-child"> |
694 | + <a class="p-link--soft" href="https://ubuntu.com/managed-apps"><small>Managed apps</small></a> |
695 | + </li> |
696 | + </ul> |
697 | + </li> |
698 | + </ul> |
699 | + </div> |
700 | + </nav> |
701 | + <hr class="p-footer__divider" /> |
702 | + <div class="p-footer--secondary row"> |
703 | + <div class="col-7"> |
704 | + <nav> |
705 | + <ul class="p-inline-list"> |
706 | + <li class="u-hide--small p-inline-list__item"> |
707 | + <a class="p-button--neutral" href="https://ubuntu.com/contact-us"><small class="u-no-padding--top">Contact us</small></a> |
708 | + </li> |
709 | + <li class="u-hide--medium u-hide--large p-inline-list__item"> |
710 | + <a class="p-link--soft" href="https://ubuntu.com/contact-us"><small>Contact us</small></a> |
711 | + </li> |
712 | + <li class="p-inline-list__item"> |
713 | + <a class="p-link--soft" href="https://ubuntu.com/about"><small>About us</small></a> |
714 | + </li> |
715 | + <li class="p-inline-list__item"> |
716 | + <a class="p-link--soft" href="https://ubuntu.com/community"><small>Community</small></a> |
717 | + </li> |
718 | + <li class="p-inline-list__item"> |
719 | + <a class="p-link--soft" href="http://www.canonical.com/careers"><small>Careers</small></a> |
720 | + </li> |
721 | + <li class="p-inline-list__item"> |
722 | + <a class="p-link--soft" href="https://ubuntu.com/blog"><small>Blog</small></a> |
723 | + </li> |
724 | + <li class="p-inline-list__item"> |
725 | + <a class="p-link--soft" href="https://ubuntu.com/engage"><small>Resources</small></a> |
726 | + </li> |
727 | + <li class="p-inline-list__item"> |
728 | + <a class="p-link--soft" href="https://ubuntu.com/blog/press-centre"><small>Press centre</small></a> |
729 | + </li> |
730 | + </ul> |
731 | + </nav> |
732 | + <p class="p-footer--secondary__content"><small>© 2020 Canonical Ltd. Ubuntu and Canonical are |
733 | + registered trademarks of Canonical Ltd.</small></p> |
734 | + <nav class="p-footer--secondary__nav"> |
735 | + <ul class="p-inline-list--middot u-no-margin--bottom"> |
736 | + <li class="p-inline-list__item"> |
737 | + <a class="p-link--soft" accesskey="8" href="https://ubuntu.com/legal"><small>Legal information</small></a> |
738 | + </li> |
739 | + <li class="p-inline-list__item"> |
740 | + <a class="p-link--soft" accesskey="9" href="https://ubuntu.com/legal/data-privacy"><small>Data privacy</small></a> |
741 | + </li> |
742 | + <li class="p-inline-list__item"> |
743 | + <a class="p-link--soft" href="https://github.com/canonical-websites/www.ubuntu.com/issues/new" id="report-a-bug"> |
744 | + <small>Report a bug on this site</small> |
745 | + </a> |
746 | + </li> |
747 | + </ul> |
748 | + </nav> |
749 | </div> |
750 | + <div class="p-footer__nav-col col-5"> |
751 | + <ul class="p-inline-list-icons"> |
752 | + <li class="p-inline-list__item"> |
753 | + <a class="p-inline-list__link--twitter" title="Follow Ubuntu on Twitter" href="https://twitter.com/ubuntu"><svg |
754 | + class="p-inline-list_icon" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 44 44"> |
755 | + <defs> |
756 | + <style> |
757 | + .twitter-icon { |
758 | + fill: #666666; |
759 | + } |
760 | + |
761 | + .cls-2 { |
762 | + fill: #fff; |
763 | + } |
764 | + </style> |
765 | + </defs> |
766 | + <g> |
767 | + <path class="twitter-icon" d="M21.996-.002c-12.15 0-22 9.85-22 22s9.85 22 22 22 22-9.85 22-22-9.85-22-22-22z" /> |
768 | + </g> |
769 | + <path class="cls-2" d="M25.18 10.95c-2.06.636-4.04 3.464-3.42 6.664-6.834-.42-9.852-4.144-11.667-5.926-1.85 3.32.048 6.55 1.704 7.594-.874.05-1.932-.335-2.457-.67-.2 3.064 2.255 5.188 4.344 5.738-.668.203-1.297.23-2.373.067.917 3.082 3.378 3.907 5.21 4.042-2.36 2.082-5.192 2.536-8.274 2.383 7.99 4.97 16.056 1.912 19.983-1.99 3.296-3.275 4.77-8.18 4.82-12.57.756-.623 2.282-1.945 2.696-2.98-.6.236-1.792.796-3.034.846 1.023-.683 2.195-2.05 2.318-3.117-1.133.627-2.444 1.17-3.567 1.344-2.117-2.078-4.178-2.076-6.284-1.426z" /> |
770 | + </svg></a> |
771 | + </li> |
772 | + <li class="p-inline-list__item"> |
773 | + <a class="p-inline-list__link--facebook" title="Follow Ubuntu on Facebook" href="https://www.facebook.com/ubuntulinux/"><svg |
774 | + xmlns="http://www.w3.org/2000/svg" viewbox="0 0 32 32"> |
775 | + <defs> |
776 | + <style> |
777 | + .facebook-icon { |
778 | + fill: #666666; |
779 | + } |
780 | + |
781 | + .cls-2 { |
782 | + fill: #fff; |
783 | + } |
784 | + </style> |
785 | + </defs> |
786 | + <g> |
787 | + <path class="facebook-icon" d="M15.947 0C7.14 0 0 7.143 0 15.95 0 24.76 7.142 31.9 15.95 31.9s15.948-7.14 15.948-15.95c0-4.23-1.68-8.286-4.672-11.277C24.234 1.68 20.176 0 15.946 0z" /> |
788 | + </g> |
789 | + <path class="cls-2" d="M18.632 5.102c-2.91 0-4.904 1.776-4.904 5.04v2.55h-3.293v3.814h3.293V26.87c1.353-.18 2.678-.53 3.942-1.045v-9.31h3.285l.492-3.812h-3.784v-2.18c0-1.104.357-2.238 1.894-1.855h2.02V5.252c-.978-.103-1.96-.154-2.943-.15h-.002z" /> |
790 | + </svg></a> |
791 | + </li> |
792 | + <li class="p-inline-list__item"> |
793 | + <a class="p-inline-list__link--linkedin" title="Find Canonical on LinkedIn" href="https://www.linkedin.com/company/ubuntu/"><svg |
794 | + xmlns="http://www.w3.org/2000/svg" viewbox="0 0 33 33"> |
795 | + <defs> |
796 | + <style> |
797 | + .linkedin-icon { |
798 | + fill: #666666; |
799 | + } |
800 | + |
801 | + .cls-2 { |
802 | + fill: #fff; |
803 | + } |
804 | + </style> |
805 | + </defs> |
806 | + <g> |
807 | + <path class="linkedin-icon" d="M16.26 0C7.28 0 0 7.28 0 16.26s7.28 16.262 16.26 16.262 16.262-7.28 16.262-16.26C32.522 7.28 25.242 0 16.262 0z" /> |
808 | + </g> |
809 | + <path class="cls-2" d="M7 8.512v16.38c0 .758.63 1.37 1.404 1.37h16.192c.775 0 1.404-.612 1.404-1.37V8.512c0-.755-.63-1.37-1.404-1.37H8.404C7.63 7.143 7 7.757 7 8.513zm5.76 14.636H9.89v-8.634h2.87v8.634zm-1.435-9.812h-.02c-.962 0-1.585-.663-1.585-1.492 0-.847.642-1.492 1.624-1.492s1.586.645 1.604 1.492c0 .83-.623 1.492-1.623 1.492zm3.022 9.812s.038-7.824 0-8.634h2.87v1.252h-.02c.38-.59 1.058-1.454 2.607-1.454 1.888 0 3.303 1.234 3.303 3.885v4.95h-2.87V18.53c0-1.162-.415-1.953-1.453-1.953-.793 0-1.265.534-1.472 1.05-.076.184-.095.44-.095.7v4.82h-2.87z" /> |
810 | + </svg></a> |
811 | + </li> |
812 | + <li class="p-inline-list__item"> |
813 | + <a class="p-inline-list__link--rss" title="Use the Ubuntu Blog rss feed" href="https://ubuntu.com/blog/feed"><svg width="32px" height="32px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
814 | + <defs> |
815 | + <style> |
816 | + .rss-icon { |
817 | + fill: #666666; |
818 | + } |
819 | + |
820 | + .cls-2 { |
821 | + fill: #E5E5E5; |
822 | + } |
823 | + </style> |
824 | + </defs> |
825 | + <g class="rss-icon"> |
826 | + <circle cx="20" cy="20" r="20"></circle> |
827 | + </g> |
828 | + <g class="cls-2" transform="translate(10.000000, 8.000000)"> |
829 | + <circle cx="3" cy="18.875" r="3"></circle> |
830 | + <path d="M14.5,21.875 L10.25,21.875 C10.25,16.2140813 5.66091869,11.625 3.55271368e-15,11.625 L3.55271368e-15,7.375 C8.00812887,7.375 14.5,13.8668711 14.5,21.875 Z"></path> |
831 | + <path d="M17.5,21.875 C17.5,12.2100169 9.66498312,4.375 7.10542736e-15,4.375 L7.10542736e-15,0 C12.0812289,0 21.875,9.7937711 21.875,21.875 L17.5,21.875 Z"></path> |
832 | + </g> |
833 | + </svg> |
834 | + </a> |
835 | + </li> |
836 | + </ul> |
837 | + </div> |
838 | </div> |
839 | -</div><?php endif; ?> |
840 | - |
841 | -<div class="row no-border"> |
842 | -<div class="inner-wrapper full-height"> |
843 | - |
844 | -<?php if (have_posts()) : ?> |
845 | -<?php while (have_posts()) : the_post(); ?> |
846 | -<?php if(!current_user_can('administrator')){ echo setPostViews(get_the_ID()); } ?> |
847 | - |
848 | -<div class="content eight-col no-margin-bottom"> |
849 | - <?php if(($posted == $postdate . $postid)): // for gated content ?> |
850 | - <div class="alert"> |
851 | - <p>Thank you! Your download should start automatically. If it doesn't, <a class="" href="<?php echo wp_get_attachment_url( $attachment_id ); ?>">download now</a>.</p> |
852 | - </div><!-- /.alert --> |
853 | - <?php endif; // end if(($posted == $postdate . $postid)) ?> |
854 | - <?php $digest = $_GET['digest']; if($digest != ''): ?> |
855 | - <div class="alert"> |
856 | - <p>Thank you for subscribing! You will begin receiving emails as new content is posted. You may unsubscribe any time by clicking the link in the email.</p> |
857 | - </div><!-- /.alert --> |
858 | - <?php endif; // end if(($posted == $postdate . $postid)) ?> |
859 | - <div class="box eight-col box-highlight"> |
860 | - <?php if ( !has_tag( 'cloud-chatter') ) : ?><h1 itemprop="name"<?php if(in_category( $press_cats )) echo ' class="heading-has-time"'; ?>><?php the_title(); ?></h1><?php endif; ?> |
861 | - <?php if( ($category != 'events') && !has_tag( 'cloud-chatter')) : ?> |
862 | - <?php get_template_part("includes/_post_meta"); ?> |
863 | - <div class="eight-col"> |
864 | - <?php get_template_part("includes/_share_links"); ?> |
865 | - </div> |
866 | - <?php endif ; ?> |
867 | - <?php if ($category == 'events') : ?> |
868 | - <?php get_template_part("/includes/_event_meta"); ?> |
869 | - <div class="eight-col"> |
870 | - <?php get_template_part("includes/_share_links"); ?> |
871 | - </div> |
872 | - <?php endif ; ?> |
873 | - <?php if(has_post_thumbnail()) : ?> |
874 | - <div itemprop="image" class="article-image"> |
875 | - <?php if ( is_mobile_phone() ) : ?> |
876 | - <?php the_post_thumbnail('small'); ?> |
877 | - <?php else : ?> |
878 | - <?php if ($category == 'events') : else : ?> |
879 | - <?php the_post_thumbnail('large'); ?> |
880 | - <?php endif ; endif ; ?> |
881 | - </div><!-- /.article-image --> |
882 | - <?php endif ; ?> |
883 | - <?php //if(the_post_thumbnail_caption()) : echo "<p>", the_post_thumbnail_caption(), "</p>"; endif ; ?> |
884 | - <?php if('post' != get_post_type() && $gated_content == 'on') { the_content(); } ?> |
885 | - <?php if(($gated_content == 'on') && ($posted != $postdate . $postid)) { ?> |
886 | - <?php if($posted == $postdate . $postid ) { // check if the form has been posted ?> |
887 | - <?php } else { // show this if the form has not been posted ?> |
888 | - <?php if('post' == get_post_type()) the_excerpt(); ?> |
889 | - <div id="gated-content"> |
890 | - <p>Please enter your details to view '<?php the_title(); ?>'</p> |
891 | - <?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?><?php echo $term->name; ?> |
892 | - |
893 | - <?php $theurl = rtrim(get_permalink(),'/'); ?> |
894 | - <div class="eight-col"> |
895 | -<?php |
896 | - if ( is_tax( 'cloud' )) : |
897 | - $form_id = '1079'; // cloud |
898 | - elseif ( is_tax( 'server' )) : |
899 | - $form_id = '1074'; // server |
900 | - elseif ( is_tax( 'desktop' )) : |
901 | - $form_id = '1075'; // desktop |
902 | - endif; |
903 | -?> |
904 | - |
905 | -<style> |
906 | -/* Your style here */ |
907 | -span.mktError span.mktFormMsg { position: relative; left: 68px !important; } |
908 | -</style> |
909 | - |
910 | -<script src="/js/mktFormSupport.js"></script> |
911 | - |
912 | -<script> |
913 | - var formEdit = false; |
914 | - |
915 | - var socialSignOn = { |
916 | - isEnabled: false, |
917 | - enabledNetworks: [''], |
918 | - cfId: '', |
919 | - codeSnippet: '' |
920 | - }; |
921 | -</script> |
922 | - |
923 | -<script> |
924 | -var profiling = { |
925 | - isEnabled: true, |
926 | - numberOfProfilingFields: 2, |
927 | - alwaysShowFields: ['NewsletterOpt-In', 'Company', 'LastName', 'FirstName', 'mktDummyEntry'] |
928 | -}; |
929 | -var mktFormLanguage = 'English' |
930 | -</script> |
931 | -<script> function mktoGetForm() {return document.getElementById('mktForm_<?php echo $form_id; ?>'); }</script> |
932 | - |
933 | -<form class="lpeRegForm formNotEmpty" method="post" enctype="application/x-www-form-urlencoded" action="https://pages.canonical.com/index.php/leadCapture/save" id="mktForm_<?php echo $form_id; ?>" name="mktForm_<?php echo $form_id; ?>"> |
934 | - |
935 | - <ul class='mktLblLeft'> |
936 | - <li class='mktField' style="display: none;"> |
937 | - <label>utm_campaign:</label> |
938 | - <span class='mktInput'> |
939 | - <input class='mktFormHidden' name="utm_campaign" id="utm_campaign" type='hidden' value="" /> |
940 | - <span class='mktFormMsg'></span> |
941 | - </span> |
942 | - </li> |
943 | - <li class='mktField' style="display: none;"> |
944 | - <label>utm_medium:</label> |
945 | - <span class='mktInput'> |
946 | - <input class='mktFormHidden' name="utm_medium" id="utm_medium" type='hidden' value="blank" /> |
947 | - <span class='mktFormMsg'></span> |
948 | - </span> |
949 | - </li> |
950 | - <li class='mktField' style="display: none;"> |
951 | - <label>utm_source:</label> |
952 | - <span class='mktInput'> |
953 | - <input class='mktFormHidden' name="utm_source" id="utm_source" type='hidden' value="Blank" /> |
954 | - <span class='mktFormMsg'></span> |
955 | - </span> |
956 | - </li> |
957 | - <li class='mktFormReq mktField'> |
958 | - <label>First name:</label> |
959 | - <span class='mktInput'> |
960 | - <input class='mktFormText mktFormString mktFReq' name="FirstName" id="FirstName" type='text' value="" maxlength='255' tabIndex='4' /> |
961 | - <span class='mktFormMsg'></span> |
962 | - </span> |
963 | - </li> |
964 | - <li class='mktFormReq mktField'> |
965 | - <label>Last name:</label> |
966 | - <span class='mktInput'> |
967 | - <input class='mktFormText mktFormString mktFReq' name="LastName" id="LastName" type='text' value="" maxlength='255' tabIndex='5' /> |
968 | - <span class='mktFormMsg'></span> |
969 | - </span> |
970 | - </li> |
971 | - <li class='mktFormReq mktField'> |
972 | - <label>Company name:</label> |
973 | - <span class='mktInput'> |
974 | - <input class='mktFormText mktFormString mktFReq' name="Company" id="Company" type='text' value="" maxlength='255' tabIndex='6' /> |
975 | - <span class='mktFormMsg'></span> |
976 | - </span> |
977 | - </li> |
978 | - <li class='mktFormReq mktField'> |
979 | - <label>Job Role:</label> |
980 | - <span class='mktInput'> |
981 | - <select class='mktFormSelect mktFReq' name="Job_Role__c" id="Job_Role__c" size='1' tabIndex='7'> |
982 | - <option value='Please select' selected='selected'>Please select</option> |
983 | - <option value='Business and Project Management'>Business and Project Management</option> |
984 | - <option value='Database Development and Administration'>Database Development and Administration</option> |
985 | - <option value='Education'>Education</option> |
986 | - <option value='Enterprise Systems Analysis & Integration'>Enterprise Systems Analysis & Integration</option> |
987 | - <option value='Hardware Operations and Management'>Hardware Operations and Management</option><option value='Home User'>Home User</option> |
988 | - <option value='Individual'>Individual</option> |
989 | - <option value='Network Design and Administration'>Network Design and Administration</option> |
990 | - <option value='Owner/Self Employed'>Owner/Self Employed</option> |
991 | - <option value='Press and Communications'>Press and Communications</option> |
992 | - <option value='Programming/Software Engineering'>Programming/Software Engineering</option><option value='Smartphone User'>Smartphone User</option> |
993 | - <option value='Technical Support'>Technical Support</option> |
994 | - <option value='Technical Writing'>Technical Writing</option> |
995 | - <option value='Ubuntu Enthusiast'>Ubuntu Enthusiast</option> |
996 | - <option value='Web Development and Administration'>Web Development and Administration</option> |
997 | - </select> |
998 | - <span class='mktFormMsg'></span> |
999 | - </span> |
1000 | - </li> |
1001 | - <li class='mktFormReq mktField'> |
1002 | - <label>Email Address:</label> |
1003 | - <span class='mktInput'> |
1004 | - <input class='mktFormText mktFormEmail mktFReq' name="Email" id="Email" type='text' value="" maxlength='255' tabIndex='8' /> |
1005 | - <span class='mktFormMsg'></span> |
1006 | - </span> |
1007 | - </li> |
1008 | - <li class='mktField'> |
1009 | - <label>Currently Using Ubuntu:</label> |
1010 | - <span class='mktInput'> |
1011 | - <input class='mktFormText mktFormPicklist' name="CurrentlyUsingUbuntu" id="CurrentlyUsingUbuntu" type='text' value="" maxlength='255' tabIndex='9' /> |
1012 | - <span class='mktFormMsg'></span> |
1013 | - </span> |
1014 | - </li> |
1015 | - <li class='mktField'> |
1016 | - <label>Number of Employees:</label> |
1017 | - <span class='mktInput'> |
1018 | - <select class='mktFormSelect' name="num_employees__c" id="num_employees__c" size='1' tabIndex='10'> |
1019 | - <option value='None' selected='selected'>None</option> |
1020 | - <option value='<500'><500</option> |
1021 | - <option value='501-1000'>501-1000</option> |
1022 | - <option value='1001-2000'>1001-2000</option> |
1023 | - <option value='2001-5000'>2001-5000</option> |
1024 | - <option value='5000+'>5000+</option> |
1025 | - </select> |
1026 | - <span class='mktFormMsg'></span> |
1027 | - </span> |
1028 | - </li> |
1029 | - <li class='mktField mktLblRight'> |
1030 | - <span class='mktInput mktLblRight'> |
1031 | - <input class='mktFormCheckbox' name="NewsletterOpt-In" id="NewsletterOpt-In" type='checkbox' value="1" tabIndex='11' /> |
1032 | - <label>I would like to receive occasional news from Canonical by email. </label> |
1033 | - <span class='mktFormMsg'></span> |
1034 | - </span> |
1035 | - </li> |
1036 | - <li id='mktFrmButtons' class="clear"> |
1037 | - <input id='mktFrmSubmit' type='submit' value='Submit' name='submitButton' onclick='formSubmit(document.getElementById("mktForm_<?php echo $form_id; ?>")); return false;' /> |
1038 | - <input style='display: none;' id='mktFrmReset' type='reset' value='Clear' name='resetButton' onclick='formReset(document.getElementById("mktForm_<?php echo $form_id; ?>")); return false;' /> |
1039 | - </li> |
1040 | - </ul> |
1041 | - |
1042 | - <span style="display:none;"><input type="text" name="_marketo_comments" value="" /></span> |
1043 | - <input type="hidden" name="lpId" value="1214" /> |
1044 | - <input type="hidden" name="subId" value="30" /> |
1045 | - <input type="hidden" name="munchkinId" value="066-EOV-335" /> |
1046 | - <input type="hidden" name="kw" value="" /> |
1047 | - <input type="hidden" name="cr" value="" /> |
1048 | - <input type="hidden" name="searchstr" value="" /> |
1049 | - |
1050 | -<?php |
1051 | -// Get terms for post |
1052 | -$terms = get_the_terms( $post->ID , 'topic' ); |
1053 | -if ($terms) : |
1054 | - foreach( $terms as $term ) : |
1055 | - echo '<input type="hidden" name="lpurl" value="https://pages.canonical.com/confirmed-download-'.$term->slug. '.html?cr={creative}&kw={keyword}" />'; |
1056 | - unset($term); |
1057 | -endforeach; |
1058 | -endif; |
1059 | -?> |
1060 | - <input type="hidden" name="formid" value="<?php echo $form_id; ?>" /> |
1061 | - <input type="hidden" name="returnURL" value="<?php the_permalink() ?>?posted=<?php echo $postdate . $postid; ?>" /> |
1062 | - <input type="hidden" name="retURL" value="<?php the_permalink() ?>?posted=<?php echo $postdate . $postid; ?>" /> |
1063 | - <input type="hidden" name="returnLPId" value="-1" /> |
1064 | - <input type="hidden" name="_mkt_disp" value="return" /> |
1065 | - <input type="hidden" name="_mkt_trk" value="id:066-EOV-335" /> |
1066 | -</form> |
1067 | - |
1068 | -<script src="/js/mktFormSupport.js"></script> |
1069 | - |
1070 | -<script> |
1071 | - function formSubmit(elt) { |
1072 | - return Mkto.formSubmit(elt); |
1073 | - } |
1074 | - function formReset(elt) { |
1075 | - return Mkto.formReset(elt); |
1076 | - } |
1077 | -</script> |
1078 | - |
1079 | -</div> |
1080 | - </div><!-- /#gated-content --> |
1081 | - <?php } // end if market_form completed ?> |
1082 | - |
1083 | -<?php } elseif(($gated_content == 'on' && $posted == $postdate . $postid)) { // show this if is gated and the form has been posted ?> |
1084 | - |
1085 | - <?php if ( get_post_meta($post->ID, 'postVideo', true) ) : ?> |
1086 | - <div class="new-video-wrapper"><iframe class="post-video" width="596" height="335" src="https://www.youtube.com/embed/<?php echo $video_content; ?>?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe></div> |
1087 | - <?php the_content(); ?> |
1088 | - <?php else : ?> |
1089 | - <?php if('post' == get_post_type()) : ?> |
1090 | - <div itemprop="description" class="eight-col"><?php the_content(); ?></div> |
1091 | - <div id="download-item"> |
1092 | - <p><a class="link-cta-ubuntu" href="<?php echo wp_get_attachment_url( $attachment_id ); ?>">Download <?php $term_id = the_category_ID($echo=false); $saved_data = get_tax_meta($term_id,'ba_singular'); echo $saved_data; ?></a></p> |
1093 | - </div> |
1094 | - <?php else : ?> |
1095 | - <iframe width="1" height="1" frameborder="0" src="<?php echo wp_get_attachment_url( $attachment_id ); ?>"></iframe> |
1096 | - <?php endif; ?> |
1097 | - <?php endif; // if video ?> |
1098 | - <?php } else { // show this if the post is not gated ?> |
1099 | - <?php if ( get_post_meta($post->ID, 'postVideo', true) ) : ?> |
1100 | - <?php if ( !empty( $post->post_excerpt ) ) : the_excerpt(); else : false; endif; ?> |
1101 | - <div class="new-video-wrapper"><iframe class="post-video" width="596" height="335" src="https://www.youtube.com/embed/<?php echo $video_content; ?>?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe></div> |
1102 | - <div itemprop="description" class="eight-col"><?php the_content(); ?></div> |
1103 | - <?php elseif('post' == get_post_type() || 'presskits' == get_post_type()) : ?> |
1104 | - <div itemprop="description" class="eight-col"><?php the_content(); ?></div> |
1105 | - <?php if ($category != 'news') : ?> |
1106 | - <?php $attachments = get_children( array('post_parent' => get_the_ID(), 'post_type' => 'attachment') ); if ( $attachments ) : if (! wp_attachment_is_image($attachment_id) ) : ?> |
1107 | - <div id="download-item"> |
1108 | - <p><a class="link-cta-ubuntu" href="<?php echo wp_get_attachment_url( $attachment_id ); ?>?utm_source=<?php the_title(); ?>&utm_medium=download+link&utm_content=<?php echo $post_type->labels->title_friendly, ''; ?>">Download <?php $term_id = the_category_ID($echo=false); $saved_data = get_tax_meta($term_id,'ba_singular'); echo $saved_data; ?></a></p> |
1109 | - </div><?php endif; endif; endif; // end if ( $attachments ) ?> |
1110 | - <?php else : ?> |
1111 | - <div itemprop="description" class="eight-col"><?php the_content(); ?></div> |
1112 | - <?php if(!$gated_content && $posted) : ?> |
1113 | - <iframe width="1" height="1" src="<?php echo wp_get_attachment_url( $attachment_id ); ?>" style='display:none;'></iframe> |
1114 | - <?php else : ?> |
1115 | - <?php $attachments = get_children( array('post_parent' => get_the_ID(), 'post_type' => 'attachment') ); |
1116 | - if ( $attachments ) : ?> |
1117 | - <div id="download-item"> |
1118 | - <p><a class="link-cta-ubuntu" href="<?php echo wp_get_attachment_url( $attachment_id ); ?>?utm_source=<?php the_title(); ?>&utm_medium=download+link&utm_content=<?php echo $post_type->labels->title_friendly, ''; ?>">Download <?php single_cat_title(); ?></a></p> |
1119 | - </div><?php endif ; // end if ( $attachments ) ?> |
1120 | - <?php endif; ?> |
1121 | - <?php endif; // if video ?> |
1122 | -<?php } // end if gated ?> |
1123 | -<?php if('event' == get_post_type()) : ?> |
1124 | -<?php |
1125 | - $current_time = current_time('mysql'); |
1126 | - list( $today_year, $today_month, $today_day, $hour, $minute, $second ) = split( '([^0-9])', $current_time ); |
1127 | - $current_timestamp = $today_year . $today_month . $today_day . $hour . $minute; |
1128 | - $event_timestamp = get_post_meta( $post->ID, '_start_eventtimestamp', true ); ?> |
1129 | - <?php if(($current_timestamp <= $event_timestamp) && $registration) : ?> |
1130 | - <div id="download-item"> |
1131 | - <p><a itemprop="url" class="link-cta-ubuntu" href="<?php echo $registration; ?>">Register now</a></p> |
1132 | - </div> |
1133 | - <?php endif; ?> |
1134 | -<?php endif; // if event ?> |
1135 | - |
1136 | -<?php $user_login = get_the_author_meta('user_login', $curauth->ID); ?> |
1137 | -<?php if($user_login != 'canonical') : ?> |
1138 | -<?php if(get_the_author_meta('user_job_title', $uid)) : ?><div id="hcard-<?php the_author_meta('first_name',$uid); ?>-<?php the_author_meta('last_name',$uid); ?>" class="eight-col vcard<?php if(get_the_author_meta('user_photo', $uid)) echo ' has-avatar '; ?>"> |
1139 | - <h3>About the author</h3> |
1140 | - <?php if(get_the_author_meta('user_photo', $uid)) : ?><div><span class="image-wrap avatar" style="width: auto; height: auto;"><img src="<?php bloginfo('url'); ?><?php the_author_meta('user_photo',$uid); ?>" alt="<?php the_author_meta('first_name',$uid); ?>'s photo" class="avatar-156 photo" width="156" height="156" /></span></div><?php endif; ?> |
1141 | - <div><p><?php the_author_meta('user_description',$uid); ?></p> |
1142 | - <p><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>">More articles by <?php the_author_meta('first_name',$uid); ?></a></p></div> |
1143 | -</div><?php endif; ?><?php endif; ?> |
1144 | -<?php get_template_part("includes/_cat_headings"); ?> |
1145 | - |
1146 | - </div><!-- /.box --> |
1147 | -<?php get_template_part("includes/_related_posts"); ?> |
1148 | -</div><!-- /.eight-col --> |
1149 | - |
1150 | -<aside id="sidebar" class="four-col last-col instapaper_ignore"> |
1151 | - <?php $attachments = get_children( array('exclude' => get_post_thumbnail_id(), 'post_parent' => get_the_ID(), 'post_type' => 'attachment') ); if ((( $attachments )) && ($category == 'news')) : ?> |
1152 | - |
1153 | -<?php get_template_part("includes/_downloads"); ?> |
1154 | - |
1155 | -<?php $pressLinks = preg_split("/\\r\\n|\\r|\\n/", get_post_meta($post->ID, 'dbt_press_links', true ) ); |
1156 | - |
1157 | -if ( get_post_meta($post->ID, 'dbt_press_links', true) ) : ?> |
1158 | - <div class="box box-highlight press-release-videos four-col clearfix"> |
1159 | - <h2>Links</h2> |
1160 | - <ul class="no-bullets"> |
1161 | - <?php foreach ( $pressLinks as $pressLink ) : ?> |
1162 | - <li> |
1163 | - <?php echo $pressLink; ?> |
1164 | - </li> |
1165 | - <?php endforeach; ?> |
1166 | - </ul> |
1167 | - </div> |
1168 | -<?php endif; ?> |
1169 | - |
1170 | -<?php |
1171 | - if ( get_post_meta($post->ID, 'postVideo', true) ) : |
1172 | - get_template_part("includes/_videos"); |
1173 | - endif; |
1174 | -?> |
1175 | - |
1176 | -<?php |
1177 | -$press_contact = make_clickable(get_post_meta( get_the_ID(), 'dbt_press_contact', true )); |
1178 | - |
1179 | -// check if the custom field has a value |
1180 | -if( ! empty( $press_contact ) ) { |
1181 | - echo '<div class="box box-highlight four-col">'; |
1182 | - echo '<h2>Contact details</h2>'; |
1183 | - echo wpautop( $press_contact, false ); |
1184 | - echo '</div>'; |
1185 | -} ?> |
1186 | - |
1187 | -<?php else : ?> |
1188 | -<?php endif; // if category press-releases ends ?> |
1189 | -<?php endwhile; // while have_posts ends ?> |
1190 | -<?php endif; // if have_posts ends ?> |
1191 | - |
1192 | -<?php if (($category == 'news') && (( $attachments ) && (! wp_attachment_is_image($attachment_id) )) ) : ?> |
1193 | -<?php endif; // if ($category == array('news','press-releases')) ?> |
1194 | - |
1195 | - |
1196 | -<?php get_template_part("includes/_digest"); ?> |
1197 | - |
1198 | - <div class="box box-highlight four-col"> |
1199 | - <h2>All <?php $term_list = wp_get_post_terms($post->ID, 'topic', array("fields" => "names")); |
1200 | -echo strtolower($term_list[0]); wp_reset_query();?> resources</h2> |
1201 | - <ul class="no-bullets no-margin-bottom"> |
1202 | - <?php wp_reset_query(); |
1203 | - |
1204 | - $topic_list = wp_get_post_terms($post->ID, 'topic', array("fields" => "slugs")); |
1205 | - // get all the categories from the database |
1206 | - $current_tax = $topic_list[0]; |
1207 | - $cats = get_categories(); |
1208 | - // loop through the categries |
1209 | - foreach ($cats as $cat) : |
1210 | - // setup the cateogory ID |
1211 | - $cat_id= $cat->term_id; |
1212 | - // create a custom wordpress query |
1213 | - query_posts("topic=$current_tax&cat=$cat_id&posts_per_page=1"); |
1214 | - // start the wordpress loop! |
1215 | - if (have_posts()) : while (have_posts()) : the_post(); |
1216 | - echo "<li><a href='/topic/" . $current_tax . "?cat=".$cat_id."'>".$cat->name." (" .$wp_query->found_posts . ")</a></li>"; |
1217 | - ?> |
1218 | - <?php endwhile; endif; // done our wordpress loop. Will start again for each category ?> |
1219 | - <?php endforeach; wp_reset_query(); // done the foreach statement and reset the mofo ?> |
1220 | - <li><a href="/topic/<?php echo $current_tax; ?>">View all <?php |
1221 | -echo strtolower($term_list[0]); wp_reset_query();?> resources</a></li> |
1222 | - </ul> |
1223 | -</div> |
1224 | - |
1225 | -<?php |
1226 | -/* ============== pull in topic specific cta ============== */ |
1227 | - wp_reset_query(); |
1228 | - $topic_list = wp_get_post_terms($post->ID, 'topic', array("fields" => "slugs")); |
1229 | - $current_tax = $topic_list[0]; |
1230 | - $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; // Needed for pagination |
1231 | - $query = new WP_Query( array( |
1232 | - 'posts_per_page' => 3, |
1233 | - 'topic' => $current_tax, |
1234 | - 'post_type' => 'topiccta', |
1235 | - 'post__not_in' => $do_not_duplicate, |
1236 | - 'paged' => $paged |
1237 | - )); |
1238 | -?> |
1239 | -<?php if ($query->have_posts()) : ?> |
1240 | - <div class="fixed-sticky four-col"> |
1241 | - <?php |
1242 | - while ($query->have_posts()) : |
1243 | - $query->the_post(); |
1244 | - $do_not_duplicate[] = $post->ID; |
1245 | - $slug = basename(get_permalink()); |
1246 | - ?> |
1247 | - <div id="rtp-<?php echo $current_tax; ?>" class="box box-highlight contextual-footer four-col"> |
1248 | - <div class="box-<?php echo $slug; ?> four-col"> |
1249 | - <ul class="no-bullets"> |
1250 | - <li> |
1251 | - <h2><a href="<?php echo get_the_excerpt(); ?>"><?php the_title(); ?></a></h2> |
1252 | - <?php the_content(); ?> |
1253 | - </li> |
1254 | - </ul> |
1255 | - </div> |
1256 | - </div> |
1257 | - <?php endwhile; ?> |
1258 | - </div> |
1259 | -<?php endif; // if have_posts ends |
1260 | -wp_reset_query(); |
1261 | -/* ============== end pull in topic specific cta ============== */ ?> |
1262 | -</aside><!-- /.instapaper_ignore --> |
1263 | - |
1264 | -</div><!-- /.inner-wrapper --> |
1265 | -</div><!-- /.row --> |
1266 | - |
1267 | -<?php // dynamic_sidebar( 'search-sidebar' ); ?> |
1268 | - |
1269 | -<?php get_footer(); ?> |
1270 | + |
1271 | + <script> |
1272 | + /* Add the page to the report a bug link */ |
1273 | + var bugLink = document.querySelector('#report-a-bug'); |
1274 | + bugLink.href += '?body=%0a%0a%0a---%0a*Reported%20from:%20' + location.href + '*'; |
1275 | + </script> |
1276 | + <span class="u-off-screen"><a href="#">Go to the top of the page</a></span> |
1277 | + </div> |
1278 | +</footer> |
1279 | +</body> |
1280 | +</html> |
1281 | \ No newline at end of file |
Looks good