<?php } // end if ?> <?php } // end if ?> <div id="sub-floor" class="clearfix"> <div class="container-fluid"> <div class="row-fluid"> <div class="span12"> <div id="footer-links"> <?php if (has_nav_menu('footer_menu') && (!standard_is_offline() || is_user_logged_in())) { wp_nav_menu(array('theme_location' => 'footer_menu', 'container_class' => 'menu-footer-nav-container navbar', 'items_wrap' => '<ul id="%1$s" class="nav %2$s">%3$s</ul>', 'fallback_cb' => false, 'depth' => 1)); } // end if ?> </div><!-- /#footer-links --> <?php $global_options = get_option('standard_theme_global_options'); ?> <div id="credit"> <?php $standard_url = strlen(trim($global_options['affiliate_code'])) == 0 ? 'http://standardtheme.com/?utm_source=standard-theme&utm_medium=footer&utm_content=wp-org&utm_campaign=Standard%2BFooter' : $global_options['affiliate_code']; $eightbit_url = 'http://8bit.io/?utm_source=standard-theme&utm_medium=footer&utm_content=wp-org&utm_campaign=Standard%2BFooter'; ?>
?> <?php } // end if ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?> > <?php if (standard_is_offline() && !current_user_can('manage_options')) { ?> <?php get_template_part('page', 'offline-mode'); ?> <?php exit; ?> <?php } // end if ?> <?php get_template_part('lib/breadcrumbs/standard_breadcrumbs'); ?>
<div class="container"> <div class="row"> <div id="footer-links" class="span7"> <?php if (has_nav_menu('footer_menu') && !standard_is_offline()) { wp_nav_menu(array('theme_location' => 'footer_menu', 'container_class' => 'menu-footer-nav-container navbar', 'items_wrap' => '<ul id="%1$s" class="nav %2$s">%3$s</ul>', 'fallback_cb' => false, 'depth' => 1)); } // end if ?> </div><!-- /#footer-links --> <?php $global_options = get_option('standard_theme_global_options'); ?> <div id="credit" class="<?php echo has_nav_menu('footer_menu') && !standard_is_offline() ? 'span5' : 'span12'; ?> "> <?php $standard_url = strlen(trim($global_options['affiliate_code'])) == 0 ? 'http://standardtheme.com/?utm_source=standard-theme&utm_medium=footer&utm_content=wp-org&utm_campaign=Standard%2BFooter' : $global_options['affiliate_code']; $eightbit_url = 'http://8bit.io/?utm_source=standard-theme&utm_medium=footer&utm_content=wp-org&utm_campaign=Standard%2BFooter'; ?> <?php printf(__('© %1$s %2$s — %3$s by %4$s', 'standard'), date('Y'), '<a href="' . site_url() . '">' . get_bloginfo('name') . '</a>', '<a href="' . $standard_url . '" target="_blank">Standard</a>', '<a href="' . $eightbit_url . '" target="_blank">8BIT</a>'); ?> </div><!-- /#credits --> </div><!-- /row --> </div><!-- /.container -->
/** * If the user has set a FeedBurner URL in the Global Options, then we'll * redirect all traffic from the existing WordPress feed to FeedBurner. * * @since 3.0 * @version 3.0 */ function standard_redirect_rss_feeds() { global $feed; // If we're not on a feed or we're requesting feedburner then stop the redirect if (!is_feed() || preg_match('/feedburner/i', $_SERVER['HTTP_USER_AGENT']) || standard_is_offline()) { return; } // end if // Otherwise, get the RSS feed from the user's settings $rss_feed_url = standard_get_rss_feed_url(); // If they have setup feedburner, let's redirect them if (strpos($rss_feed_url, 'feedburner') > 0 && '' != $rss_feed_url) { switch ($feed) { case 'feed': case 'rdf': case 'rss': case 'rss2': case 'atom': if ('' != $rss_feed_url) { header("Location: " . $rss_feed_url); die; } // end if break; default: break; } // end switch/case } // end if }