[OPEN-ILS-DEV] [PATCH 5/5] fix _FILE_ and add no-wrapper tag
Steve Wills
swills at beyond-print.com
Fri Jan 11 16:50:59 EST 2013
Heya,
I know you're busy on other stuff so I thought it might be easier to have the patch you can glance at. Sorry to be a pest, I'm just trying to keep some momentum going on the web development thing while I can.
This is a patch to the downloads.php file in the Evergreen_Website repository. Pretty simple, really. The idea is to enable this page to be called with a GET param i.e. http://www.evergreen-ils.org/downloads.php?n=t and the content will be delivered sans headers and sidebars. The concept is to allow this production page to be referenced from within our Drupal experiment while insuring the information remains accurate and relevant throughout the development process.
I targeted this page as one that is likely to be updated another time or two before the web team settles on a new update method.
thoughts?
---
downloads.php | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/downloads.php b/downloads.php
index f5aa998..ae4fcca 100644
--- a/downloads.php
+++ b/downloads.php
@@ -7,11 +7,14 @@
</head>
<body>
<div id="wrap">
-<?php include "/var/www/open-ils.org/incl/header.php" ;?>
-<?php include "/var/www/open-ils.org/incl/news_box.php" ;?>
-<?php include "/var/www/open-ils.org/incl/sidebar.php" ;?>
-<?php include "/var/www/open-ils.org/incl/downloads_sidebar.php" ;?>
+<?php if($_REQUEST['n'] != 't') { ?>
+<?php define('DOCUMENT_ROOT', dirname(realpath(__FILE__)).'/'); ?>
+<?php include DOCUMENT_ROOT . "/incl/header.php" ;?>
+<?php include DOCUMENT_ROOT . "/incl/news_box.php" ;?>
+<?php include DOCUMENT_ROOT . "/incl/sidebar.php" ;?>
+<?php include DOCUMENT_ROOT . "/incl/downloads_sidebar.php" ;?>
<!--end side-->
+<?php } ?>
<div id="pagebody">
<h1>Evergreen Downloads</h1>
<p class="content">Evergreen depends on the following technologies Perl, C, JavaScript, XML, XPath, XSLT, XMPP, <a href="opensrf.php">OpenSRF</a>, Apache, mod_perl, and PostgreSQL.</p>
@@ -134,7 +137,7 @@
<ul class="bullet"><li> For Evergreen commits, subscribe to <a href="http://list.georgialibraries.org/mailman/listinfo/open-ils-commits">open-ils-commits</a></li><li> For OpenSRF commits, subscribe to <a href="http://list.georgialibraries.org/mailman/listinfo/opensrf-commits">opensrf-commits</a></li></ul>
</div>
<!--end pagebody-->
-<?php include "/var/www/open-ils.org/incl/footer.php"; ?>
+<?php include DOCUMENT_ROOT . "/incl/footer.php"; ?>
</div>
<!--end wrapper-->
</body></html>
--
1.7.9.6 (Apple Git-31.1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20130111/f51991d0/attachment.htm>
More information about the Open-ils-dev
mailing list