From: Penny Leach Date: Fri, 25 Apr 2008 22:28:44 +0000 (+1200) Subject: html formatting & moved some stuff into config X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1667e394439d480f24bb7c0573b5fe537d18600a;p=m.o.git html formatting & moved some stuff into config --- diff --git a/comp/blog.php b/comp/blog.php index dd39326..97d7cda 100644 --- a/comp/blog.php +++ b/comp/blog.php @@ -1,14 +1,14 @@ latest blog posts'; + echo '

latest blog posts

' ."\n"; if ($data = parse_rss(get_config('blog_rss'))) { - echo '' . "\n"; } } diff --git a/comp/flickr.php b/comp/flickr.php index a0d9595..329b639 100644 --- a/comp/flickr.php +++ b/comp/flickr.php @@ -12,6 +12,8 @@ function comp_flickr() { $photos_url = $f->urls_getUserPhotos($person['id']); $photos = $f->people_getPublicPhotos($person['id'], NULL, 9); + // no nice formatting here, whtespace fucks the browser + echo "\n"; foreach ((array)$photos['photo'] as $photo) { echo ""; echo "$photo[title]"; $i++; } + echo "\n"; } diff --git a/comp/lastfm.php b/comp/lastfm.php index 5435e20..800f200 100644 --- a/comp/lastfm.php +++ b/comp/lastfm.php @@ -1,14 +1,14 @@ recently listened tracks'; + echo '

recently listened tracks

' . "\n"; if ($data = parse_rss('http://ws.audioscrobbler.com/1.0/user/' . get_config('lastfm_username') . '/recenttracks.rss')) { - echo '
' . "\n"; } } diff --git a/comp/twitter.php b/comp/twitter.php index 1065b9c..4dab86a 100644 --- a/comp/twitter.php +++ b/comp/twitter.php @@ -1,14 +1,14 @@ latest twitter updates'; + echo '

latest twitter updates

' . "\n"; if ($data = parse_rss('http://twitter.com/statuses/user_timeline/' . get_config('twitter_username') . '.rss')) { - echo '' . "\n"; } } diff --git a/config-dist.php b/config-dist.php index 9bd5005..1d22705 100644 --- a/config-dist.php +++ b/config-dist.php @@ -8,9 +8,11 @@ $CFG = array( 'twitter_username' => '', 'lastfm_username' => '', 'blog_rss' => '', + 'blog_url' => '', 'rss_cache' => '', 'curl' => '', 'cache_lifetime' => 0, + 'title' => '', ); // autodetect stuff diff --git a/include/main.inc b/include/main.inc index b940abb..54a6022 100644 --- a/include/main.inc +++ b/include/main.inc @@ -11,20 +11,20 @@ ksort($whorepile); ?> -

mjollnir.org

-

a collection of what I'm doing all over the internet, mashed together into one place for your viewing pleasure.

-

my blog lives at she.geek.nz. there's an about page there too. it's old and rather out of date.

-

find me on $url) { - echo '' . $service . ''; - if ($count != count($whorepile) -1) { - echo ', '; - } - $count++; - } -?>. christ. at least I never got livejournal.

-

I don't have an rss feed for this mashup. use friendfeed instead, or an individual site's feed.

-

thanks to vex for the vserver

-

send me email! -On my mind: mahara, more tattoos, less tattoos, moodle gsoc, Europe +

mjollnir.org

+

a collection of what I'm doing all over the internet, mashed together into one place for your viewing pleasure.

+

my blog lives at she.geek.nz. there's an about page there too. it's old and rather out of date.

+

find me on $url) { + echo '' . $service . ''; + if ($count != count($whorepile) -1) { + echo ', '; + } + $count++; + } + ?>. christ. at least I never got livejournal.

+

I don't have an rss feed for this mashup. use friendfeed instead, or an individual site's feed.

+

thanks to vex for the vserver

+

send me email! + On my mind: mahara, more tattoos, less tattoos, moodle gsoc, Europe diff --git a/index.php b/index.php index 97e7f50..5344a06 100644 --- a/index.php +++ b/index.php @@ -9,17 +9,17 @@ echo ''; "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - mjollnir.org + <?php echo get_config('title'); ?> '; + echo '

' . "\n"; require_once(get_config('comp') . $comp . '.php'); call_user_func('comp_' . $comp); - echo '
'; + echo "\n" . ' ' . "\n"; } ?>