<?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: Dynamic Logged in/out Menus</title>
		<link>http://www.kriesi.at/support/topic/dynamic-logged-inout-menus</link>
		<description>Support Forum - Topic: Dynamic Logged in/out Menus</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 13:09:11 +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/dynamic-logged-inout-menus" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Dynamic Logged in/out Menus"</title>
			<link>http://www.kriesi.at/support/topic/dynamic-logged-inout-menus#post-66691</link>
			<pubDate>Fri, 20 Jul 2012 06:25:38 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">66691@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi! &#60;/p&#62;
&#60;p&#62; Glad that the tutorial helped you :) &#60;/p&#62;
&#60;p&#62; Regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>udugam on "Dynamic Logged in/out Menus"</title>
			<link>http://www.kriesi.at/support/topic/dynamic-logged-inout-menus#post-66202</link>
			<pubDate>Tue, 17 Jul 2012 22:07:57 +0000</pubDate>
			<dc:creator>udugam</dc:creator>
			<guid isPermaLink="false">66202@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;This post was super helpful! I applied the changes to the &#34;Flashlight&#34; theme. The only difference was with the Flashlight theme you have to make the changes to the sidebar.php file instead of the header.php file because of the way the theme is designed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Beard on "Dynamic Logged in/out Menus"</title>
			<link>http://www.kriesi.at/support/topic/dynamic-logged-inout-menus#post-30229</link>
			<pubDate>Sun, 23 Oct 2011 01:27:53 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">30229@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks for sharing your solution, it's great to see when people come up with things like this and share it with the community!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "Dynamic Logged in/out Menus"</title>
			<link>http://www.kriesi.at/support/topic/dynamic-logged-inout-menus#post-30170</link>
			<pubDate>Sat, 22 Oct 2011 06:38:42 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">30170@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;wow, thanks.&#60;/p&#62;
&#60;p&#62;And you haven't such a great idea for a drop-down menu for submenu? ;-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tbanetworkservices on "Dynamic Logged in/out Menus"</title>
			<link>http://www.kriesi.at/support/topic/dynamic-logged-inout-menus#post-30162</link>
			<pubDate>Sat, 22 Oct 2011 02:52:38 +0000</pubDate>
			<dc:creator>tbanetworkservices</dc:creator>
			<guid isPermaLink="false">30162@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;&#60;strong&#62;Getting Your Hands Dirty&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Actually they are not going to get very dirty, as I have found that you only require 2 simple edits.&#60;/p&#62;
&#60;p&#62;In &#60;em&#62;functions.php&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Change...&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
/* Activate native wordpress navigation menu and register a menu location */&#60;br /&#62;
add_theme_support('nav_menus');&#60;br /&#62;
$avia_config['nav_menus'] = array('avia' =&#38;gt; 'Main Menu', 'avia2'=&#38;gt; 'Sub Menu');&#60;br /&#62;
foreach($avia_config['nav_menus'] as $key =&#38;gt; $value){ register_nav_menu($key, THEMENAME.' '.$value); }&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;To...&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
/* Activate native wordpress navigation menu and register a menu location */&#60;br /&#62;
add_theme_support('nav_menus');&#60;br /&#62;
$avia_config['nav_menus'] = array('avia' =&#38;gt; 'Main Menu', 'avia2'=&#38;gt; 'Sub Menu', 'avia3'=&#38;gt; 'Members Menu');&#60;br /&#62;
foreach($avia_config['nav_menus'] as $key =&#38;gt; $value){ register_nav_menu($key, THEMENAME.' '.$value); }&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Then in &#60;em&#62;header.php&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Change...&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
					/*&#60;br /&#62;
					*	display the main navigation menu&#60;br /&#62;
					*   check if a description for submenu items was added and change the menu class accordingly&#60;br /&#62;
					*   modify the output in your wordpress admin backend at appearance-&#38;gt;menus&#60;br /&#62;
					*/&#60;br /&#62;
					$args = array(	'echo'=&#38;gt; false,&#60;br /&#62;
									'fallback_cb' =&#38;gt; 'avia_fallback_menu',&#60;br /&#62;
									'theme_location' =&#38;gt; 'avia',&#60;br /&#62;
									'menu_class' =&#38;gt; 'menu',&#60;br /&#62;
									'walker' =&#38;gt; new avia_description_walker()&#60;br /&#62;
								);&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;To...&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
					/*&#60;br /&#62;
					*	display the main navigation menu&#60;br /&#62;
					*   check if a description for submenu items was added and change the menu class accordingly&#60;br /&#62;
					*   modify the output in your wordpress admin backend at appearance-&#38;gt;menus&#60;br /&#62;
					*/&#60;br /&#62;
					if ( is_user_logged_in() ) {&#60;br /&#62;
						$args = array(	'echo'=&#38;gt; false,&#60;br /&#62;
										'fallback_cb' =&#38;gt; 'avia_fallback_menu',&#60;br /&#62;
										'theme_location' =&#38;gt; 'avia3',&#60;br /&#62;
										'menu_class' =&#38;gt; 'menu',&#60;br /&#62;
										'walker' =&#38;gt; new avia_description_walker()&#60;br /&#62;
									);&#60;br /&#62;
					} else {&#60;br /&#62;
						$args = array(	'echo'=&#38;gt; false,&#60;br /&#62;
										'fallback_cb' =&#38;gt; 'avia_fallback_menu',&#60;br /&#62;
										'theme_location' =&#38;gt; 'avia',&#60;br /&#62;
										'menu_class' =&#38;gt; 'menu',&#60;br /&#62;
										'walker' =&#38;gt; new avia_description_walker()&#60;br /&#62;
									);&#60;br /&#62;
					}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;You will then find a 3rd supported Corona Menu within the Wordpress &#34;Appearance - Menus&#34;. and you can create a menu and select it from the new drop down list as normal.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tbanetworkservices on "Dynamic Logged in/out Menus"</title>
			<link>http://www.kriesi.at/support/topic/dynamic-logged-inout-menus#post-30159</link>
			<pubDate>Sat, 22 Oct 2011 01:53:27 +0000</pubDate>
			<dc:creator>tbanetworkservices</dc:creator>
			<guid isPermaLink="false">30159@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks Chris,&#60;/p&#62;
&#60;p&#62;The idea was more to make it easier for those that don't want to get their hands &#34;dirty&#34;.&#60;/p&#62;
&#60;p&#62;Although I am sure it would be a handy WP feature in general.&#60;/p&#62;
&#60;p&#62;Probably a simple hook for a plugin.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Beard on "Dynamic Logged in/out Menus"</title>
			<link>http://www.kriesi.at/support/topic/dynamic-logged-inout-menus#post-29938</link>
			<pubDate>Thu, 20 Oct 2011 02:16:53 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">29938@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
In your header.php file find&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
						/*
						*	display the main navigation menu
						*   modify the output in your wordpress admin backend at appearance-&#38;gt;menus
						*/
						$args = array(&#38;#39;theme_location&#38;#39;=&#38;gt;&#38;#39;avia2&#38;#39;, &#38;#39;fallback_cb&#38;#39; =&#38;gt; &#38;#39;&#38;#39;);
						wp_nav_menu($args);
						?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Here you can add your &#34;if logged in =&#38;gt; ... else ...&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tbanetworkservices on "Dynamic Logged in/out Menus"</title>
			<link>http://www.kriesi.at/support/topic/dynamic-logged-inout-menus#post-29932</link>
			<pubDate>Thu, 20 Oct 2011 01:44:25 +0000</pubDate>
			<dc:creator>tbanetworkservices</dc:creator>
			<guid isPermaLink="false">29932@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;It would be truly awesome if your themes would have an option to use a different menu when logged in.&#60;/p&#62;
&#60;p&#62;As you already have Theme Locations for the Corona Template Menus it would require a small extension to this and would really help!&#60;/p&#62;
&#60;p&#62;In the mean time where is the correct place to add the php code for this
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
