Created
August 14, 2014 13:40
-
-
Save BoweFrankema/24f1a52fb1a7aa5d9582 to your computer and use it in GitHub Desktop.
BuddyPress Media and Roots Theme Lightbox solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_template_part('templates/head'); ?> | |
<?php if ( function_exists( 'rtmedia_autoloader' ) && ! $rt_ajax_request ): ?> | |
<body <?php body_class(); ?>> | |
<!--[if lt IE 8]><div class="alert alert-warning"><?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'roots'); ?></div><![endif]--> | |
<?php | |
do_action('get_header'); | |
// Use Bootstrap's navbar if enabled in config.php | |
if (current_theme_supports('bootstrap-top-navbar')) { | |
get_template_part('templates/header-top-navbar'); | |
} else { | |
get_template_part('templates/header'); | |
} | |
?> | |
<div class="container"> | |
<div class="content row row-offcanvas row-offcanvas-left"> | |
<div class="main col-xs-12 col-sm-9" role="main"> | |
<?php endif; ?> | |
<?php include roots_template_path(); ?> | |
<?php if ( function_exists( 'rtmedia_autoloader' ) && ! $rt_ajax_request ): ?> | |
</div><!-- /.main --> | |
<?php if (roots_display_sidebar()) : ?> | |
<aside class="sidebar col-xs-6 col-sm-3 sidebar-offcanvas" role="complementary"> | |
<div class="inner-sidebar"> | |
<?php include roots_sidebar_path(); ?> | |
</div> | |
</aside><!-- /.sidebar --> | |
<?php endif; ?> | |
</div><!-- /.content --> | |
</div><!-- /.wrap --> | |
<?php get_template_part('templates/footer'); ?> | |
<?php endif; ?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment