<?php
/* Smarty version 3.1.39, created on 2023-01-22 17:48:48
  from 'plugins-1-plugins-generic-lensGalley-generic-lensGalley:display.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.39',
  'unifunc' => 'content_63cd7700bd3141_83711345',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '7e0eab18d7b14dc32706e0a59c26e11c55239150' => 
    array (
      0 => 'plugins-1-plugins-generic-lensGalley-generic-lensGalley:display.tpl',
      1 => 1630442004,
      2 => 'plugins-1-plugins-generic-lensGalley-generic-lensGalley',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_63cd7700bd3141_83711345 (Smarty_Internal_Template $_smarty_tpl) {
echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['jQueryUrl']->value;?>
"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['pluginLensPath']->value;?>
/lens.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="text/javascript">

	var linkElement = document.createElement("link");
	linkElement.rel = "stylesheet";
	linkElement.href = "<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['pluginLensPath']->value,"javascript" ));?>
/lens.css"; //Replace here

	document.head.appendChild(linkElement);

	$(document).ready(function(){
		var app = new Lens({
			document_url: "<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['xmlUrl']->value,'javascript' ));?>
"
		});
		app.start();
		window.app = app;
	});
<?php echo '</script'; ?>
>
<?php }
}
