<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: moving sidebar navigation</title>
		<link>http://www.kriesi.at/support/topic/moving-sidebar-navigation</link>
		<description>Support Forum - Topic: moving sidebar navigation</description>
		<language>en-US</language>
		<pubDate>Mon, 20 May 2013 12:31:05 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/moving-sidebar-navigation" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "moving sidebar navigation"</title>
			<link>http://www.kriesi.at/support/topic/moving-sidebar-navigation#post-28153</link>
			<pubDate>Thu, 29 Sep 2011 05:49:53 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">28153@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
open up sidebar.php and move following code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/*
					* Display a subnavigation for pages that is automatically generated, so the users doesnt need to work with widgets
					*/
					if($subNav &#38;amp;&#38;amp; isset($post) &#38;amp;&#38;amp; is_object($post) &#38;amp;&#38;amp; !empty($post-&#38;gt;ID))
					{
						global $post;
						$subNav = false;
						$parent = $post-&#38;gt;ID;

						if (!empty($post-&#38;gt;post_parent))
						{
							$ancestors  = get_post_ancestors($post-&#38;gt;ID);
							$root		= count($ancestors)-1;
							$parent 	= $ancestors[$root];
						} 

						$children = wp_list_pages(&#38;quot;title_li=&#38;amp;child_of=&#38;quot;. $parent .&#38;quot;&#38;amp;echo=0&#38;quot;);

						if ($children)
						{
							$default_sidebar = false;
							echo &#38;quot;&#38;lt;div class=&#38;#39;widget widget_nav_menu&#38;#39;&#38;gt;&#38;lt;ul class=&#38;#39;nested_nav&#38;#39;&#38;gt;&#38;quot;;
							echo $children;
							echo &#38;quot;&#38;lt;/ul&#38;gt;&#38;lt;/div&#38;gt;&#38;quot;;
						}
					}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;- i.e. put it before:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//default dummy sidebar&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>parronzuelo on "moving sidebar navigation"</title>
			<link>http://www.kriesi.at/support/topic/moving-sidebar-navigation#post-28133</link>
			<pubDate>Wed, 28 Sep 2011 22:35:02 +0000</pubDate>
			<dc:creator>parronzuelo</dc:creator>
			<guid isPermaLink="false">28133@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi guys, i think the sidebar navigation for nested subpages its a good thing... but i need to get those ads to display first. So please let me know where in the code should i make changes for displaying the automatic sidebar navigation after the widgets... getting it in the midle would be more complicated, doesnt??&#60;/p&#62;
&#60;p&#62;many thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
