Skip to content

Instantly share code, notes, and snippets.

@tkan tkan/index.php
Last active Aug 17, 2016

Embed
What would you like to do?
Remember The Milk - Show work progress
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Doing</title>
<!--
uncomment if you'd like an favicon
<link rel="shortcut icon" href="//i.imgur.com/MLB8ZWH.png">
-->
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.6.0/pure.css">
<style type="text/css">
h3 {
display: inline-block;
margin: 0 0.2em;
padding: 6px;
background: #97CAF2;
border-radius: 2px;
transition: all 0.3s ease-out;
/* Font styles */
text-decoration: none;
font-weight: bold;
color: white;
}
.pure-u-1-4 {
border-left: 1px dotted grey;
margin: 10px -16px;
padding: 15px;
}
</style>
</head>
<body>
<h3>
<?php
echo date('Y-m-d - l');
?>
</h3>
<div class="pure-g" style="width: 90%; margin: 0 auto;">
<div class="pure-u-1-4">
<p class="boxs"><h3>doing right now</h3></p>
<?php
$xml = simplexml_load_file("URL_TO_XML");
foreach ($xml->entry as $doing) {
echo '<p>' . $doing->title . '</p>';
}
?>
</div>
<div class="pure-u-1-4">
<p><h3>done today</h3></p>
<?php
$xml = simplexml_load_file("URL_TO_XML");
foreach ($xml->entry as $doing) {
echo '<p>' . $doing->title . ' - ' . $doing->content->div->div[8]->div->div[1] . '</p>';
}
?>
</div>
<div class="pure-u-1-4">
<p><h3>done yesterday</h3></p>
<?php
$xml = simplexml_load_file("URL_TO_XML");
foreach ($xml->entry as $doing) {
echo '<p>' . $doing->title . '</p>';
}
?>
</div>
<div class="pure-u-1-4">
<p><h3>done last week</h3></p>
<?php
$xml = simplexml_load_file("URL_TO_XML");
foreach ($xml->entry as $doing) {
echo '<p>' . $doing->title . '</p>';
}
?>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.