| 1 |
<?php
|
| 2 |
function phptemplate_news_page_item($item, $blogit) {
|
| 3 |
$output .= '<div class="feed-item">';
|
| 4 |
if ($item->title) {
|
| 5 |
$output .= '<h2 class="feed-item-title"><a href="' . check_url($item->link) . '">' . check_plain($item->title) . '</a></h2>';
|
| 6 |
}
|
| 7 |
$output .= '<p>';
|
| 8 |
if ($item->description) {
|
| 9 |
$output .= '<span class="feed-item-body">' . aggregator_filter_xss($item->description) . '</span>';
|
| 10 |
}
|
| 11 |
if ($blogit) {
|
| 12 |
$blog_icon = '<a href="' . url('node/add/blog', "iid=$item->iid") . '"><img src="'. base_path() .'/misc/blog.png" alt="'. t('Blog this') . '" title="' . t('blog it') . '" class="blog-it"/></a>' ;
|
| 13 |
}
|
| 14 |
$output .= '<br /><span class="feed-item-link"><a href="' . check_url($item->link) . '">' .t('Read more') . '</a></span> <span class="feed-item-source">[<a href="' . check_url($item->flink) . '">' . check_plain($item->ftitle) . '</a>] ' . $blog_icon . '</span>';
|
| 15 |
$output .= '</p>';
|
| 16 |
$output .= '</div>';
|
| 17 |
return $output;
|
| 18 |
}
|
| 19 |
|
| 20 |
function Internet_Broadcast_regions() {return array('content_top' => t('content top'),
|
| 21 |
'content_bottom' => t('content bottom'),
|
| 22 |
'right' => t('right sidebar'),
|
| 23 |
'content' => t('content'),
|
| 24 |
'header' => t('header'),
|
| 25 |
'upper' => t('upper'),
|
| 26 |
'lower' => t('lower'),
|
| 27 |
'bottom1' => t('bottom1'),
|
| 28 |
'bottom2' => t('bottom2'),
|
| 29 |
'bottom3' => t('bottom3'),
|
| 30 |
'footer' => t('footer'));
|
| 31 |
}
|
| 32 |
?>
|