diff --git a/main/document/showinframes.php b/main/document/showinframes.php index fbc7561cab..78dca94946 100644 --- a/main/document/showinframes.php +++ b/main/document/showinframes.php @@ -114,7 +114,7 @@ if (isset($group_id) && $group_id != '') { $name_to_show = implode('/', $name_to_show); } -$interbreadcrumb[] = array('url' => './document.php?curdirpath='.dirname($header_file).$req_gid, 'name' => get_lang('Documents')); +$interbreadcrumb[] = array('url' => './document.php?curdirpath='.dirname($header_file).'&'.api_get_cidreq(), 'name' => get_lang('Documents')); if (empty($document_data['parents'])) { if (isset($_GET['createdir'])) { @@ -158,7 +158,7 @@ if (api_get_setting('show_glossary_in_documents') == 'ismanual') { { load: [ {type:"script", id:"_fr1", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.min.js"}, {type:"script", id:"_fr4", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.min.js"}, - {type:"stylesheet", id:"_fr5", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css"}, + {type:"stylesheet", id:"_fr5", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css"}, {type:"script", id:"_fr2", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.highlight.js"}, {type:"script", id:"_fr3", src:"'.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/plugins/glossary/fck_glossary_manual.js"} ] @@ -174,7 +174,7 @@ if (api_get_setting('show_glossary_in_documents') == 'ismanual') { { load: [ {type:"script", id:"_fr1", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.min.js"}, {type:"script", id:"_fr4", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.min.js"}, - {type:"stylesheet", id:"_fr5", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css"}, + {type:"stylesheet", id:"_fr5", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css"}, {type:"script", id:"_fr2", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.highlight.js"}, {type:"script", id:"_fr3", src:"'.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/plugins/glossary/fck_glossary_automatic.js"} ] @@ -186,58 +186,58 @@ if (api_get_setting('show_glossary_in_documents') == 'ismanual') { $web_odf_supported_files = DocumentManager::get_web_odf_extension_list(); if (in_array(strtolower($pathinfo['extension']), $web_odf_supported_files)) { - $show_web_odf = true; + $show_web_odf = true; $htmlHeadXtra[] = api_get_js('webodf/webodf.js'); $htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/webodf/webodf.css'); $htmlHeadXtra[] = ' - '; } $execute_iframe = true; if ($jplayer_supported) { - + $extension = api_strtolower($pathinfo['extension']); - + $js_path = api_get_path(WEB_LIBRARY_PATH).'javascript/'; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; - $jquery = ' $("#jquery_jplayer_1").jPlayer({ - ready: function() { - $(this).jPlayer("setMedia", { - '.$extension.' : "'.$document_data['direct_url'].'" + $jquery = ' $("#jquery_jplayer_1").jPlayer({ + ready: function() { + $(this).jPlayer("setMedia", { + '.$extension.' : "'.$document_data['direct_url'].'" }); - }, + }, errorAlerts: false, warningAlerts: false, //swfPath: "../inc/lib/javascript/jquery-jplayer", swfPath: "'.$js_path.'jquery-jplayer", //supplied: "m4a, oga, mp3, ogg, wav", - supplied: "'.$extension.'", + supplied: "'.$extension.'", //wmode: "window", - solution: "flash, html", // Do not change this setting - cssSelectorAncestor: "#jp_container_1", + solution: "flash, html", // Do not change this setting + cssSelectorAncestor: "#jp_container_1", });'; - + $htmlHeadXtra[] = ''; $execute_iframe = false; } -if ($show_web_odf) { +if ($show_web_odf) { $execute_iframe = false; } @@ -252,7 +252,7 @@ if ($is_nanogong_available){ } if (!$jplayer_supported && $execute_iframe) { - + $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ' +