Last active
August 29, 2015 14:08
-
-
Save dimaip/af931e5c105f3b13009e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{namespace neos=TYPO3\Neos\ViewHelpers} | |
{namespace media=TYPO3\Media\ViewHelpers} | |
<f:section name="tab"> | |
<div class="QuoteAndPictureBlockAnchor"> | |
<f:if condition="{image}"> | |
<div class="QuoteAndPictureBlockAnchor-Image"> | |
<media:image asset="{image}" alt="{alternativeText}" title="{title}" maximumWidth="{maximumWidth}" maximumHeight="{maximumHeight}" allowCropping="{allowCropping}" allowUpScaling="{allowUpScaling}" /> | |
</div> | |
</f:if> | |
</div> | |
</f:section> | |
<f:section name="accordion"> | |
<div class="QuoteAndPictureBlockAnchor"> | |
<div class="row"> | |
<div class="small-4 columns"> | |
<f:if condition="{image}"> | |
<div class="QuoteAndPictureBlockAnchor-Image"> | |
<media:image asset="{image}" alt="{alternativeText}" title="{title}" maximumWidth="{maximumWidth}" maximumHeight="{maximumHeight}" allowCropping="{allowCropping}" allowUpScaling="{allowUpScaling}" /> | |
</div> | |
</f:if> | |
</div> | |
<div class="small-8 columns" style="padding-left:0"> | |
<div class="QuoteAndPictureBlockAnchor-AuthorName color-section"> | |
{authorName -> f:format.raw()} | |
</div> | |
<div class="QuoteAndPictureBlockAnchor-AuthorDescription"> | |
{authorDescription -> f:format.raw()} | |
</div> | |
</div> | |
</div> | |
</div> | |
</f:section> | |
<f:section name="panel"> | |
<div class="QuoteAndPictureBlock"> | |
<div class="row"> | |
<div class="large-6 columns"> | |
<div class="QuoteAndPictureBlock-AuthorName color-section hide-for-small-only"> | |
{neos:contentElement.editable(property: 'authorName')} | |
</div> | |
<div class="QuoteAndPictureBlock-AuthorDescription hide-for-small-only"> | |
{neos:contentElement.editable(property: 'authorDescription')} | |
</div> | |
<div class="QuoteAndPictureBlock-Text"> | |
{neos:contentElement.editable(property: 'text')} | |
</div> | |
</div> | |
<div class="large-6 columns"> | |
<div class="QuoteAndPictureBlock-Image"> | |
{picture -> f:format.raw()} | |
</div> | |
</div> | |
</div> | |
</div> | |
</f:section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prototype(Sfi.Sfi:QuoteAndPictureBlock) { | |
sectionName = ${section} | |
node = ${q(node).get(0)} | |
@override.theNode = ${this.node} | |
picture = TYPO3.Neos.NodeTypes:Image{ | |
@override.node = ${q(theNode).children('picture').get(0)} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Sfi.Sfi:QuoteAndPictureBlock': | |
superTypes: | |
- 'Sfi.Sfi:QuoteBlock' | |
childNodes: | |
picture: | |
type: 'TYPO3.Neos.NodeTypes:Image' | |
ui: | |
label: 'Quote with Picture' | |
icon: 'icon-edit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment