moved code up one level to eliminate the docs subdirectory
[acontent.git] / themes / default / include / footer.tmpl.php
1 <?php
2 /************************************************************************/
3 /* AContent                                                             */
4 /************************************************************************/
5 /* Copyright (c) 2010                                                   */
6 /* Inclusive Design Institute                                           */
7 /*                                                                      */
8 /* This program is free software. You can redistribute it and/or        */
9 /* modify it under the terms of the GNU General Public License          */
10 /* as published by the Free Software Foundation.                        */
11 /************************************************************************/
12
13 if (!defined('TR_INCLUDE_PATH')) { exit; }
14
15 global $languageManager, $_my_uri;
16
17 if ($this->course_id > 0) { ?>
18         <div style="clear:both;text-align:right;" id="gototop">         
19           <br />
20           <span style="font-size:smaller;padding-right:3px;">
21             <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content" title="<?php echo _AT('goto_top'); ?> Alt-c" ><?php echo _AT('goto_top'); ?>
22               <img src="<?php echo $this->base_path; ?>themes/<?php echo $this->theme; ?>/images/goto_top.gif" alt="<?php echo _AT('goto_top'); ?> Alt-c" border="0"/> 
23                         </a>
24           </span>
25         </div>  
26 <?php 
27 } // end of goto top
28 ?>
29       </div> <!-- end of contentcolumn -->
30     </div> <!-- end of contentwrapper -->
31         
32         <div id="footer">
33 <?php 
34
35 if($languageManager->getNumEnabledLanguages() > 1) {
36 ?>
37       <div align="center" id="lang" style="clear: left"><br />
38 <?php
39         if ($languageManager->getNumEnabledLanguages() > 5) {
40                 echo '        <form method="get" action="'.htmlspecialchars($_my_uri, ENT_QUOTES).'">';
41                 echo '          <label for="lang" style="display:none;">'._AT('translate_to').' </label>';
42                 $languageManager->printDropdown($_SESSION['lang'], 'lang', 'lang');
43                 echo '          <input type="submit" name="submit_language" class="button" value="'._AT('translate').'" />';
44                 echo '        </form>';
45         } else {
46                 echo '        <small><label for="lang">'._AT('translate_to').' </label></small>';
47                 $languageManager->printList($_SESSION['lang'], 'lang', 'lang', htmlspecialchars($_my_uri));
48         }
49 ?>
50         <br/><br/>
51       </div>
52 <?php } // end of displaying language selection ?>
53
54       <div align="center" style="clear:both;margin-left:auto; width:30em;margin-right:auto;">
55         <a href="<?php echo TR_BASE_HREF; ?>documentation/web_service_api.php" title="<?php echo _AT("web_service_api"); ?>" target="_new"><?php echo _AT('web_service_api'); ?></a>
56           &nbsp;&nbsp;&nbsp;&nbsp;
57         <a href="<?php echo TR_BASE_HREF; ?>documentation/oauth_server_api.php" title="<?php echo _AT("oauth_server_api"); ?>" target="_new"><?php echo _AT('oauth_server_api'); ?></a>
58         <br /><br />
59       </div>
60                 <br style="clear:both;" />
61       <div style="margin-left:auto; margin-right:auto; width:20em;">
62         <small><?php if (isset($this->course_copyright)) echo htmlentities_utf8($this->course_copyright, ENT_QUOTES, 'UTF-8').'<br />'; echo _AT("copyright"); ?></small><br />
63   <!-- guide -->
64
65     <div>
66     <a href="#" onclick="trans.utility.poptastic('<?php echo TR_GUIDES_PATH."index.php?p=home/index.php"; ?>'); return false;" target="_new"><em><?php echo _AT('general_help'); ?></em></a>&nbsp;
67   </div>
68
69
70       </div>
71                 
72     </div>
73   </div> <!--  end center-content div -->
74
75   <div class="bottom"></div>
76   <!--  bottom for liquid-round theme -->
77   </div>
78       <div id="logo">
79       <a href="http://www.atutor.ca/acontent"><img  src="<?php echo $this->base_path; ?>/images/AC_Logo1_sm.png"  alt="AContent  Logo" style="border:none;" /></a>
80     </div>
81 </body>
82 </html>
83
84 <?php
85 // Timer, calculate how much time to load the page
86 // starttime is in include/header.inc.php
87 $mtime = microtime(); 
88 $mtime = explode(" ", $mtime);
89 $mtime = $mtime[1] + $mtime[0]; 
90 $endtime = $mtime; 
91 $totaltime = ($endtime - $starttime); 
92
93 if (defined('TR_DEVEL') && TR_DEVEL) 
94 {
95         debug(TABLE_PREFIX, 'TABLE_PREFIX');
96         debug(DB_NAME, 'DB_NAME');
97         debug($totaltime. ' seconds.', "TIME USED"); 
98         debug($_SESSION);
99 }
100 // Timer Ends
101
102 ?>