aggregator-feed-source.tpl.php

  1. 7.x drupal/modules/aggregator/aggregator-feed-source.tpl.php
  2. 6.x drupal/modules/aggregator/aggregator-feed-source.tpl.php

Default theme implementation to present the source of the feed.

The contents are rendered above feed listings when browsing source feeds. For example, "example.com/aggregator/sources/1".

Available variables:

  • $source_icon: Feed icon linked to the source. Rendered through theme_feed_icon().
  • $source_image: Image set by the feed source.
  • $source_description: Description set by the feed source.
  • $source_url: URL to the feed source.
  • $last_checked: How long ago the feed was checked locally.

See also

template_preprocess()

template_preprocess_aggregator_feed_source()

1 theme call to aggregator-feed-source.tpl.php
aggregator_page_source in drupal/modules/aggregator/aggregator.pages.inc
Page callback: Displays all the items captured from the particular feed.
2 string references to the theme hook from aggregator-feed-source.tpl.php

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

aggregator_page_source in drupal/modules/aggregator/aggregator.pages.inc
Page callback: Displays all the items captured from the particular feed.
aggregator_theme in drupal/modules/aggregator/aggregator.module
Implements hook_theme().

File

drupal/modules/aggregator/aggregator-feed-source.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to present the source of the feed.
  5. *
  6. * The contents are rendered above feed listings when browsing source feeds.
  7. * For example, "example.com/aggregator/sources/1".
  8. *
  9. * Available variables:
  10. * - $source_icon: Feed icon linked to the source. Rendered through
  11. * theme_feed_icon().
  12. * - $source_image: Image set by the feed source.
  13. * - $source_description: Description set by the feed source.
  14. * - $source_url: URL to the feed source.
  15. * - $last_checked: How long ago the feed was checked locally.
  16. *
  17. * @see template_preprocess()
  18. * @see template_preprocess_aggregator_feed_source()
  19. *
  20. * @ingroup themeable
  21. */
  22. ?>
  23. <div class="feed-source">
  24. <?php print $source_icon; ?>
  25. <?php print $source_image; ?>
  26. <div class="feed-description">
  27. <?php print $source_description; ?>
  28. </div>
  29. <div class="feed-url">
  30. <em><?php print t('URL:'); ?></em> <a href="<?php print $source_url; ?>"><?php print $source_url; ?></a>
  31. </div>
  32. <div class="feed-updated">
  33. <em><?php print t('Updated:'); ?></em> <?php print $last_checked; ?>
  34. </div>
  35. </div>

Related topics