Commit 0632ca2d authored by Jim Tittsler's avatar Jim Tittsler

Add link to original wiki page in footer

The "Content" word in the rights statement now links to the original
wiki page.

Closes #8
parent 37848691
......@@ -2,7 +2,7 @@
/* jshint node: true, multistr: true, trailing: true, esnext: true */
"use strict";
var VERSION = '0.10.0',
var VERSION = '0.10.1',
JQUERY = 'http://code.jquery.com/jquery-2.1.1.min.js',
FILEPATH = '/home/www/www';
......
......@@ -34,7 +34,8 @@ module.exports = {
// use silver CC-BY-* buttons instead of Free Cultural Works orange
var iconsrc = $('#footer-copyrightico img').attr('src')
.replace('/icons/', '/buttons/');
var footerlogo = '';
var footerlogo = '',
contentURL = `http://WikiEducator.org${outlineItem.wkpage}`;
if (opt['--logo']) {
footerlogo = `<img src="${opt['--logo']}" alt="institution logo" style="float: right;">`;
if (opt['--link']) {
......@@ -45,7 +46,7 @@ module.exports = {
$('body').append(`
<footer>
[oeru_advanced_footer content='${footerlogo}
Content is available under the
<a href="${contentURL}" name="original content in WikiEducator">Content</a> is available under the
<a rel="license" href="http://WikiEducator.org/WikiEducator:Copyrights" title="WikiEducator:Copyrights">Creative Commons Attribution Share Alike License</a>.
<a href="http://wikieducator.org/WikiEducator:Privacy_policy">Privacy Policy</a> | <a href="http://wikieducator.org${outlineItem.wkpage}?action=history">Authors</a><a href="http://creativecommons.org/licenses/by-sa/3.0/"><img class="cc" src="${iconsrc}" alt="Creative Commons Attribution Share-Alike License"></a>']
</footer>`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment