|
27 | 27 | require_once(__DIR__ . '/../../stack/questionlibrary.class.php'); |
28 | 28 | // Required to pass Moodle code check. Uses emulation stub. |
29 | 29 | require_login(); |
30 | | -// It's cleaner to just show the contents of the question library directory. |
31 | | -$files = stack_question_library::get_file_list('../../samplequestions/stackdemo/stacklibrary/*'); |
| 30 | +$files = stack_question_library::get_file_list('../../samplequestions/stackdemo/*'); |
32 | 31 |
|
33 | 32 | $questions = []; |
34 | 33 | foreach ($files->children as $file) { |
35 | 34 | if (!$file->isdirectory) { |
36 | 35 | $question = new StdClass(); |
37 | | - $questiondata = file_get_contents('../../samplequestions/stacklibrary/' . $file->path); |
| 36 | + $questiondata = file_get_contents('../../samplequestions/' . $file->path); |
38 | 37 | $questionobject = simplexml_load_string($questiondata)->question; |
39 | 38 | $question->definition = $questiondata; |
40 | 39 | $question->name = (string) $questionobject->name->text; |
@@ -142,6 +141,9 @@ function toggleAnswer(button) { |
142 | 141 | STACK is also available for direct integration in Moodle, ILIAS and through LTI. |
143 | 142 | For more information visit <a href="https://stack-assessment.org/">the STACK community page</a>. |
144 | 143 | </p> |
| 144 | + <p> |
| 145 | + There is also a <a href="/stack.php">library of STACK questions</a> on this demo site. |
| 146 | + </p> |
145 | 147 | <hr> |
146 | 148 | </div> |
147 | 149 | <div> |
@@ -181,17 +183,21 @@ function toggleAnswer(button) { |
181 | 183 | </div> |
182 | 184 | </div> |
183 | 185 | </div> |
| 186 | + <div class="col-lg-9"> |
| 187 | + <hr /> |
| 188 | + <p style="font-size: 0.875em;color:gray;"> |
| 189 | + The STACK source code, including this API, is Licensed under the GNU General Public, License Version 3. |
| 190 | + Documentation, sample questions and materials, are licensed under Creative Commons Attribution-ShareAlike 4.0 International. |
| 191 | + See the <a href="https://docs.stack-assessment.org/en/About/License/">STACK licence</a> page for full details. |
| 192 | + </p> |
| 193 | + <? readfile(__DIR__ . '/stackfooter.html') ?> |
| 194 | + </div> |
184 | 195 | </div> |
185 | 196 | </div> |
186 | 197 | <br> |
187 | 198 | </div> |
188 | 199 | </div> |
189 | | - <hr /> |
190 | | - <p><span style="font-size: 0.875em;color:gray;"> |
191 | | - The STACK source code, including this API, is Licensed under the GNU General Public, License Version 3. |
192 | | - Documentation, sample questions and materials, are licensed under Creative Commons Attribution-ShareAlike 4.0 International. |
193 | | - See the <a href="https://docs.stack-assessment.org/en/About/License/">STACK licence</a> page for full details. |
194 | | - </span></p> |
| 200 | + |
195 | 201 | </body> |
196 | 202 | <script type="text/javascript"> |
197 | 203 | <?php |
|
0 commit comments