DesweR 23 апреля 2010 в 6:40 Есть Aggregator, получаю новости, вывожу их в блок. Цель: подправить ссылки в блоке, чтобы они открывались в новом окне, но никак немогу найти место где они формируются. Drupal6 Блог Войдите или зарегистрируйтесь, чтобы отправлять комментарии
DesweR 27 апреля 2010 в 5:59 Наконец вычислил, модуль aggregator.module: <?phpfunction theme_aggregator_block_item($item, $feed = 0) { global $user; $output = ''; if ($user->uid && module_exists('blog') && user_access('create blog entries')) { if ($image = theme('image', 'misc/blog.png', t('blog it'), t('blog it'))) { $output .= '<div class="icon">'. l($image, 'node/add/blog', array('attributes' => array('title' => t('Comment on this news item in your personal blog.'), 'class' => 'blog-it'), 'query' => "iid=$item->iid", 'html' => TRUE)) .'</div>'; } } // Display the external link to the item. $output .= '<a href="'. check_url($item->link) .'">'. check_plain($item->title) ."</a>\n"; return $output;}?>
Комментарии
Наконец вычислил, модуль aggregator.module:
<?phpfunction theme_aggregator_block_item($item, $feed = 0) {
global $user;
$output = '';
if ($user->uid && module_exists('blog') && user_access('create blog entries')) {
if ($image = theme('image', 'misc/blog.png', t('blog it'), t('blog it'))) {
$output .= '<div class="icon">'. l($image, 'node/add/blog', array('attributes' => array('title' => t('Comment on this news item in your personal blog.'), 'class' => 'blog-it'), 'query' => "iid=$item->iid", 'html' => TRUE)) .'</div>';
}
}
// Display the external link to the item.
$output .= '<a href="'. check_url($item->link) .'">'. check_plain($item->title) ."</a>\n";
return $output;
}?>