remove old readme
[atutor.git] / docs / themes / idi / content.tmpl.php
1 <?php\r
2 /************************************************************************/\r
3 /* ATutor                                                                                                                               */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2002-2010                                              */\r
6 /* Inclusive Design Institute                                           */\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 <div id="alternatives_shortcuts">\r
15 <?php \r
16         foreach ($this->alt_infos as $alt_info){\r
17                 echo '<a href="'.$_SERVER['PHP_SELF'].'?cid='.$this->cid.(($_GET['alternative'] == $alt_info['0']) ? '' : htmlentities_utf8(SEP).'alternative='.$alt_info[0]).'">\r
18                         <img src="'.AT_BASE_HREF.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[3] : $alt_info[4]).'" alt="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" title="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" border="0" class="img1616"/></a>';\r
19         } \r
20 ?>\r
21 </div>\r
22 \r
23 <?php if ($this->shortcuts): ?>\r
24 <fieldset id="shortcuts"><legend><?php echo _AT('shortcuts'); ?></legend>\r
25         <ul>\r
26                 <?php foreach ($this->shortcuts as $link): ?>\r
27                         <li><a href="<?php echo $link['url']; ?>"><?php echo $link['title']; ?></a></li>\r
28                 <?php endforeach; ?>\r
29         </ul>\r
30 </fieldset>\r
31 <?php endif; ?>\r
32 \r
33 <div id="content-text">\r
34         <?php echo $this->body; ?>\r
35 </div>\r
36 \r
37 <?php if (!empty($this->test_ids)): ?>\r
38 <div id="content-test" class="input-form">\r
39         <ol>\r
40                 <strong><?php echo _AT('tests') . ':' ; ?></strong>\r
41                 <li class="top-tool"><?php echo $this->test_message; ?></li>\r
42                 <ul class="tools">\r
43                 <?php \r
44                         foreach ($this->test_ids as $id => $test_obj){\r
45                                 echo '<li><a href="'.url_rewrite('mods/_standard/tests/test_intro.php?tid='.$test_obj['test_id'], AT_PRETTY_URL_IS_HEADER).'">'.\r
46                                         AT_print($test_obj['title'], 'tests.title').'</a><br /></li>';\r
47                         }\r
48                 ?>\r
49                 </ul>\r
50         </li></ol>\r
51 </div>\r
52 <?php endif; ?>\r
53 \r
54 <?php\r
55 \r
56 if (!empty($this->forum_ids)): ?>\r
57 <div id="content-forum" class="input-form">\r
58     <ol>\r
59         <strong><?php echo _AT('forums') . ':' ; ?></strong>\r
60         <li class="top-tool"><?php echo $this->forum_message; ?></li>\r
61             <ul class="tools">\r
62                 <?php\r
63                 foreach ($this->forum_ids as $id => $forum_obj) {\r
64                     echo '<li><a href="'.url_rewrite('mods/_standard/forums/forum/index.php?fid='.$forum_obj['forum_id'], AT_PRETTY_URL_IS_HEADER).'">'.\r
65                         AT_print($forum_obj['title'], 'forums.title').'</a><br /></li>';\r
66                 }\r
67                 ?>\r
68             </ul>\r
69         </li>\r
70     </ol>\r
71 </div>\r
72 <?php endif; ?>\r
73 \r
74 \r
75 \r
76 <div id="content-info">\r
77         <?php echo $this->content_info; ?>\r
78 </div>