<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Forums Topic: link_href Helper Function</title>
<link>http://omeka.org/forums/</link>
<description>Forums Topic: link_href Helper Function</description>
<language>en</language>
<pubDate>Sat, 10 Jan 2009 00:12:36 +0000</pubDate>

<item>
<title>KrisKelly on "link_href Helper Function"</title>
<link>http://omeka.org/forums/topic/link_href-helper-function#post-475</link>
<pubDate>Tue, 10 Jun 2008 13:39:40 +0000</pubDate>
<dc:creator>KrisKelly</dc:creator>
<guid isPermaLink="false">475@http://omeka.org/forums/</guid>
<description>&#60;p&#62;Yes, there is already a link_to() function that does what your function does for most cases. You can't use it for inserting HTML into the tag, so there will probably be a link_to_img() helper that does something similar to what yours does. I would imagine that it would be something like: link_to_img($featuredItem, 'show', 'orange-btn.gif');. By the way, nice job on the that theme, it looks great!
&#60;/p&#62;</description>
</item>
<item>
<title>kyleroth on "link_href Helper Function"</title>
<link>http://omeka.org/forums/topic/link_href-helper-function#post-465</link>
<pubDate>Fri, 06 Jun 2008 15:32:08 +0000</pubDate>
<dc:creator>kyleroth</dc:creator>
<guid isPermaLink="false">465@http://omeka.org/forums/</guid>
<description>&#60;p&#62;I added a function called &#60;strong&#62;link_href&#60;/strong&#62; to ../helpers/Functions.php and it allows me to link image buttons to item pages. Is there a better way to code this with one of the current functions or would this be something beneficial to add to the global Functions page?&#60;/p&#62;
&#60;p&#62;Code in Functions.php:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function link_href($record, $action=&#38;#39;show&#38;#39;, $text) {
$path = $record-&#38;gt;getPluralized() . DIRECTORY_SEPARATOR . $action . DIRECTORY_SEPARATOR . $record-&#38;gt;id;
return &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;. uri($path) . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . ($text) . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Code on frontend:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php $orangebot = img(&#38;#39;orange-btn.gif&#38;#39;); ?&#38;gt;
&#38;lt;?php echo link_href($featuredItem,show,&#38;quot;&#38;lt;img src=$orangebot border=&#38;#39;0&#38;#39; &#38;gt;&#38;quot;); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You can see the theme that I am developing here: &#60;a href=&#34;http://euclidcorridor.dreamhosters.com/&#34; rel=&#34;nofollow&#34;&#62;http://euclidcorridor.dreamhosters.com/&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
