<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Drupal: Add Log In / Log Out in Footer</title>
	<atom:link href="http://www.trentmueller.com/blog/drupal-add-log-in-log-out-to-footer.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.trentmueller.com/blog/drupal-add-log-in-log-out-to-footer.html</link>
	<description>A blog by Trent Mueller</description>
	<lastBuildDate>Tue, 20 Dec 2011 05:02:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: donSchoe</title>
		<link>http://www.trentmueller.com/blog/drupal-add-log-in-log-out-to-footer.html/comment-page-1#comment-1480</link>
		<dc:creator>donSchoe</dc:creator>
		<pubDate>Thu, 05 May 2011 09:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.trentmueller.com/blog/?p=209#comment-1480</guid>
		<description>Hi, thanks for your code.

I&#039;ve used it with some improvements:
* use $base_path to make sure the login/logout button works on any of your drupal sites...
* don&#039;t add complex HTML into t()-strings
* don&#039;t add style information, that&#039;s what a theme is for



&lt;blockquote&gt;uid) {
  print &#039;&lt;strong&gt;&#039; . t(&#039;Hi @name!&#039;, array(&#039;@name&#039; =&gt; $user-&gt;name)) . &#039;&lt;/strong&gt; &#124; &lt;a href=&quot;&#039; . $base_path . &#039;logout&quot; rel=&quot;nofollow&quot;&gt;&#039; . t(&#039;Logout&#039;) . &#039;&lt;/a&gt;&#039;;
}
else {
  print &#039;&lt;a href=&quot;&#039; . $base_path . &#039;user&quot; rel=&quot;nofollow&quot;&gt;&#039; . t(&#039;Login&#039;) . &#039;&lt;/a&gt;&#039;;
} 
?&gt;&lt;/blockquote&gt;


</description>
		<content:encoded><![CDATA[<p>Hi, thanks for your code.</p>
<p>I&#8217;ve used it with some improvements:<br />
* use $base_path to make sure the login/logout button works on any of your drupal sites&#8230;<br />
* don&#8217;t add complex HTML into t()-strings<br />
* don&#8217;t add style information, that&#8217;s what a theme is for</p>
<blockquote><p>uid) {<br />
  print &#039;&lt;strong&gt;&#039; . t(&#039;Hi @name!&#039;, array(&#039;@name&#039; =&amp;gt; $user-&amp;gt;name)) . &#039;&lt;/strong&gt; | &lt;a href=&quot;&#039; . $base_path . &#039;logout&quot; rel=&quot;nofollow&quot;&gt;&#039; . t(&#039;Logout&#039;) . &#039;&lt;/a&gt;&#039;;<br />
}<br />
else {<br />
  print &#039;&lt;a href=&quot;&#039; . $base_path . &#039;user&quot; rel=&quot;nofollow&quot;&gt;&#039; . t(&#039;Login&#039;) . &#039;&lt;/a&gt;&#039;;<br />
}<br />
?></p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.trentmueller.com/blog/drupal-add-log-in-log-out-to-footer.html/comment-page-1#comment-1131</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Fri, 08 Oct 2010 16:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.trentmueller.com/blog/?p=209#comment-1131</guid>
		<description>That was exactly what I was looking for. Thanks for posting that!</description>
		<content:encoded><![CDATA[<p>That was exactly what I was looking for. Thanks for posting that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhinav</title>
		<link>http://www.trentmueller.com/blog/drupal-add-log-in-log-out-to-footer.html/comment-page-1#comment-1095</link>
		<dc:creator>Abhinav</dc:creator>
		<pubDate>Wed, 18 Aug 2010 21:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.trentmueller.com/blog/?p=209#comment-1095</guid>
		<description>Thanks !!! That was concise and simple...</description>
		<content:encoded><![CDATA[<p>Thanks !!! That was concise and simple&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

