<?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>ImmaterialFacts &#187; Articles</title>
	<atom:link href="http://immaterialfacts.com/category/articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://immaterialfacts.com</link>
	<description>ImmaterialFacts is Joern Bargmann's personal tumblr-like website.</description>
	<lastBuildDate>Mon, 23 Aug 2010 07:31:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Different flash films in header</title>
		<link>http://immaterialfacts.com/2006/07/19/different-header-flash-films/</link>
		<comments>http://immaterialfacts.com/2006/07/19/different-header-flash-films/#comments</comments>
		<pubDate>Wed, 19 Jul 2006 13:16:34 +0000</pubDate>
		<dc:creator>Joern</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://immaterialfacts.com/2006/07/19/different-header-flash-films/</guid>
		<description><![CDATA[For a project I&#180;m working on at the moment I was looking for an easy way to have different header flash films in a wordpress-driven website.]]></description>
			<content:encoded><![CDATA[<p>For a project I&acute;m working on at the moment I was looking for an easy way to have different header flash films in a wordpress-driven website. I didn&acute;t want to have a <code>header.php</code> for each flash film, so I tried to find a way to achieve this by using some <abbr	title="Hypertext PreProcessing">PHP</abbr>. I&acute;m not a programmer and not very familiar with <abbr	title="Hypertext PreProcessing">PHP</abbr> but the <a href="http://codex.wordpress.org/" title="wordpress codex">wordpress codex</a> is a very good resource. I found out how to work with <a href="http://codex.wordpress.org/Conditional_Tags" title="conditional tags on wordpress codex">conditional tags</a>. Basically the concept is&nbsp;this:</p>
<blockquote cite="http://codex.wordpress.com/Conditional_Tags"><p>All of the Conditional Tags test to see whether a certain condition is met, and then returns either TRUE or&nbsp;FALSE.</p>
<p><cite><a href="http://codex.wordpress.org/Conditional_Tags" title="conditional tags on wordpress codex">WordPress&nbsp;Codex</a></cite></p>
</blockquote>
<p>So I just had to find out on every page if it was the home page, a single page or a archive page. I used just basic <abbr	title="Hypertext PreProcessing">PHP</abbr> code for this. I placed this code where the <code>&lt;object...&gt;</code> formerly was&nbsp;placed:</p>
<pre><code>&lt;?php

    if (is_home())
    {
    echo '&lt;object type="application/x-shockwave-flash" data="home.swf" width="760" height="400"&gt;
    &lt;param name="movie" value="home.swf" /&gt;&lt;/object&gt;';}

    elseif (is_single())
    {
    echo '&lt;object type="application/x-shockwave-flash"data="single.swf" width="760" height="400"&gt;
    &lt;param name="movie" value="single.swf"/&gt;&lt;/object&gt;';}

    else
          {
          echo '&lt;object type="application/x-shockwave-flash" data="/flash/news.swf" width="760" height="400"&gt;
          &lt;param name="movie" value="/flash/news.swf" /&gt;
          &lt;img src="news.jpg" width="760" height="300" alt="news" /&gt;
          &lt;/object&gt;';}
?&gt;</code></pre>
<p>This is basically it. If you want more information, read the aforementioned wordpress codex&nbsp;page.</p>]]></content:encoded>
			<wfw:commentRss>http://immaterialfacts.com/2006/07/19/different-header-flash-films/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
