160 lines
4.4 KiB
PHP
160 lines
4.4 KiB
PHP
<?php
|
|
class partial_ButtonBar_375e5676a2968412 extends \TYPO3Fluid\Fluid\Core\Compiler\AbstractCompiledTemplate {
|
|
public function getLayoutName(\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) {
|
|
return (string)'';
|
|
}
|
|
public function hasLayout() {
|
|
return false;
|
|
}
|
|
public function addCompiledNamespaces(\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) {
|
|
$renderingContext->getViewHelperResolver()->addNamespaces(array (
|
|
'core' =>
|
|
array (
|
|
0 => 'TYPO3\\CMS\\Core\\ViewHelpers',
|
|
),
|
|
'f' =>
|
|
array (
|
|
0 => 'TYPO3Fluid\\Fluid\\ViewHelpers',
|
|
1 => 'TYPO3\\CMS\\Fluid\\ViewHelpers',
|
|
),
|
|
'formvh' =>
|
|
array (
|
|
0 => 'TYPO3\\CMS\\Form\\ViewHelpers',
|
|
),
|
|
'sit' =>
|
|
array (
|
|
0 => 'SJBR\\StaticInfoTables\\ViewHelpers',
|
|
),
|
|
));
|
|
}
|
|
/**
|
|
* Main Render function
|
|
*/
|
|
public function render(\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) {
|
|
$output0 = '';
|
|
|
|
$output0 .= '<div class="btn-toolbar" role="toolbar" aria-label="">
|
|
';
|
|
// Rendering ViewHelper TYPO3Fluid\Fluid\ViewHelpers\ForViewHelper
|
|
$renderChildrenClosure2 = function() use ($renderingContext) {
|
|
$output3 = '';
|
|
|
|
$output3 .= '
|
|
';
|
|
// Rendering ViewHelper TYPO3Fluid\Fluid\ViewHelpers\IfViewHelper
|
|
// Rendering ViewHelper TYPO3Fluid\Fluid\ViewHelpers\CountViewHelper
|
|
$renderChildrenClosure7 = function() use ($renderingContext) {
|
|
return $renderingContext->getVariableProvider()->getByPath('buttonGroup');
|
|
};
|
|
|
|
$arguments6 = [
|
|
'subject' => NULL,
|
|
];
|
|
$renderChildrenClosure7 = ($arguments6['subject'] !== null) ? function() use ($arguments6) { return $arguments6['subject']; } : $renderChildrenClosure7;
|
|
$array5 = [
|
|
'0' => TYPO3Fluid\Fluid\ViewHelpers\CountViewHelper::renderStatic($arguments6, $renderChildrenClosure7, $renderingContext),
|
|
'1' => ' > 1',
|
|
];
|
|
|
|
$expression8 = function($context) {return (TYPO3Fluid\Fluid\Core\Parser\BooleanParser::convertNodeToBoolean($context["node0"]) > 1);};
|
|
|
|
$arguments4 = [
|
|
'then' => NULL,
|
|
'else' => NULL,
|
|
'condition' => TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\BooleanNode::convertToBoolean(
|
|
$expression8(TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\BooleanNode::gatherContext($renderingContext, $array5)),
|
|
$renderingContext
|
|
),
|
|
'__then' => function() use ($renderingContext) {
|
|
$output9 = '';
|
|
|
|
$output9 .= '
|
|
<div class="btn-group" role="group" aria-label="">
|
|
';
|
|
// Rendering ViewHelper TYPO3Fluid\Fluid\ViewHelpers\ForViewHelper
|
|
$renderChildrenClosure11 = function() use ($renderingContext) {
|
|
$output12 = '';
|
|
|
|
$output12 .= '
|
|
';
|
|
// Rendering ViewHelper TYPO3Fluid\Fluid\ViewHelpers\Format\RawViewHelper
|
|
$renderChildrenClosure14 = function() use ($renderingContext) {
|
|
return $renderingContext->getVariableProvider()->getByPath('button');
|
|
};
|
|
|
|
$arguments13 = [
|
|
'value' => NULL,
|
|
];
|
|
|
|
$output12 .= isset($arguments13['value']) ? $arguments13['value'] : $renderChildrenClosure14();
|
|
|
|
$output12 .= '
|
|
';
|
|
return $output12;
|
|
};
|
|
|
|
$arguments10 = [
|
|
'key' => NULL,
|
|
'reverse' => false,
|
|
'iteration' => NULL,
|
|
'each' => $renderingContext->getVariableProvider()->getByPath('buttonGroup'),
|
|
'as' => 'button',
|
|
];
|
|
|
|
$output9 .= TYPO3Fluid\Fluid\ViewHelpers\ForViewHelper::renderStatic($arguments10, $renderChildrenClosure11, $renderingContext);
|
|
|
|
$output9 .= '
|
|
</div>
|
|
';
|
|
return $output9;
|
|
},
|
|
'__else' => function() use ($renderingContext) {
|
|
$output15 = '';
|
|
|
|
$output15 .= '
|
|
';
|
|
// Rendering ViewHelper TYPO3Fluid\Fluid\ViewHelpers\Format\RawViewHelper
|
|
$renderChildrenClosure17 = function() use ($renderingContext) {
|
|
return $renderingContext->getVariableProvider()->getByPath('buttonGroup.0');
|
|
};
|
|
|
|
$arguments16 = [
|
|
'value' => NULL,
|
|
];
|
|
|
|
$output15 .= isset($arguments16['value']) ? $arguments16['value'] : $renderChildrenClosure17();
|
|
|
|
$output15 .= '
|
|
';
|
|
return $output15;
|
|
},
|
|
];
|
|
|
|
$output3 .= TYPO3Fluid\Fluid\ViewHelpers\IfViewHelper::renderStatic($arguments4, static fn() => '', $renderingContext)
|
|
;
|
|
|
|
$output3 .= '
|
|
';
|
|
return $output3;
|
|
};
|
|
|
|
$arguments1 = [
|
|
'key' => NULL,
|
|
'reverse' => false,
|
|
'iteration' => NULL,
|
|
'each' => $renderingContext->getVariableProvider()->getByPath('buttons'),
|
|
'as' => 'buttonGroup',
|
|
];
|
|
|
|
$output0 .= TYPO3Fluid\Fluid\ViewHelpers\ForViewHelper::renderStatic($arguments1, $renderChildrenClosure2, $renderingContext);
|
|
|
|
$output0 .= '
|
|
</div>
|
|
';
|
|
|
|
return $output0;
|
|
}
|
|
|
|
}
|
|
|
|
#
|