diff options
author | Damien Lallement <dams@mageia.org> | 2012-08-13 10:45:23 +0000 |
---|---|---|
committer | Damien Lallement <dams@mageia.org> | 2012-08-13 10:45:23 +0000 |
commit | ff32e499745367b816d10f25e63ff3328214c32f (patch) | |
tree | 238d19398f5951d69d32c8ed9a460f5193446981 /common/custom | |
parent | 5bed2fb79d7b554dd90d2eb58422cfa649aebe08 (diff) | |
download | planet-ff32e499745367b816d10f25e63ff3328214c32f.tar planet-ff32e499745367b816d10f25e63ff3328214c32f.tar.gz planet-ff32e499745367b816d10f25e63ff3328214c32f.tar.bz2 planet-ff32e499745367b816d10f25e63ff3328214c32f.tar.xz planet-ff32e499745367b816d10f25e63ff3328214c32f.zip |
- Import moonmoon
- Create repo per langs
Diffstat (limited to 'common/custom')
-rw-r--r-- | common/custom/img/feed.png | bin | 0 -> 484 bytes | |||
-rw-r--r-- | common/custom/img/opml.png | bin | 0 -> 31542 bytes | |||
-rw-r--r-- | common/custom/people.opml | 10 | ||||
-rw-r--r-- | common/custom/style/dark.css | 125 | ||||
-rw-r--r-- | common/custom/style/default.css | 128 | ||||
-rw-r--r-- | common/custom/style/green.css | 132 | ||||
-rw-r--r-- | common/custom/style/light.css | 124 | ||||
-rw-r--r-- | common/custom/style/mobile.css | 8 | ||||
-rw-r--r-- | common/custom/views.php | 13 | ||||
-rwxr-xr-x | common/custom/views/archive/footer.tpl.php | 3 | ||||
-rw-r--r-- | common/custom/views/archive/head.tpl.php | 6 | ||||
-rwxr-xr-x | common/custom/views/archive/index.tpl.php | 114 | ||||
-rwxr-xr-x | common/custom/views/archive/sidebar.tpl.php | 34 | ||||
-rw-r--r-- | common/custom/views/archive/top.tpl.php | 4 | ||||
-rwxr-xr-x | common/custom/views/default/footer.tpl.php | 3 | ||||
-rw-r--r-- | common/custom/views/default/head.tpl.php | 3 | ||||
-rwxr-xr-x | common/custom/views/default/index.tpl.php | 73 | ||||
-rwxr-xr-x | common/custom/views/default/sidebar.tpl.php | 34 | ||||
-rw-r--r-- | common/custom/views/default/top.tpl.php | 3 |
19 files changed, 817 insertions, 0 deletions
diff --git a/common/custom/img/feed.png b/common/custom/img/feed.png Binary files differnew file mode 100644 index 0000000..f8cd243 --- /dev/null +++ b/common/custom/img/feed.png diff --git a/common/custom/img/opml.png b/common/custom/img/opml.png Binary files differnew file mode 100644 index 0000000..7a9d86f --- /dev/null +++ b/common/custom/img/opml.png 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 @@ +<?xml version="1.0"?> +<opml version="1.1"> +<head> +<title>Untitled</title> +<dateCreated>2008-12-14T15:51:52+01:00</dateCreated> +<dateModified>2008-12-14T15:51:52+01:00</dateModified> +</head> +<body> +</body> +</opml>
\ 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 @@ +<?php +$views = array( + 'archive' => 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 @@ + <div id="footer"> + <p><? echo str_replace('%s', 'href="http://moonmoon.org"', _g('Powered by <a %s>moonmoon</a>'))?> | <a href="./admin/"><?=_g('Administration')?></a></p> + </div> 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 @@ + <link rel="stylesheet" media="screen" type="text/css" href="custom/style/default.css" title="Default" /> + <link rel="stylesheet" media="screen" type="text/css" href="custom/style/green.css" title="Green" /> + <link rel="stylesheet" media="screen" type="text/css" href="custom/style/light.css" title="Light" /> + <link rel="stylesheet" media="screen" type="text/css" href="custom/style/dark.css" title="Dark" /> + + <link rel="alternate" type="application/atom+xml" title="ATOM" href="atom.php" /> 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 @@ +<?php +$count = 0; +$today = Array(); +$week = Array(); +$month = Array(); +$older = Array(); +$now = time(); + +foreach ($items as $item) { + $age = ($now - $item->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'); +?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$conf['locale']?>" lang="<?=$conf['locale']?>"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <meta http-equiv="Content-Script-Type" content="text/javascript" /> + <meta http-equiv="Content-Style-Type" content="text/css" /> + + <title><?php echo $PlanetConfig->getName(); ?></title> + <?php include(dirname(__FILE__).'/head.tpl.php'); ?> +</head> + +<body> + <div id="page"> + <?php include(dirname(__FILE__).'/top.tpl.php'); ?> + + <div id="content"> + <?php if (0 == count($items)) :?> + <div class="article"> + <h2 class="article-title"> + <?=_g('No article')?> + </h2> + <p class="article-content"><?=_g('No news, good news.')?></p> + </div> + <?php endif; ?> + <?php if (count($today)): ?> + <div class="article"> + <h2><?=_g('Today')?></h2> + <ul> + <?php foreach ($today as $item): ?> + <?php $feed = $item->get_feed(); ?> + <li> + <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : + <a href="<?php echo $item->get_permalink(); ?>" title="<?=_g('Go to original place')?>"><?php echo $item->get_title(); ?></a> + </li> + <?php endforeach; ?> + </ul> + </div> + <?php endif; ?> + + <?php if (count($week)): ?> + <div class="article"> + <h2><?=_g('This week')?></h2> + <ul> + <?php foreach ($week as $item): ?> + <?php $feed = $item->get_feed(); ?> + <li> + <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : + <a href="<?php echo $item->get_permalink(); ?>" title="<?=_g('Go to original place')?>"><?php echo $item->get_title(); ?></a> + </li> + <?php endforeach; ?> + </ul> + </div> + <?php endif; ?> + + <?php if (count($month)): ?> + <div class="article"> + <h2><?=_g('This month')?></h2> + <ul> + <?php foreach ($month as $item): ?> + <?php $feed = $item->get_feed(); ?> + <li> + <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : + <a href="<?php echo $item->get_permalink(); ?>" title="<?=_g('Go to original place')?>"><?php echo $item->get_title(); ?></a> + </li> + <?php endforeach; ?> + </ul> + </div> + <?php endif; ?> + + <?php if (count($older)): ?> + <div class="article"> + <h2><?=_g('Older items')?></h2> + <ul> + <?php foreach ($older as $item): ?> + <?php $feed = $item->get_feed(); ?> + <li> + <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : + <a href="<?php echo $item->get_permalink(); ?>" title="Go to original place"><?php echo $item->get_title(); ?></a> + </li> + <?php endforeach; ?> + </ul> + </div> + <?php endif; ?> + </div> + + <?php include_once(dirname(__FILE__).'/sidebar.tpl.php'); ?> + + <?php include(dirname(__FILE__).'/footer.tpl.php'); ?> + </div> +</body> +</html> 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 @@ +<?php +$all_people = &$Planet->getPeople(); +usort($all_people, array('PlanetFeed', 'compare')); +?> +<div id="sidebar"> + <div id="sidebar-people"> + <h2><?=_g('People')?> (<?php echo count($all_people); ?>)</h2> + <ul> + <?php foreach ($all_people as $person) : ?> + <li> + <a href="<?php echo htmlspecialchars($person->getFeed(), ENT_QUOTES, 'UTF-8'); ?>" title="<?=_g('Feed')?>"><img src="postload.php?url=<?php echo urlencode(htmlspecialchars($person->getFeed(), ENT_QUOTES, 'UTF-8')); ?>" alt="<?=_g('Feed')?>" height="12" width="12" /></a> + <a href="<?php echo $person->getWebsite(); ?>" title="<?=_g('Website')?>"><?php echo htmlspecialchars($person->getName(), ENT_QUOTES, 'UTF-8'); ?></a> + </li> + <?php endforeach; ?> + </ul> + <p> + <a href="custom/people.opml"><img src="custom/img/opml.png" alt="<?=_g('Feed')?>" height="12" width="12" /> <?=_g('All feeds in OPML format')?></a> + </p> + </div> + + <div> + <h2><?=_g('Syndicate')?></h2> + <ul> + <li><img src="custom/img/feed.png" alt="<?=_g('Feed')?>" height="12" width="12" /> <a href="atom.php"><?=_g('Feed (ATOM)')?></a></li> + </ul> + </div> + + <div> + <h2><?=_g('Archives')?></h2> + <ul> + <li><a href="?type=archive"><?=_g('See all headlines')?></a></li> + </ul> + </div> +</div> 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 @@ + <div id="top"> + <h1><a href="<?php echo $PlanetConfig->getUrl() ?>"><?php echo $PlanetConfig->getName(); ?></a></h1> + </div> +
\ 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 @@ + <div id="footer"> + <p><? echo str_replace('%s', 'href="http://moonmoon.org"', _g('Powered by <a %s>moonmoon</a>'))?> | <a href="./admin/"><?=_g('Administration')?></a></p> + </div> 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 @@ + <link rel="stylesheet" media="screen" type="text/css" href="custom/style/default.css" title="Default" /> + + <link rel="alternate" type="application/atom+xml" title="ATOM" href="atom.php" /> 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 @@ +<?php +$limit = $PlanetConfig->getMaxDisplay(); +$count = 0; + +header('Content-type: text/html; charset=UTF-8'); +?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$conf['locale']?>" lang="<?=$conf['locale']?>"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <meta http-equiv="Content-Script-Type" content="text/javascript" /> + <meta http-equiv="Content-Style-Type" content="text/css" /> + + <title><?php echo $PlanetConfig->getName(); ?></title> + <?php include(dirname(__FILE__).'/head.tpl.php'); ?> +</head> + +<body> + <script type="text/javascript"> + document.body.className += 'js'; + </script> + <div id="page"> + <?php include(dirname(__FILE__).'/top.tpl.php'); ?> + + <div id="content"> + <?php if (0 == count($items)) : ?> + <div class="article"> + <h2 class="article-title"> + <?=_g('No article', 'note de trad')?> + </h2> + <p class="article-content"><?=_g('No news, good news.')?></p> + </div> + <?php else : ?> + <?php foreach ($items as $item): ?> + <?php + $arParsedUrl = parse_url($item->get_feed()->getWebsite()); + $host = 'from-' . preg_replace('/[^a-zA-Z0-9]/i', '-', $arParsedUrl['host']); + ?> + <div class="article <?php echo $host; ?>"> + <h2 class="article-title"> + <a href="<?php echo $item->get_permalink(); ?>" title="Go to original place"><?php echo $item->get_title(); ?></a> + </h2> + <p class="article-info"> + + <?php echo ($item->get_author()? $item->get_author()->get_name() : 'Anonymous'); ?>, + <?php + $ago = time() - $item->get_date('U'); + //echo '<span title="'.Duration::toString($ago).' ago" class="date">'.date('d/m/Y', $item->get_date('U')).'</span>'; + echo '<span id="post'.$item->get_date('U').'" class="date">'.$item->get_date('d/m/Y').'</span>'; + ?> + + | + + <?=_g('Source:')?> <?php + $feed = $item->get_feed(); + echo '<a href="'.$feed->getWebsite().'" class="source">'.$feed->getName().'</a>'; + ?> + </p> + <div class="article-content"> + <?php echo $item->get_content(); ?> + </div> + </div> + <?php if (++$count == $limit) { break; } ?> + <?php endforeach; ?> + <?php endif; ?> + </div> + + <?php include_once(dirname(__FILE__).'/sidebar.tpl.php'); ?> + + <?php include(dirname(__FILE__).'/footer.tpl.php'); ?> + </div> +</body> +</html> 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 @@ +<?php +$all_people = &$Planet->getPeople(); +usort($all_people, array('PlanetFeed', 'compare')); +?> +<div id="sidebar" class="aside"> + <div id="sidebar-people" class="section"> + <h2><?php echo _g('People') . ' (' . count($all_people) . ')'?></h2> + <ul> + <?php foreach ($all_people as $person) : ?> + <li> + <a href="<?php echo htmlspecialchars($person->getFeed(), ENT_QUOTES, 'UTF-8'); ?>" title="<?=_g('Feed')?>"><img src="postload.php?url=<?php echo urlencode(htmlspecialchars($person->getFeed(), ENT_QUOTES, 'UTF-8')); ?>" alt="" height="12" width="12" /></a> + <a href="<?php echo $person->getWebsite(); ?>" title="<?=_g('Website')?>"><?php echo htmlspecialchars($person->getName(), ENT_QUOTES, 'UTF-8'); ?></a> + </li> + <?php endforeach; ?> + </ul> + <p> + <img src="custom/img/opml.png" alt="<?=_g('Feed')?>" height="12" width="12" /> <a href="custom/people.opml"><?=_g('All feeds in OPML format')?></a> + </p> + </div> + + <div class="section"> + <h2><?=_g('Syndicate')?></h2> + <ul> + <li><img src="custom/img/feed.png" alt="<?=_g('Feed')?>" height="12" width="12" /> <a href="atom.php"><?=_g('Feed (ATOM)')?></a></li> + </ul> + </div> + + <div class="section"> + <h2><?=_g('Archives')?></h2> + <ul> + <li><a href="?type=archive"><?=_g('See all headlines')?></a></li> + </ul> + </div> +</div> 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 @@ + <div id="header"> + <h1 id="top"><a href="<?php echo $PlanetConfig->getUrl() ?>"><?php echo $PlanetConfig->getName(); ?></a></h1> + </div>
\ No newline at end of file |