You are here

views-view-row-fia.tpl.php in Facebook Instant Articles 7.2

Same filename and directory in other branches
  1. 7 modules/fb_instant_articles_views/theme/views-view-row-fia.tpl.php

Default theme implementation to display an item in a Facebook Instant Articles feed.

Available variables:

  • $title: RSS item title.
  • $link: canonical URL for this item.
  • $content: the fully rendered instant article markup.
  • $item_elements: additional optional <item> child tags.

File

modules/fb_instant_articles_views/theme/views-view-row-fia.tpl.php
View source
<?php

/**
 * @file
 * Default theme implementation to display an item in a Facebook Instant
 * Articles feed.
 *
 * Available variables:
 * - $title: RSS item title.
 * - $link: canonical URL for this item.
 * - $content: the fully rendered instant article markup.
 * - $item_elements: additional optional <item> child tags.
 *
 * @see template_preprocess_views_view_row_fia()
 *
 * @ingroup themeable
 */
?>
<item>
  <title><?php

print $title;
?></title>
  <link><?php

print $link;
?></link>
  <content:encoded>
    <![CDATA[
    <!-- Article body started -->
      <?php

print $content;
?>
    ]]>
  </content:encoded>
  <?php

print $item_elements;
?>
</item>