<div class="wptouch-mobile-switch"> <?php do_action('wptouch_switch_top'); ?> <?php if (wptouch_use_mobile_switch_link() && !wptouch_fdn_is_web_app_mode()) { ?> <div id="switch"> <div> <span class="on active" role="button"><?php _e('mobile', 'wptouch-pro'); ?> </span> <a class="off tappable" role="button" href="<?php wptouch_the_mobile_switch_link(); ?> "><?php _e('desktop', 'wptouch-pro'); ?> </a> </div> </div> <?php } ?> <?php do_action('wptouch_switch_bottom'); ?>
function foundation_webapp_body_classes($classes) { $settings = foundation_get_settings(); if (wptouch_fdn_is_web_app_mode() && isset($_COOKIE[WPTOUCH_WEBAPP_COOKIE . '-' . foundation_webapp_get_persistence_salt()])) { $classes[] = 'web-app-mode'; } return $classes; }
<h3> <i class='icon-key'></i> <?php _e('Login', 'wptouch-pro'); ?> </h3> <?php wp_login_form($login_args); ?> </div> <?php if (!wptouch_fdn_is_web_app_mode() && wptouch_fdn_show_login_links()) { ?> <div class="login-links"> <?php $link_destination = esc_url_raw($_SERVER['REQUEST_URI'], array('http', 'https')); ?> <a class="sign-up tappable" href="<?php echo site_url('/wp-login.php?action=register&redirect_to=' . $link_destination); ?> "><?php _e('Sign-up', 'wptouch-pro'); ?> </a> <a class="forgot tappable" href="<?php echo site_url('/wp-login.php?action=lostpassword&redirect_to=' . $link_destination); ?>