From ff32e499745367b816d10f25e63ff3328214c32f Mon Sep 17 00:00:00 2001 From: Damien Lallement Date: Mon, 13 Aug 2012 10:45:23 +0000 Subject: - Import moonmoon - Create repo per langs --- common/custom/img/feed.png | Bin 0 -> 484 bytes common/custom/img/opml.png | Bin 0 -> 31542 bytes common/custom/people.opml | 10 +++ common/custom/style/dark.css | 125 ++++++++++++++++++++++++++ common/custom/style/default.css | 128 +++++++++++++++++++++++++++ common/custom/style/green.css | 132 ++++++++++++++++++++++++++++ common/custom/style/light.css | 124 ++++++++++++++++++++++++++ common/custom/style/mobile.css | 8 ++ common/custom/views.php | 13 +++ common/custom/views/archive/footer.tpl.php | 3 + common/custom/views/archive/head.tpl.php | 6 ++ common/custom/views/archive/index.tpl.php | 114 ++++++++++++++++++++++++ common/custom/views/archive/sidebar.tpl.php | 34 +++++++ common/custom/views/archive/top.tpl.php | 4 + common/custom/views/default/footer.tpl.php | 3 + common/custom/views/default/head.tpl.php | 3 + common/custom/views/default/index.tpl.php | 73 +++++++++++++++ common/custom/views/default/sidebar.tpl.php | 34 +++++++ common/custom/views/default/top.tpl.php | 3 + 19 files changed, 817 insertions(+) create mode 100644 common/custom/img/feed.png create mode 100644 common/custom/img/opml.png create mode 100644 common/custom/people.opml create mode 100644 common/custom/style/dark.css create mode 100644 common/custom/style/default.css create mode 100644 common/custom/style/green.css create mode 100644 common/custom/style/light.css create mode 100644 common/custom/style/mobile.css create mode 100644 common/custom/views.php create mode 100755 common/custom/views/archive/footer.tpl.php create mode 100644 common/custom/views/archive/head.tpl.php create mode 100755 common/custom/views/archive/index.tpl.php create mode 100755 common/custom/views/archive/sidebar.tpl.php create mode 100644 common/custom/views/archive/top.tpl.php create mode 100755 common/custom/views/default/footer.tpl.php create mode 100644 common/custom/views/default/head.tpl.php create mode 100755 common/custom/views/default/index.tpl.php create mode 100755 common/custom/views/default/sidebar.tpl.php create mode 100644 common/custom/views/default/top.tpl.php (limited to 'common/custom') diff --git a/common/custom/img/feed.png b/common/custom/img/feed.png new file mode 100644 index 0000000..f8cd243 Binary files /dev/null and b/common/custom/img/feed.png differ diff --git a/common/custom/img/opml.png b/common/custom/img/opml.png new file mode 100644 index 0000000..7a9d86f Binary files /dev/null and b/common/custom/img/opml.png differ diff --git a/common/custom/people.opml b/common/custom/people.opml new file mode 100644 index 0000000..2ea977c --- /dev/null +++ b/common/custom/people.opml @@ -0,0 +1,10 @@ + + + +Untitled +2008-12-14T15:51:52+01:00 +2008-12-14T15:51:52+01:00 + + + + \ No newline at end of file diff --git a/common/custom/style/dark.css b/common/custom/style/dark.css new file mode 100644 index 0000000..1ee004b --- /dev/null +++ b/common/custom/style/dark.css @@ -0,0 +1,125 @@ +html{ + font-family: Arial, sans-serif; + color: #FFF; + background: #333; + font-size: 62.5%; +} + +body{ + margin: 0; + padding: 0; + font-size: 1.1em; + line-height: 1.5em; +} + +a{ + color: #CCC; +} + +a:visited{ + color: #AAA; +} + +a:hover{ + color: #FFF; +} + +a img{ + border: none; +} + +pre, code{ + font-size: 1.2em; +} +/* Top +*******************************************************************************/ +#page{ + width: 640px; + margin: 0 auto; +} +/* Top +*******************************************************************************/ +#top{ + padding: 2%; + margin: 3em; + line-height: 2em; + color: #FFF; + text-align: center; +} + + #top h1{ + margin: 0; + letter-spacing: -1px; + font-family: Georgia, serif; + } + +/* Top +*******************************************************************************/ +#content{ + width: 66%; + padding: 0 2%; + margin: 0; + float: right; +} + +.post{ + margin-bottom: 3em; +} + +.post-title, .post-title a{ + font-family: Georgia, serif; + color: #CCC; + text-decoration: none; +} + +.post-title{ + padding-bottom: 0.5em; + border-bottom: 1px solid #444; +} + +.post-info{ + color: #999; + margin-top: -1em; +} + +.post-info a{ + color: #999; + text-decoration : none; +} + +/* Top +*******************************************************************************/ +#sidebar{ + width: 26%; + padding: 0 2%; + margin: 0; + float: left; +} + + #sidebar div{ + font-size: 0.8em; + } + + #sidebar h2{ + font-family: Georgia, serif; + color: #999; + } + + #sidebar a{ + text-decoration: none; + } + + #sidebar ul{ + margin: 0; + padding: 0; + list-style: none; + } + +/* Footer +*******************************************************************************/ +#footer{ + padding: 1ex 1em; + clear: both; + border-top: 1px solid #444; + color: #999; +} \ No newline at end of file diff --git a/common/custom/style/default.css b/common/custom/style/default.css new file mode 100644 index 0000000..de813ac --- /dev/null +++ b/common/custom/style/default.css @@ -0,0 +1,128 @@ +html{ + font-family: "Lucida Grande", "Segoe UI", sans-serif; + color: #111; + background: #EEE; + font-size: 62.5%; +} + +body{ + margin: 0; + padding: 0; + font-size: 1.3em; + line-height: 1.5em; +} + +a{ + color: #669; +} + +a:visited{ + color: #444; +} + +a:hover{ + color: #000; +} + +a img{ + border: none; +} + +pre, code{ + max-height: 100%; + width: 100%; + font-size: 1.2em; + overflow: auto; +} + +h1, h2{ + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; +} + +h2{ + margin: 0; +} + +#page { + width: 890px; + margin: 0 auto; +} + +/* Header +*******************************************************************************/ +#top { + color: #FFF; + padding: 10px 30px; +} + h1 a, + h1 a:visited { + color: #665; + text-decoration: none; + } + h1 a:hover { + color: #444; + } + +/* Content +*******************************************************************************/ +#content { + width: 590px; + float: left; +} + +/* Sidebar +*******************************************************************************/ +#sidebar { + width: 300px; + float: left; +} + #sidebar div { + padding: 1em 30px; + } + #sidebar h2 { + color: #665; + } + #sidebar ul { + list-style: none; + padding: 0; + margin: 1em 0; + } + +/* Article +*******************************************************************************/ +.article{ + margin-bottom: 2em; + padding: 30px; + background: #FFF; + border: 1px solid #DDD; +} + + .article-title, + .article-title a{ + color: #111; + text-decoration: none; + } + + .article-info{ + margin: 0 0 1em 0; + color: #999; + } + + .article-content { + font-family: Georgia, serif; + } + + .article img{ + max-width: 440px; + } + + .article .collapsed{ + display: none; + } + +/* Footer +*******************************************************************************/ +#footer { + clear: both; + padding: 0 30px; +} \ No newline at end of file diff --git a/common/custom/style/green.css b/common/custom/style/green.css new file mode 100644 index 0000000..d665bd8 --- /dev/null +++ b/common/custom/style/green.css @@ -0,0 +1,132 @@ +html{ + font-family: "Lucida Grande", Tahoma, sans-serif; + color: #333; + background: #DFC; + font-size: 62.5%; +} + +body{ + margin: 0; + padding: 0; + font-size: 1.1em; + line-height: 1.5em; +} + +a{ + color: #669; +} + +a:visited{ + color: #444; +} + +a:hover{ + color: #000; +} + +a img{ + border: none; +} + +pre, code{ + font-size: 1.2em; +} +/* Top +*******************************************************************************/ +#page{ + width: 60em; + margin: 0 auto; + background: #FFF; +} +/* Top +*******************************************************************************/ +#top{ + padding: 1.5em; + margin: 0; + background: #99cc33; + color: #FFF; + + border-top: 3px solid #7A2; + + -moz-border-radius-bottomleft: 5px; + -moz-border-radius-bottomright: 5px; +} + + #top h1{ + margin: 0; + } + + #top h1 a{ + color: #FFF; + text-decoration: none; + } + +/* Top +*******************************************************************************/ +#content{ + width: 38em; + padding: 0 2em; + margin: 2em 0; + float: left; + overflow: hidden; +} + +.post{ + margin-bottom: 3em; +} + +.post-title, .post-title a{ + color: #77AA22; + text-decoration: none; +} + +.post-info{ + color: #666; + margin-top: -1em; +} + +.post-info a{ + color: #669; + text-decoration : none; +} + +/* Top +*******************************************************************************/ +#sidebar{ + width: 13em; + padding: 0 2em; + margin: 2em 0; + float: right; +} + + #sidebar div{ + font-size: 0.8em; + } + + #sidebar h2{ + color: #99CC33; + } + + #sidebar a{ + text-decoration: none; + border-bottom: 1px solid #DDD; + } + + #sidebar ul{ + margin: 0; + padding: 0; + list-style: none; + } + + #sidebar li{ + margin: 0.5ex 0; + } + +/* Footer +*******************************************************************************/ +#footer{ + padding: 1ex 1em; + clear: both; + border-top: 1px dotted #CCC; + color: #999; +} \ No newline at end of file diff --git a/common/custom/style/light.css b/common/custom/style/light.css new file mode 100644 index 0000000..60826e4 --- /dev/null +++ b/common/custom/style/light.css @@ -0,0 +1,124 @@ +html{ + font-family: Arial, sans-serif; + color: #333; + background: #FFF; + font-size: 62.5%; +} + +body{ + margin: 0; + padding: 0; + font-size: 1.1em; + line-height: 1.5em; +} + +a{ + color: #669; +} + +a:visited{ + color: #444; +} + +a:hover{ + color: #000; +} + +a img{ + border: none; +} + +pre, code{ + font-size: 1.2em; +} +/* Top +*******************************************************************************/ +#page{ + margin: 0; + background: #FFF; +} +/* Top +*******************************************************************************/ +#top{ + padding: 2%; + margin: 0; + background: #CCC; + color: #FFF; + + border-top: 5px solid #999; +} + + #top h1{ + margin: 0; + letter-spacing: -1px; + } + +/* Top +*******************************************************************************/ +#content{ + width: 66%; + padding: 0 2%; + margin: 0; + float: left; +} + +.post{ + margin-bottom: 3em; +} + +.post-title, .post-title a{ + color: #666; + text-decoration: none; +} + +.post-title{ + padding-bottom: 0.5em; + border-bottom: 1px dotted #CCC; +} + +.post-info{ + color: #666; + margin-top: -1em; +} + +.post-info a{ + color: #666; + text-decoration : none; +} + +/* Top +*******************************************************************************/ +#sidebar{ + width: 26%; + padding: 0 2%; + margin: 0; + float: right; +} + + #sidebar div{ + font-size: 0.8em; + } + + #sidebar h2{ + color: #999; + } + + #sidebar a{ + text-decoration: none; + border-bottom: 1px solid #DDD; + } + + #sidebar ul{ + margin: 0; + padding: 0; + list-style: none; + } + +/* Footer +*******************************************************************************/ +#footer{ + padding: 1ex 1em; + clear: both; + border-top: 1px dotted #CCC; + color: #999; +} \ No newline at end of file diff --git a/common/custom/style/mobile.css b/common/custom/style/mobile.css new file mode 100644 index 0000000..38b3cd2 --- /dev/null +++ b/common/custom/style/mobile.css @@ -0,0 +1,8 @@ +body { +margin:0; +padding:0; +background-color:#fff; +color:#111; +font:.6em/1.2em normal arial,helvetica,sans-serif; +} +h1{font-size: 1em;text-align:center;} \ No newline at end of file diff --git a/common/custom/views.php b/common/custom/views.php new file mode 100644 index 0000000..b34013f --- /dev/null +++ b/common/custom/views.php @@ -0,0 +1,13 @@ + array( + 'header' => 'Content-type: text/html; charset=UTF-8', + 'prolog' => '', + 'template' => dirname(__FILE__).'/views/archive/archive.tpl.php' + ), + 'html' => array( + 'header' => 'Content-type: text/html; charset=UTF-8', + 'prolog' => '', + 'template' => dirname(__FILE__).'/views/default/index.tpl.php' + ) +); diff --git a/common/custom/views/archive/footer.tpl.php b/common/custom/views/archive/footer.tpl.php new file mode 100755 index 0000000..bfc0210 --- /dev/null +++ b/common/custom/views/archive/footer.tpl.php @@ -0,0 +1,3 @@ + diff --git a/common/custom/views/archive/head.tpl.php b/common/custom/views/archive/head.tpl.php new file mode 100644 index 0000000..005a75d --- /dev/null +++ b/common/custom/views/archive/head.tpl.php @@ -0,0 +1,6 @@ + + + + + + diff --git a/common/custom/views/archive/index.tpl.php b/common/custom/views/archive/index.tpl.php new file mode 100755 index 0000000..2bb8f36 --- /dev/null +++ b/common/custom/views/archive/index.tpl.php @@ -0,0 +1,114 @@ +get_date('U')) / (60*60*24); + if ($age < 1) { + $today[] = $item; + } elseif ($age < 7) { + $week[] = $item; + } elseif ($age < 30) { + $month[] = $item; + } else { + $older[] = $item; + } +} + +header('Content-type: text/html; charset=UTF-8'); +?> + + + + + + + <?php echo $PlanetConfig->getName(); ?> + + + + +
+ + +
+ +
+

+ +

+

+
+ + +
+

+ +
+ + + +
+

+ +
+ + + +
+

+ +
+ + + +
+

+ +
+ +
+ + + + +
+ + diff --git a/common/custom/views/archive/sidebar.tpl.php b/common/custom/views/archive/sidebar.tpl.php new file mode 100755 index 0000000..e21f377 --- /dev/null +++ b/common/custom/views/archive/sidebar.tpl.php @@ -0,0 +1,34 @@ +getPeople(); +usort($all_people, array('PlanetFeed', 'compare')); +?> + diff --git a/common/custom/views/archive/top.tpl.php b/common/custom/views/archive/top.tpl.php new file mode 100644 index 0000000..7a818e1 --- /dev/null +++ b/common/custom/views/archive/top.tpl.php @@ -0,0 +1,4 @@ +
+

getName(); ?>

+
+ \ No newline at end of file diff --git a/common/custom/views/default/footer.tpl.php b/common/custom/views/default/footer.tpl.php new file mode 100755 index 0000000..bfc0210 --- /dev/null +++ b/common/custom/views/default/footer.tpl.php @@ -0,0 +1,3 @@ + diff --git a/common/custom/views/default/head.tpl.php b/common/custom/views/default/head.tpl.php new file mode 100644 index 0000000..5773aa6 --- /dev/null +++ b/common/custom/views/default/head.tpl.php @@ -0,0 +1,3 @@ + + + diff --git a/common/custom/views/default/index.tpl.php b/common/custom/views/default/index.tpl.php new file mode 100755 index 0000000..1bf037a --- /dev/null +++ b/common/custom/views/default/index.tpl.php @@ -0,0 +1,73 @@ +getMaxDisplay(); +$count = 0; + +header('Content-type: text/html; charset=UTF-8'); +?> + + + + + + + <?php echo $PlanetConfig->getName(); ?> + + + + + +
+ + +
+ +
+

+ +

+

+
+ + + get_feed()->getWebsite()); + $host = 'from-' . preg_replace('/[^a-zA-Z0-9]/i', '-', $arParsedUrl['host']); + ?> +
+

+ get_title(); ?> +

+ +
+ get_content(); ?> +
+
+ + + +
+ + + + +
+ + diff --git a/common/custom/views/default/sidebar.tpl.php b/common/custom/views/default/sidebar.tpl.php new file mode 100755 index 0000000..830f3c6 --- /dev/null +++ b/common/custom/views/default/sidebar.tpl.php @@ -0,0 +1,34 @@ +getPeople(); +usort($all_people, array('PlanetFeed', 'compare')); +?> + diff --git a/common/custom/views/default/top.tpl.php b/common/custom/views/default/top.tpl.php new file mode 100644 index 0000000..dd6206f --- /dev/null +++ b/common/custom/views/default/top.tpl.php @@ -0,0 +1,3 @@ + \ No newline at end of file -- cgit v1.2.1