get('datemethod', 1); $showcalendar = (int)$params->get('showcalendar', 1); $showflyer = (int)$params->get('showflyer', 1); $flyer_link_type = (int)$params->get('flyer_link_type', 0); $imagewidthmax = (int)$params->get('imagewidthmax', 0); if ($flyer_link_type == 1) { echo JemOutput::lightbox(); $modal = 'lightbox'; } elseif ($flyer_link_type == 0) { $modal = 'notmodal'; } else { $modal = ''; } /* $uri = Uri::getInstance(); $module_name = 'mod_jem_banner'; $css_path = JPATH_THEMES. '/'.$document->template.'/css/'.$module_name; if(file_exists($css_path.'/'.$module_name.'.css')) { unset($document->_styleSheets[$uri->base(true).'/modules/mod_jem_banner/tmpl/mod_jem_banner.css']); $document->addStylesheet($uri->base(true) . '/templates/'.$document->template.'/css/'. $module_name.'/'.$module_name.'.css'); }*/ $banneralignment = "jem-vertical-banner"; if (JemHelper::jemStringContains($params->get('moduleclass_sfx'), "jem-horizontal")){ $banneralignment = "jem-horizontal-banner"; } $imagewidth = '100%'; $imagewidthstring = 'jem-imagewidth'; if (JemHelper::jemStringContains($params->get('moduleclass_sfx'), $imagewidthstring)) { $pageclass_sfx = $params->get('moduleclass_sfx'); $imagewidthpos = strpos($pageclass_sfx, $imagewidthstring); $spacepos = strpos($pageclass_sfx, ' ', $imagewidthpos); if ($spacepos === false) { $spacepos = strlen($pageclass_sfx); } $startpos = $imagewidthpos + strlen($imagewidthstring); $endpos = $spacepos - $startpos; $imagewidth = substr($pageclass_sfx, $startpos, $endpos); } $imageheight = 'auto'; $imageheigthstring = 'jem-imageheight'; if (JemHelper::jemStringContains($params->get('moduleclass_sfx'), $imageheigthstring)) { $pageclass_sfx = $params->get('moduleclass_sfx'); $imageheightpos = strpos($pageclass_sfx, $imageheigthstring); $spacepos = strpos($pageclass_sfx, ' ', $imageheightpos); if ($spacepos === false) { $spacepos = strlen($pageclass_sfx); } $startpos = $imageheightpos + strlen($imageheigthstring); $endpos = $spacepos - $startpos; $imageheight = substr($pageclass_sfx, $startpos, $endpos); } $document = Factory::getDocument(); $additionalCSS = ''; if (JemHelper::jemStringContains($params->get('moduleclass_sfx'), "jem-imagetop")) { $additionalCSS = 'order: -1;'; } $widthStyle = $imagewidthmax ? 'width:' . $imagewidthmax . 'px' : 'max-width:' . $imagewidth; $heightStyle = $imagewidthmax ? 'auto' : $imageheight; $css = ' #jemmodulebanner .jem-eventimg-banner { width: ' . $imagewidth . '; ' . $additionalCSS . ' } #jemmodulebanner .jem-eventimg-banner img { ' . $widthStyle . '; height: ' . $heightStyle . '; } @media not print { @media only all and (max-width: 47.938rem) { #jemmodulebanner .jem-eventimg-banner { } #jemmodulebanner .jem-eventimg-banner img { width: ' . $imagewidth . '; height: ' . $imageheight . '; } } }'; $document->addStyleDeclaration($css); ?>