Community Documentation

aggregator-summary-item.tpl.php

  1. drupal
    1. 6 aggregator-summary-item.tpl.php
    2. 7 aggregator-summary-item.tpl.php
    3. 8 aggregator-summary-item.tpl.php

aggregator-summary-item.tpl.php Default theme implementation to present a linked feed item for summaries.

Available variables:

  • $feed_url: Link to originating feed.
  • $feed_title: Title of feed.
  • $feed_age: Age of remote feed.
  • $source_url: Link to remote source.
  • $source_title: Locally set title for the source.

See also

template_preprocess()

template_preprocess_aggregator_summary_item()

View source
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

/**
 * @file aggregator-summary-item.tpl.php
 * Default theme implementation to present a linked feed item for summaries.
 *
 * Available variables:
 * - $feed_url: Link to originating feed.
 * - $feed_title: Title of feed.
 * - $feed_age: Age of remote feed.
 * - $source_url: Link to remote source.
 * - $source_title: Locally set title for the source.
 *
 * @see template_preprocess()
 * @see template_preprocess_aggregator_summary_item()
 */
?>
<a href="<?php print $feed_url; ?>"><?php print $feed_title; ?></a> <span class="age"><?php print $feed_age; ?></span><?php if ($source_url) : ?>, <span class="source"><a href="<?php print $source_url; ?>"><?php print $source_title; ?></a></span><?php endif; ?>
Login or register to post comments