<?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>WPreso &#124; WordPress Plugins and Themes</title>
	<atom:link href="http://www.wpreso.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wpreso.com</link>
	<description></description>
	<lastBuildDate>Wed, 14 Oct 2009 16:01:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to dynamically add stylesheets to your wordpress theme</title>
		<link>http://www.wpreso.com/blog/tutorials/2009/10/14/how-to-dynamically-add-stylesheets-to-your-wordpress-theme/</link>
		<comments>http://www.wpreso.com/blog/tutorials/2009/10/14/how-to-dynamically-add-stylesheets-to-your-wordpress-theme/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 15:33:56 +0000</pubDate>
		<dc:creator>WPreso</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpreso.com/?p=130</guid>
		<description><![CDATA[If you use a lot of different stylesheets for your theme, it can get a little tedious to add them all to your header.php file. You could import them in your style.css, but some of the great minification plugins do not support import.
If you organize all your stylesheets in a sub-folder in your theme, you [...]]]></description>
			<content:encoded><![CDATA[<p>If you use a lot of different stylesheets for your theme, it can get a little tedious to add them all to your <em>header.php</em> file. You could import them in your <em>style.css</em>, but some of the great minification plugins do not support import.</p>
<p>If you organize all your stylesheets in a sub-folder in your theme, you can use the below function to automatically register and add them to your theme, provided that you use the <em>wp_head()</em> function in the head section of your <em>header.php</em>.</p>
<p><strong>Usage:</strong></p>
<ul>
<li>Add the below code to your functions.php file in your theme folder.</li>
<li>Add your stylesheets to a sub-folder named css.</li>
<li>You can add a print stylesheet, by calling it print.css, for a good starting point, try out <a href="http://code.google.com/p/hartija/">Hartija</a>.</li>
<li>For handheld devices, you can add a stylesheet called either iphone.css or handheld.css.</li>
<li>Lastly you can add a stylesheet for projection, and yes it should be called projection.css.</li>
<li>All the above stylesheets should be placed in the <em>CSS folder</em>.</li>
<li>If you want to use a different location for your stylesheets, you can change the location in the last part of the <em>themeCSSUrl</em> and <em>themeCSSDir</em> variables, to point to your desired location.</li>
</ul>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_print_styles'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'add_stylesheets'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> add_stylesheets<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$themeCSSUrl</span> <span style="color: #339933;">=</span>  get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_url'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/css/'</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$themeCSSDir</span> <span style="color: #339933;">=</span> <span style="color: #990000;">dirname</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span> <span style="color: #0000ff;">'/css/'</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">opendir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$themeCSSDir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">!==</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #990000;">readdir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$handle</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">end</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'css'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'print.css'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          wp_register_style<span style="color: #009900;">&#40;</span><span style="color: #990000;">current</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$themeCSSUrl</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'0.8'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'print'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          wp_enqueue_style<span style="color: #009900;">&#40;</span> <span style="color: #990000;">current</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'handheld.css'</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$file</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'iphone.css'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          wp_register_style<span style="color: #009900;">&#40;</span><span style="color: #990000;">current</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$themeCSSUrl</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'1.0'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'handheld'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          wp_enqueue_style<span style="color: #009900;">&#40;</span> <span style="color: #990000;">current</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'projection.css'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
          wp_register_style<span style="color: #009900;">&#40;</span><span style="color: #990000;">current</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$themeCSSUrl</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'1.0'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'projection'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          wp_enqueue_style<span style="color: #009900;">&#40;</span> <span style="color: #990000;">current</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
          wp_register_style<span style="color: #009900;">&#40;</span><span style="color: #990000;">current</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$themeCSSUrl</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'1.0'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'screen'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          wp_enqueue_style<span style="color: #009900;">&#40;</span> <span style="color: #990000;">current</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.wpreso.com/blog/tutorials/2009/10/14/how-to-dynamically-add-stylesheets-to-your-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPreso Video Flow v0.3 released</title>
		<link>http://www.wpreso.com/blog/development/2009/10/01/wpreso-video-flow-v0-3-released/</link>
		<comments>http://www.wpreso.com/blog/development/2009/10/01/wpreso-video-flow-v0-3-released/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 16:51:15 +0000</pubDate>
		<dc:creator>WPreso</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.wpreso.com/?p=128</guid>
		<description><![CDATA[This fixes an error discovered by Jonas from ZORN D SIGN in which Video Flow tried to include a document from Video FeatureBox, so that if you did not have WPreso Video FeatureBox installed as well, it would crash your whole site.
]]></description>
			<content:encoded><![CDATA[<p>This fixes an error discovered by <a href="http://www.blog.zorndsign.de/">Jonas from ZORN D SIGN</a> in which Video Flow tried to include a document from Video FeatureBox, so that if you did not have WPreso Video FeatureBox installed as well, it would crash your whole site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpreso.com/blog/development/2009/10/01/wpreso-video-flow-v0-3-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPreso Video plugins updated to version 0.2</title>
		<link>http://www.wpreso.com/blog/development/2009/09/30/wpreso-video-plugins-updated-to-version-0-2/</link>
		<comments>http://www.wpreso.com/blog/development/2009/09/30/wpreso-video-plugins-updated-to-version-0-2/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 23:06:32 +0000</pubDate>
		<dc:creator>WPreso</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.wpreso.com/?p=121</guid>
		<description><![CDATA[WPreso Video FeatureBox and WPreso Video Flow have been updated to version 0.2. 
The dependency on the deprecated function mime_content_type() has been removed. 
The function would check the mime type of the files in the plugin CSS directory and would then include the files which where CSS files. 
Due to the fact that the function [...]]]></description>
			<content:encoded><![CDATA[<p><strong>WPreso Video FeatureBox</strong> and <strong>WPreso Video Flow</strong> have been updated to <strong>version 0.2</strong>. </p>
<p>The dependency on the deprecated function mime_content_type() has been removed. </p>
<p>The function would check the mime type of the files in the plugin CSS directory and would then include the files which where CSS files. </p>
<p>Due to the fact that the function has been deprecated and some servers do not support the function, this validation has been removed. It now only checks the extension.</p>
<p>FileInfo might be used in the future, but as far as I have read, support for this could also be limited, so the best option is to wait until PHP 6 that should bring new built in support for file mime types.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpreso.com/blog/development/2009/09/30/wpreso-video-plugins-updated-to-version-0-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WPreso Video Plugins released on WordPress.org Extend</title>
		<link>http://www.wpreso.com/blog/development/2009/09/16/wpreso-video-plugins-released-on-wordpress-org-extend/</link>
		<comments>http://www.wpreso.com/blog/development/2009/09/16/wpreso-video-plugins-released-on-wordpress-org-extend/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 19:35:59 +0000</pubDate>
		<dc:creator>WPreso</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.wpreso.com/?p=108</guid>
		<description><![CDATA[Today I released two of my plugins

WPreso Video FeatureBox (and on wordpress.org)
WPreso Video Flow (and on wordpress.org)

This is the first time I have release a plugin to the public, so there might be some quirks that I will have to figure out along the way, but I hope people will enjoy them.
I will also be [...]]]></description>
			<content:encoded><![CDATA[<p>Today I released two of my plugins</p>
<ul>
<li><a href="http://www.wpreso.com/plugins/wpreso-video-featurebox/">WPreso Video FeatureBox</a> (<a href="http://wordpress.org/extend/plugins/wpreso-video-featurebox/">and on wordpress.org</a>)</li>
<li><a href="http://www.wpreso.com/plugins/wpreso-video-flow/">WPreso Video Flow</a> (<a href="http://wordpress.org/extend/plugins/wpreso-video-flow/">and on wordpress.org</a>)</li>
</ul>
<p>This is the first time I have release a plugin to the public, so there might be some quirks that I will have to figure out along the way, but I hope people will enjoy them.</p>
<p>I will also be releasing another video plugin soon, which is called WPreso Video Carousel, you can already view in action on the showcase site <a href="http://www.wpvideotutorialsite.org">WPVideoTutorialSite.com</a>. It is a Video Carousel, but I will have more info on it in a later post and on its own plugin page, until then, I hope you enjoy these two.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpreso.com/blog/development/2009/09/16/wpreso-video-plugins-released-on-wordpress-org-extend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Launch of WPreso.com</title>
		<link>http://www.wpreso.com/blog/2009/09/15/launch-of-wpreso-com/</link>
		<comments>http://www.wpreso.com/blog/2009/09/15/launch-of-wpreso-com/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 17:19:56 +0000</pubDate>
		<dc:creator>WPreso</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.wpreso.com/?p=93</guid>
		<description><![CDATA[WPreso launches with two WordPress plugins, WPreso Video FeatureBox and WPreso Video Flow, soon to be available on WordPress.org.
More info on the plugins can be found on their respective pages:

WPreso Video FeatureBox
WPreso Video Flow

or go to the plugins page.
Hope you enjoy them.
]]></description>
			<content:encoded><![CDATA[<p>WPreso launches with two WordPress plugins, WPreso Video FeatureBox and WPreso Video Flow, soon to be available on WordPress.org.</p>
<p>More info on the plugins can be found on their respective pages:</p>
<ul>
<li><a href="http://www.wpreso.com/plugins/wpreso-video-featurebox/">WPreso Video FeatureBox</a></li>
<li><a href="http://www.wpreso.com/plugins/wpreso-video-flow/">WPreso Video Flow</a></li>
</ul>
<p>or go to the <a href="http://www.wpreso.com/plugins/">plugins page</a>.</p>
<p>Hope you enjoy them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpreso.com/blog/2009/09/15/launch-of-wpreso-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
