<?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>digitalnature &#187; wordpress</title>
	<atom:link href="https://digitalnature.eu/blog/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://digitalnature.eu</link>
	<description>Rise Above the Ordinary</description>
	<lastBuildDate>Fri, 11 Sep 2015 15:02:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>New plugin: Ad manager</title>
		<link>https://digitalnature.eu/blog/2012/05/08/new-plugin-ad-manager/</link>
		<comments>https://digitalnature.eu/blog/2012/05/08/new-plugin-ad-manager/#comments</comments>
		<pubDate>Tue, 08 May 2012 17:43:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalnature.eu/?p=4131</guid>
		<description><![CDATA[It&#8217;s still under development, but the current version supports all functionality of the Ads mod from &#8220;Mystique&#8221; so you might as well use it instead of the mod  

Download on WordPress.org
Support Forums (post bug reports / requests here)

A quick screenshot:

In case you&#8217;re wondering if you will  [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s still under development, but the current version supports all functionality of the Ads mod from &#8220;Mystique&#8221; so you might as well use it instead of the mod <img src='https://digitalnature.eu/wp-content/themes/digitalnature/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li>Download on <a href="http://wordpress.org/extend/plugins/ad-manager-for-wp/" rel="external">WordPress.org</a></li>
<li><a title="Download" href="http://digitalnature.eu/forum/plugins/ad-manager/">Support Forums</a> (post bug reports / requests here)</li>
</ul>
<p>A quick screenshot:</p>
<p><a href="http://digitalnature.eu/wp-content/uploads/2012/05/screenshot-1.png"><img class="size-medium wp-image-4137 aligncenter" title="Ad Manager dashboard interface" src="http://digitalnature.eu/wp-content/uploads/2012/05/screenshot-1-300x238.png" alt="Ad Manager dashboard interface" width="300" height="238" /></a></p>
<p>In case you&#8217;re wondering if you will loose existing ads from the theme &#8211; no, they will be imported by the plugin.</p>
<p>For theme developers &#8211; to add &#8220;ad location&#8221; support in your theme, pass an action tag to the registerAdLocation() method. Example:</p>
<pre class="php">if(defined('AdManager::VERSION'))
  AdManager()-&gt;registerAdLocation('after_header', __('After theme header'));</pre>
]]></content:encoded>
			<wfw:commentRss>https://digitalnature.eu/blog/2012/05/08/new-plugin-ad-manager/feed/</wfw:commentRss>
		<slash:comments>144</slash:comments>
		</item>
		<item>
		<title>New plugin: Post Ratings</title>
		<link>https://digitalnature.eu/blog/2011/11/21/new-plugin-post-ratings/</link>
		<comments>https://digitalnature.eu/blog/2011/11/21/new-plugin-post-ratings/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 21:08:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[post-ratings]]></category>
		<category><![CDATA[ratings]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalnature.eu/?p=2417</guid>
		<description><![CDATA[Yet another post rating WordPress plugin  
What does it do:

Allow your site users to rate posts (of any kind)
Display the average post rating, vote count or weighted (bayesian) rating within your posts
Display a widget with the top rated posts in your sidebar

A few screenshots:




Download on  [...]]]></description>
			<content:encoded><![CDATA[<p>Yet another post rating WordPress plugin <img src='https://digitalnature.eu/wp-content/themes/digitalnature/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>What does it do:</p>
<ul>
<li>Allow your site users to rate posts (of any kind)</li>
<li>Display the average post rating, vote count or weighted (bayesian) rating within your posts</li>
<li>Display a widget with the top rated posts in your sidebar</li>
</ul>
<p>A few screenshots:</p>
<div class="clear-block">
<p><a href="http://digitalnature.eu/wp-content/uploads/2011/11/screenshot-11.png"><img class="alignleft size-thumbnail wp-image-2448" title="Plugin options" src="http://digitalnature.eu/wp-content/uploads/2011/11/screenshot-11-150x150.png" alt="Plugin options" width="150" height="150" /></a><a href="http://digitalnature.eu/wp-content/uploads/2011/11/screenshot-21.png"><img class="alignleft size-thumbnail wp-image-2422" title="Front-end rating links" src="http://digitalnature.eu/wp-content/uploads/2011/11/screenshot-21-150x150.png" alt="Front-end rating links" width="150" height="150" /></a><a href="http://digitalnature.eu/wp-content/uploads/2011/11/screenshot-3.png"><img class="size-thumbnail wp-image-2420 alignleft" title="&quot;Top Rated&quot; sidebar widget" src="http://digitalnature.eu/wp-content/uploads/2011/11/screenshot-3-150x150.png" alt="&quot;Top Rated&quot; sidebar widget" width="150" height="150" /></a><a href="http://digitalnature.eu/wp-content/uploads/2011/11/screenshot-4.png"><img class="alignleft size-thumbnail wp-image-2433" title="Atom version of the widget" src="http://digitalnature.eu/wp-content/uploads/2011/11/screenshot-4-150x150.png" alt="Atom version of the widget" width="150" height="150" /></a></p>
</div>
<ul>
<li>Download on <a href="http://wordpress.org/extend/plugins/post-ratings/" rel="external">WordPress.org</a></li>
<li><a href="http://digitalnature.eu/forum/plugins/post-ratings/">Support forums</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://digitalnature.eu/blog/2011/11/21/new-plugin-post-ratings/feed/</wfw:commentRss>
		<slash:comments>136</slash:comments>
		</item>
		<item>
		<title>Featured images (thumbnails) in menus</title>
		<link>https://digitalnature.eu/blog/2011/10/27/featured-images-thumbnails-in-menus/</link>
		<comments>https://digitalnature.eu/blog/2011/10/27/featured-images-thumbnails-in-menus/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 12:27:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Useless Stuff]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[menus]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalnature.eu/?p=2215</guid>
		<description><![CDATA[The following code will let you use featured images as thumbnails in your custom menus. Paste this in your child theme functions.php file, or theme settings &#62; Advanced &#62; User-defined code:

atom()-&#62;setContextArgs('primary_menu', array('walker' =&#62; new ThumbMenuWalker()));

class ThumbMenuWalker  [...]]]></description>
			<content:encoded><![CDATA[<p>The following code will let you use featured images as thumbnails in your custom menus. Paste this in your child theme functions.php file, or theme settings &gt; Advanced &gt; User-defined code:</p>
<pre class="php">
atom()-&gt;setContextArgs('primary_menu', array('walker' =&gt; new ThumbMenuWalker()));

class ThumbMenuWalker extends AtomWalkerNavMenu{

  // register the thumbnail size, 64 pixel square, cropped
  function __construct(){
    add_image_size('nav-thumb', 64, 64, true);
  }

  // override start_el
  function start_el(&amp;$output, $item, $depth, $args) {

    $classes = empty($item-&gt;classes) ? array() : (array)$item-&gt;classes;

    $classes = join(' ', apply_filters('nav_menu_css_class', array_filter($classes), $item, $args));
    $classes = $classes ? ' class=&quot;'.esc_attr($classes).'&quot;' : '';

    $output .= &quot;\n&lt;li{$classes}&gt;&quot;;

    $attributes  = !empty($item-&gt;attr_title) ? ' title=&quot;'.esc_attr($item-&gt;attr_title).'&quot;' : '';
    $attributes .= !empty($item-&gt;target) ? ' target=&quot;'.esc_attr($item-&gt;target).'&quot;' : '';
    $attributes .= !empty($item-&gt;xfn) ? ' rel=&quot;'.esc_attr($item-&gt;xfn).'&quot;' : '';
    $attributes .= !empty($item-&gt;url) ? ' href=&quot;'.esc_attr($item-&gt;url).'&quot;' : '';

    $excerpt = $thumb = '';

    // 2nd level+
    if($depth &gt; 0){
      $post = new AtomObjectPost($item-&gt;object_id);

      // thumbnail image
      if(post_type_supports($item-&gt;object, 'thumbnail'))
        $thumb = $post-&gt;getThumbnail('nav-thumb');

    if($thumb)
      $attributes .= ' class=&quot;clear-block&quot;';

      // short description from the content, 100 is the max. character count
      $excerpt = $post-&gt;getContent(100, array(
        'cutoff'       =&gt; 'sentence',  // cut off just after the sentence ends
        'allowed_tags' =&gt; array(),     // no html
        'more'         =&gt; false,       // no 'more' text / link
      ));

      if($excerpt)
        $excerpt = &quot;&lt;small&gt;{$excerpt}&lt;/small&gt;&quot;;
      
      atom()-&gt;resetCurrentPost();
    }

    $content = $args-&gt;link_before.$thumb.'&lt;span class=&quot;tt&quot;&gt;'.apply_filters('the_title', $item-&gt;title, $item-&gt;ID).$excerpt.'&lt;/span&gt;'.$args-&gt;link_after;
    $output .= apply_filters('walker_nav_menu_start_el', &quot;{$args-&gt;before}&lt;a{$attributes}&gt;{$content}&lt;/a&gt;{$args-&gt;after}&quot;, $item, $depth, $args);
  }

}</pre>
<p>The CSS:</p>
<pre class="css">.nav img, .nav .no-img{
  float:left;
  margin-right: 5px;
} 

.nav .tt{
  overflow:hidden;
  display:block;
  font-weight:bold;  
}  

.nav small{
  font-size:11px;  
  display:block;
  margin-top: 5px;
}</pre>
<p>The result should be something like this:<br />
<img class="alignnone size-full wp-image-2216" title="Menu thumbanils" src="http://digitalnature.eu/wp-content/uploads/2011/10/thumb-menu.png" alt="Menu thumbanils" width="560" height="307" /></p>
]]></content:encoded>
			<wfw:commentRss>https://digitalnature.eu/blog/2011/10/27/featured-images-thumbnails-in-menus/feed/</wfw:commentRss>
		<slash:comments>98</slash:comments>
		</item>
		<item>
		<title>Custom avatar images in WordPress</title>
		<link>https://digitalnature.eu/blog/2011/09/18/custom-avatar-images-in-wordpress/</link>
		<comments>https://digitalnature.eu/blog/2011/09/18/custom-avatar-images-in-wordpress/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 23:28:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Useless Stuff]]></category>
		<category><![CDATA[avatars]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalnature.eu/?p=1870</guid>
		<description><![CDATA[This is a short walktrough on how to let your website users upload their own avatars, without using a plugin.
First, define the maximum image sizes (note that we will only downsize, smaller images will get browser-resized):

define('MAX_AVATAR_WIDTH', 96);
define('MAX_AVATAR_HEIGHT', 96);

This  [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short walktrough on how to let your website users upload their own avatars, without using a plugin.</p>
<p>First, define the maximum image sizes (note that we will only downsize, smaller images will get browser-resized):</p>
<pre class="php">
define('MAX_AVATAR_WIDTH', 96);
define('MAX_AVATAR_HEIGHT', 96);
</pre>
<p>This goes in the child theme&#8217;s functions-user.php file.</p>
<p>Next, create the form which lets users upload the image. I chose the author.php template here, but you can easily add it inside the dashboard trough some hooks.</p>
<pre class="php">
&lt;?php if(is_user_logged_in() &amp;&amp; get_current_user_id() === (int)get_query_var('author')): ?&gt;
&lt;form method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot; action=&quot;&quot;&gt;
  &lt;input type=&quot;file&quot; name=&quot;user_avatar&quot; /&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;wp_handle_upload&quot; /&gt;
  &lt;input type=&quot;submit&quot; value=&quot;Upload new Avatar&quot; /&gt;
&lt;/form&gt;
&lt;?php endif; ?&gt;
</pre>
<p>The actual upload processing. You can have this in the same author template before get_header(), or inside the child theme&#8217;s functions:</p>
<pre class="php">
if(is_user_logged_in() &amp;&amp; isset($_FILES['user_avatar'])){

  // we need this for the wp_handle_upload function
  require_once ABSPATH.'wp-admin/includes/file.php';

  // ID of the current user
  $current_user_id = get_current_user_id();

  // just be aware that GIFs are annoying as fuck
  $allowed_image_types = array(
    'jpg|jpeg|jpe' =&gt; 'image/jpeg',
    'png'          =&gt; 'image/png',
    'gif'          =&gt; 'image/gif',
  );

  // let wp do the upload checks, file moving etc.
  $status = wp_handle_upload($_FILES['user_avatar'], array('mimes' =&gt; $allowed_image_types));

  // no errors? Get the uploaded file path and resize it
  if(empty($status['error'])){

    // resize it
    $resized = image_resize($status['file'], MAX_AVATAR_WIDTH, MAX_AVATAR_HEIGHT, $crop = true);

    // resize failed, display the reason
    if(is_wp_error($resized))
      wp_die($resized-&gt;get_error_message());

    // determine the resized file URL
    $uploads = wp_upload_dir();
    $resized_url = $uploads['url'].'/'.basename($resized);

    // insert the file URL into the current user meta
    update_user_meta($current_user_id, 'custom_avatar', $resized_url);

  // error, show it
  }else{
    wp_die(sprintf(__('Upload Error: %s'), $status['error']));

  }

}
</pre>
<p>Finally, hook into the avatar display function and get the avatar user meta field:</p>
<pre class="php">
add_filter('get_avatar', 'custom_avatars', 10, 3);

function custom_avatars($avatar, $id_or_email, $size){
  if(is_user_logged_in()){
    $current_user = wp_get_current_user();
    $image_url = get_user_meta($current_user-&gt;ID, 'custom_avatar', true);
    if($user_avatar !== false)
      return '&lt;img src=&quot;'.$image_url.'&quot; class=&quot;avatar photo&quot; width=&quot;'.$size.'&quot; height=&quot;'.$size.'&quot; alt=&quot;'.$current_user-&gt;display_name .'&quot; /&gt;';
  }

  return $avatar;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>https://digitalnature.eu/blog/2011/09/18/custom-avatar-images-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>83</slash:comments>
		</item>
		<item>
		<title>How to correctly hook your filter to the post content</title>
		<link>https://digitalnature.eu/blog/2011/09/12/how-to-correctly-hook-your-filter-to-the-post-content/</link>
		<comments>https://digitalnature.eu/blog/2011/09/12/how-to-correctly-hook-your-filter-to-the-post-content/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 14:41:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalnature.eu/?p=1757</guid>
		<description><![CDATA[I&#8217;m seeing a lot of plugins that just hook themselves on the the_content filter tag, without bothering to handle excerpts.
Because get_the_excerpt() / the_excerpt() will call get_the_content() if the post doesn&#8217;t have an excerpt set, in many cases you get your filter applied on excerpts as well.  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m seeing a lot of plugins that just hook themselves on the <a href="http://codex.wordpress.org/Plugin_API/Filter_Reference/the_content" rel="external">the_content</a> filter tag, without bothering to handle excerpts.</p>
<p>Because get_the_excerpt() / the_excerpt() will call get_the_content() if the post doesn&#8217;t have an excerpt set, in many cases you get your filter applied on excerpts as well. This can lead to unwanted text inside them, like escaped javascript code.</p>
<p>If you don&#8217;t want your filter to be applied to excerpts, then remove it during the time in which the excerpt is being generated. Here&#8217;s one way to do it:</p>
<pre lang="php">
add_filter('the_content', 'my_plugin_filter');

// remove our filter, as early as possible
add_filter('get_the_excerpt', function($text){
  remove_filter('the_content', 'my_plugin_filter');
  return $text;
}, -999);

// add it back after wp_trim_excerpt was applied, in case the theme calls the_content after
add_filter('get_the_excerpt', function($text){
  add_filter('the_content', 'my_plugin_filter');
  return $text;
}, 999);
</pre>
<p>Another way is to check if the excerpt is being processed within your filter:</p>
<pre class="php">
add_filter('the_content', 'my_plugin_filter');

function my_plugin_filter($text){
  if(in_array('get_the_excerpt', $GLOBALS['wp_current_filter'])) return $text;

  // not the excerpt, do your stuff here...
  return $text;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>https://digitalnature.eu/blog/2011/09/12/how-to-correctly-hook-your-filter-to-the-post-content/feed/</wfw:commentRss>
		<slash:comments>85</slash:comments>
		</item>
		<item>
		<title>Atom</title>
		<link>https://digitalnature.eu/blog/2010/10/18/atom-test/</link>
		<comments>https://digitalnature.eu/blog/2010/10/18/atom-test/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 00:22:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[atom]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalnature.ro/?p=382</guid>
		<description><![CDATA[ATOM serves as the base framework for future WordPress themes I&#8217;ll be designing. Some features/Highlights of the core:


A very extensible code base
Context-aware layout selection
Extensive support for child themes (auto-creation, better template routing)
Advanced theme settings panel with live  [...]]]></description>
			<content:encoded><![CDATA[<p>ATOM serves as the base framework for future WordPress themes I&#8217;ll be designing. Some features/Highlights of the core:</p>
<ul>
<ul>
<li>A very extensible code base</li>
<li>Context-aware layout selection</li>
<li>Extensive support for child themes (auto-creation, better template routing)</li>
<li>Advanced theme settings panel with live preview for design-related tweaks</li>
<li>Improved WordPress widgets:
<ul>
<li>Archives with CPT support</li>
<li>Blog list (multi-site only) with ajax support</li>
<li>Calendar with ajax and CPT support</li>
<li>Links (replaces &#8220;blogroll&#8221;)</li>
<li>Menu (replaces &#8220;custom menu), allows you to create expand/collapse lists</li>
<li>Login form with ajax support</li>
<li>Pages</li>
<li>Posts, with ajax, CPT and templating support</li>
<li>Recent Comments, with ajax and templating support</li>
<li>Splitter, a helper widget that&#8217;s able to group other widgets in columns</li>
<li>Tabs, helper widget that groups arbitrary widgets in tabs, extremely flexible</li>
<li>A more customizable Tag Cloud widget</li>
<li>Terms (replaces &#8220;categories&#8221;), with support for custom taxonomies and templating</li>
<li>Text widget with the ability to edit in visual mode</li>
<li>Top Commenters with templating support</li>
<li>Twitter feed</li>
<li>Users, with ajax and templating support</li>
</ul>
</li>
<li>Relevant shortcodes, most important:
<ul>
<li>[<strong>widget</strong>] &#8211; drop arbitrary widgets anywhere</li>
<li>[<strong>query</strong>] &#8211; custom queries with templating support within the editor</li>
</ul>
</li>
<li>Modules that can further extend functionality: Featured Gallery, Ad management</li>
<li>Many more features <img src='https://digitalnature.eu/wp-content/themes/digitalnature/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://digitalnature.eu/blog/2010/10/18/atom-test/feed/</wfw:commentRss>
		<slash:comments>1042</slash:comments>
		</item>
		<item>
		<title>Translating a WordPress theme</title>
		<link>https://digitalnature.eu/blog/2009/11/25/translating-a-wordpress-theme/</link>
		<comments>https://digitalnature.eu/blog/2009/11/25/translating-a-wordpress-theme/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 01:44:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalnature.ro/?p=139</guid>
		<description><![CDATA[This is a short tutorial on how to properly translate a Wordpress theme. Mystique is used as example here.  I will choose PoEdit as the translation application, since it's the easiest to use because of the simple user interface...]]></description>
			<content:encoded><![CDATA[<p>This is a short tutorial on how to properly translate a WordPress theme. <a href="http://digitalnature.eu/themes/mystique">Mystique</a> is used as example here.  I will choose <a href="http://www.poedit.net/" rel="external">PoEdit</a> as the translation application, since it&#8217;s the easiest to use because of the simple user interface.</p>
<p>&#8230;so, here are all the steps:</p>
<p>First <a href="http://www.poedit.net/download.php" rel="external">download and install Poedit</a>.</p>
<p>Select the theme you wish to translate and extract or copy the theme files into a new directory. In this example, I&#8217;m unzipping all the theme files inside the <strong>C:\mystique</strong> directory. Now open the PoEdit application, and create a new catalog  <em>(File &gt; New catalog)</em>, or you can open an existing catalog from the theme directory, if the theme has one. For example, the <strong>en_US.po</strong> file for Mystique.</p>
<p>From the menu, select <em>Catalog &gt; settings</em> and fill all the required information.</p>
<p>&nbsp;</p>
<p style="text-align:center">
<img class="aligncenter size-full wp-image-249" title="translating-wp-themes-1" src="http://digitalnature.eu/wp-content/uploads/2009/11/translating-wp-themes-1.png" alt="" width="500" height="450" />
</p>
<p>Don&#8217;t close the settings window yet. Click on the <em>Paths</em> tab and change the local path from 1st line with your path to the theme files, in our example <strong> C:\mystique</strong></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-250" title="translating-wp-themes-2" src="http://digitalnature.eu/wp-content/uploads/2009/11/translating-wp-themes-2.png" alt="" width="500" height="450" /></p>
<p style="text-align: left;">Click OK, then update the catalog (<em>Catalog &gt; Update from sources</em>) to verify that your path to the theme is correct, and to update all the strings. You can also update the catalog from a existing .pot template, if the theme has one (that way you wouldn&#8217;t need to extract all the theme files on your computer).</p>
<p style="text-align: left;">If you don&#8217;t get any errors, you can start translating the theme by selecting each string in bold from the list, and typing the translation in editable area from the bottom. Here&#8217;s a sample phrase translated to French:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-251" title="translating-wp-themes-3" src="http://digitalnature.eu/wp-content/uploads/2009/11/translating-wp-themes-3.png" alt="" width="465" height="400" /></p>
<p style="text-align: left;">Be careful with the php values, such as <strong>%s</strong>, <strong>%2$s</strong> etc. Always include them in the translated string! If you want to hide some of them you can use html comments &#8211; for example if you want to hide the author link in Mystique (original string: <strong>Posted by %1$s in %2$s</strong>):<strong><br />
</strong></p>
<pre><span>Posté &lt;!-- par %1$s --&gt; dans %2$s</span></pre>
<p style="text-align: left;">When you&#8217;re finished, save your catalog by using the <em>languagecode_COUNTRYCODE</em> file naming convention, eg. as <em>fr_FR</em>, and upload the compiled catalog that was generated by PoEdit (eg. <em>fr_FR.mo</em>) to your server, in the appropriate theme language file directory. That&#8217;s it <img src='https://digitalnature.eu/wp-content/themes/digitalnature/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p style="text-align: left;">Related resources:<br />
<a href="http://codex.wordpress.org/WordPress_in_Your_Language" rel="external">WordPress in Your Language</a><br />
<a href="http://www.moneyaisle.com/worldwide/translating-wp-theme-be" rel="external">Belorussian translation of this article (by Patricia Clausnitzer)</a></p>
]]></content:encoded>
			<wfw:commentRss>https://digitalnature.eu/blog/2009/11/25/translating-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>314</slash:comments>
		</item>
		<item>
		<title>Mystique (old page)</title>
		<link>https://digitalnature.eu/blog/2009/09/17/mystique/</link>
		<comments>https://digitalnature.eu/blog/2009/09/17/mystique/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 23:47:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[mystique]]></category>
		<category><![CDATA[premium]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalnature.ro/?p=185</guid>
		<description><![CDATA[This is the old page for the Mystique project. The new one is here.
Mystique is a free WordPress theme that attempts to top commercial templates in terms of design and functionality. Some of its features include 4 theme widgets, page templates for different layout styles and a advanced interface  [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">This is the old page for the Mystique project. The new one is <a title="Mystique" href="http://digitalnature.eu/themes/mystique">here</a>.</span></p>
<p>Mystique is a free WordPress theme that attempts to top commercial templates in terms of design and functionality. Some of its features include 4 theme widgets, page templates for different layout styles and a advanced interface for the theme settings&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>https://digitalnature.eu/blog/2009/09/17/mystique/feed/</wfw:commentRss>
		<slash:comments>7677</slash:comments>
		</item>
		<item>
		<title>Arclite (old page)</title>
		<link>https://digitalnature.eu/blog/2009/04/29/arclite/</link>
		<comments>https://digitalnature.eu/blog/2009/04/29/arclite/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 22:59:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[arclite]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalnature.ro/?p=101</guid>
		<description><![CDATA[This is the old page for the Arclite theme. The new page is here.
Another clean/light style theme. Some of its features include the ability to switch between the normal image-based design to a entirely CSS based one (without images), a few background/color variations, fluid layout, optional 3rd  [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">This is the old page for the Arclite theme. The new page is <a href="http://digitalnature.eu/themes/arclite/">here.</a></span></p>
<p>Another clean/light style theme. Some of its features include the ability to switch between the normal image-based design to a entirely CSS based one (without images), a few background/color variations, fluid layout, optional 3rd column and many more&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>https://digitalnature.eu/blog/2009/04/29/arclite/feed/</wfw:commentRss>
		<slash:comments>1411</slash:comments>
		</item>
		<item>
		<title>420AM</title>
		<link>https://digitalnature.eu/blog/2009/04/07/420am/</link>
		<comments>https://digitalnature.eu/blog/2009/04/07/420am/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 15:16:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[420am]]></category>
		<category><![CDATA[grunge]]></category>
		<category><![CDATA[wood]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalnature.ro/?p=92</guid>
		<description><![CDATA[A dark WordPress theme with a rustic look, grunge style. Still under development
Support this project
   
]]></description>
			<content:encoded><![CDATA[<p>A dark WordPress theme with a rustic look, grunge style. Still under development</p>
<p><em>Support this project</em></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick" /> <input type="hidden" name="hosted_button_id" value="4605915" /> <input type="image" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" alt="Donate" /> <img src="https://www.paypal.com/en_US/i/scr/pixel.gif" alt="" width="1" height="1" border="0" /></form>
]]></content:encoded>
			<wfw:commentRss>https://digitalnature.eu/blog/2009/04/07/420am/feed/</wfw:commentRss>
		<slash:comments>112</slash:comments>
		</item>
	</channel>
</rss>
