function reveal_template($echo = true, $template_path_type = '') { _deprecated_function('reveal_template', '2.0', 'c2c_reveal_template'); return c2c_reveal_template($echo, $template_path_type); }
function test_page_specific_template_is_returned_when_set() { $template = 'single.php'; // Something non-standard but the template actually exists. $post_id = $this->factory->post->create(array('post_type' => 'page')); add_post_meta($post_id, '_wp_page_template', $template, true); $this->go_to(get_permalink($post_id)); $templates = get_page_template(); $this->assertEquals($template, get_page_template_slug($post_id)); $this->assertEquals($template, c2c_reveal_template(false, 'filename', array('return' => true))); }
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> <script src="/scripts/hamburger.js"></script> <script src="/scripts/responsive-nav.js"></script> <?php if ($pagename == 'registration-page') { ?> <script type="text/javascript" src="/scripts/bootstrap-datepicker.js"></script> <script type="text/javascript" src="/scripts/jquery.cookie.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> <?php get_template_part('reg-scripts'); ?> <?php } ?> </head> <body> <div id="content"> <?php c2c_reveal_template(); ?> <?php get_template_part('nav'); ?> <a href="/"><img id="pp-logo" src="/images/pp-logo-499x142.png"/></a>