@@ -37,11 +37,15 @@ After activating the plugin, visit Settings > Learnosity API Plugin and add your
37
37
#### Basic Inline Example
38
38
You can embed a set of items fairly simply by adding the following shortcode, with your own items:
39
39
40
- ``` [lrn-items items="Demo5, Demo6, Demo7"] ```
40
+ ```
41
+ [lrn-items items="Demo5, Demo6, Demo7"]
42
+ ```
41
43
42
44
You can also pass additional attributes to your [ lrn-items] shortcode, like so:
43
45
44
- ``` [lrn-items items="Demo5, Demo6, Demo7" name="My Awesome Activity" sessionid="1234" activityid="activity_123"] ```
46
+ ```
47
+ [lrn-items items="Demo5, Demo6, Demo7" name="My Awesome Activity" sessionid="1234" activityid="activity_123"]
48
+ ```
45
49
46
50
The 'items' attribute is the only required attribute, the others are defaulted to the following:
47
51
- activityid: (randomly generated)
@@ -56,7 +60,9 @@ The 'items' attribute is the only required attribute, the others are defaulted t
56
60
#### Basic Assessment Example
57
61
Using the ` lrn-assess ` shortcode lets you include an Assessment style activity.
58
62
59
- ``` [lrn-assess activitytemplateid="DemoActivityWordpress"] ```
63
+ ```
64
+ [lrn-assess activitytemplateid="DemoActivityWordpress"]
65
+ ```
60
66
61
67
Note you can use either the activitytemplateid to load from the Author site/Item Bank, or you can specify individual items.
62
68
@@ -65,19 +71,21 @@ Note you can use either the activitytemplateid to load from the Author site/Item
65
71
66
72
Setting ` autorender="false" ` will allow you to place the item elements wherever you please, e.g:
67
73
68
- ``` [lrn-items items="Demo5, Demo6, Demo7" autorender="false"] ```
69
-
74
+ ```
75
+ [lrn-items items="Demo5, Demo6, Demo7" autorender="false"]
76
+ ```
70
77
< Some content separating the embed >
71
-
72
- ``` [lrn-item ref="Demo5"] ```
73
-
78
+ ```
79
+ [lrn-item ref="Demo5"]
80
+ ```
74
81
< Another separator >
75
-
76
- ``` [lrn-item ref="Demo6"] ```
77
-
82
+ ```
83
+ [lrn-item ref="Demo6"]
84
+ ```
78
85
< More separation >
79
-
80
- ``` [lrn-item ref="Demo7"] ```
86
+ ```
87
+ [lrn-item ref="Demo7"]
88
+ ```
81
89
82
90
You can also manually embed a submit button this way:
83
91
0 commit comments