<?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>TransformationPowerTools &#187; css</title>
	<atom:link href="http://www.transformationpowertools.com/wordpress/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.transformationpowertools.com/wordpress</link>
	<description>for personal growth and transformation</description>
	<lastBuildDate>Sun, 15 Aug 2010 22:14:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Zebra style wordpress loop</title>
		<link>http://www.transformationpowertools.com/wordpress/zebra-style-wordpress-loop</link>
		<comments>http://www.transformationpowertools.com/wordpress/zebra-style-wordpress-loop#comments</comments>
		<pubDate>Wed, 13 Jan 2010 23:50:58 +0000</pubDate>
		<dc:creator>alchymyth</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[alternating styles]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[custom theme]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[logic]]></category>
		<category><![CDATA[modification]]></category>
		<category><![CDATA[php code]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[theme adaptation]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[wordpress loop]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=591</guid>
		<description><![CDATA[to start, i would like to express my thanks and gratitude to all the volunteers in the wordpress forum who patiently and freely give their time and attention, and share their knowledge and experience with all the users coming with questions and problems about their wordpress installation and modifications.
a great community.
lists or posts styled with alternating color backgrounds, for instance, can inprove the readability of blogs.
most themes and the standard wordpress installation are not offering  ... &#187; <small><a href="http://www.transformationpowertools.com/wordpress/zebra-style-wordpress-loop">read more</a></small> &#187;]]></description>
			<content:encoded><![CDATA[<p>to start, i would like to express my thanks and gratitude to all the volunteers in the <a href="http://wordpress.org/support/">wordpress forum</a> who patiently and freely give their time and attention, and share their knowledge and experience with all the users coming with questions and problems about their wordpress installation and modifications.<br />
a great community.</p>
<p>lists or posts styled with alternating color backgrounds, for instance, can inprove the readability of blogs.</p>
<p>most themes and the standard wordpress installation are not offering this feature.<br />
however, it is easy to implement, when you know how.</p>
<p>for example we could give alternating posts within the &#8216;wordpress loop&#8217; a different extra class (&#8216;odd&#8217; or &#8216;even&#8217;) which can then be used with css.<br />
to begin with, we introduce a counter ($c = 0;) before the loop, increment it inside the loop ($c++), and generate a class depending on the number of the counter by checking the modulus 2 of the number ($c % 2 &#8211; modulus is the remainder of the division):</p>
<p><code>&lt;?php $c = 0 ; ?&gt;<br />
&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;<br />
&lt;?php $c++;<br />
if( $c % 2 == 0 ) $extra_class = &#039; even&#039;;<br />
else $extra_class = &#039; odd&#039;; ?&gt;<br />
&lt;div class=&quot;post &lt;?php echo $extra_class; ?&gt;&quot;&gt;<br />
&lt;!--typical stuff in the loop--&gt;<br />
&lt;/div&gt;<br />
&lt;?php endwhile; ?&gt;<br />
&lt;?php else : endif; ?&gt;<br />
<!--formatted--></code> </p>
<p>the class &#8216;odd&#8217; or &#8216;even&#8217; can be used in the style.css to create different background colors, alignments, margins, paddings, font-styles &#8211; no limits.</p>
<p>the most basic application of this method with a counter is how to style the first post in the loop different (only showing the logic part of the code):<br />
<code>&lt;?php $c++;<br />
if( $c == 1 ) $extra_class = &#039; first&#039;;<br />
else $extra_class = &#039;&#039;; ?&gt;<!--formatted--></code></p>
<p>to make it more interesting, the next example is to create three different styles and a special style for the last post on the page.<br />
we can get the number of the last post with <code>$wp_query-&gt;post_count <!--formatted--></code>.<br />
The structure is the same, the main difference is in the &#8216;if, elseif, else&#8217; logic:<br />
<code>&lt;?php $c++;<br />
if( $c == $wp_query-&gt;post_count ) $extra_class = &#039; last&#039;;<br />
elseif( $c % 3 == 0 ) $extra_class = &#039; three&#039;;<br />
elseif( $c % 3 == 2 ) $extra_class = &#039; two&#039;;<br />
elseif( $c % 3 == 1 ) $extra_class = &#039; one&#039;;<br />
?&gt;<!--formatted--></code></p>
<p>you can extend this method to create any number of cyclic classes.</p>
<p>and you can use it in any situation in your wordpress templates, where you loop through some output &#8211; lists, foreach, for, while, posts, comments, &#8230; </p>
<p>special thanks to <a href="http://profiles.wordpress.org/esmi/">@esmi</a> who dared venturing into the realm of more than two alternating styles, and who inspired me to post this article.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/zebra-style-wordpress-loop/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress as a Model of Human Consciousness</title>
		<link>http://www.transformationpowertools.com/wordpress/wordpress-as-a-model-of-human-consciousness</link>
		<comments>http://www.transformationpowertools.com/wordpress/wordpress-as-a-model-of-human-consciousness#comments</comments>
		<pubDate>Wed, 29 Jul 2009 12:40:36 +0000</pubDate>
		<dc:creator>dr michael</dc:creator>
				<category><![CDATA[Personal Development]]></category>
		<category><![CDATA[consciousness]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[human]]></category>
		<category><![CDATA[human mind]]></category>
		<category><![CDATA[mind and ego]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[subconsciousness]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=50</guid>
		<description><![CDATA[Many researchers of the human mind have already tried to explain some aspects of the workings of the mind and ego by analogy of a computer.
This holds true also for an open source program such as wordpress.
I will put it this way: the wordpress software, ie. the core program, is the subconsciousness. We know it is there, but generally we are not aware of it and don&#8217;t understand how it works. And, unless something goes  ... &#187; <small><a href="http://www.transformationpowertools.com/wordpress/wordpress-as-a-model-of-human-consciousness">read more</a></small> &#187;]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-55" title="matrix" src="http://www.transformationpowertools.com/wordpress/wp-content/uploads/2009/07/matrix.jpg" alt="matrix" width="75" height="502" />Many researchers of the human mind have already tried to explain some aspects of the workings of the mind and ego by analogy of a computer.</p>
<p>This holds true also for an open source program such as wordpress.</p>
<p>I will put it this way: the wordpress software, ie. the core program, is the subconsciousness. We know it is there, but generally we are not aware of it and don&#8217;t understand how it works. And, unless something goes wrong, we don&#8217;t really want to know.</p>
<p>And in a way, you could see that all the programmers and organizers of wordpress.org  as an open source software  are a kind of  &#8217;creator&#8217; who is well above all and who has put all this out for us to work with. This is not unlike some interpretation of G.O.D. (greater organized design) who made us but also gave us the freedom and intelligence to change the program.</p>
<p>Now, there a many many thousands of blogs out there, using wordpress.org software to program there own way of expression.</p>
<p>What every blog software does, is to take a lot of input in (the posts, pages, articles, pictures and so) and arrange and present them in a way that is personal and special for the individual (programmer).<br />
<span id="more-50"></span><br />
In wordpress, these are the php-files, such as index.php, single.php, functions.php, comments.php, and so on.</p>
<p>This is analogue to the conscious mind which does exactly the same &#8211; gathering input (through our senses), storing it (memory),  sorting it, and creating specific output, based on a hidden program.</p>
<p>The &#8216;sorting program&#8217; is build upon past experiences, ways we accepted from our parents, teachers, the society, religion, and so forth.</p>
<p>Think of the primary output as the HTML code that is generated by the wordpress php files. If you look at that on a screen, it seems pretty &#8216;bland&#8217;, uniform, not very interesting.</p>
<p>This is where the themes of wordpress come in: they individualize the output in a way that is again personal to the individual designing them. They add the CSS styles, and make the output colorful, creative, enjoyable (or not, if you don&#8217;t like the theme).</p>
<p>(Look up <a href="http://www.csszengarden.com/" target="_blank">CSS Zen Garden </a>if you are not familiar with css.)</p>
<p>Again, i like to compare this to the human mind. The ego will use its &#8216;css style sheet&#8217; and &#8216;color&#8217; any message it receives from the mind, and will give it an individual meaning.</p>
<p>Just present a piece of information to a group of people and watch how they react &#8211; you can be sure to get a whole range of different reactions.</p>
<p>The good thing with this model is, that we have the power and opportunity to change the programs, the php files, the themes, the css at any time.</p>
<p>As a programmer &#8211; and we all are our own programmers ! (even if we don&#8217;t like the programming results) &#8211; you can adapt the wordpress files, change your theme, and tweak the style sheets at any time.</p>
<p>This is the fantastic opportunity when you host your own wordpress blog (ie. when you are an individual in control of your life), it gives you control over &#8216;consciousness, mind, and ego&#8217;, to stay within the model.</p>
<p>Those who run the free blogs on wordpress.com, on the contrary, have not this level of control. They have to use what they get offered by somebody else (ie. the makers of wordpress.com, the filter programs that filter all the html input in the posts, the providers of the free themes you can choose from, and so on). They have a limited choice of  &#8216;conscious decisions&#8217;, &#8216;ways of expression&#8217;, &#8216;influence&#8217;.</p>
<p>Sounds very familiar with real life, where the expression of the &#8216;masses&#8217; are pre-programmed and limited by a small elite (tv and media, politicians, church, tradition, teachers, &#8230;).</p>
<p>Coming back to the beginning of this post, where I compared the wordpress software with the subconsciousness, I hold the vision that when enough conscious people (programmers) join and work together, they can change the very core programming of the consciousness, the subconsciousness of mankind &#8211; also known as &#8216;common consciousness&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/wordpress-as-a-model-of-human-consciousness/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
