|
28 | 28 | // Required to pass Moodle code check. Uses emulation stub. |
29 | 29 | require_login(); |
30 | 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/*'); |
| 31 | +$files = stack_question_library::get_file_list('../../samplequestions/stackdemo/*'); |
32 | 32 |
|
33 | 33 | $questions = []; |
34 | 34 | foreach ($files->children as $file) { |
35 | 35 | if (!$file->isdirectory) { |
36 | 36 | $question = new StdClass(); |
37 | | - $questiondata = file_get_contents('../../samplequestions/stacklibrary/' . $file->path); |
| 37 | + $questiondata = file_get_contents('../../samplequestions/' . $file->path); |
38 | 38 | $questionobject = simplexml_load_string($questiondata)->question; |
39 | 39 | $question->definition = $questiondata; |
40 | 40 | $question->name = (string) $questionobject->name->text; |
@@ -142,6 +142,9 @@ function toggleAnswer(button) { |
142 | 142 | STACK is also available for direct integration in Moodle, ILIAS and through LTI. |
143 | 143 | For more information visit <a href="https://stack-assessment.org/">the STACK community page</a>. |
144 | 144 | </p> |
| 145 | + <p> |
| 146 | + There is also a <a href="/stack.php">library of STACK questions</a> on this demo site. |
| 147 | + </p> |
145 | 148 | <hr> |
146 | 149 | </div> |
147 | 150 | <div> |
@@ -181,17 +184,19 @@ function toggleAnswer(button) { |
181 | 184 | </div> |
182 | 185 | </div> |
183 | 186 | </div> |
| 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') ?> |
184 | 194 | </div> |
185 | 195 | </div> |
186 | 196 | <br> |
187 | 197 | </div> |
188 | 198 | </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> |
| 199 | + |
195 | 200 | </body> |
196 | 201 | <script type="text/javascript"> |
197 | 202 | <?php |
|
0 commit comments