diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2008-03-16 20:31:59 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2008-03-16 20:31:59 +0000 |
| commit | 32482b90446a7974e4aa1a392a79f1c8e18ed200 (patch) | |
| tree | e619d2d5b7d6124303786c59037f69f5a5a8ccbd | |
| parent | d755cbc9d0974fd6554236e5a7a772df6ad71cb0 (diff) | |
Added download page and header link
| -rw-r--r-- | download.php | 24 | ||||
| -rw-r--r-- | templates/about.tpl | 7 | ||||
| -rw-r--r-- | templates/download.tpl | 76 | ||||
| -rw-r--r-- | templates/header.tpl | 11 |
4 files changed, 109 insertions, 9 deletions
diff --git a/download.php b/download.php new file mode 100644 index 0000000..9a2d8a8 --- /dev/null +++ b/download.php @@ -0,0 +1,24 @@ +<?php + +/** + * Copyright (c) 2007 Nathan Kinkade + * + * This code is offered under an MIT (X11) license. For more information + * about the terms of this license see the file LICENSE included with this + * software or visit: http://www.opensource.org/licenses/mit-license.php + */ + +# include the main site config where various global variables +# and libraries are included +include("config.php"); + +# grab the various parts +include("header.php"); +include("sidebar_left.php"); +include("sidebar_right.php"); +include("footer.php"); + +# display the page +$smarty->display("download.tpl"); + +?> diff --git a/templates/about.tpl b/templates/about.tpl index 0e14bc0..ddda33b 100644 --- a/templates/about.tpl +++ b/templates/about.tpl @@ -8,8 +8,8 @@ <div class='standardMargins'> First, the software that runs this site is free. It is released under an - <a href="http://www.opensource.org/licenses/mit-license.php>MIT (X11)</a> - license. You can <a href="/download/">download</a> the source code and the + <a href="http://www.opensource.org/licenses/mit-license.php">MIT (X11)</a> + license. You can <a href="download.php">download</a> the source code and the database, alter it, improve it or otherwise do whatever you like with it. If you'd like to help me improve nutridb.org, then feel free to send me patches or other improvements. If anyone is really interested, let me know and we can talk about @@ -40,7 +40,7 @@ <div class='standardMargins'> When I wrote the original version of the utility I wasn't then aware of many other free web-based systems that were doing something similar. Now I see that there are - a number of <a href='{$config->_rootUri}/resources.php#nutritionsites'>other sites</a> that have a very + a number of <a href='resources.php#nutritionsites'>other sites</a> that have a very complete set of tools. However, in my opinion, virtually all of them have a major flaw: they try to be everything to everyone, and thereby end up being overly complicated and convoluted. An old axiom comes to mind: "You can please some of the @@ -105,4 +105,3 @@ </div> {$footer} - diff --git a/templates/download.tpl b/templates/download.tpl new file mode 100644 index 0000000..d0a5c18 --- /dev/null +++ b/templates/download.tpl @@ -0,0 +1,76 @@ +{$header} +<div id='columnContainer'> + + <div id='middleColumn'> + <div id='middleData' style='text-align: justify;'> + + <h2 style='text-align: center;'>DOWNLOAD</h2> + + <div class='standardMargins'> + The software that runs this site is free. It is released under an + <a href='http://www.opensource.org/licenses/mit-license.php'>MIT (X11)</a> license. + You can <a href='download.php'>download</a> the source code and the database, alter + it, improve it or otherwise do whatever you like with it. If you'd like to help me + improve nutridb.org, then feel free to send me patches or other improvements. If + anyone is really interested, let me know and we can talk about giving you Subversion + commit privileges. I'd like for nutridb.org to become a collaborative, community + effort. This way the results of anyone's work will go to a central place where + everyone can benefit. Feel free to contact me at nkinkade AT gmail DOT com. + </div> + + <div class='standardMargins'> + The best way to get the software is via Subversion (SVN). You can + <a href="http://svn.nutridb.org/">browse the repository</a> online, or make + checkouts: + </div> + + <div style='margin-left: 2em;'> + <div> + The whole repository: <code>svn checkout http://svn.nutridb.org/svnroot/</code> + </div> + <div> + The production branch (that runs this site): <code>svn checkout + http://svn.nutridb.org/svnroot/branches/production/</code> + </div> + <div> + The development branch: <code>svn checkout + http://svn.nutridb.org/svnroot/trunk/</code> + </div> + </div> + + <div class='standardMargins'> + Tar-gzipped version are available as well: + </div> + + <div style='margin-left: 2em;'> + <div> + Production: <a href="nutridb-production.tar.gz">nutridb-production.tar.gz</a> + </div> + <div> + Development: <a href="nutridb-development.tar.gz">nutridb-development.tar.gz</a> + </div> + </div> + + <div class='standardMargins'> + The MySQL database is included inside the tar-gzipped versions, but can also be + downloaded individually: <a href="nutridb-database.sql.gz">nutridb-database.sql.gz</a> + </div> + + + </div> + </div> + + <div id='leftColumn'> + <div id='leftData'> + {$sidebar_left} + </div> + </div> + + <div id='rightColumn'> + <div id='rightData'> + {$sidebar_right} + </div> + </div> + +</div> +{$footer} diff --git a/templates/header.tpl b/templates/header.tpl index 2f08cdd..959bed6 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -39,11 +39,12 @@ <div id='headerLinkBar'> <div id='headerLinks'> - <a href='{$config->_rootUri}/' title='Home/Search Page'>Search</a> | - <a href='{$config->_rootUri}/about.php' title='About nutridb.com'>About</a> | - <a href='{$config->_rootUri}/guide.php' title='A brief guide'>Guide</a> | - <a href='{$config->_rootUri}/resources.php' title='Other useful information'>Resources</a> | - <a href='faq.php' title='FAQ'>FAQ</a> + <a href='{$config->_rootUri}' title='Home/Search Page'>Search</a> | + <a href='about.php' title='About nutridb.com'>About</a> | + <a href='guide.php' title='A brief guide'>Guide</a> | + <a href='resources.php' title='Other useful information'>Resources</a> | + <a href='faq.php' title='FAQ'>FAQ</a> | + <a href='download.php' title='Download'>Download</a> </div> <div id='systemMsgs'>{$systemMsg}</div> </div> |
