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 = ''; } $document = Factory::getDocument(); $widthStyle = $imagewidthmax ? 'width:' . $imagewidthmax . 'px' : 'max-width: 100%'; $css = ' .banner-jem img { ' . $widthStyle . '; }'; $document->addStyleDeclaration($css); ?>