function doTransMenuPreview($ordered, $swmenufree) { echo '<script type="text/javascript" src="../modules/mod_swmenufree/transmenu_Packed.js"></script>'; if ($swmenufree['preview'] == "CSS") { $css = JRequest::getVar("filecontent", ''); echo "\n<style type='text/css'>\n"; echo "<!--\n"; echo str_replace('\\', '', $css); echo "\n-->\n"; echo "</style>\n"; } else { if (substr(swmenuGetBrowserFree(), 0, 5) != "MSIE6" && $swmenufree['padding_hack']) { $swmenufree = fixPaddingFree($swmenufree); } echo "\n<style type='text/css'>\n"; echo "<!--\n"; echo transMenuStyleFree($swmenufree); echo "\n-->\n"; echo "</style>\n"; } echo "<center>"; echo transMenuFree($ordered, $swmenufree); echo changeBgColor(); echo "</center>"; }
function doTransMenuPreview($ordered, $swmenufree, $active_menu, $sub_indicator, $parent_id, $css_load, $selectbox_hack, $show_shadow, $auto_position, $padding_hack, $overlay_hack = 0) { global $mosConfig_live_site; echo previewHead(); echo '<script type="text/javascript" src="../modules/mod_swmenufree/transmenu_Packed.js"></script>'; $manual = JRequest::getVar("preview", 0); if ($manual == 1) { $css = JRequest::getVar("filecontent", ''); echo "\n<style type='text/css'>\n"; echo "<!--\n"; echo str_replace('\\', '', $css); echo "\n-->\n"; echo "</style>\n"; } else { if ($css_load) { echo "<link type='text/css' href='" . $mosConfig_live_site . "/modules/mod_swmenufree/styles/menu.css' rel='stylesheet' />\n"; } else { if (substr(swmenuGetBrowser(), 0, 5) != "MSIE6" && $padding_hack) { $swmenufree = fixPadding($swmenufree); } echo "\n<style type='text/css'>\n"; echo "<!--\n"; echo transMenuStyle($swmenufree, $show_shadow); echo "\n-->\n"; echo "</style>\n"; } } echo "</head><body>"; echo transMenu($ordered, $swmenufree, $active_menu, $sub_indicator, $parent_id, $selectbox_hack, $auto_position, $overlay_hack = 0); echo changeBgColor(); echo "</body></html>"; }