Skip to content
Snippets Groups Projects
Commit 1971e667 authored by Brett Bieber's avatar Brett Bieber
Browse files

Allow configurable template path

parent c5e60c1c
Branches master
No related tags found
No related merge requests found
...@@ -20,6 +20,11 @@ if (isset($_GET['uri']) ...@@ -20,6 +20,11 @@ if (isset($_GET['uri'])
exit(); exit();
} }
} }
if (!isset($template_path)) {
$template_path = $_SERVER['DOCUMENT_ROOT'];
}
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="ie iem7"><![endif]--> <!--[if IEMobile 7 ]><html class="ie iem7"><![endif]-->
...@@ -29,7 +34,7 @@ if (isset($_GET['uri']) ...@@ -29,7 +34,7 @@ if (isset($_GET['uri'])
<!--[if (gte IE 9)|(gt IEMobile 7) ]><html class="ie" lang="en"><![endif]--> <!--[if (gte IE 9)|(gt IEMobile 7) ]><html class="ie" lang="en"><![endif]-->
<!--[if !(IEMobile) | !(IE)]><!--><html lang="en"><!-- InstanceBegin template="/Templates/php.fixed.dwt.php" codeOutsideHTMLIsLocked="false" --><!--<![endif]--> <!--[if !(IEMobile) | !(IE)]><!--><html lang="en"><!-- InstanceBegin template="/Templates/php.fixed.dwt.php" codeOutsideHTMLIsLocked="false" --><!--<![endif]-->
<head> <head>
<?php virtual("/wdn/templates_3.1/includes/metanfavico.html"); ?> <?php include($template_path . "/wdn/templates_3.1/includes/metanfavico.html"); ?>
<!-- <!--
Membership and regular participation in the UNL Web Developer Network Membership and regular participation in the UNL Web Developer Network
is required to use the UNL templates. Visit the WDN site at is required to use the UNL templates. Visit the WDN site at
...@@ -44,7 +49,7 @@ if (isset($_GET['uri']) ...@@ -44,7 +49,7 @@ if (isset($_GET['uri'])
$Id: php.fixed.dwt.php | ebd6eef8f48e609f4e2fe9c1d6432991649298e7 | Tue Mar 6 14:38:44 2012 -0600 | Brett Bieber $ $Id: php.fixed.dwt.php | ebd6eef8f48e609f4e2fe9c1d6432991649298e7 | Tue Mar 6 14:38:44 2012 -0600 | Brett Bieber $
--> -->
<?php virtual("/wdn/templates_3.1/includes/scriptsandstyles.html"); ?> <?php include($template_path . "/wdn/templates_3.1/includes/scriptsandstyles.html"); ?>
<!-- InstanceBeginEditable name="doctitle" --> <!-- InstanceBeginEditable name="doctitle" -->
<title>Batch Validator | University of Nebraska&ndash;Lincoln</title> <title>Batch Validator | University of Nebraska&ndash;Lincoln</title>
<!-- InstanceEndEditable --> <!-- InstanceEndEditable -->
...@@ -67,8 +72,8 @@ if (isset($_GET['uri']) ...@@ -67,8 +72,8 @@ if (isset($_GET['uri'])
<a id="logo" href="http://www.unl.edu/" title="UNL website">UNL</a> <a id="logo" href="http://www.unl.edu/" title="UNL website">UNL</a>
<span id="wdn_institution_title">University of Nebraska&ndash;Lincoln</span> <span id="wdn_institution_title">University of Nebraska&ndash;Lincoln</span>
<span id="wdn_site_title"><!-- InstanceBeginEditable name="titlegraphic" -->The Title of My Site<!-- InstanceEndEditable --></span> <span id="wdn_site_title"><!-- InstanceBeginEditable name="titlegraphic" -->The Title of My Site<!-- InstanceEndEditable --></span>
<?php virtual("/wdn/templates_3.1/includes/idm.html"); ?> <?php include($template_path . "/wdn/templates_3.1/includes/idm.html"); ?>
<?php virtual("/wdn/templates_3.1/includes/wdnTools.html"); ?> <?php include($template_path . "/wdn/templates_3.1/includes/wdnTools.html"); ?>
</header> </header>
<div id="wdn_navigation_bar"> <div id="wdn_navigation_bar">
<nav id="breadcrumbs"> <nav id="breadcrumbs">
...@@ -196,14 +201,14 @@ if (isset($_GET['uri']) ...@@ -196,14 +201,14 @@ if (isset($_GET['uri'])
</div> </div>
<!-- InstanceEndEditable --> <!-- InstanceEndEditable -->
<div class="clear"></div> <div class="clear"></div>
<?php virtual("/wdn/templates_3.1/includes/noscript.html"); ?> <?php include($template_path . "/wdn/templates_3.1/includes/noscript.html"); ?>
<!--THIS IS THE END OF THE MAIN CONTENT AREA.--> <!--THIS IS THE END OF THE MAIN CONTENT AREA.-->
</div> </div>
</div> </div>
<footer id="footer"> <footer id="footer">
<div id="footer_floater"></div> <div id="footer_floater"></div>
<div class="footer_col" id="wdn_footer_feedback"> <div class="footer_col" id="wdn_footer_feedback">
<?php virtual("/wdn/templates_3.1/includes/feedback.html"); ?> <?php include($template_path . "/wdn/templates_3.1/includes/feedback.html"); ?>
</div> </div>
<div class="footer_col" id="wdn_footer_related"> <div class="footer_col" id="wdn_footer_related">
<!-- InstanceBeginEditable name="leftcollinks" --> <!-- InstanceBeginEditable name="leftcollinks" -->
...@@ -220,7 +225,7 @@ if (isset($_GET['uri']) ...@@ -220,7 +225,7 @@ if (isset($_GET['uri'])
Lincoln, NE 68583-0218</p> Lincoln, NE 68583-0218</p>
<!-- InstanceEndEditable --></div> <!-- InstanceEndEditable --></div>
<div class="footer_col" id="wdn_footer_share"> <div class="footer_col" id="wdn_footer_share">
<?php virtual("/wdn/templates_3.1/includes/socialmediashare.html"); ?> <?php include($template_path . "/wdn/templates_3.1/includes/socialmediashare.html"); ?>
</div> </div>
<!-- InstanceBeginEditable name="optionalfooter" --> <!-- InstanceBeginEditable name="optionalfooter" -->
<!-- InstanceEndEditable --> <!-- InstanceEndEditable -->
...@@ -229,9 +234,9 @@ if (isset($_GET['uri']) ...@@ -229,9 +234,9 @@ if (isset($_GET['uri'])
<!-- InstanceBeginEditable name="footercontent" --> <!-- InstanceBeginEditable name="footercontent" -->
<?php file_get_contents('http://wdn.unl.edu/sharedcode/footer.html'); ?> <?php file_get_contents('http://wdn.unl.edu/sharedcode/footer.html'); ?>
<!-- InstanceEndEditable --> <!-- InstanceEndEditable -->
<?php virtual("/wdn/templates_3.1/includes/wdn.html"); ?> <?php include($template_path . "/wdn/templates_3.1/includes/wdn.html"); ?>
</div> </div>
<?php virtual("/wdn/templates_3.1/includes/logos.html"); ?> <?php include($template_path . "/wdn/templates_3.1/includes/logos.html"); ?>
</div> </div>
</footer> </footer>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment