i'm using the BAAP Mobile version plugin and the footer link that switches between desktop and mobile version is being displayed outside of the wrapper>footer divs. Is there a hook or a method to have the switcher link display in the footer section?
This is the function that creates and displays the links in the wpmp_switcher.php file.
function wpmp_switcher_wp_footer($force=false) {
if(!$force && (get_option('wpmp_switcher_mode')=='none' || get_option('wpmp_switcher_footer_links')!='true')) {
return;
}
switch (wpmp_switcher_outcome()) {
case WPMP_SWITCHER_MOBILE_PAGE:
print wpmp_switcher_link('desktop', __('Switch 2 our desktop site', 'wpmp'));
break;
case WPMP_SWITCHER_DESKTOP_PAGE:
print "<p>" . wpmp_switcher_link('mobile', __('Switch to our mobile site', 'wpmp')) . "</p>";
break;
}
}
wpmp_switcher_wp_footerfunction in tthe right place. – Bainternet♦ May 17 '11 at 5:45remove_action. – Bainternet♦ May 17 '11 at 6:09