<?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>WP Engineer &#187; WordPress Themes</title>
	<atom:link href="http://wpengineer.com/category/wordpress-themes/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com</link>
	<description>WordPress News, Hacks, Tips, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Sun, 22 Jan 2012 13:32:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Implement a 404 image in your Theme</title>
		<link>http://wpengineer.com/2377/implement-404-image-in-your-theme/</link>
		<comments>http://wpengineer.com/2377/implement-404-image-in-your-theme/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 07:16:28 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2377</guid>
		<description><![CDATA[Every good Theme comes with a 404.php for requests that don’t match any post or page. But what to do with missing images? They are requested per an &#60;img&#62; element usually, your visitors may never see the HTML template. Let’s use a 404 image. I put the following code on top of my 404.php before [...]]]></description>
			<content:encoded><![CDATA[<p>Every good Theme comes with a <code>404.php</code> for requests that don’t match any post or page. But what to do with missing images? They are requested per an <code>&lt;img&gt;</code> element usually, your visitors may never see the HTML template. Let’s use a 404 <em>image</em>.</p>
<p>I put the following code on top of my <code>404.php</code> before <code>get_header()</code>:</p>
<pre>
// @version 2011.12.23
// matches &#039;img.png&#039; and &#039;img.gif?hello=world&#039;
if ( preg_match( &#039;~\.(jpe?g|png|gif|svg|bmp)(\?.*)?$~i&#039;, $_SERVER&#091;&#039;REQUEST_URI&#039;&#093; ) )
{
    header( &#039;Content-Type: image/png&#039; );
    locate_template( &#039;img/404.png&#039;, TRUE, TRUE );
    exit;
}
</pre>
<p>My 404 image is bright, eye-hurting red to let me see it easily during the tests.</p>
<p><img class="aligncenter" src="http://wpengineer.com/wp-content/uploads/404.png" alt="404" width="300" height="200" /></p>
<p>License: <a href="http://sam.zoy.org/wtfpl/">WTFPL</a>. Grab it while it’s red.<br />
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2377/implement-404-image-in-your-theme/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Enqueue comment-reply.js &#8211; The Right Way</title>
		<link>http://wpengineer.com/2358/enqueue-comment-reply-js-the-right-way/</link>
		<comments>http://wpengineer.com/2358/enqueue-comment-reply-js-the-right-way/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 14:15:14 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Advent Calendar]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[TwentyEleven]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2358</guid>
		<description><![CDATA[Since Google takes the loading time of a page as a ranking factor, it is always important for a theme designer to incorporate the required resources correctly. In Xtreme One WordPress Framework our JavaScripts are loaded only when they are really needed. Do you have a slider widget on the home page, then the JavaScript [...]]]></description>
			<content:encoded><![CDATA[<p>Since Google takes the loading time of a page as a ranking factor, it is always important for a theme designer to incorporate the required resources correctly. In <a title="Xtreme One Professional WordPress Framework" href="http://xtreme-theme.com">Xtreme One WordPress Framework</a> our JavaScripts are loaded only when they are really needed. Do you have a slider widget on the home page, then the JavaScript for the slider included only on the homepage.</p>
<p>Also including <code>comment-reply.js</code> can be optimized. In the Theme TwentyEleven we can find it in <code>header.php</code> (Line 58):</p>
<pre>if ( is_singular() &amp;&amp; get_option( &#039;thread_comments&#039; ) )
	wp_enqueue_script( &#039;comment-reply&#039; );</pre>
<p>That means, if "Enable threaded (nested) comments" in the Discussion Settings is activated and if it's on a single page, then load the script <code>comments-reply.js</code>.<br />
But we also don't need the script on pages where there is no comment form and not on the homepage if it's a page. Neither do we need the script if comments are closed or not allowed.<br />
Or easier to say: <strong>We only need it, if "Enable threaded comments" is activated and a comment form is displayed.</strong></p>
<p>Using the example of TwentyEleven I show now how to do it better. First, we delete from the <code>header.php</code> the lines</p>
<pre>if ( is_singular() &amp;&amp; get_option( &#039;thread_comments&#039; ) )
	wp_enqueue_script( &#039;comment-reply&#039; );</pre>
<p>In the <code>functions.php</code> we implement the enqueue function of the script</p>
<pre>function xtreme_enqueue_comments_reply() {
	if( get_option( &#039;thread_comments&#039; ) )  {
		wp_enqueue_script( &#039;comment-reply&#039; );
	}
}</pre>
<p>Now we get to the important part. We add to the function <code>twentyeleven_setup()</code> this line:</p>
<pre>add_action( &#039;comment_form_before&#039;, &#039;xtreme_enqueue_comments_reply&#039; );</pre>
<p>The Hook <code>comment_form_before</code> is only there when the comment form is loaded and we are adding the enqueue function for the script. A positive side effect, the script is now loaded at the end of the document and does not hinder the loading of the site.<br />
At best, you create a Child Theme, so the changes are protected against overwriting when you update WordPress the next time. Maybe the WordPress Dev team will use this approach in a future version of their default Theme TwentyEleven.<br />
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2358/enqueue-comment-reply-js-the-right-way/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress Jeopardy</title>
		<link>http://wpengineer.com/2295/wordpress-jeopardy/</link>
		<comments>http://wpengineer.com/2295/wordpress-jeopardy/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 21:06:36 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2295</guid>
		<description><![CDATA[The idea of a little game in WordPress came at the WordCamp Switzerland in early 2011. For an interactive session at the WordCamp Germany in Cologne in 2011, one of the creators Thomas, thought that it’d be nice to have a game-session. On 24th of September started the first WordPress Jeopardy Game Session. For that, [...]]]></description>
			<content:encoded><![CDATA[<p>The idea of a little game in WordPress came at the <a href="http://wordcamp-switzerland.ch/">WordCamp Switzerland</a> in early 2011. For an interactive session at the <a href="http://wordcamp.de/">WordCamp Germany</a> in Cologne in 2011, one of the creators <a href="https://github.com/DasLlama">Thomas</a>, thought that it’d be nice to have a game-session.</p>
<p>On 24th of September started the first WordPress <a href="http://en.wikipedia.org/wiki/Jeopardy!" title="How is Jeopardy">Jeopardy Game</a> Session. For that, the whole room was divided in two teams to battle each other. The points were counted, but nobody really knows who won.<br />
<span id="more-2295"></span><br />
<a href="http://jeopardy.inpsyde.com/"><img src="http://wpengineer.com/wp-content/uploads/wordpress-jeopardy-300x206.png" alt="" title="wordpress-jeopardy" width="300" height="206" class="aligncenter size-medium wp-image-2296" /></a></p>
<p>The <a href="http://jeopardy.inpsyde.com/">WPJeopardy</a> was made with WordPress features. Every answer is a post with its postmeta as questions and points. First of all, there’s a german game-pad. In future there will be some more different pads for several skills. Also, there will be a download-area with the theme and the playable pads.</p>
<h3>The Background</h3>
<p>First of all, the website is just a simple and clean WordPress instance. There’s a self-made theme. For the game-pad, there’s a customized template, which is very easy. We need a list of the post-categories and the posts, which are in the given category:</p>
<pre>
&lt;?php
$x = 1;
$cat_args = array( &#039;parent&#039; =&gt; 0 );
$categories = get_categories( $cat_args );
foreach ( $categories as $category ) :

	// Display headline of the category here

	$y = 1;
	$post_args = array( &#039;category&#039; =&gt; $category -&gt; term_id );
	$posts = get_posts( $post_args );
	foreach ( $posts as $post ) :
		// Display post answer, question and points here

	endforeach;
endforeach;
?&gt;
</pre>
<p>The rest of it is simple CSS and jQuery with an <code>onClick</code> event and some positioning stuff. Well, in all, it’s not magic. It’s not even hard to understand how <a href="http://jeopardy.inpsyde.com/">Jeopardy</a> works.<br />
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2295/wordpress-jeopardy/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Win 5 Licenses Of The New WordPress Framework Xtreme One Version &#8211; Including Awesome New Features!</title>
		<link>http://wpengineer.com/2268/wordpress-framework-xtreme-one-version-1-3/</link>
		<comments>http://wpengineer.com/2268/wordpress-framework-xtreme-one-version-1-3/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 18:59:40 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Premium Themes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Framework]]></category>
		<category><![CDATA[Xtreme One]]></category>
		<category><![CDATA[Xtreme Theme]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2268</guid>
		<description><![CDATA[With version 1.3 many features were added to improve the workflow and significantly improve page performance. An overview of all the special features of Xtreme Theme can be seen here: Besides many small changes under the hood, the new Widget System Extensions is one of the biggest innovation in Xtreme One. For multisite installations widgets [...]]]></description>
			<content:encoded><![CDATA[<p>With <a href="http://xtreme-theme.com/xtreme-one/">version 1.3</a> many features were added to improve the workflow and significantly improve page performance. An overview of all the special features of Xtreme Theme can be seen here:</p>
<p><iframe src="http://player.vimeo.com/video/29110129?title=0&amp;byline=0&amp;portrait=0" width="440" height="248" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe></p>
<p>Besides many small changes under the hood, the new Widget System Extensions is one of the biggest innovation in Xtreme One.</p>
<ul>
<li>For multisite installations widgets can be declared as a side wide widgets, which means they appear on all existing and future blogs.</li>
<li>Widget Manager to manage various features as well as turning on or off the widgets.</li>
<li> Extremely comfortable widget filtering logic, see video: <a href="http://xtreme-theme.com/video/different-sliders-for-different-categories/" title="WordPress Framework Features">Different sliders for different categories</a> including conditional editor with drag and drop and syntax check.</li>
<li> Quick duplication of widgets for multiple use.</li>
<li>Simple combining multiple widgets to a tabber, see video: <a href="http://xtreme-theme.com/video/create-a-tabber-with-widgets/">Create a tabber from widgets</a>.</li>
<li>Scripts will only load when they are needed.</li>
</ul>
<p>Also new are the jFancy Mediaslider and a Carousel Slider, which are available for posts and as a media slider. With the media slider you can just insert images from your media library instead of choosing an image of a post. You can link these images either to the attachment page, the corresponding article or a user defined link. </p>
<p>The Xtreme Social Widget added the new Google+.</p>
<p>Another feature are the <a href="http://xtreme-theme.com/video/post-subtitles-in-xtreme-one-1-3/">subtitles for posts</a>, pages and custom post format.</p>
<p>Xtreme One Framework supports post formats. Thus it is possible with any Childtheme, to operate a Tumblr-like blog.</p>
<p>The selectable positions of the navigation has been increased to 12.</p>
<p>Xtreme One costs only $79,95 and is available <a href="http://xtreme-theme.com/xtreme-one/">here</a>.</p>
<h3>How can you win a license?</h3>
<p>We are giving away 5 licenses for the Xtreme One Framework with a Childtheme of your choice. One license will be given away among the commentators in our comment area. 2 more will be raffled among those who tweet with the Hashtag #xtremeonewpe about Xtreme One and two licenses will be raffled among all the bloggers who write about Xtreme One in their blog and leave a trackback here. The raffle will run until September 23rd 2011, 23:59:59 PST Time. </p>
<p>The winner will be announced on September 24th at the end of our Xtreme One session at the WordCamp Germany in Cologne.</p>
<p>Good Luck to everyone!</p>
<p><strong>We just announced the <a href="http://wpengineer.com/2275/winner-of-xtreme-one-wordpress-framework-2/">winner of the licenses here</a>:</strong></p>
<p>Congrats to the winner!</p>
<p>Everybody else can grab a 20% discount for Xtreme One until October 3rd 2011 with the coupon code: WCK11</p>
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2268/wordpress-framework-xtreme-one-version-1-3/feed/</wfw:commentRss>
		<slash:comments>70</slash:comments>
		</item>
		<item>
		<title>WordPress Framework with Intuitive Backup Functionality for Better Local Development and Option-Router!</title>
		<link>http://wpengineer.com/2202/wordpress-framework-with-intuitive-backup-functionality-for-better-local-development-and-option-router/</link>
		<comments>http://wpengineer.com/2202/wordpress-framework-with-intuitive-backup-functionality-for-better-local-development-and-option-router/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 09:20:23 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Framework]]></category>
		<category><![CDATA[WordPress Premium Theme]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2202</guid>
		<description><![CDATA[A new version of Xtreme One, the WordPress Framework, was released last week. It includes two major new features. With the new developed Option-Router it's possible that the Childthemes manage their own settings, layouts and additional all used Widgets with all their content. That means, you can switch between the Childthemes and have the specified [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-218" title="Xtreme One Backup" src="http://wpengineer.com/wp-content/uploads/xtreme-backup.jpg" alt="Xtreme One Backup" width="150" height="150" />A new version of <a title="Xtreme One - the professional WordPress Theme" href="http://xtreme-theme.com">Xtreme One</a>, the WordPress Framework, was released last week. It includes two major new features. With the new developed Option-Router it's possible that the Childthemes manage their own settings, layouts and additional all used Widgets with all their content. That means, you can switch between the Childthemes and have the specified settings for each Childtheme, without adjusting the Childthemes again after switching.</p>
<p>The second highlight is the new Xtreme Backup. Xtreme Backup enables you to save the complete configuration of your Childtheme and your Widgets as a XML file on your computer. Therefore you can develop local or on another server, create backups and use them right away on your live system. A matter of seconds!</p>
<p>These two new features, optional HTML5 output and infinitely different layouts and the userfriendly backend makes Xtreme One become the most innovative WordPress Framework. Xtreme One costs only $79,95 and can be purchased <a title="Buy Xtreme One" href="https://secure.avangate.com/order/checkout.php?PRODS=4529460&amp;QTY=1&amp;CART=2"><strong>here</strong></a>.<br />
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2202/wordpress-framework-with-intuitive-backup-functionality-for-better-local-development-and-option-router/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fix Empty Searches</title>
		<link>http://wpengineer.com/2162/fix-empty-searches/</link>
		<comments>http://wpengineer.com/2162/fix-empty-searches/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 10:14:12 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Advent Calendar]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2162</guid>
		<description><![CDATA[One minor problem for any web site is duplicate content: the same resource is available under different URIs. Yes, we have &#60;link rel=canonical&#62;, but anything that prevents such cases is better. Today, let’s look at something, that most professionals never see: empty searches. You offer a search input field, and someone hits the submit button [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wpengineer.com/wp-content/uploads/WordPress-Christmas-2010-21.jpg" alt="" title="WordPress-Christmas-2010-21" width="400" height="267" class="aligncenter size-full wp-image-2164" /><br />
One minor problem for any web site is <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=66359">duplicate content</a>: the same resource is available under different URIs. Yes, we have <code>&lt;link rel=canonical&gt;</code>, but anything that prevents such cases is better.</p>
<p>Today, let’s look at something, that most professionals never see: empty searches. You offer a search input field, and someone hits the submit button unintentionally, without any term entered. The resulting URI looks like this: <code>example.com/?s=</code>. It shows the same content as your front page. In fact, it <em>is</em> the front page.</p>
<p>No one needs that.</p>
<p>Therefore, I have added a simple rule to my .htaccess:</p>
<pre># Catch empty searches
RewriteCond %{QUERY_STRING} ^s=$
RewriteRule ^ /? &#091;L,R=301&#093;</pre>
<p>Add these lines right after the <code>RewriteBase</code> directive.</p>
<p>Next, I wanted to save my visitors the unnecessary request. I have <a href="http://toscho.de/2010/jquery-plugin-leere-formulare-verhindern/">written a simple jQuery plugin</a>:</p>
<pre>/**
 * Stop empty searches
 *
 * @author Thomas Scholz http://toscho.de
 * @param  $ jQuery object
 * @return bool|object
 */
(function( $ ) {
   $.fn.preventEmptySubmit = function( options ) {
       var settings = {
           inputselector: &quot;#s&quot;,
           msg          : &quot;Don’t waste your time with an empty search!&quot;
       };

       if ( options ) {
           $.extend( settings, options );
       };

       this.submit( function() {
           var s = $( this ).find( settings.inputselector );
           if ( ! s.val() ) {
               alert( settings.msg );
               s.focus();
               return false;
           }
           return true;
       });
       return this;
   };
})( jQuery );</pre>
<p>I call it in my footer scripts:</p>
<pre>jQuery( &quot;#searchform&quot; ).preventEmptySubmit();</pre>
<p>Note that my search form element has an id attribute with the value <code>searchform</code>. Adjust the selector to match your current theme. To change the message, just add an option for it:</p>
<pre>jQuery( &quot;#searchform&quot; ).preventEmptySubmit({ msg: &quot;This won’t work!&quot; });</pre>
<p>You may use the script for other input elements too. Set the selector in the second option <code>inputselector</code>. Say, you have a form with the id <code>discountcode</code> and a field with the id <code>dcodenumber</code>:</p>
<pre>jQuery( &quot;#discountcode&quot; ).preventEmptySubmit(
{
   msg: &quot;No number, no discount, sorry!&quot;,
   inputselector: &quot;dcodenumber&quot;
});</pre>
<p>Useful? Any hints?</p>
<div class="incontent">
<h4>Guest Post</h4>
<p><img src="http://wpengineer.com/wp-content/uploads/selbst.png" alt="" title="selbst" width="150" height="150" class="alignleft size-full wp-image-2163" />This post is written by Thomas Scholz - <a href="http://toscho.de/">toscho.de</a> and is a post in our Advent Calendar on WP Engineer about WordPress.<br />
Thank you very much from my part to <a href="http://toscho.de/">Thomas</a>.<br />
If you also like to have your interesting post published on our website, please let us know on our contact page. Of course we will appreciate your contribution!
</div>
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2162/fix-empty-searches/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Making Of Xtreme-Theme.com</title>
		<link>http://wpengineer.com/2137/the-making-of-xtreme-theme-com/</link>
		<comments>http://wpengineer.com/2137/the-making-of-xtreme-theme-com/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 10:06:35 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Childthemes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Framework]]></category>
		<category><![CDATA[Xtreme One]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2137</guid>
		<description><![CDATA[After the international launch of Xtreme One WordPress Framework we received quite a few questions, how we have realized the pages and whether we have used language Plugins. xtreme-theme.com is a WordPress Multi-site installation and the support forum is a vBulletin 4.0 Forum, which is located in a separate directory and under the subdomain support.xtreme-theme.com. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wpengineer.com/wp-content/uploads/WordPress-Christmas-2010-20.jpg" alt="" title="WordPress-Christmas-2010-20" width="400" height="267" class="aligncenter size-full wp-image-2147" /><br />
After the international launch of <a title="Xtreme One WordPress Framework" href="http://xtreme-theme.com/xtreme-one/"><strong>Xtreme One WordPress Framework</strong></a> we received quite a few questions, how we have realized the pages and whether we have used language Plugins.</p>
<p><a title="Xtreme Theme - Professional WordPress Themes" href="http://xtreme-theme.com/">xtreme-theme.com</a> is a WordPress Multi-site installation and the support forum is a vBulletin 4.0 Forum, which is located in a separate directory and under the subdomain support.xtreme-theme.com. Currently we have 6 blogs plus the Childtheme demo blogs:</p>
<ul>
<li><a title="Xtreme Theme - Professional WordPress Themes" href="http://xtreme-theme.com/">xtreme-theme.com</a> - English Xtreme Theme pages</li>
<li><a title="Xtreme Theme - Professionelle WordPress Themes" href="http://de.xtreme-theme.com/">de.xtreme-theme.com</a> - German Xtreme Theme pages</li>
<li><a title="Deutsche Xtreme One Dokumentation" href="http://dokumentation.xtreme-theme.com/">dokumentation.xtreme-theme.com</a> - German Xtreme One documentation</li>
<li><a title="English Xtreme One Documentation" href="http://documentation.xtreme-theme.com/">documentation.xtreme-theme.com</a> - Englisch Xtreme One documentation</li>
<li><a title="Xtreme Theme Knowledge Base" href="http://knowledgebase.xtreme-theme.com/">knowledgebase.xtreme-theme.com</a> - English Knowledge Base</li>
<li><a title="Deutsche Xtreme Theme Knowledge Base" href="http://wissen.xtreme-theme.com/">wissen.xtreme-theme.com</a> - German Knowledge Base</li>
</ul>
<p>All blogs are powered by <a title="Xtreme One WordPress Framework" href="http://xtreme-theme.com/xtreme-one/"><strong>Xtreme One</strong></a> (what else?) and 3 Childthemes. The Childthemes have their own textual domains to be able to use 2 languages. There are the strings included that do not occur in the framework. We don't use a language Plugin. We write in English and German.</p>
<p>The themes, showcases and testimonials are Custom Post type with some additional custom fields, such as the Buy-Link, the price etc. . For the output of the testimonials I built a widget where I can display English or German. Since we are using on different subdomains some of the Xtreme One Widgets, such as the slider for the Childthemes, I modified the widgets a bit, so that they can execute multi-site queries. Via a selectbox I can choose which blog I want to query.</p>
<p>Every Childtheme Demo Blog runs on a separate subdomain. We wrote a small Plugin that creates the theme switcher. The Plugin adds in <em>Super Admin</em> at <em>Sites</em>, an extra box, with the demo blogs are selected. The data for the price and the purchase link will then be queried by xtreme-theme.com and generates the Switcher. If I add a new demo blog, I just have to check the checkbox and it's ready.</p>
<p><img class="alignnone size-full wp-image-2138" title="Demoblog Plugin" src="http://wpengineer.com/wp-content/uploads/demoblog-plugin.jpg" alt="Demoblog Plugin" width="600" height="296" /></p>
<p>We wanted the main page, the documentation and the knowledge base to be in a different look. We realized it with 3 Childthemes, and up to a few small changes to the templates, we just changed the CSS and other graphics are used. The entire header with the two navigations are the same on all domains, so it keeps the same look and feel for the navigation for better usability. We use only the WP Menu, which I don't wanna miss again. For the flags in the navigation, we used the CSS classes en and de and styled accordingly. Such a thing was previously not so easy.</p>
<p>Integration of the many different layouts and sidebars was with the layout manager of Xtreme One only a matter of minutes. Select desired containers, set width, select sidebars and hit save. So all core functions of <a title="Xtreme One WordPress Framework" href="http://xtreme-theme.com/xtreme-one/"><strong>Xtreme One</strong></a>. Only for the integration of Google Analytics and a few little things that happen at all Subdomanis, I've written a Plugin to not do these things more than once.</p>
<p>It was and is an exciting project and there is much more to come.<br />
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2137/the-making-of-xtreme-theme-com/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Use WordPress Post Thumbnail as Background image</title>
		<link>http://wpengineer.com/2123/use-wordpress-post-thumbnail-as-background-image/</link>
		<comments>http://wpengineer.com/2123/use-wordpress-post-thumbnail-as-background-image/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 11:05:34 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[post_thumbnail]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2123</guid>
		<description><![CDATA[Now and then you need in a post or page a catchy image. For editors the thumbnail function is quite comfortable to assign an image to a post or a page. Therefore it is worthwhile to use this picture as a background image for the post. However, it is much better if the image is [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wpengineer.com/wp-content/uploads/WordPress-Christmas-2010-12.jpg" alt="" title="WordPress-Christmas-2010-12" width="400" height="267" class="aligncenter size-full wp-image-2129" /><img src="http://wpengineer.com/wp-content/uploads/post-thumbnail.png" alt="" title="post-thumbnail" width="303" height="171" class="alignright size-full wp-image-2124" /><br />
Now and then you need in a post or page a catchy image. For editors the thumbnail function is quite comfortable to assign an image to a post or a page. Therefore it is worthwhile to use this picture as a background image for the post. However, it is much better if the image is defined via CSS in the background and it doesn't appear in the markup. Therefore, a small function that defines a default image and if there is a defined post thumbnail, then this will be used.<br />
<span id="more-2123"></span><br />
The function is only a small solution, therefore, it must be adapted and expanded to your liking. Have fun.</p>
<pre>
/**
 * return post thumbnail inside style in head
 */
if ( !function_exists(&#039;fb_background_image&#039;) ) {

	function fb_background_image() {
		// only frontend
		if ( is_feed() || is_trackback() ) {
			return;
		}

		// default image, when no set an post thumbnail
		if ( !has_post_thumbnail($GLOBALS&#091;&#039;post&#039;&#093;-&gt;ID) ) {
			$style = &#039;&lt;style type=&quot;text/css&quot;&gt;.banner {background-image:url(\&#039;&#039; . get_bloginfo(&#039;stylesheet_directory&#039;) . &#039;/images/banner.jpg\&#039;);} &lt;/style&gt;&#039; . &quot;\n\n&quot;;
		} else {
			// get post thumbnail
			$image = wp_get_attachment_image_src(
				get_post_thumbnail_id($GLOBALS&#091;&#039;post&#039;&#093;-&gt;ID),
				&#039;banner&#039; // size for image; defined via add_image_siz
			);

			$style = sprintf(
				&#039;&lt;style type=&quot;text/css&quot;&gt;.banner {background-image:url(\&#039;%s\&#039;);}&lt;/style&gt;&#039;,
				esc_attr($image&#091;0&#093;),
				&quot;\n\n&quot;
			);
		}
		if ($style)
			echo $style;
	}

	// add functions
	add_action( &#039;wp_head&#039;, &#039;fb_background_image&#039; );
	add_theme_support( &#039;post-thumbnails&#039; );
	add_image_size( &#039;banner&#039;, 980, 350, true );

}
</pre>
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2123/use-wordpress-post-thumbnail-as-background-image/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Launching WordPress Framework Xtreme One!</title>
		<link>http://wpengineer.com/2092/new-wordpress-framework-xtreme-one-online/</link>
		<comments>http://wpengineer.com/2092/new-wordpress-framework-xtreme-one-online/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 09:25:35 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[WordPress News]]></category>
		<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Childhthemes]]></category>
		<category><![CDATA[WordPress Framework]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2092</guid>
		<description><![CDATA[We are very happy and proud to announce the international launch of Xtreme One WordPress Framework today. After a very successful one month pre-launch in Germany we are excited to offer Xtreme One for only $79,95 worldwide now. Xtreme One was programmed by Heiko and I, Alex is responsible for the design. Why another WordPress [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-2094 alignleft" title="WordPress-Christmas-2010-06" src="http://wpengineer.com/wp-content/uploads/WordPress-Christmas-2010-061-300x200.jpg" alt="" width="300" height="200" />We are very happy and proud to announce the <a title="International Launch of Xtreme One" href="http://xtreme-theme.com/2010/12/release-xtreme-one-wordpress-framework/">international launch</a> of <a title="Xtreme One Professional WordPress Framework" href="http://xtreme-theme.com">Xtreme One WordPress Framework</a> today. After a very successful one month pre-launch in Germany we are excited to offer <a title="Xtreme One Features" href="http://xtreme-theme.com/xtreme-one/">Xtreme One</a> for <strong>only $79,95</strong> worldwide now. <a title="Xtreme One Features" href="http://xtreme-theme.com/xtreme-one/">Xtreme One</a> was programmed by Heiko and I, Alex is responsible for the design.</p>
<h3>Why another WordPress Framework?</h3>
<p>My idea of a WordPress Framework starts where most of the others are given up - to give the user the complete control of his layout. That's why Xtreme One is worldwide the only WordPress Framework, which is able to create fixed, fluid and flexible layouts. Create in a matter of minutes your own desired website layout with just a few mouse clicks! Check out the video and get convinced by Xtreme One.</p>
<p><iframe src="http://player.vimeo.com/video/16499282" width="599" height="337" frameborder="0"></iframe></p>
<h3>Focus on the most important thing – your vision!</h3>
<p>Efficient functions enables you to work extremely fast, without writing code. Hence, you have more time to create your design.</p>
<h3>It's the details that matter</h3>
<ul>
<li>6 layout variations in content area.</li>
<li>Widths of sidebars flexible adjustable in px, em or %</li>
<li>Free positionable navigations with 4 different stylesheets for WP Menus, page or categories</li>
<li>Able to add teaser and footer with dynamical created widget areas in 28 layout variations and up to 5 columns.</li>
<li>Layoutmanager  - different layouts and sidebars</li>
<li>12 additional widgets: 3 slider widgets, 5 widgets for column and row based output of your articles and pages, printable and accessible tabber, last tweets, newsletter and social links.</li>
<li>3 comment form layouts, additional text fields, adjustable avatar size and alignment</li>
<li>Combining of stylesheets and stylesheet compression.</li>
<li>Multisite and Localization ready, in English and German.</li>
<li>Extensive <a title="Xtreme One Documentation" href="http://documentation.xtreme-theme.com">documentation</a>, <a title="Xtreme Theme Support Forum" href="http://support.xtreme-theme.com">support forum</a>, <a title="Xtreme Theme Knowledge Base" href="http://knowledgebase.xtreme-theme.com">knowledgebase</a>, free updates</li>
<li>and a lot more</li>
</ul>
<h3>Launch rebate until December 13th</h3>
<p>To celebrate the launch of Xtreme One Framework, we will give you a $10 rebate until December 13th. Just type in LAUNCH  in the Discount Coupon field when you check out.</p>
<div class="buybuttons"><a class="button teaserbuy float_left" href="https://secure.avangate.com/order/checkout.php?PRODS=4529460&amp;QTY=1&amp;CART=2"><span class="buy">Buy Xtreme One</span></a></div>
<h3>And that's only the beginning!</h3>
<p>In the coming months, we will come up with many more innovative ideas for <a title="Xtreme One Professional WordPress Framework" href="http://xtreme-theme.com/xtreme-one/">Xtreme One</a> and we will try to make Xtreme One the best WordPress Framework out there. I know it's tough goal, but we will try to deliver!</p>
<p>Buy it now for a limited time for $69,95 and receive free updates with even more features in the future. We hope you will enjoy Xtreme One!</p>
<p>We are looking forward to hear your feedback!<br />
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2092/new-wordpress-framework-xtreme-one-online/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Custom WordPress Login-Page</title>
		<link>http://wpengineer.com/2053/custom-wordpress-login-page/</link>
		<comments>http://wpengineer.com/2053/custom-wordpress-login-page/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 10:48:26 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[WordPress Hacks]]></category>
		<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[advent]]></category>
		<category><![CDATA[Advent Calendar]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2053</guid>
		<description><![CDATA[In a previous post I wrote about the possibility to adjust the login page in your WordPress backend. But I still receive a lot of questions about it and I would like to point out three simple ways, so that you can customize with little effort the login page to your site - a nice [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wpengineer.com/wp-content/uploads/WordPress-Christmas-2010-02-300x200.jpg" alt="" title="WordPress-Christmas-2010-02" width="300" height="200" class="alignleft size-medium wp-image-2088" />In a previous post I wrote about the possibility to adjust the login page in your WordPress backend. But I still receive a lot of questions about it and I would like to point out three simple ways, so that you can customize with little effort the login page to your site - a nice added value in terms of customer projects which makes it look more professional instead having always the WordPress logo and the link displayed.<br />
<span id="more-2053"></span><br />
In the first step I adjust the logo to the login page. We wrote about it <a href="http://wpengineer.com/483/create-your-own-wordpress-login-design/">here already</a>. To make it simple, just write the stylesheet in the header, in our older tutorial we included an external stylesheet.</p>
<h4>Change Logo</h4>
<p>In the first code example I include the favicon, a fast and simple way. Alternatively you can include a logo of your Theme, therefore the 2nd code example. Each of the following example belongs into the functions.php of the Themes.</p>
<pre>
function fb_custom_login_logo() {
	$style = &#039;&lt;style type=&quot;text/css&quot;&gt; h1 a { background: transparent url(&#039; . get_bloginfo(&#039;url&#039;) . &#039;/favicon.ico) no-repeat 30px center !important; } &lt;/style&gt;&#039;;
	echo $style;
}
add_action( &#039;login_head&#039;, &#039;fb_custom_login_logo&#039; );
</pre>
<pre>
function fb_custom_login_logo() {
	$style = &#039;&lt;style type=&quot;text/css&quot;&gt; h1 a { background: transparent url(&#039; . get_bloginfo(&#039;template_directory&#039;) . &#039;/images/your-logo-image.png) no-repeat center top !important; } &lt;/style&gt;&#039;;
	echo $style;
}
add_action( &#039;login_head&#039;, &#039;fb_custom_login_logo&#039; );
</pre>
<p>Now we adjusted the logo, but the name at the hover effect is still not the one we want. Therefore is a hook available.</p>
<h4>Change name</h4>
<p>We correspond with the hook and deliver with the following code snippet the name of the blog, which lies in the database. Alternatively you can query static content or your own fields.</p>
<pre>
function fb_login_headertitle() {
	$name = get_option(&#039;blogname&#039;);
	echo $name;
}
add_filter( &#039;login_headertitle&#039;, &#039;fb_login_headertitle&#039; );
</pre>
<h4>Change link</h4>
<p>Now we want to adjust the link, so a klick on the logo will send us to the frontend of the website. And again, there is a hook available.</p>
<pre>
function fb_login_headerurl() {
	$url = bloginfo(&#039;url&#039;);
	echo $url;
}
add_filter( &#039;login_headerurl&#039;, &#039;fb_login_headerurl&#039; );
</pre>
<p>Three simple possibilities which should belong in almost every Theme. So that the login page perfectly fits to the website. It looks more professional and your customer will be thankful.<br />
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2053/custom-wordpress-login-page/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

