<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Swapping output in footer depending on Page</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 23 May 2013 09:16:22 +0000</pubDate>

<item>
<title>Andrew on "Swapping output in footer depending on Page"</title>
<link>http://themeshaper.com/forums/topic/swapping-output-in-footer-depending-on-page#post-16960</link>
<pubDate>Sat, 13 Nov 2010 08:27:10 +0000</pubDate>
<dc:creator>Andrew</dc:creator>
<guid isPermaLink="false">16960@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;So After installing and rocking out with the Widget Logic plugin, I accomplish all I was attempting and more!&#60;br /&#62;
I'll consider this one resolved.&#60;br /&#62;
Thanks Daniel.
&#60;/p&#62;</description>
</item>
<item>
<title>Andrew on "Swapping output in footer depending on Page"</title>
<link>http://themeshaper.com/forums/topic/swapping-output-in-footer-depending-on-page#post-16843</link>
<pubDate>Tue, 09 Nov 2010 15:51:36 +0000</pubDate>
<dc:creator>Andrew</dc:creator>
<guid isPermaLink="false">16843@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks Daniel!   I wasn't aware of the Widget Logic plugin,  which seems incredibly useful for many reasons!  And it helps in other problems I was looking at down the road too.   Also I replaced the 'init' with 'wp' and it worked.  But it still won't create the new footer nav, and I'm not sure if this is because I'm using a single 3.0 style menu...  So instead of trying to re-invent the wheel, I'll give a go with this Widget logic and solve a few problems at once.  With Wordpress there seems to be a few ways to get from point A to B  eh?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// If Statement to determine which page to remove Subs from
function footer_swap() {
 // We test if we are on the page front page
 if (is_front_page()) {
 // Yes, we are .. now we leave the subs instact
 return NULL;
 }
 else {
 // we are not .. we turn the subs off
 return remove_thematic_subs();
        add_action(&#38;#39;thematic_footer&#38;#39;, &#38;#39;sc_footer_nav&#38;#39;);
 }
}
// execute removing the subs
add_action(&#38;#39;wp&#38;#39;,&#38;#39;footer_swap&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Danieliser on "Swapping output in footer depending on Page"</title>
<link>http://themeshaper.com/forums/topic/swapping-output-in-footer-depending-on-page#post-16832</link>
<pubDate>Tue, 09 Nov 2010 02:19:23 +0000</pubDate>
<dc:creator>Danieliser</dc:creator>
<guid isPermaLink="false">16832@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I think in your case maybe changeing from 'init' to 'wp' or 'template_redirect'. Reason being that ive never had good results trying to check is_page() or any other conditional before initialization finishes.&#60;/p&#62;
&#60;p&#62;Second why not us a menu widget and the 'Widget Logic' plugin to hide the home page widgets on other pages.
&#60;/p&#62;</description>
</item>
<item>
<title>Andrew on "Swapping output in footer depending on Page"</title>
<link>http://themeshaper.com/forums/topic/swapping-output-in-footer-depending-on-page#post-16831</link>
<pubDate>Mon, 08 Nov 2010 19:13:03 +0000</pubDate>
<dc:creator>Andrew</dc:creator>
<guid isPermaLink="false">16831@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi There, &#60;/p&#62;
&#60;p&#62;I'm trying to create a footer navigation on the inside pages of a site, and removing the footer subsidiaries which are active on the homepage.  I want to keep the 3 footer subsidiaries on the homepage only, and on the inside pages I'd like to remove then and replace them with a footer navigation.  My basic PHP skills and understanding of hooks and filters are most of my problem!  ANy help would be greatly appreciated as well as any major no-no's I'm committing here in the following code.  This is what I've got&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;// function to remove subs
function remove_thematic_subs() {
	 remove_action(&#38;#39;thematic_footer&#38;#39;,&#38;#39;thematic_subsidiaries&#38;#39;, 10);
	}

//Creating SC footer nav
function sc_footer_nav() {
	?&#38;gt;
      &#38;lt;div id=&#38;quot;footerNav&#38;quot;&#38;gt;
      	&#38;lt;ul&#38;gt;
		&#38;lt;?php wp_list_pages(&#38;#39;title_li=&#38;#39;); ?&#38;gt;
		&#38;lt;/ul&#38;gt;
      &#38;lt;/div&#38;gt;
   &#38;lt;?php
}

// If Statement to determine which page to remove Subs from
function footer_swap() {
 // We test if we are on the page front page
 if (is_front_page()) {
 // Yes, we are .. now we leave the subs instact
 return NULL;
 }
 else {
 // we are not .. we turn the subs off and add footer nav
 return add_action(&#38;#39;init&#38;#39;,&#38;#39;remove_thematic_subs&#38;#39;);
        add_action(&#38;#39;thematic_footer&#38;#39;, &#38;#39;sc_footer_nav&#38;#39;);
 }
}
// execute removing the subs
add_action(&#38;#39;init&#38;#39;,&#38;#39;footer_swap&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
