Permalink
Browse files

Merge pull request #221 from rapid2k1/master

Split some long one liners in the demo into multiple lines. Fixes #191
  • Loading branch information...
2 parents 09288e5 + ad9fb15 commit 7f138e353bdb78d00c042ee07066512e1e7ee5bd @rmccue rmccue committed Oct 11, 2012
Showing with 11 additions and 1 deletion.
  1. +11 −1 demo/index.php
View
@@ -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(); ?>

0 comments on commit 7f138e3

Please sign in to comment.