/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; $output0 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\CommentViewHelper $arguments1 = array(); $renderChildrenClosure2 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); return ' Only used for lib.stdheader purposes. '; }; $output0 .= ''; $output0 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments3 = array(); $arguments3['partial'] = 'Header'; $arguments3['arguments'] = $currentVariableContainer->getOrNull('_all'); $arguments3['section'] = NULL; $arguments3['optional'] = false; $renderChildrenClosure4 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments3, $renderChildrenClosure4, $renderingContext); $output0 .= ' '; return $output0; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper $arguments1 = array(); $arguments1['title'] = $currentVariableContainer->getOrNull('title'); $arguments1['state'] = $currentVariableContainer->getOrNull('state'); $arguments1['message'] = NULL; $arguments1['iconName'] = NULL; $arguments1['disableIcon'] = false; $renderChildrenClosure2 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output3 = ''; $output3 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper $arguments4 = array(); $arguments4['parseFuncTSPath'] = 'lib.parseFunc_RTE'; $renderChildrenClosure5 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); return $currentVariableContainer->getOrNull('message'); }; $output3 .= TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper::renderStatic($arguments4, $renderChildrenClosure5, $renderingContext); $output3 .= ' '; return $output3; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::renderStatic($arguments1, $renderChildrenClosure2, $renderingContext); $output0 .= ' '; return $output0; }
/** * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return string */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { $templateVariableContainer = $renderingContext->getTemplateVariableContainer(); if ($arguments['uid'] !== null && $arguments['table'] !== null) { $cObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer'); $whereClause = '1 AND `' . $arguments['foreignField'] . '` = \'' . $arguments['uid'] . '\' ' . $arguments['additionalWhere'] . $cObj->enableFields($arguments['table']); $groupBy = ''; $limit = ''; $GLOBALS['TYPO3_DB']->store_lastBuiltQuery = 1; $data = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows($arguments['selectFields'], $arguments['table'], $whereClause, $groupBy, $arguments['sortby'], $limit); $items = array(); foreach ($data as $record) { $GLOBALS['TSFE']->sys_page->versionOL($arguments['table'], $record); if (is_array($record)) { $items[] = $GLOBALS['TSFE']->sys_page->getRecordOverlay($arguments['table'], $record, $GLOBALS['TSFE']->sys_language_uid); } } usort($items, array(self, "orderBySorting")); } else { $items = null; } $templateVariableContainer->add($arguments['as'], $items); $content = $renderChildrenClosure(); $templateVariableContainer->remove($arguments['as']); return $content; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments1 = array(); $arguments1['section'] = 'content'; $arguments1['partial'] = NULL; $arguments1['arguments'] = array(); $arguments1['optional'] = false; $renderChildrenClosure2 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments1, $renderChildrenClosure2, $renderingContext); $output0 .= ' <hr /> <p> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Format\RawViewHelper $arguments3 = array(); $arguments3['value'] = NULL; $renderChildrenClosure4 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); return $currentVariableContainer->getOrNull('copyright'); }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\Format\RawViewHelper::renderStatic($arguments3, $renderChildrenClosure4, $renderingContext); $output0 .= ' </p> '; return $output0; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; $output0 .= '<div class="typo3-documentation"> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments1 = array(); $arguments1['section'] = 'module-headline'; $arguments1['partial'] = NULL; $arguments1['arguments'] = array(); $arguments1['optional'] = false; $renderChildrenClosure2 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments1, $renderChildrenClosure2, $renderingContext); $output0 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments3 = array(); $arguments3['section'] = 'Content'; $arguments3['partial'] = NULL; $arguments3['arguments'] = array(); $arguments3['optional'] = false; $renderChildrenClosure4 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments3, $renderChildrenClosure4, $renderingContext); $output0 .= ' </div> '; return $output0; }
/** * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return void */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { $viewHelperVariableContainer = $renderingContext->getViewHelperVariableContainer(); $templateVariableContainer = $renderingContext->getTemplateVariableContainer(); $extensionName = static::getExtensionNameFromRenderingContextOrArguments($renderingContext, $arguments); $formClassName = FluxPackageFactory::getPackageWithFallback($extensionName)->getImplementation(FluxPackage::IMPLEMENTATION_FORM); $form = call_user_func_array(array($formClassName, 'create'), array()); $container = $form->last(); // configure Form instance $form->setId($arguments['id']); $form->setName($arguments['id']); $form->setLabel($arguments['label']); $form->setDescription($arguments['description']); $form->setEnabled($arguments['enabled']); $form->setCompact($arguments['compact']); $form->setExtensionName($extensionName); $form->setLocalLanguageFileRelativePath($arguments['localLanguageFileRelativePath']); $form->setVariables((array) $arguments['variables']); $form->setOptions((array) $arguments['options']); if (FALSE === $form->hasOption(Form::OPTION_ICON)) { $form->setOption(Form::OPTION_ICON, $arguments['icon']); } if (FALSE === $form->hasOption(Form::OPTION_GROUP)) { $form->setOption(Form::OPTION_GROUP, $arguments['wizardTab']); } // rendering child nodes with Form's last sheet as active container $viewHelperVariableContainer->addOrUpdate(static::SCOPE, static::SCOPE_VARIABLE_FORM, $form); $viewHelperVariableContainer->addOrUpdate(static::SCOPE, static::SCOPE_VARIABLE_EXTENSIONNAME, $extensionName); $templateVariableContainer->add(static::SCOPE_VARIABLE_FORM, $form); static::setContainerInRenderingContext($renderingContext, $container); $renderChildrenClosure(); $viewHelperVariableContainer->remove(static::SCOPE, static::SCOPE_VARIABLE_EXTENSIONNAME); $viewHelperVariableContainer->remove(static::SCOPE, static::SCOPE_VARIABLE_CONTAINER); $templateVariableContainer->remove(static::SCOPE_VARIABLE_CONTAINER); }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; $output0 .= ' <div id="c'; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlspecialcharsViewHelper $arguments1 = array(); $arguments1['value'] = \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ObjectAccessorNode::getPropertyPath($currentVariableContainer->getOrNull('data'), 'uid', $renderingContext); $arguments1['keepQuotes'] = false; $arguments1['encoding'] = NULL; $arguments1['doubleEncode'] = true; $renderChildrenClosure2 = function () { return NULL; }; $value3 = $arguments1['value'] !== NULL ? $arguments1['value'] : $renderChildrenClosure2(); $output0 .= !is_string($value3) ? $value3 : htmlspecialchars($value3, $arguments1['keepQuotes'] ? ENT_NOQUOTES : ENT_COMPAT, $arguments1['encoding'] !== NULL ? $arguments1['encoding'] : \TYPO3\CMS\Fluid\Core\Compiler\AbstractCompiledTemplate::resolveDefaultEncoding(), $arguments1['doubleEncode']); $output0 .= '"> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments4 = array(); $arguments4['partial'] = 'Header'; $arguments4['arguments'] = $currentVariableContainer->getOrNull('_all'); $arguments4['section'] = NULL; $arguments4['optional'] = false; $renderChildrenClosure5 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments4, $renderChildrenClosure5, $renderingContext); $output0 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments6 = array(); $arguments6['section'] = 'content'; $arguments6['partial'] = NULL; $arguments6['arguments'] = array(); $arguments6['optional'] = false; $renderChildrenClosure7 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments6, $renderChildrenClosure7, $renderingContext); $output0 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments8 = array(); $arguments8['partial'] = 'Footer'; $arguments8['arguments'] = $currentVariableContainer->getOrNull('_all'); $arguments8['section'] = NULL; $arguments8['optional'] = false; $renderChildrenClosure9 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments8, $renderChildrenClosure9, $renderingContext); $output0 .= ' </div> '; return $output0; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Be\PageRendererViewHelper $arguments1 = array(); // Rendering Array $array2 = array(); $array2['0'] = 'TYPO3/CMS/Recycler/Recycler'; $arguments1['includeRequireJsModules'] = $array2; $arguments1['pageTitle'] = ''; $arguments1['loadExtJs'] = false; $arguments1['loadExtJsTheme'] = true; $arguments1['enableExtJsDebug'] = false; $arguments1['loadJQuery'] = false; $arguments1['includeCssFiles'] = NULL; $arguments1['includeJsFiles'] = NULL; $arguments1['addJsInlineLabels'] = NULL; $arguments1['jQueryNamespace'] = NULL; $renderChildrenClosure3 = function () { return NULL; }; $viewHelper4 = $self->getViewHelper('$viewHelper4', $renderingContext, 'TYPO3\\CMS\\Fluid\\ViewHelpers\\Be\\PageRendererViewHelper'); $viewHelper4->setArguments($arguments1); $viewHelper4->setRenderingContext($renderingContext); $viewHelper4->setRenderChildrenClosure($renderChildrenClosure3); // End of ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Be\PageRendererViewHelper $output0 .= $viewHelper4->initializeArgumentsAndRender(); $output0 .= ' <h1>'; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper $arguments5 = array(); $arguments5['key'] = 'title'; $arguments5['id'] = NULL; $arguments5['default'] = NULL; $arguments5['htmlEscape'] = NULL; $arguments5['arguments'] = NULL; $arguments5['extensionName'] = NULL; $renderChildrenClosure6 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper::renderStatic($arguments5, $renderChildrenClosure6, $renderingContext); $output0 .= '</h1> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments7 = array(); $arguments7['section'] = 'content'; $arguments7['partial'] = NULL; $arguments7['arguments'] = array(); $arguments7['optional'] = false; $renderChildrenClosure8 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments7, $renderChildrenClosure8, $renderingContext); $output0 .= ' '; return $output0; }
/** * @param array $arguments * @param \Closure $renderChildrenClosure * @param \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext * @return string * @throws \TYPO3\CMS\Fluid\Core\ViewHelper\Exception */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $templateVariableContainer = $renderingContext->getTemplateVariableContainer(); $object = self::getTranslation($arguments['newsItem']->getUid(), $arguments['language']); $templateVariableContainer->add($arguments['as'], $object); $output = $renderChildrenClosure(); $templateVariableContainer->remove($arguments['as']); return $output; }
/** * @param mixed $variable * @param string $as * @param \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext * @param \Closure $renderChildrenClosure * @return mixed */ protected static function renderChildrenWithVariableOrReturnInputStatic($variable, $as, RenderingContextInterface $renderingContext, \Closure $renderChildrenClosure) { if (true === empty($as)) { return $variable; } else { $variables = [$as => $variable]; $content = static::renderChildrenWithVariablesStatic($variables, $renderingContext->getTemplateVariableContainer(), $renderChildrenClosure); } return $content; }
/** * Checks if the URL is a valid YouTube/Vimeo Link is. If the video id can * be extracted the embed code will be returned, else the content of the * ViewHelper will be displayed. * * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return string */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { $templateVariableContainer = $renderingContext->getTemplateVariableContainer(); $externalMediaUtility = GeneralUtility::makeInstance('BK2K\\BootstrapPackage\\Utility\\ExternalMediaUtility'); $externalMedia = $externalMediaUtility->getEmbedCode($arguments['url'], $arguments['class']); $templateVariableContainer->add('externalMedia', $externalMedia); $content = $renderChildrenClosure(); $templateVariableContainer->remove('externalMedia'); return $content; }
/** * @param \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext * @param \Closure $renderChildrenClosure * @return mixed */ protected static function renderChildrenWithVariableOrReturnInputStatic($variable = NULL, $as, $renderingContext = NULL, $renderChildrenClosure = NULL) { if (TRUE === empty($as)) { return $variable; } else { $variables = array($as => $variable); $content = static::renderChildrenWithVariablesStatic($variables, $renderingContext->getTemplateVariableContainer(), $renderChildrenClosure); } return $content; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; $output0 .= '<div class="container" id="wrapper-main"> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper $arguments1 = array(); $arguments1['typoscriptObjectPath'] = 'lib.navbar'; $arguments1['data'] = NULL; $arguments1['currentValueKey'] = NULL; $arguments1['table'] = ''; $renderChildrenClosure2 = function () { return NULL; }; $viewHelper3 = $self->getViewHelper('$viewHelper3', $renderingContext, 'TYPO3\\CMS\\Fluid\\ViewHelpers\\CObjectViewHelper'); $viewHelper3->setArguments($arguments1); $viewHelper3->setRenderingContext($renderingContext); $viewHelper3->setRenderChildrenClosure($renderChildrenClosure2); // End of ViewHelper TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper $output0 .= $viewHelper3->initializeArgumentsAndRender(); $output0 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments4 = array(); $arguments4['section'] = 'content'; $arguments4['partial'] = NULL; $arguments4['arguments'] = array(); $arguments4['optional'] = false; $renderChildrenClosure5 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments4, $renderChildrenClosure5, $renderingContext); $output0 .= ' </div> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments6 = array(); $arguments6['partial'] = 'footerSlide'; $arguments6['section'] = NULL; $arguments6['arguments'] = array(); $arguments6['optional'] = false; $renderChildrenClosure7 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments6, $renderChildrenClosure7, $renderingContext); $output0 .= ' '; return $output0; }
/** * Assigns multiple values to the JSON output. * However, only the key "value" is accepted. * * @param array $values Keys and values - only a value with key "value" is considered * @return \TYPO3\CMS\Fluid\View\AbstractTemplateView the instance of this view to allow chaining * @api */ public function assignMultiple(array $values) { $templateVariableContainer = $this->baseRenderingContext->getTemplateVariableContainer(); foreach ($values as $key => $value) { if ($templateVariableContainer->exists($key)) { $templateVariableContainer->remove($key); } $templateVariableContainer->add($key, $value); } return $this; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output5 = ''; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\LayoutViewHelper $arguments6 = array(); $arguments6['name'] = 'Default'; $renderChildrenClosure7 = function () { return NULL; }; $viewHelper8 = $self->getViewHelper('$viewHelper8', $renderingContext, 'TYPO3\\CMS\\Fluid\\ViewHelpers\\LayoutViewHelper'); $viewHelper8->setArguments($arguments6); $viewHelper8->setRenderingContext($renderingContext); $viewHelper8->setRenderChildrenClosure($renderChildrenClosure7); // End of ViewHelper TYPO3\CMS\Fluid\ViewHelpers\LayoutViewHelper $output5 .= $viewHelper8->initializeArgumentsAndRender(); $output5 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\SectionViewHelper $arguments9 = array(); $arguments9['name'] = 'main'; $renderChildrenClosure10 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output11 = ''; $output11 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments12 = array(); $output13 = ''; $output13 .= \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ObjectAccessorNode::getPropertyPath($currentVariableContainer->getOrNull('model'), 'themeName', $renderingContext); $output13 .= '/Show/ContainerElements/Form'; $arguments12['partial'] = $output13; // Rendering Array $array14 = array(); $array14['model'] = $currentVariableContainer->getOrNull('model'); $array14['themeName'] = \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ObjectAccessorNode::getPropertyPath($currentVariableContainer->getOrNull('model'), 'themeName', $renderingContext); $arguments12['arguments'] = $array14; $arguments12['section'] = NULL; $arguments12['optional'] = false; $renderChildrenClosure15 = function () { return NULL; }; $output11 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments12, $renderChildrenClosure15, $renderingContext); $output11 .= ' '; return $output11; }; $output5 .= ''; $output5 .= ' '; return $output5; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Be\PageRendererViewHelper $arguments1 = array(); // Rendering Array $array2 = array(); // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Uri\ResourceViewHelper $arguments3 = array(); $arguments3['path'] = 'Css/styles.css'; $arguments3['extensionName'] = NULL; $arguments3['absolute'] = false; $renderChildrenClosure4 = function () { return NULL; }; $array2['0'] = TYPO3\CMS\Fluid\ViewHelpers\Uri\ResourceViewHelper::renderStatic($arguments3, $renderChildrenClosure4, $renderingContext); $arguments1['includeCssFiles'] = $array2; $arguments1['pageTitle'] = ''; $arguments1['loadExtJs'] = false; $arguments1['loadExtJsTheme'] = true; $arguments1['enableExtJsDebug'] = false; $arguments1['loadJQuery'] = false; $arguments1['includeJsFiles'] = NULL; $arguments1['addJsInlineLabels'] = NULL; $arguments1['includeRequireJsModules'] = NULL; $arguments1['jQueryNamespace'] = NULL; $renderChildrenClosure5 = function () { return NULL; }; $viewHelper6 = $self->getViewHelper('$viewHelper6', $renderingContext, 'TYPO3\\CMS\\Fluid\\ViewHelpers\\Be\\PageRendererViewHelper'); $viewHelper6->setArguments($arguments1); $viewHelper6->setRenderingContext($renderingContext); $viewHelper6->setRenderChildrenClosure($renderChildrenClosure5); // End of ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Be\PageRendererViewHelper $output0 .= $viewHelper6->initializeArgumentsAndRender(); $output0 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments7 = array(); $arguments7['section'] = 'Content'; $arguments7['partial'] = NULL; $arguments7['arguments'] = array(); $arguments7['optional'] = false; $renderChildrenClosure8 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments7, $renderChildrenClosure8, $renderingContext); $output0 .= ' '; return $output0; }
/** * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return string */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { $content = ''; if (isset($arguments['data'])) { $templateVariableContainer = $renderingContext->getTemplateVariableContainer(); $items = GeneralUtility::trimExplode($arguments['delimiter'], $arguments['data']); $templateVariableContainer->add($arguments['as'], $items); $content = $renderChildrenClosure(); $templateVariableContainer->remove($arguments['as']); } return $content; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; $output0 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\IfViewHelper $arguments1 = array(); // Rendering Boolean node $arguments1['condition'] = TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\BooleanNode::convertToBoolean(\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ObjectAccessorNode::getPropertyPath($currentVariableContainer->getOrNull('data'), 'date', $renderingContext)); $arguments1['then'] = NULL; $arguments1['else'] = NULL; $renderChildrenClosure2 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output3 = ''; $output3 .= ' <p> <time datetime="'; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Format\DateViewHelper $arguments4 = array(); $arguments4['format'] = '%Y-%m-%d'; $arguments4['date'] = NULL; $arguments4['base'] = NULL; $renderChildrenClosure5 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); return \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ObjectAccessorNode::getPropertyPath($currentVariableContainer->getOrNull('data'), 'date', $renderingContext); }; $output3 .= TYPO3\CMS\Fluid\ViewHelpers\Format\DateViewHelper::renderStatic($arguments4, $renderChildrenClosure5, $renderingContext); $output3 .= '"> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Format\DateViewHelper $arguments6 = array(); $arguments6['format'] = '%B %e, %Y'; $arguments6['date'] = NULL; $arguments6['base'] = NULL; $renderChildrenClosure7 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); return \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ObjectAccessorNode::getPropertyPath($currentVariableContainer->getOrNull('data'), 'date', $renderingContext); }; $output3 .= TYPO3\CMS\Fluid\ViewHelpers\Format\DateViewHelper::renderStatic($arguments6, $renderChildrenClosure7, $renderingContext); $output3 .= ' </time> </p> '; return $output3; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\IfViewHelper::renderStatic($arguments1, $renderChildrenClosure2, $renderingContext); $output0 .= ' '; return $output0; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output4 = ''; $output4 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\LayoutViewHelper $arguments5 = array(); $arguments5['name'] = 'HeaderContentFooter'; $renderChildrenClosure6 = function () { return NULL; }; $viewHelper7 = $self->getViewHelper('$viewHelper7', $renderingContext, 'TYPO3\\CMS\\Fluid\\ViewHelpers\\LayoutViewHelper'); $viewHelper7->setArguments($arguments5); $viewHelper7->setRenderingContext($renderingContext); $viewHelper7->setRenderChildrenClosure($renderChildrenClosure6); // End of ViewHelper TYPO3\CMS\Fluid\ViewHelpers\LayoutViewHelper $output4 .= $viewHelper7->initializeArgumentsAndRender(); $output4 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\SectionViewHelper $arguments8 = array(); $arguments8['name'] = 'content'; $renderChildrenClosure9 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output10 = ''; $output10 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments11 = array(); $output12 = ''; $output12 .= 'Menu/Type-'; $output12 .= \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ObjectAccessorNode::getPropertyPath($currentVariableContainer->getOrNull('data'), 'menu_type', $renderingContext); $arguments11['partial'] = $output12; $arguments11['arguments'] = $currentVariableContainer->getOrNull('_all'); $arguments11['section'] = NULL; $arguments11['optional'] = false; $renderChildrenClosure13 = function () { return NULL; }; $output10 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments11, $renderChildrenClosure13, $renderingContext); $output10 .= ' '; return $output10; }; $output4 .= ''; $output4 .= ' '; return $output4; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; $output0 .= '<h1> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper $arguments1 = array(); $arguments1['key'] = 'adminLog'; $arguments1['id'] = NULL; $arguments1['default'] = NULL; $arguments1['htmlEscape'] = NULL; $arguments1['arguments'] = NULL; $arguments1['extensionName'] = NULL; $renderChildrenClosure2 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper::renderStatic($arguments1, $renderChildrenClosure2, $renderingContext); $output0 .= ' </h1> <div> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments3 = array(); $arguments3['partial'] = 'Content/Filter'; $arguments3['arguments'] = $currentVariableContainer->getOrNull('_all'); $arguments3['section'] = NULL; $arguments3['optional'] = false; $renderChildrenClosure4 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments3, $renderChildrenClosure4, $renderingContext); $output0 .= ' </div> <div class="divider"></div> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments5 = array(); $arguments5['partial'] = 'Content/LogEntries'; $arguments5['arguments'] = $currentVariableContainer->getOrNull('_all'); $arguments5['section'] = NULL; $arguments5['optional'] = false; $renderChildrenClosure6 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments5, $renderChildrenClosure6, $renderingContext); return $output0; }
/** * Declare aliases * * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * * @return string */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { $map = $arguments['map']; $templateVariableContainer = $renderingContext->getTemplateVariableContainer(); foreach ($map as $aliasName => $value) { $templateVariableContainer->add($aliasName, $value); } $output = $renderChildrenClosure(); foreach ($map as $aliasName => $value) { $templateVariableContainer->remove($aliasName); } return $output; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; $output0 .= ' '; // Rendering ViewHelper TYPO3\CMS\Extensionmanager\ViewHelpers\Format\JsonEncodeViewHelper $arguments1 = array(); // Rendering Array $array2 = array(); $array2['updated'] = $currentVariableContainer->getOrNull('updated'); // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Format\DateViewHelper $arguments3 = array(); // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper $arguments4 = array(); $arguments4['key'] = 'extensionList.updateFromTer.lastUpdate.fullTimeFormat'; $arguments4['id'] = NULL; $arguments4['default'] = NULL; $arguments4['htmlEscape'] = NULL; $arguments4['arguments'] = NULL; $arguments4['extensionName'] = NULL; $renderChildrenClosure5 = function () { return NULL; }; $arguments3['format'] = TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper::renderStatic($arguments4, $renderChildrenClosure5, $renderingContext); $arguments3['date'] = NULL; $arguments3['base'] = NULL; $renderChildrenClosure6 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); return \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ObjectAccessorNode::getPropertyPath($currentVariableContainer->getOrNull('repository'), 'lastUpdate', $renderingContext); }; $array2['lastUpdateTime'] = TYPO3\CMS\Fluid\ViewHelpers\Format\DateViewHelper::renderStatic($arguments3, $renderChildrenClosure6, $renderingContext); // Rendering ViewHelper TYPO3\CMS\Extensionmanager\ViewHelpers\TimeSinceLastUpdateViewHelper $arguments7 = array(); $arguments7['lastUpdateTime'] = \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ObjectAccessorNode::getPropertyPath($currentVariableContainer->getOrNull('repository'), 'lastUpdate', $renderingContext); $renderChildrenClosure8 = function () { return NULL; }; $array2['timeSinceLastUpdate'] = TYPO3\CMS\Extensionmanager\ViewHelpers\TimeSinceLastUpdateViewHelper::renderStatic($arguments7, $renderChildrenClosure8, $renderingContext); $array2['errorMessage'] = $currentVariableContainer->getOrNull('errorMessage'); $arguments1['additionalAttributes'] = $array2; $renderChildrenClosure9 = function () { return NULL; }; $output0 .= TYPO3\CMS\Extensionmanager\ViewHelpers\Format\JsonEncodeViewHelper::renderStatic($arguments1, $renderChildrenClosure9, $renderingContext); $output0 .= ' '; return $output0; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output0 = ''; $output0 .= '<div> <h1> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper $arguments1 = array(); $arguments1['key'] = 'LLL:EXT:lang/locallang_mod_help_about.xlf:welcome'; $arguments1['id'] = NULL; $arguments1['default'] = NULL; $arguments1['htmlEscape'] = NULL; $arguments1['arguments'] = NULL; $arguments1['extensionName'] = NULL; $renderChildrenClosure2 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper::renderStatic($arguments1, $renderChildrenClosure2, $renderingContext); $output0 .= ' </h1> <p> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper $arguments3 = array(); $arguments3['key'] = 'LLL:EXT:lang/locallang_mod_help_about.xlf:cms_description'; // Rendering Array $array4 = array(); $array4['0'] = $currentVariableContainer->getOrNull('TYPO3Version'); $output5 = ''; $output5 .= '© '; $output5 .= $currentVariableContainer->getOrNull('TYPO3CopyrightYear'); $array4['1'] = $output5; $array4['2'] = 'Kasper Skårhøj'; $arguments3['arguments'] = $array4; // Rendering Boolean node $arguments3['htmlEscape'] = TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\BooleanNode::convertToBoolean('0'); $arguments3['id'] = NULL; $arguments3['default'] = NULL; $arguments3['extensionName'] = NULL; $renderChildrenClosure6 = function () { return NULL; }; $output0 .= TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper::renderStatic($arguments3, $renderChildrenClosure6, $renderingContext); $output0 .= ' </p> </div>'; return $output0; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper $arguments0 = array(); $arguments0['section'] = 'content'; $arguments0['partial'] = NULL; $arguments0['arguments'] = array(); $arguments0['optional'] = false; $renderChildrenClosure1 = function () { return NULL; }; return TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::renderStatic($arguments0, $renderChildrenClosure1, $renderingContext); }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output4 = ''; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\LayoutViewHelper $arguments5 = array(); $arguments5['name'] = 'DocHeader'; $renderChildrenClosure6 = function () { return NULL; }; $viewHelper7 = $self->getViewHelper('$viewHelper7', $renderingContext, 'TYPO3\\CMS\\Fluid\\ViewHelpers\\LayoutViewHelper'); $viewHelper7->setArguments($arguments5); $viewHelper7->setRenderingContext($renderingContext); $viewHelper7->setRenderChildrenClosure($renderChildrenClosure6); // End of ViewHelper TYPO3\CMS\Fluid\ViewHelpers\LayoutViewHelper $output4 .= $viewHelper7->initializeArgumentsAndRender(); $output4 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\SectionViewHelper $arguments8 = array(); $arguments8['name'] = 'Content'; $renderChildrenClosure9 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output10 = ''; $output10 .= ' <div id="resizeable"> <iframe src="'; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlspecialcharsViewHelper $arguments11 = array(); $arguments11['value'] = $currentVariableContainer->getOrNull('url'); $arguments11['keepQuotes'] = false; $arguments11['encoding'] = NULL; $arguments11['doubleEncode'] = true; $renderChildrenClosure12 = function () { return NULL; }; $value13 = $arguments11['value'] !== NULL ? $arguments11['value'] : $renderChildrenClosure12(); $output10 .= !is_string($value13) ? $value13 : htmlspecialchars($value13, $arguments11['keepQuotes'] ? ENT_NOQUOTES : ENT_COMPAT, $arguments11['encoding'] !== NULL ? $arguments11['encoding'] : \TYPO3\CMS\Fluid\Core\Compiler\AbstractCompiledTemplate::resolveDefaultEncoding(), $arguments11['doubleEncode']); $output10 .= '" width="100%" height="100%" id="tx_viewpage_iframe" frameborder="0" border="0"></iframe> </div> '; return $output10; }; $output4 .= ''; return $output4; }
/** * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return mixed */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { $templateVariableContainer = $renderingContext->getTemplateVariableContainer(); $partialArguments = $arguments['arguments']; if (false === is_array($partialArguments)) { $partialArguments = []; } if (false === isset($partialArguments['settings']) && true === $templateVariableContainer->exists('settings')) { $partialArguments['settings'] = $templateVariableContainer->get('settings'); } $substKey = 'INT_SCRIPT.' . $GLOBALS['TSFE']->uniqueHash(); $content = '<!--' . $substKey . '-->'; $templateView = GeneralUtility::makeInstance('FluidTYPO3\\Vhs\\View\\UncacheTemplateView'); $GLOBALS['TSFE']->config['INTincScript'][$substKey] = ['type' => 'POSTUSERFUNC', 'cObj' => serialize($templateView), 'postUserFunc' => 'render', 'conf' => ['partial' => $arguments['partial'], 'section' => $arguments['section'], 'arguments' => $partialArguments, 'controllerContext' => $renderingContext->getControllerContext()], 'content' => $content]; return $content; }
/** * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return void */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { if ($arguments['name'] !== null) { $templateVariableContainer = $renderingContext->getTemplateVariableContainer(); if ($arguments['value'] === null) { $value = $renderChildrenClosure(); } else { $value = $arguments['value']; } if ($templateVariableContainer->exists($arguments['name']) === true) { $templateVariableContainer->remove($arguments['name']); } $templateVariableContainer->add($arguments['name'], $value); } return null; }
/** * Default implementation for use in compiled templates * * @param array $arguments * @param \Closure $renderChildrenClosure * @param \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext * @return mixed */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { $hasEvaluated = true; if (true === $renderingContext->getTemplateVariableContainer()->exists($arguments['name'])) { $result = static::renderStaticThenChild($arguments, $hasEvaluated); if ($hasEvaluated) { return $result; } return $renderChildrenClosure(); } else { $result = static::renderStaticElseChild($arguments, $hasEvaluated); if ($hasEvaluated) { return $result; } } return ''; }
/** * Main Render function */ public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $self = $this; $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output3 = ''; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\LayoutViewHelper $arguments4 = array(); $arguments4['name'] = 'default'; $renderChildrenClosure5 = function () { return NULL; }; $viewHelper6 = $self->getViewHelper('$viewHelper6', $renderingContext, 'TYPO3\\CMS\\Fluid\\ViewHelpers\\LayoutViewHelper'); $viewHelper6->setArguments($arguments4); $viewHelper6->setRenderingContext($renderingContext); $viewHelper6->setRenderChildrenClosure($renderChildrenClosure5); // End of ViewHelper TYPO3\CMS\Fluid\ViewHelpers\LayoutViewHelper $output3 .= $viewHelper6->initializeArgumentsAndRender(); $output3 .= ' '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\SectionViewHelper $arguments7 = array(); $arguments7['name'] = 'content'; $renderChildrenClosure8 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); $output9 = ''; $output9 .= ' <!--TYPO3SEARCH_begin--> '; // Rendering ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Format\RawViewHelper $arguments10 = array(); $arguments10['value'] = NULL; $renderChildrenClosure11 = function () use($renderingContext, $self) { $currentVariableContainer = $renderingContext->getTemplateVariableContainer(); return $currentVariableContainer->getOrNull('content'); }; $output9 .= TYPO3\CMS\Fluid\ViewHelpers\Format\RawViewHelper::renderStatic($arguments10, $renderChildrenClosure11, $renderingContext); $output9 .= ' <!--TYPO3SEARCH_end--> '; return $output9; }; $output3 .= ''; return $output3; }
/** * @param array $arguments * @param callable $renderChildrenClosure * @param \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext * @return string * @throws \TYPO3\CMS\Fluid\Core\ViewHelper\Exception */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) { $templateVariableContainer = $renderingContext->getTemplateVariableContainer(); if ($arguments['each'] === NULL) { return ''; } if (is_object($arguments['each']) && !$arguments['each'] instanceof \Traversable) { throw new \TYPO3\CMS\Fluid\Core\ViewHelper\Exception('ForViewHelper only supports arrays and objects implementing Traversable interface', 1248728393); } if ($arguments['reverse'] === TRUE) { // array_reverse only supports arrays if (is_object($arguments['each'])) { $arguments['each'] = iterator_to_array($arguments['each']); } $arguments['each'] = array_reverse($arguments['each']); } $iterationData = array('index' => 0, 'cycle' => 1, 'total' => count($arguments['each'])); $output = ''; foreach ($arguments['each'] as $keyValue => $singleElement) { $templateVariableContainer->add($arguments['as'], $singleElement); if ($arguments['key'] !== '') { $templateVariableContainer->add($arguments['key'], $keyValue); } if ($arguments['iteration'] !== NULL) { $iterationData['isFirst'] = $iterationData['cycle'] === 1; $iterationData['isLast'] = $iterationData['cycle'] === $iterationData['total']; $iterationData['isEven'] = $iterationData['cycle'] % 2 === 0; $iterationData['isOdd'] = !$iterationData['isEven']; $templateVariableContainer->add($arguments['iteration'], $iterationData); $iterationData['cycle']++; } $iterationData['index']++; if (($arguments['fromIndex'] == -1 || $arguments['fromIndex'] <= $iterationData['index']) && ($arguments['toIndex'] == -1 || $arguments['toIndex'] >= $iterationData['index'])) { $output .= $renderChildrenClosure(); } $templateVariableContainer->remove($arguments['as']); if ($arguments['key'] !== '') { $templateVariableContainer->remove($arguments['key']); } if ($arguments['iteration'] !== NULL) { $templateVariableContainer->remove($arguments['iteration']); } } return $output; }