home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (aggregator-feed-source.tpl.php)

This example Drupal source code file (aggregator-feed-source.tpl.php) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

class, div, feed-description, feed-source, feed-updated, feed-url, php

The aggregator-feed-source.tpl.php Drupal example source code

// $Id: aggregator-feed-source.tpl.php,v 1.2 2008/05/15 21:27:32 dries Exp $

 * @file
 * 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 template_preprocess()
 * @see template_preprocess_aggregator_feed_source()
<div class="feed-source">
  <?php print $source_icon; ?>
  <?php print $source_image; ?>
  <div class="feed-description">
    <?php print $source_description; ?>
  <div class="feed-url">
    <em><?php print t('URL:'); ?></em> <a href="<?php print $source_url; ?>"><?php print $source_url; ?></a>
  <div class="feed-updated">
    <em><?php print t('Updated:'); ?></em> <?php print $last_checked; ?>

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal aggregator-feed-source.tpl.php source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.