diff --git a/run.php b/run.php index ec39bb3..254ef30 100644 --- a/run.php +++ b/run.php @@ -1,16 +1,20 @@ run(); - + } else { require_once('amt/installer.php'); $installer = new \AMWhalen\ArchiveMyTweets\Installer(dirname(__FILE__)); $installer->run(); -} \ No newline at end of file +} diff --git a/themes/atom/_layout.php b/themes/atom/_layout.php new file mode 100644 index 0000000..e898c3b --- /dev/null +++ b/themes/atom/_layout.php @@ -0,0 +1,37 @@ +\n"; ?> + + tag:archivemytweets.com,2012: + + " /> + + <?php echo $config['twitter']['username']; ?> - <?php echo $config['twitter']['name']; ?> - Tweets +load($tweets[0]); + $last_updated = $t->get_date("c"); +} +else +{ + // Do not know when the feed was last updated, so answer "now" + $last_updated = date("c"); +} +?> + + + diff --git a/themes/atom/index.php b/themes/atom/index.php new file mode 100644 index 0000000..713c82c --- /dev/null +++ b/themes/atom/index.php @@ -0,0 +1,35 @@ + + + load($row); + + $classes = array('tweet'); + if ($t->in_reply_to_status_id != 0) $classes[] = 'reply'; + if ($t->truncated != 0) $classes[] = 'truncated'; + $class = implode(' ', $classes); + + ?> + + + tag:archivemytweets.org,2012:::Tweet/id; ?> + + <?php echo $t->tweet; ?> + get_date("c"); ?> + + - + + + ".$t->get_linked_tweet()."


"); + echo htmlspecialchars($t->source); + echo ($t->in_reply_to_status_id != 0) ? htmlspecialchars(' in reply to '.$t->in_reply_to_screen_name.'') : ''; + ?> + +
+
+ + + diff --git a/themes/default/_layout.php b/themes/default/_layout.php index c21d0fb..3195ff6 100644 --- a/themes/default/_layout.php +++ b/themes/default/_layout.php @@ -6,6 +6,7 @@ @<?php echo $config['twitter']['username']; ?> - <?php echo $config['twitter']['name']; ?> - Tweets +