@@ -37,11 +37,15 @@ After activating the plugin, visit Settings > Learnosity API Plugin and add your
3737#### Basic Inline Example
3838You can embed a set of items fairly simply by adding the following shortcode, with your own items:
3939
40- ``` [lrn-items items="Demo5, Demo6, Demo7"] ```
40+ ```
41+ [lrn-items items="Demo5, Demo6, Demo7"]
42+ ```
4143
4244You can also pass additional attributes to your [ lrn-items] shortcode, like so:
4345
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+ ```
4549
4650The 'items' attribute is the only required attribute, the others are defaulted to the following:
4751- activityid: (randomly generated)
@@ -56,7 +60,9 @@ The 'items' attribute is the only required attribute, the others are defaulted t
5660#### Basic Assessment Example
5761Using the ` lrn-assess ` shortcode lets you include an Assessment style activity.
5862
59- ``` [lrn-assess activitytemplateid="DemoActivityWordpress"] ```
63+ ```
64+ [lrn-assess activitytemplateid="DemoActivityWordpress"]
65+ ```
6066
6167Note you can use either the activitytemplateid to load from the Author site/Item Bank, or you can specify individual items.
6268
@@ -65,19 +71,21 @@ Note you can use either the activitytemplateid to load from the Author site/Item
6571
6672Setting ` autorender="false" ` will allow you to place the item elements wherever you please, e.g:
6773
68- ``` [lrn-items items="Demo5, Demo6, Demo7" autorender="false"] ```
69-
74+ ```
75+ [lrn-items items="Demo5, Demo6, Demo7" autorender="false"]
76+ ```
7077< Some content separating the embed >
71-
72- ``` [lrn-item ref="Demo5"] ```
73-
78+ ```
79+ [lrn-item ref="Demo5"]
80+ ```
7481< Another separator >
75-
76- ``` [lrn-item ref="Demo6"] ```
77-
82+ ```
83+ [lrn-item ref="Demo6"]
84+ ```
7885< More separation >
79-
80- ``` [lrn-item ref="Demo7"] ```
86+ ```
87+ [lrn-item ref="Demo7"]
88+ ```
8189
8290You can also manually embed a submit button this way:
8391
0 commit comments