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

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

This example Drupal source code file (aggregator-summary-item.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

endif, php, source_url

The aggregator-summary-item.tpl.php Drupal example source code

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

 * @file
 * 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; ?>

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal aggregator-summary-item.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.