Last active
August 29, 2015 14:08
-
-
Save Ritesh-patel/840bfcc55f95a789bc25 to your computer and use it in GitHub Desktop.
Roots theme patch for rtMedia lightbox
This file contains hidden or 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
diff --git a/base.php b/base.php | |
index 9828b4c..b00b0f3 100644 | |
--- a/base.php | |
+++ b/base.php | |
@@ -1,33 +1,42 @@ | |
<?php get_template_part('templates/head'); ?> | |
-<body <?php body_class(); ?>> | |
+<?php | |
+ global $rt_ajax_request; | |
+ if ( isset( $rt_ajax_request ) && $rt_ajax_request ) { | |
+ include roots_template_path(); | |
+ } else { | |
+ ?> | |
+ <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]--> | |
+ <!--[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'); | |
- get_template_part('templates/header'); | |
- ?> | |
+ <?php | |
+ do_action('get_header'); | |
+ get_template_part('templates/header'); | |
+ ?> | |
- <div class="wrap container" role="document"> | |
- <div class="content row"> | |
- <main class="main" role="main"> | |
- <?php include roots_template_path(); ?> | |
- </main><!-- /.main --> | |
- <?php if (roots_display_sidebar()) : ?> | |
- <aside class="sidebar" role="complementary"> | |
- <?php include roots_sidebar_path(); ?> | |
- </aside><!-- /.sidebar --> | |
- <?php endif; ?> | |
- </div><!-- /.content --> | |
- </div><!-- /.wrap --> | |
+ <div class="wrap container" role="document"> | |
+ <div class="content row"> | |
+ <main class="main" role="main"> | |
+ <?php include roots_template_path(); ?> | |
+ </main><!-- /.main --> | |
+ <?php if (roots_display_sidebar()) : ?> | |
+ <aside class="sidebar" role="complementary"> | |
+ <?php include roots_sidebar_path(); ?> | |
+ </aside><!-- /.sidebar --> | |
+ <?php endif; ?> | |
+ </div><!-- /.content --> | |
+ </div><!-- /.wrap --> | |
- <?php get_template_part('templates/footer'); ?> | |
+ <?php get_template_part('templates/footer'); ?> | |
- <?php wp_footer(); ?> | |
+ <?php wp_footer(); ?> | |
-</body> | |
-</html> | |
+ </body> | |
+ </html> | |
+ <?php | |
+ } | |
+?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment