Skip to content

Commit

Permalink
added author search link in quotes list
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel DOUAT committed Dec 11, 2014
1 parent a0bff14 commit fab2ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions parser/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function parse($elements)
$this->timply->setElement('permalink', $this->returnPermalink($value->getPermalink()), 'Quote');
$this->timply->setElement('description', $value->getText(), 'Quote');
$this->timply->setElement('author', $value->getAuthor(), 'Quote');
$this->timply->setElement('searchByAuthor', '//' .$_SERVER['HTTP_HOST'] . '/api.php?p=html&w=author&wo=equal,' . $value->getAuthor(), 'Quote');
}
}
return $this->timply->returnHtml();
Expand Down
2 changes: 1 addition & 1 deletion themes/simple/html.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>{title}</h1>
<!-- start Quote -->
<div class="quote">
<span class="text"><a href="{permalink}" alt="permalink" title="permalink" class="textLink">{text}</a></span><span class="author">({author})</span>
<span class="text"><a href="{permalink}" alt="permalink" title="permalink" class="textLink">{text}</a></span><span class="author"><a href="{searchByAuthor}" alt="[trad::search_by] [trad::author]" title="[trad::search_by] [trad::author]" id="author">{author}</a></span>
</div>
<!-- end Quote -->
</section>
Expand Down

0 comments on commit fab2ce6

Please sign in to comment.