Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3762353
D801.id2029.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
D801.id2029.diff
View Options
diff --git a/pages/index.dat b/pages/index.dat
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -16,6 +16,7 @@
http://www.lavenir.net/ LAvenir
http://www.lefigaro.fr/ LeFigaro
http://www.lemonde.fr/ LeMonde
+http://www.numerama.com/ Numerama
http://www.leparisien.fr/ LeParisien
http://www.lesechos.fr/ LesEchos
http://www.lesoir.be/ LeSoir
diff --git a/pages/numerama.php b/pages/numerama.php
new file mode 100644
--- /dev/null
+++ b/pages/numerama.php
@@ -0,0 +1,25 @@
+<?php
+
+// Page analysis for www.numerama.com
+class NumeramaPage extends Page {
+
+ use DownloadWithWget;
+
+ function analyse () {
+ parent::analyse();
+
+ // Hardcoded known info
+ $this->site = "[[Numerama]]";
+
+ // 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
+ require('helpers/namecase.php');
+ $author = substr($this->meta_tags['author'], 0);
+ $this->author = name_case($author);
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 09:24 (7 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256008
Default Alt Text
D801.id2029.diff (1 KB)
Attached To
Mode
D801: Adding Numerama
Attached
Detach File
Event Timeline
Log In to Comment