/** * @return void */ public function render() { $nivoSettings = $this->buildNivoSettings(); $nivoSettings = json_encode($nivoSettings); $output = ' $(function() { jQuery("#nivoSlider-' . $this->contextIdentifier . '").nivoSlider(' . $nivoSettings . '); }); '; $this->addCustomCSS(); $this->headerInclusion->addJsInlineCode('nivoSlider-' . $this->configurationBuilder->getContextIdentifier(), $output, true, false, 'footer'); }
/** * Renders the superSized call * * @param Tx_PtExtlist_Domain_Model_List_ListData $listData */ public function render(Tx_PtExtlist_Domain_Model_List_ListData $listData) { $superSizedSettings = $this->buildSuperSizedSettings(); $superSizedSettings['slides'] = $this->buildSlideArray($listData); $superSizedSettingsJSon = json_encode($superSizedSettings); $this->templateVariableContainer->add('superSizedImagePath', $superSizedSettings['image_path']); $output = ' jQuery(function($){ $.supersized(' . $superSizedSettingsJSon . '); $.supersized.themeVars.image_path = "' . $superSizedSettings['image_path'] . '"; }); '; $this->inclusionUtility->addJsInlineCode('superSized-' . $this->configurationBuilder->getContextIdentifier(), $output); }