Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768040
D814.id2066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D814.id2066.diff
View Options
diff --git a/pages/index.dat b/pages/index.dat
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -24,4 +24,5 @@
http://www.nytimes.com/ NewYorkTimes
http://www.persee.fr/ Persee
http://www.tandfonline.com TaylorAndFrancis
+http://www.theguardian.com TheGuardian
http://www.worldcat.org/ WorldCat
diff --git a/pages/theguardian.php b/pages/theguardian.php
new file mode 100644
--- /dev/null
+++ b/pages/theguardian.php
@@ -0,0 +1,23 @@
+<?php
+
+// Page analysis for www.theguardian.com
+class TheGuardianPage extends Page {
+
+ function analyse () {
+ parent::analyse();
+
+ // Hardcoded known info
+ $this->site = "[[The Guardian]]";
+
+ // Gets date from article:published_time metatag
+ $this->yyyy = substr($this->meta_tags['article:published_time'], 0, 4);
+ $this->mm = substr($this->meta_tags['article:published_time'], 4, 2);
+ $this->dd = ltrim(substr($this->meta_tags['article:published_time'], 8, 2), '0');
+ $this->unixtime = mktime(0, 0, 0, $mm, $dd, $yyyy);
+
+ // Gets author from author metatag
+ // TODO Handle multiple authors
+ $this->author = $this->meta_tags['author'];
+ }
+
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 05:31 (7 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258235
Default Alt Text
D814.id2066.diff (1 KB)
Attached To
Mode
D814: Analyse The Guardian
Attached
Detach File
Event Timeline
Log In to Comment