<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>webgarden.ca &#187; php</title>
	<atom:link href="http://webgarden.ca/Blog/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://webgarden.ca/Blog</link>
	<description></description>
	<lastBuildDate>Fri, 06 Nov 2009 20:20:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to create a rotating header image in wordpress</title>
		<link>http://webgarden.ca/Blog/2008/04/how-to-rotate-header-image-in-wordpress/</link>
		<comments>http://webgarden.ca/Blog/2008/04/how-to-rotate-header-image-in-wordpress/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 04:17:14 +0000</pubDate>
		<dc:creator>webgarden</dc:creator>
				<category><![CDATA[Techy Stuff]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://webgarden.ca/Blog/?p=59</guid>
		<description><![CDATA[There is tons of information about how to make a random image header in wordpress, and just as many plugins -  however, I wanted to make my own rotating header image. If you are like me, and you want &#8220;complete control&#8221; over your site &#8211; here is the easy way to make a rotating / [...]]]></description>
			<content:encoded><![CDATA[<p>There is tons of information about how to make a random image header in wordpress, and just as many plugins -  however, I wanted to make my own rotating header image. If you are like me, and you want &#8220;complete control&#8221; over your site &#8211; here is the easy way to make a rotating / random header image:</p>
<ol>
<li>Create a folder called &#8220;header-images&#8221; &amp; put your header images inside this folder</li>
<li>Upload header-images to your wp-content folder</li>
<li>Create a file called &#8220;rotate.php&#8221;</li>
<li>Add the following code to your &#8220;rotate.php&#8221; page (you can copy and paste from here: <a href="http://ma.tt/scripts/randomimage/">http://ma.tt/scripts/randomimage/</a> )</li>
<li>Upload rotate.php into the header-images folder (so that rotate.php is with all your images)</li>
<li>In your theme&#8217;s &#8220;style.css&#8221; file find &#8220;#header&#8221;</li>
<li>add the following code:<br />
&#8220;background: url (&#8230;/header-images/rotate.php);&#8221; (this is telling your header to add the rotate.php as the background image)</li>
<li>Upload  your css file </li>
<li>Test  your site and your finished!</li>
</ol>
<p>Questions? Send me a message or a comment and I will do my best to help  you out.</p>
]]></content:encoded>
			<wfw:commentRss>http://webgarden.ca/Blog/2008/04/how-to-rotate-header-image-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove 2 home pages from your wordpress blog</title>
		<link>http://webgarden.ca/Blog/2008/03/remove-2-home-pages-from-your-wordpress-blog/</link>
		<comments>http://webgarden.ca/Blog/2008/03/remove-2-home-pages-from-your-wordpress-blog/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 00:33:57 +0000</pubDate>
		<dc:creator>webgarden</dc:creator>
				<category><![CDATA[Techy Stuff]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://webgarden.ca/Blog/?p=58</guid>
		<description><![CDATA[Some wordpress themes and not very good a supporting &#8220;static&#8221; pages. After  you have altered your wordpress blog into a static site, you may end up with 2 home links in your menu bar . To remove one of the two home pages go into your theme folder and find header.php. Locate the following code: (near the bottom)
 &#60;div id=&#8221;menu&#8221;&#62;
 &#60;ul&#62;
   &#60;li [...]]]></description>
			<content:encoded><![CDATA[<p>Some wordpress themes and not very good a supporting &#8220;static&#8221; pages. After  you have altered your wordpress blog into a static site, you may end up with 2 home links in your menu bar . To remove one of the two home pages go into your theme folder and find header.php. Locate the following code: (near the bottom)</p>
<p> &lt;div id=&#8221;menu&#8221;&gt;<br />
 &lt;ul&gt;<br />
   &lt;li class=&#8221;&lt;?php if (is_home()) { ?&gt;current_page_item&lt;?php } else { ?&gt;page_item&lt;?php } ?&gt;&#8221;&gt; &lt;a href=&#8221;&lt;?php bloginfo(&#8217;url&#8217;); ?&gt;&#8221; title=&#8221;Home&#8221;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
  &lt;?php wp_list_pages(&#8217;title_li=&amp;depth=1&#8242;); ?&gt;<br />
 &lt;/ul&gt;<br />
&lt;/div&gt;</p>
<p>comment out this part:</p>
<p>&lt;a href=&#8221;&lt;?php bloginfo(&#8217;url&#8217;); ?&gt;&#8221; title=&#8221;Home&#8221;&gt;Home&lt;/a&gt;</p>
<p>Upload header.php and refresh your page to review the changes.</p>
<p> ALWAYS comment out the code &#8211; DO NOT DELETE &#8211; you never know when/ if you may need it again.</p>
<p>I hope this is helpful for some of you!</p>
]]></content:encoded>
			<wfw:commentRss>http://webgarden.ca/Blog/2008/03/remove-2-home-pages-from-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php-how to use includes for navigation</title>
		<link>http://webgarden.ca/Blog/2008/02/php-how-to-use-includes-for-navigation/</link>
		<comments>http://webgarden.ca/Blog/2008/02/php-how-to-use-includes-for-navigation/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 16:11:17 +0000</pubDate>
		<dc:creator>webgarden</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://webgarden.ca/Blog/?p=47</guid>
		<description><![CDATA[Learning php has not been an easy task! But I have been plugging away at it, and now I have a few tricks under my belt to use php to make web design easier.
Today I am going to give an example of the power of &#8220;includes&#8221;. In my opinion using includes for your navigation is probably the most [...]]]></description>
			<content:encoded><![CDATA[<p>Learning php has not been an easy task! But I have been plugging away at it, and now I have a few tricks under my belt to use php to make web design easier.</p>
<p>Today I am going to give an example of the power of &#8220;includes&#8221;. In my opinion using includes for your navigation is probably the most useful of all the includes!</p>
<p>So, how does it work?</p>
<p>When you use an include for your navigation, instead of having to make changes to each page where the navigation is, you open your include file, make the changes and upload the ONE file. How do you do it?</p>
<p>Well, it&#8217;s very easy.</p>
<ol>
<li>Create a blank php page. (there should be nothing on the page &#8211; no doc type declaration &#8211; NOTHING!)</li>
<li>Rename the page &#8220;navInclude.php&#8221; and save it inside a folder called &#8220;includes&#8221;</li>
<li>Create an unordered list with your navigation links. (IE. home.php, aboutUs.php, Contact.php etc..)      </li>
<li>Make sure your navigation list in &#8220;navInclude.php&#8221; is linked to the correct pages</li>
<li>Go to your index.php page. Find the div where your navigation is. &lt;div=&#8221;nav&#8221;&gt;&lt;/div&gt;</li>
<li>Between the two navigation tags insert this code:<br />
&lt;?php include(&#8217;includes/navInclude.php&#8217;); ?&gt;<br />
(You must delete your current navigation links before inserting the php code)</p>
<p>So it looks like this: <font color="#000080">&lt;div=&#8221;nav</font><font color="#ff0000"><font color="#000080">&#8220;&gt;</font>&lt;?php</font> <font color="#99cc00">include</font>(<font color="#ff0000">&#8216;includes/navInc.php&#8217;</font><font color="#000080">)</font><font color="#000000">; </font><font color="#ff0000">?&gt;</font><font color="#000080">&lt;/div&gt;</font></li>
<li><font color="#000000">Repeat this for each page in your site</font></li>
<li><font color="#000000">Upload your pages, and the folder &#8220;includes&#8221; and voila! Your navigation is working!</font></li>
<li>Now, if you want to change the &#8220;About&#8221; page to &#8220;Our Staff&#8221; all you have to do is change the navInclude.php, upload it, and the changes will be made to the entire site! How great is that?</li>
</ol>
<p>Later this week, I will post another simple php lesson. If you have any questions, please post a comment and I will do my best to reply!</p>
]]></content:encoded>
			<wfw:commentRss>http://webgarden.ca/Blog/2008/02/php-how-to-use-includes-for-navigation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
