$loadString .= 'loadUserContributionData(\'' . $url . '\',\'' . rawurlencode($timeout) . '\', \'' . $withpostsinner . '\', \'false\'); '; } else { if ($item[6] == $CFG->MINI_PAGE_HEALTH_PARTICIPATION) { insertMiniHealthParticipation(true); $loadString .= 'loadHealthParticipationData(\'' . $url . '\',\'' . rawurlencode($timeout) . '\', \'' . $withpostsinner . '\'); '; } else { if ($item[6] == $CFG->MINI_PAGE_HEALTH_VIEWING) { insertMiniHealthViewing(true); $loadString .= 'loadHealthViewingData(\'' . $url . '\',\'' . rawurlencode($timeout) . '\', \'' . $withpostsinner . '\'); '; } else { if ($item[6] == $CFG->MINI_PAGE_HEALTH_CONTRIBUTION) { insertMiniHealthContribution(true); $loadString .= 'loadHealthContributionData(\'' . $url . '\',\'' . rawurlencode($timeout) . '\', \'' . $withpostsinner . '\'); '; } else { if ($item[6] == $CFG->MINI_PAGE_WORD_STATS) { insertMiniWordStats(true); $loadString .= 'loadWordStatsData(\'' . $url . '\',\'' . rawurlencode($timeout) . '\', \'' . $withpostsinner . '\'); '; } } } } } } } echo '<script type="text/javascript">'; echo 'Event.observe(window, \'load\', function() {'; echo $loadString; echo '})'; echo '</script>'; echo '</div>'; include_once $HUB_FLM->getCodeDirPath("ui/footerminiembed.php");
/** Author: Michelle Bachler, KMi, The Open University **/ require_once $_SERVER['DOCUMENT_ROOT'] . '/config.php'; $url = required_param('url', PARAM_URL); $withposts = optional_param('miniwithposts', false, PARAM_BOOL); $timeout = optional_param('timeout', 60, PARAM_INT); include $HUB_FLM->getCodeDirPath("ui/minislib.php"); include_once $HUB_FLM->getCodeDirPath("ui/headerminiembed.php"); ?> <script type='text/javascript'> Event.observe(window, 'load', function() { loadWordStatsData('<?php echo $url; ?> ', '<?php echo $timeout; ?> ', '<?php echo $withposts; ?> '); }); </script> <?php insertMiniWordStats(); ?> <?php include_once $HUB_FLM->getCodeDirPath("ui/footerminiembed.php");