theme_aggregator_summary_item

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/aggregator/aggregator.module, строка 1365

Версии
5
theme_aggregator_summary_item($item)

Return a themed item heading for summary pages located at 'aggregator/sources' and 'aggregator/categories'.

Параметры

$item The item object from the aggregator module.

Возвращаемое значение

A string containing the output.

Связанные темы

▾ 2 функции вызывают theme_aggregator_summary_item()

aggregator_page_categories in modules/aggregator/aggregator.module
Коллбэк меню; показывает все категории, используемые аггрегатором.
aggregator_page_sources in modules/aggregator/aggregator.module
Коллбэк меню; показывает все фиды, используемые аггрегатором.

Код

<?php
function theme_aggregator_summary_item($item) {
  $output = '<a href="'. check_url($item->link) .'">'. check_plain($item->title) .'</a> <span class="age">'. t('%age old', array('%age' => format_interval(time() - $item->timestamp))) .'</span>';
  if ($item->feed_link) {
    $output .= ', <span class="source"><a href="'. check_url($item->feed_link) .'">'. check_plain($item->feed_title) .'</a></span>';
  }
  return $output ."\n";
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему