made a copy
[atutor.git] / themes / default / content.tmpl.php
1 <?php\r
2 /****************************************************************/\r
3 /* ATutor                                                                                                               */\r
4 /****************************************************************/\r
5 /* Copyright (c) 2002-2009                                                                              */\r
6 /* Adaptive Technology Resource Centre / University of Toronto  */\r
7 /* http://atutor.ca                                                                                             */\r
8 /*                                                              */\r
9 /* This program is free software. You can redistribute it and/or*/\r
10 /* modify it under the terms of the GNU General Public License  */\r
11 /* as published by the Free Software Foundation.                                */\r
12 /****************************************************************/\r
13 if (!defined('AT_INCLUDE_PATH')) { exit; } ?>\r
14 \r
15 <?php if ($this->shortcuts): ?>\r
16 <fieldset id="shortcuts"><legend><?php echo _AT('shortcuts'); ?></legend>\r
17         <ul>\r
18                 <?php foreach ($this->shortcuts as $link): ?>\r
19                         <li><a href="<?php echo $link['url']; ?>"><?php echo $link['title']; ?></a></li>\r
20                 <?php endforeach; ?>\r
21         </ul>\r
22 </fieldset>\r
23 <?php endif; ?>\r
24 \r
25 <?php \r
26 if ($_SESSION["prefs"]["PREF_SHOW_CONTENTS"] && $this->content_table <> "") \r
27         echo $this->content_table;\r
28 ?>\r
29 \r
30 <div id="content-text">\r
31         <?php echo $this->body; ?>\r
32 </div>\r
33 \r
34 <?php if (!empty($this->test_ids)): ?>\r
35 <div id="content-test" class="input-form">\r
36         <ol>\r
37                 <strong><?php echo _AT('tests') . ':' ; ?></strong>\r
38                 <li class="top-tool"><?php echo $this->test_message; ?></li>\r
39                 <ul class="tools">\r
40                 <?php \r
41                         foreach ($this->test_ids as $id => $test_obj){\r
42                                 echo '<li><a href="'.url_rewrite('tools/test_intro.php?tid='.$test_obj['test_id'], AT_PRETTY_URL_IS_HEADER).'">'.\r
43                                         AT_print($test_obj['title'], 'tests.title').'</a><br /></li>';\r
44                         }\r
45                 ?>\r
46                 </ul>\r
47         </li></ol>\r
48 </div>\r
49 <?php endif; ?>\r
50 \r
51 <?php\r
52 /*TODO***************BOLOGNA***************REMOVE ME**********/\r
53 if (!empty($this->forum_ids)): ?>\r
54 <div id="content-test" class="input-form">\r
55     <ol>\r
56         <strong><?php echo _AT('forums') . ':' ; ?></strong>\r
57         <li class="top-tool"><?php echo $this->forum_message; ?></li>\r
58             <ul class="tools">\r
59                 <?php\r
60                 foreach ($this->forum_ids as $id => $forum_obj) {\r
61                     echo '<li><a href="'.url_rewrite('forum/index.php?fid='.$forum_obj['forum_id'], AT_PRETTY_URL_IS_HEADER).'">'.\r
62                         AT_print($forum_obj['title'], 'forums.title').'</a><br /></li>';\r
63                 }\r
64                 ?>\r
65             </ul>\r
66         </li>\r
67     </ol>\r
68 </div>\r
69 <?php endif; ?>\r
70 \r
71 \r
72 <div id="content-info">\r
73         <?php echo $this->content_info; ?>\r
74 \r
75 </div>