case 0: // aucune $navigation = "navigationHover: false,\n navigation: false,\n playPause: " . $params->get('playPause', 'true') . ","; break; case 1: // toujours $navigation = "navigationHover: false,\n navigation: true,\n playPause: " . $params->get('playPause', 'true') . ","; break; case 2: default: // on mouseover $navigation = "navigationHover: true,\n navigation: true,\n playPause: " . $params->get('playPause', 'true') . ","; break; } // load the slideshow script $js = "<script type=\"text/javascript\"> <!--\n jQuery(function(){\n jQuery('#carouselck_wrap_" . $module->id . "').carouselck({\n\t\t\t\twrapheight: '" . $params->get('wrapheight', '40') . "',\n\t\t\t\timageheight: '" . $params->get('imageheight', '40') . "',\n\t\t\t\timagesratio: '" . $params->get('imagesratio', '0.72') . "',\n\t\t\t\tpagination: " . $params->get('pagination', '1') . ",\n\t\t\t\tduration: " . $params->get('duration', '600') . ",\n\t\t\t\ttime: " . $params->get('time', '7000') . ",\n\t\t\t\tcaptionduration: " . $params->get('captionduration', '600') . ",\n\t\t\t\tautoAdvance: " . $params->get('autoAdvance', 'true') . ",\n\t\t\t\t" . $navigation . "\n\t\t\t\thover: " . $params->get('hover', 'true') . "\n });\n}); //--> </script>"; echo $js; // load some css $css = "#carouselck_wrap_" . $module->id . " .carouselck_pag_ul li img {width:" . $params->get('thumbnailwidth', '100') . "px;height:" . $params->get('thumbnailheight', '75') . "px;}"; // load the caption styles $captioncss = modCarouselckHelper::createCss($params, 'captionstyles'); $imagecss = modCarouselckHelper::createCss($params, 'imagestyles'); $fontfamily = $params->get('captionstylesusefont', '0') && $params->get('captionstylestextgfont', '0') ? "font-family:'" . $params->get('captionstylestextgfont', 'Droid Sans') . "';" : ''; if ($fontfamily) { $gfonturl = str_replace(" ", "+", $params->get('captionstylestextgfont', 'Droid Sans')); $document->addStylesheet('https://fonts.googleapis.com/css?family=' . $gfonturl); } $css .= "\n#carouselck_wrap_" . $module->id . " .carouselck_caption > div {\n\t" . $captioncss['padding'] . $captioncss['margin'] . $captioncss['background'] . $captioncss['gradient'] . $captioncss['borderradius'] . $captioncss['shadow'] . $captioncss['border'] . "\n}\n#carouselck_wrap_" . $module->id . " .carouselck_caption > div > div {\n\t" . $captioncss['fontcolor'] . $captioncss['fontsize'] . "\n}\n#carouselck_wrap_" . $module->id . " .carouselck_caption > div div.carouselck_caption_desc {\n\t" . $captioncss['descfontcolor'] . $captioncss['descfontsize'] . "\n}\n#carouselck_wrap_" . $module->id . " .carouselck_images > img {\n\t" . $imagecss['padding'] . $imagecss['margin'] . $imagecss['background'] . $imagecss['gradient'] . $imagecss['borderradius'] . $imagecss['shadow'] . $imagecss['border'] . "\n}\n"; $document->addStyleDeclaration($css); // display the module require JModuleHelper::getLayoutPath('mod_carouselck', 'default');