Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added LTI-Launch-settings.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
An LTI-compatible launching plugin for Wordpress, updated to work with https://www.cengage.uk/

General Wordpress plugin installation instructions can be found here: http://codex.wordpress.org/Managing_Plugins#Automatic_Plugin_Installation

### Using shortcodes:

After installing the plugin, add content launching with the [lti-launch]
shortcode.


Some examples:

[lti-launch consumer_key=yourconsumerkey secret_key=yoursecretkey display=iframe configuration_url=http://launcher.saltbox.com/lms/configuration resource_link_id=testcourseplacement1]

[lti-launch consumer_key=yourconsumerkey secret_key=yoursecretkey display=newwindow action=link configuration_url=http://launcher.saltbox.com/lms/configuration resource_link_id=testcourseplacement1]

[lti-launch consumer_key=yourconsumerkey secret_key=yoursecretkey display=self action=button launch_url=http://launcher.saltbox.com/launch resource_link_id=testcourseplacement1]


Options:

- display

- newwindow: launches into a new window

- self: launches into the same window, replacing the current content

- iframe: launches into an iframe embedded in the content

- action

- button: shows a button to the user, which they click on to launch

- link: shows a link to the user, which they click on to launch

- configuration_url: the URL to the launch XML configuration

- launch_url: The launch URL of the LTI-compatible tool


Caution! Since shortcodes are visible to content viewers if their plugin is
disabled, OAuth secret keys will become visible if this plugin is disabled.

### Using TLI Content - Launch Settings:

After installing this plugin, you will notice a new "LTI content" menu item in the WP Admin dashboard. Here you will be able to create a custom post, witch in the end generates a shortcode that can be used on any page.

TLI Launch setting example::
![Screenshot](/LTI-Launch-settings.jpg)

Copyright (c) 2021 Saltbox Services.
Licensed under the GPLv3. See the LICENSE.md file for details.

51 changes: 0 additions & 51 deletions README.rst

This file was deleted.

31 changes: 31 additions & 0 deletions lti-consumer-form.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace Saltbox;
?>
<h1>LTI Content Options</h1>

<form method="POST">

<table class="form-table" role="presentation">
<tbody>
<tr>
<th scope="row"><label for="lti_instructor_user_role">Instructor user role's</label></th>
<td>
<select id="lti_instructor_user_role" name="lti_instructor_user_role[]" multiple style="height: 200px;">
<option value="-1"></option>
<?php
foreach ($editable_roles as $role => $details) {
echo '<option value="' . esc_attr($role) . '" ' . (in_array(esc_attr($role), $instructor_role) ? 'selected' : '') . ' >' . translate_user_role($details['name']) . '</option >';
}
?>
</select>
</td>
</tr>
</tbody>
</table>

<?php wp_nonce_field('sb_lti_options_page_action', '_wpnonce_sb_lti_options_page_action'); ?>
<p class="submit">
<input type="submit" value="Save" class="button button-primary button-large">
</p>
</form>
Loading