Skip to content

Commit

Permalink
Issue simplepie#191 Some remarks about poor programming practices...
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsnop committed Jul 20, 2012
1 parent 09288e5 commit 02c7359
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion demo/index.php
Expand Up @@ -196,7 +196,14 @@
<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 02c7359

Please sign in to comment.