In your bender theme folder open common/head.php.
Find this code and add semicolon (
at the end of 4th line:
Code: [Select]
<script type="text/javascript">
var bender = window.bender || {};
bender.base_url = '<?php echo osc_base_url(true); ?>';
bender.langs = <?php echo json_encode($js_lang); ?>; // add semicolon here
bender.fancybox_prev = '<?php echo osc_esc_js( __('Previous image','bender')) ?>';
bender.fancybox_next = '<?php echo osc_esc_js( __('Next image','bender')) ?>';
bender.fancybox_closeBtn = '<?php echo osc_esc_js( __('Close','bender')) ?>';
</script>
Cut the whole javascript and paste it after <?php osc_run_hook('header') ; ?>, so it should look like this:
Code: [Select]
<?php osc_run_hook('header') ; ?>
<script type="text/javascript">
var bender = window.bender || {};
bender.base_url = '<?php echo osc_base_url(true); ?>';
bender.langs = <?php echo json_encode($js_lang); ?>';
bender.fancybox_prev = '<?php echo osc_esc_js( __('Previous image','bender')) ?>';
bender.fancybox_next = '<?php echo osc_esc_js( __('Next image','bender')) ?>';
bender.fancybox_closeBtn = '<?php echo osc_esc_js( __('Close','bender')) ?>';
</script>
This should work