if ($border) { $borderClass = $conf['borderClass'] ? $conf['borderClass'] : 'csc-textpic-border'; } // Multiple classes with all properties, to be styled in CSS $class = ''; $class .= ($borderClass? ' '.$borderClass:''); $class .= ($captionClass? ' '.$captionClass:''); $class .= ($equalHeight? ' csc-textpic-equalheight':''); $addClasses = $this->cObj->stdWrap($conf['addClasses'], $conf['addClasses.']); $class .= ($addClasses ? ' '.$addClasses:''); // Do we need a width in our wrap around images? $imgWrapWidth = ''; if ($position == 0 || $position == 8) { // For 'center' we always need a width: without one, the margin:auto trick won't work $imgWrapWidth = $imageBlockWidth; } if ($rowCount > 1) { // For multiple rows we also need a width, so that the images will wrap $imgWrapWidth = $imageBlockWidth; } if ($caption) { // If we have a global caption, we need the width so that the caption will wrap $imgWrapWidth = $imageBlockWidth; } // Wrap around the whole image block $GLOBALS['TSFE']->register['totalwidth'] = $imgWrapWidth; if ($imgWrapWidth) { $images = $this->cObj->stdWrap($images, $conf['imageStdWrap.']); } else { $images = $this->cObj->stdWrap($images, $conf['imageStdWrapNoWidth.']); } $output = $this->cObj->cObjGetSingle($conf['layout'], $conf['layout.']); $output = str_replace('###TEXT###', $content, $output); $output = str_replace('###IMAGES###', $images, $output); $output = str_replace('###CLASSES###', $class, $output); if ($conf['stdWrap.']) { $output = $this->cObj->stdWrap($output, $conf['stdWrap.']); } return $output; } /************************************ * * Helper functions * ************************************/ /** * Returns a link text string which replaces underscores in filename with * blanks. * * Has the possibility to cut off FileType. * @param array $links * array with [0] linked file icon, [1] text link * @param string $fileName * the name of the file to be linked (without path) * @param boolean $useSpaces * whether underscores in the file name should be replaced with spaces * @param boolean $cutFileExtension * whether the file extension should be removed * * @return array modified array with new link text */ protected function beautifyFileLink( array $links, $fileName, $useSpaces = FALSE, $cutFileExtension = FALSE ) { $linkText = $fileName; if ($useSpaces) { $linkText = str_replace('_', ' ', $linkText); } if ($cutFileExtension) { $pos = strrpos($linkText, '.'); $linkText = substr($linkText, 0, $pos); } $links[1] = str_replace( '>' . $fileName . '<', '>' . $linkText . '<', $links[1] ); return $links; } /** * Returns table attributes for uploads / tables. * * @param array TypoScript configuration array * @param integer The "layout" type * @return array Array with attributes inside. */ function getTableAttributes($conf,$type) { // Initializing: $tableTagParams_conf = $conf['tableParams_'.$type.'.']; $conf['color.'][200] = ''; $conf['color.'][240] = 'black'; $conf['color.'][241] = 'white'; $conf['color.'][242] = '#333333'; $conf['color.'][243] = 'gray'; $conf['color.'][244] = 'silver'; // Create table attributes array: $tableTagParams = array(); $tableTagParams['border'] = $this->cObj->data['table_border'] ? intval($this->cObj->data['table_border']) : $tableTagParams_conf['border']; $tableTagParams['cellspacing'] = $this->cObj->data['table_cellspacing'] ? intval($this->cObj->data['table_cellspacing']) : $tableTagParams_conf['cellspacing']; $tableTagParams['cellpadding'] = $this->cObj->data['table_cellpadding'] ? intval($this->cObj->data['table_cellpadding']) : $tableTagParams_conf['cellpadding']; $tableTagParams['bgcolor'] = isset($conf['color.'][$this->cObj->data['table_bgColor']]) ? $conf['color.'][$this->cObj->data['table_bgColor']] : $conf['color.']['default']; // Return result: return $tableTagParams; } /** * Returns an object reference to the hook object if any * * @param string Name of the function you want to call / hook key * @return object Hook object, if any. Otherwise null. */ function hookRequest($functionName) { global $TYPO3_CONF_VARS; // Hook: menuConfig_preProcessModMenu if ($TYPO3_CONF_VARS['EXTCONF']['css_styled_content']['pi1_hooks'][$functionName]) { $hookObj = t3lib_div::getUserObj($TYPO3_CONF_VARS['EXTCONF']['css_styled_content']['pi1_hooks'][$functionName]); if (method_exists ($hookObj, $functionName)) { $hookObj->pObj = $this; return $hookObj; } } } } if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php'])) { include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php']); } ?> Regal3.de: Willkommen bei Regal3!

Willkommen bei Regal3!

Wählen Sie (durch drücken des Textes) aus, mit welchem Gerät Sie uns besuchen möchten.