Skip to content

Commit

Permalink
Merge branch 'master' of github.com:simplepie/simplepie
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccue committed Oct 11, 2012
2 parents 893c032 + 7f138e3 commit caf7803
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion demo/index.php
Expand Up @@ -196,7 +196,17 @@
<div class="chunk focus" align="center">

<!-- If the feed has a link back to the site that publishes it (which 99% of them do), link the feed's title to it. -->
<h3 class="header"><?php if ($feed->get_link()) echo '<a href="' . $feed->get_link() . '">'; echo $feed->get_title(); if ($feed->get_link()) echo '</a>'; ?></h3>
<h3 class="header">
<?php
$link = $feed->get_link();
$title = $feed->get_title();
if ($link)
{
$title = "<a href='$link' title='$title'>$title</a>";
}
echo $title;
?>
</h3>

<!-- If the feed has a description, display it. -->
<?php echo $feed->get_description(); ?>
Expand Down

0 comments on commit caf7803

Please sign in to comment.