});
}
+ // Replace variables in text links
+ this.replaceVariableInTextLinks();
+
links.prepend('<div class="nonlinkarea"></div>');
this.fluidbook.resize.resizeLinks();
this.resize();
},
+
+ replaceVariableInTextLinks: function () {
+ $('.textLink').each(function () {
+
+ var t = $(this).text();
+ while (res = t.match(/\$_GET\[['"]?(\w+)['"]?\]/)) {
+ var val = $_GET[res[1]];
+ if (val === undefined || val === null) {
+ val = '';
+ }
+ t = t.replace(res[0], val);
+ }
+ $(this).text(t);
+ });
+ },
+
setLinksInContainer: function (page, side) {
var links = $("#links");
links.prepend('<div class="' + side + 'Container container"></div>');