annotate modules/aggregator/aggregator-item.tpl.php @ 1:c1f4ac30525a 6.0

Drupal 6.0
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:28:28 +0100
parents
children
rev   line source
webmaster@1 1 <?php
webmaster@1 2 // $Id: aggregator-item.tpl.php,v 1.1 2007/09/13 08:02:38 goba Exp $
webmaster@1 3
webmaster@1 4 /**
webmaster@1 5 * @file aggregator-item.tpl.php
webmaster@1 6 * Default theme implementation to format an individual feed item for display
webmaster@1 7 * on the aggregator page.
webmaster@1 8 *
webmaster@1 9 * Available variables:
webmaster@1 10 * - $feed_url: URL to the originating feed item.
webmaster@1 11 * - $feed_title: Title of the feed item.
webmaster@1 12 * - $source_url: Link to the local source section.
webmaster@1 13 * - $source_title: Title of the remote source.
webmaster@1 14 * - $source_date: Date the feed was posted on the remote source.
webmaster@1 15 * - $content: Feed item content.
webmaster@1 16 * - $categories: Linked categories assigned to the feed.
webmaster@1 17 *
webmaster@1 18 * @see template_preprocess()
webmaster@1 19 * @see template_preprocess_aggregator_item()
webmaster@1 20 */
webmaster@1 21 ?>
webmaster@1 22 <div class="feed-item">
webmaster@1 23 <h3 class="feed-item-title">
webmaster@1 24 <a href="<?php print $feed_url; ?>"><?php print $feed_title; ?></a>
webmaster@1 25 </h3>
webmaster@1 26
webmaster@1 27 <div class="feed-item-meta">
webmaster@1 28 <?php if ($source_url) : ?>
webmaster@1 29 <a href="<?php print $source_url; ?>" class="feed-item-source"><?php print $source_title; ?></a> -
webmaster@1 30 <?php endif; ?>
webmaster@1 31 <span class="feed-item-date"><?php print $source_date; ?></span>
webmaster@1 32 </div>
webmaster@1 33
webmaster@1 34 <?php if ($content) : ?>
webmaster@1 35 <div class="feed-item-body">
webmaster@1 36 <?php print $content; ?>
webmaster@1 37 </div>
webmaster@1 38 <?php endif; ?>
webmaster@1 39
webmaster@1 40 <?php if ($categories) : ?>
webmaster@1 41 <div class="feed-item-categories">
webmaster@1 42 <?php print t('Categories'); ?>: <?php print implode(', ', $categories); ?>
webmaster@1 43 </div>
webmaster@1 44 <?php endif ;?>
webmaster@1 45
webmaster@1 46 </div>