remove old readme
[atutor.git] / docs / themes / greenmin / 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 \r
15 // print the AccessForAll alternatives tool bar\r
16 // see /content.php for details of the alt_infos() array\r
17 // images for the toolbar can be customized by adding images of the same name to a theme's images directory\r
18 ?>\r
19 \r
20 <div id="alternatives_shortcuts">\r
21 <?php \r
22         foreach ($this->alt_infos as $alt_info){\r
23                 echo '<a href="'.$_SERVER['PHP_SELF'].'?cid='.$this->cid.(($_GET['alternative'] == $alt_info['0']) ? '' : htmlentities_utf8(SEP).'alternative='.$alt_info[0]).'">\r
24                         <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
25         } \r
26 ?>\r
27 </div>\r
28 <div id="alternatives_shortcuts">\r
29 <?php \r
30         foreach ($this->alt_infos as $alt_info){\r
31                 echo '<a href="'.$_SERVER['PHP_SELF'].'?cid='.$cid.(($_GET['alternative'] == $alt_info['0']) ? '' : htmlentities_utf8(SEP).'alternative='.$alt_info[0]).'">\r
32                         <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
33         } \r
34 ?>\r
35 </div>\r
36  \r
37 <?php if ($this->shortcuts): ?>\r
38 <fieldset id="shortcuts"><legend><?php echo _AT('shortcuts'); ?></legend>\r
39         <ul>\r
40                 <?php foreach ($this->shortcuts as $link): ?>\r
41                         <li><a href="<?php echo $link['url']; ?>"><?php echo $link['title']; ?></a></li>\r
42                 <?php endforeach; ?>\r
43         </ul>\r
44 </fieldset>\r
45 <?php endif; ?>\r
46 \r
47 <?php \r
48 if ($_SESSION["prefs"]["PREF_SHOW_CONTENTS"] && $this->content_table <> "") \r
49         echo $this->content_table;\r
50 ?>\r
51 \r
52 <div id="content-text">\r
53         <?php echo $this->body; ?>\r
54 </div>\r
55 <?php if (!empty($this->test_ids)): ?>\r
56 <div id="content-test" class="input-form">\r
57         <ol>\r
58                 <strong><?php echo _AT('tests') . ':' ; ?></strong>\r
59                 <li class="top-tool"><?php echo $this->test_message; ?></li>\r
60                 <ul class="tools">\r
61                 <?php \r
62                         foreach ($this->test_ids as $id => $test_obj){\r
63                                 echo '<li><a href="'.url_rewrite('mods/_standard/tests/test_intro.php?tid='.$test_obj['test_id'], AT_PRETTY_URL_IS_HEADER).'">'.\r
64                                         AT_print($test_obj['title'], 'tests.title').'</a><br /></li>';\r
65                         }\r
66                 ?>\r
67                 </ul>\r
68         </li></ol>\r
69 </div>\r
70 <?php endif; ?>\r
71 \r
72 <?php\r
73 \r
74 if (!empty($this->forum_ids)): ?>\r
75 <div id="content-forum" class="input-form">\r
76     <ol>\r
77         <strong><?php echo _AT('forums') . ':' ; ?></strong>\r
78         <li class="top-tool"><?php echo $this->forum_message; ?></li>\r
79             <ul class="tools">\r
80                 <?php\r
81                 foreach ($this->forum_ids as $id => $forum_obj) {\r
82                     echo '<li><a href="'.url_rewrite('mods/_standard/forums/forum/index.php?fid='.$forum_obj['forum_id'], AT_PRETTY_URL_IS_HEADER).'">'.\r
83                         AT_print($forum_obj['title'], 'forums.title').'</a><br /></li>';\r
84                 }\r
85                 ?>\r
86             </ul>\r
87         </li>\r
88     </ol>\r
89 </div>\r
90 <?php endif; ?>\r
91 <div id="content-info">\r
92         <?php echo $this->content_info; ?>\r
93 </div>