Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated course template for new course architecture

  • Loading branch information...
commit 1873f38e906ea59ef3d458dd7728fc68e2e67211 1 parent 0b56b71
@koopa authored
Showing with 54 additions and 73 deletions.
  1. +54 −73 courses/course-template.phps
View
127 courses/course-template.phps
@@ -1,74 +1,55 @@
-<?
+<?php
+$msg = !$loggedin ? $notloggedintext : '';
+return array(
+ 'nav' => array(
+ 'default' => array(
+ 'chapter1' => 'How IRC works',
+ 'chapter2' => 'IRC Security',
+ ),
+ 'exercises' => array(
+ 'exercise1' => 'Exercise 1',
+ ),
+ 'exam' => array(
+ 'exam1' => 'Exam',
+ )
+ ),
+ 'content' => array(
+ 'default' => array(
+ 'index' => <<<°
+ <h1>Internet Relay Chat (IRC)</h1>
+ <p>Under construction!</p>
+ ,
+ 'chapter1' => <<<°
+ <p class="center">How IRC works</p>
+ ,
+ 'chapter2' => <<<°
+ <p class="center">IRC Security</p>
+ ,
+ ),
+ 'exercises' => array(
+ 'exercise1' => <<<°
+ <h3>Exercise 1:</h3>
+ <p>Nothing yet</p>
+ ,
+ ),
+ 'exam' => array(
+ 'exam1' => <<<°
+ <h2>No Exam Time yet!</h2><br />
+ <form id="examnform" name="examnform" method="post" action="">
+ <div class="question">
+ <h3>Question 1</h3><br />
+ <p>Nothing yet</p>
+ <input type="radio" value="A" id="radio1" name="1" /><label for="radio1">bla</label><br />
+ <input type="radio" value="B" id="radio2" name="1" /><label for="radio2">bla</label><br />
+ <input type="radio" value="C" id="radio3" name="1" /><label for="radio3">bla</label><br />
+ </div>
+ </form>
+ ),
+ )
+);
-require("courseheader.php");
-
-?>
-
-<div id="coursenavigation">
- <ol class="tree">
- <li class="file"><a data-contentid="default" href="#/course/General/Introduction">Introduction</a></li>
- <li>
- <label for="theory">Theory</label><input type="checkbox" checked id="theory" />
- <ol>
- <li class="file"><a data-contentid="chapter1" href="#/course/General/Chapter+1">Chapter 1</a></li>
- *** add more chapter links here ***
- </ol>
- </li>
- <li>
- <label for="exercises">Exercises</label> <input type="checkbox" checked id="exercises" />
- <ol>
- <li class="file"><a data-contentid="exercise1" href="#/course/General/Exercise+1">Exercise 1</a></li>
- *** add more exercise links here ***
- </ol>
- </li>
- <li class="file"><a data-contentid="examn" href="#/course/General/Exam">Exam</a></li>
- </ol>
-</div>
-
-<div id="coursecontent">
-
- <div id="default">
- Default
- <p class="center"><a href="#/course/General/[nextChapterName]">>> Next Chapter >></a></p>
- </div>
-
- <div id="chapter1">
- Chapter 1
- </div>
-
- *** add more chapter content here ***
-
- <div id="exercise1">
- <h3>Exercise 1:</h3>
- <p>Exercise text</p>
- <div class="revealbutton" onClick="$('#answer1').show(); $('.revealbutton').hide(); ">Reveal Answer</div>
- <div class="answer" id="answer1">
- <p>Answer</p>
- </div>
- </div>
-
- *** add more exercise content here ***
-
- <div id="examn">
- <h2>Exam Time!</h2><br /><? if(!$loggedin) echo $notloggedintext; ?>
-
- <form id="examnform" name="examnform" method="post" action="">
-
- <div class="question">
- <h3>Question 1</h3><br />
- <p>Questiontext</p>
- <input type="radio" value="A" id="radio1" name="1" /><label for="radio1">Answer1</label><br />
- <input type="radio" value="B" id="radio2" name="1" /><label for="radio2">Answer2</label><br />
- <input type="radio" value="C" id="radio3" name="1" /><label for="radio3">Answer3</label><br />
- </div>
-
- *** add more questions here ***
-
- <div id="examnsubmit">
- <button>Submit</button>
- </div>
-
- </form>
-
- </div>
-</div>
Please sign in to comment.
Something went wrong with that request. Please try again.