root / drupal7 / sites / all / themes / adaptivetheme / at_core / templates / aggregator-feed-source.tpl.php @ 87dbc3bf
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* Adativetheme 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 |
* Adaptivetheme variables:
|
10 |
* - $is_mobile: Mixed, requires the Mobile Detect or Browscap module to return
|
11 |
* TRUE for mobile. Note that tablets are also considered mobile devices.
|
12 |
* Returns NULL if the feature could not be detected.
|
13 |
* - $is_tablet: Mixed, requires the Mobile Detect to return TRUE for tablets.
|
14 |
* Returns NULL if the feature could not be detected.
|
15 |
*
|
16 |
* Available variables:
|
17 |
* - $source_icon: Feed icon linked to the source. Rendered through
|
18 |
* theme_feed_icon().
|
19 |
* - $source_image: Image set by the feed source.
|
20 |
* - $source_description: Description set by the feed source.
|
21 |
* - $source_url: URL to the feed source.
|
22 |
* - $last_checked: How long ago the feed was checked locally.
|
23 |
*
|
24 |
* @see template_preprocess()
|
25 |
* @see template_preprocess_aggregator_feed_source()
|
26 |
*
|
27 |
* @ingroup themeable
|
28 |
*/
|
29 |
?>
|
30 |
<aside class="feed-source"> |
31 |
|
32 |
<?php if ($source_description): ?> |
33 |
<header class="feed-description"><?php print $source_icon; ?><?php print $source_description; ?></header> |
34 |
<?php endif; ?> |
35 |
|
36 |
<?php print $source_image; ?> |
37 |
|
38 |
<dl class="feed-details"> |
39 |
<dt class="feed-url"><?php print t('URL:'); ?></dt> |
40 |
<dd class="clearfix"><?php print $source_url; ?></dd> |
41 |
<dt class="feed-updated"><?php print t('Updated:'); ?></dt> |
42 |
<dd class="clearfix"><?php print $last_checked; ?></dd> |
43 |
</dl>
|
44 |
|
45 |
</aside>
|