Bèr Kessels
Bèr Kessels is zelfstandig ondernemer, eigenaar van webschuur.com, Drupal ontwikkelaar, of eigenlijk meer algemeen: Libre/Open Source software hacker.- Mijn LinkedIn netwerk
<?php $id = 28; //My simpy bookmarks $feed = db_fetch_object(db_query(‘SELECT fid, title, block FROM {aggregator_feed} WHERE fid = %d’, $id)); $block[‘subject’] = check_plain($feed?>title); $result = db_query_range(‘SELECT * FROM {aggregator_item} WHERE fid = %d ORDER BY timestamp DESC, iid DESC’, $feed->fid, 0, 6); while ($item = db_fetch_object($result)) { $items[] = theme(‘aggregator_block_item’, $item); } $block[‘content’] = theme(‘item_list’, $items); $block[‘content’] .= ‘<div class="more-link">’. l(t(‘more’), ‘aggregator/sources/’. $feed->fid, array(‘title’ => t(‘View this feed's recent news.’))) .’</div>’; print ‘### ‘. $block[‘subject’] .’
‘; print ‘<div class="content">’. $block[‘content’] .’</div>’; $id = 8; //My lastfm stream $items = array(); $feed = db_fetch_object(db_query(‘SELECT fid, title, block FROM {aggregator_feed} WHERE fid = %d’, $id)); $block[‘subject’] = check_plain($feed->title); $result = db_query_range(‘SELECT * FROM {aggregator_item} WHERE fid = %d ORDER BY timestamp DESC, iid DESC’, $feed->fid, 0, 6); while ($item = db_fetch_object($result)) { $items[] = theme(‘aggregator_block_item’, $item); } $block[‘content’] = theme(‘item_list’, $items); $block[‘content’] .= ‘<div class="more-link">’. l(t(‘more’), ‘aggregator/sources/’. $feed->fid, array(‘title’ => t(‘View this feed's recent news.’))) .’</div>’; print ‘### ‘. $block[‘subject’] .’
‘; print ‘<div class="content">’. $block[‘content’] .’</div>’; $id = 32; //My lastfm stream $items = array(); $feed = db_fetch_object(db_query(‘SELECT fid, title, block FROM {aggregator_feed} WHERE fid = %d’, $id)); $block[‘subject’] = check_plain($feed->title); $result = db_query_range(‘SELECT * FROM {aggregator_item} WHERE fid = %d ORDER BY timestamp DESC, iid DESC’, $feed->fid, 0, 6); while ($item = db_fetch_object($result)) { $items[] = theme(‘aggregator_block_item’, $item); } $block[‘content’] = theme(‘item_list’, $items); $block[‘content’] .= ‘<div class="more-link">’. l(t(‘more’), ‘aggregator/sources/’. $feed->fid, array(‘title’ => t(‘View this feed's recent news.’))) .’</div>’; print ‘### ‘. $block[‘subject’] .’
‘; print ‘<div class="content">’. $block[‘content’] .’</div>’;?>### Fotos op Flickr
<div class="more-link">meer</div>