Olivier Massot пре 5 година
родитељ
комит
ae79380914

+ 1 - 1
ot_connect/ext_localconf.php

@@ -1,7 +1,7 @@
 <?php
 defined('TYPO3_MODE') || die();
 
-//// Register Opentalent authentication service with TYPO3
+// Register Opentalent authentication service with TYPO3
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
     'ot_connect',
     'auth',

+ 0 - 152
ot_templating/Resources/Private/Forms/Contact.form.yaml

@@ -1,152 +0,0 @@
-identifier: Contact
-label: 'Formulaire de Contact'
-prototypeName: standard
-type: Form
-
-renderingOptions:
-  submitButtonLabel: Envoyer
-
-finishers:
-  -
-    identifier: EmailToReceiver
-    options:
-      subject: 'Demande d''information'
-      recipientAddress:
-      recipientName: ''
-      senderAddress: ne_pas_repondre@opentalent.fr
-      senderName: ''
-      replyToAddress: ''
-      carbonCopyAddress: ''
-      blindCarbonCopyAddress: ''
-      format: html
-      attachUploads: 'true'
-      translation:
-        language: ''
-  -
-    identifier: EmailToSender
-    options:
-      subject: 'Bonjour / Nous avons pris en compte votre demande.'
-      recipientAddress: '{mail}'
-      recipientName: '{first-name} {last-name}'
-      senderAddress: ne_pas_repondre@opentalent.fr
-      senderName: ''
-      replyToAddress: ''
-      carbonCopyAddress: ''
-      blindCarbonCopyAddress: ''
-      format: html
-      attachUploads: 'false'
-  -
-    identifier: Confirmation
-    options:
-      message: 'Votre message a bien été envoyé'
-      contentElementUid: ''
-
-renderables:
-  -
-    identifier: page-1
-    label: 'Écrivez-nous:'
-    type: Page
-
-    renderingOptions:
-      previousButtonLabel: 'Précédent'
-      nextButtonLabel: 'Suivant'
-
-    renderables:
-      -
-        type: StaticText
-        identifier: notice
-        properties:
-          text: 'Note: Les champs marqués d''une astérisque (*) sont obligatoires'
-          elementClassAttribute: 'contact-form-info'
-        label: ''
-      -
-        type: GridRow
-        identifier: row1
-        label: ''
-        renderables:
-          -
-            identifier: last-name
-            label: 'Nom'
-            type: Text
-            defaultValue: ''
-            properties:
-              fluidAdditionalAttributes:
-                required: required
-            validators:
-              - identifier: NotEmpty
-
-          -
-            identifier: first-name
-            label: 'Prénom'
-            type: Text
-            defaultValue: ''
-            properties:
-              fluidAdditionalAttributes:
-                required: required
-            validators:
-              -
-                identifier: NotEmpty
-
-      -
-        identifier: mail
-        label: 'Adresse email'
-        type: Text
-        defaultValue: ''
-        properties:
-          fluidAdditionalAttributes:
-            required: required
-        validators:
-          -
-            identifier: EmailAddress
-          -
-            identifier: NotEmpty
-
-      -
-        type: GridRow
-        identifier: row2
-        label: ''
-        renderables:
-
-          -
-            identifier: postal-code
-            label: 'Code postal'
-            type: Text
-            defaultValue: ''
-            validators:
-              -
-                identifier: Integer
-
-          -
-            identifier: city
-            label: 'Ville'
-            type: Text
-            defaultValue: ''
-
-          -
-            identifier: phone
-            label: 'Téléphone'
-            type: Text
-            defaultValue: ''
-      -
-        identifier: subject
-        label: 'Objet'
-        type: Text
-        defaultValue: ''
-        properties:
-          fluidAdditionalAttributes:
-            required: required
-        validators:
-          -
-            identifier: NotEmpty
-      -
-        identifier: message
-        label: 'Message'
-        type: Textarea
-        defaultValue: ''
-        properties:
-          fluidAdditionalAttributes:
-            placeholder: 'Votre message ici...'
-            required: required
-        validators:
-          -
-            identifier: NotEmpty

+ 0 - 76
ot_templating/Resources/Private/Templates/Content/Classic/Carousel.html

@@ -1,76 +0,0 @@
-<f:comment><!-- Widget flux par Opentalent: Carousel --></f:comment>
-<f:comment><!-- Require: https://kenwheeler.github.io/slick/ --></f:comment>
-
-{namespace v=FluidTYPO3\Vhs\ViewHelpers}
-{namespace flux=FluidTYPO3\Flux\ViewHelpers}
-
-<div xmlns="http://www.w3.org/1999/xhtml"
-     xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
-     xmlns:v="http://fedext.net/ns/vhs/ViewHelpers"
-     xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
-
-    <f:layout name="{settings.template}/CustomContent"/>
-
-    <f:section name="Configuration">
-        <flux:form id="Carousel"
-                   label="Carrousel"
-                   description="Insérez un carrousel d'images"
-                   extensionName="OtTemplating"
-        >
-            <flux:form.option.group value="fce" />
-            <flux:form.option.icon value="EXT:ot_templating/Resources/Public/Icons/opentalent-144x144.png" />
-
-            <flux:field.input name="width" eval="trim" default="600" label="Largeur (en pixels)"/>
-            <flux:field.input name="height" eval="trim" default="400" label="Hauteur (en pixels)"/>
-            <flux:field.checkbox name="crop" label="Rogner les images trop grandes ?" default="0"/>
-
-            <flux:field.inline.fal name="images" minItems="2" maxItems="24"/>
-
-        </flux:form>
-    </f:section>
-
-    <f:section name="Preview">
-        <p>Carrousel</p>
-
-        <div class="be-carousel-preview">
-            <f:for each="{v:content.resources.fal(field: 'images', uid: '{record.uid}')}"
-                   as="image"
-                   iteration="iterator">
-
-                <f:image treatIdAsReference="1"
-                         src="{image.id}"
-                         title="{image.title}"
-                         alt="{image.alternative}"
-                         class="be-carousel-img-preview"
-                         maxWidth="128"
-                         maxHeight="128"
-                />
-
-            </f:for>
-        </div>
-    </f:section>
-
-    <f:section name="Main">
-
-        <div class="center-carousel">
-            <div class="carousel" style="max-width:{width}px; max-height:{height}px">
-                <f:for each="{v:content.resources.fal(field: 'images', uid: '{record.uid}')}"
-                       as="image"
-                       iteration="iterator">
-                    <div style="height: {height}px">
-                        <f:image treatIdAsReference="1"
-                                 src="{image.id}"
-                                 title="{image.title}"
-                                 alt="{image.alternative}"
-                                 class="carousel-img"
-                                 width="{width}"
-                                 maxHeight="{height}{f:if(condition: crop, then: 'c')}"
-                        />
-                    </div>
-                </f:for>
-            </div>
-        </div>
-
-    </f:section>
-
-</div>

+ 0 - 30
ot_templating/Resources/Private/Templates/Content/Classic/FCE50-50.html

@@ -1,30 +0,0 @@
-<f:comment><!-- Widget flux par Site N'Go: : Container à 2 colonnes --></f:comment>
-
-{namespace v=FluidTYPO3\Vhs\ViewHelpers}
-{namespace flux=FluidTYPO3\Flux\ViewHelpers}
-
-<f:layout name="CustomContent" />
-
-<f:section name="Configuration">
-    <flux:form id="FCE50-50"
-               label="Conteneur 50/50"
-               description="Container à deux colonnes"
-               extensionName="OtTemplating"
-    >
-        <flux:form.option.group value="fce" />
-        <flux:form.option.icon value="EXT:ot_templating/Resources/Public/Icons/opentalent-144x144.png" />
-    </flux:form>
-    <flux:grid>
-        <flux:grid.row>
-            <flux:grid.column name="contentLeft" label="Colonne gauche" colPos="0"/>
-            <flux:grid.column name="contentRight" label="Colonne droite" colPos="1"/>
-        </flux:grid.row>
-    </flux:grid>
-</f:section>
-
-<f:section name="Main">
-    <div class="fce-2col row">
-        <div class="col"><flux:content.render area="contentLeft" /></div>
-        <div class="col"><flux:content.render area="contentRight" /></div>
-    </div>
-</f:section>

+ 0 - 79
ot_templating/Resources/Private/Templates/Content/Classic/Faq.html

@@ -1,79 +0,0 @@
-<f:comment><!-- Widget flux par Site N'Go: FAQ --></f:comment>
-
-{namespace v=FluidTYPO3\Vhs\ViewHelpers}
-{namespace flux=FluidTYPO3\Flux\ViewHelpers}
-
-<div xmlns="http://www.w3.org/1999/xhtml"
-     xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
-     xmlns:v="http://fedext.net/ns/vhs/ViewHelpers"
-     xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
-
-    <f:layout name="CustomContent"/>
-
-    <f:section name="Configuration">
-        <flux:form id="Faq"
-                   label="F.A.Q"
-                   description="Concevez votre section 'Foire aux Questions'"
-                   extensionName="OtTemplating"
-        >
-            <flux:form.option.group value="fce" />
-            <flux:form.option.icon value="EXT:ot_templating/Resources/Public/Icons/opentalent-144x144.png" />
-
-            <flux:form.section name="faq">
-                <flux:form.object name="item" label="Question">
-                    <flux:field.input name="question" label="Question"/>
-                    <flux:field.text name="reponse" label="Réponse" defaultExtras="richtext[]:rte_transform[mode=ts_css]"/>
-                    <flux:field.checkbox name="open" label="Dépliée ?"/>
-                </flux:form.object>
-            </flux:form.section>
-        </flux:form>
-    </f:section>
-
-    <f:section name="Preview">
-        <table style="width: 100%;" class="table table-condensed table-hover">
-            <thead>
-            <tr>
-                <th>#</th>
-                <th>Question</th>
-                <th>Réponse</th>
-            </tr>
-            </thead>
-            <tbody>
-            <f:for each="{faq}" as="element" iteration="iteration">
-                <f:for each="{element}" key="elementType" as="elementData">
-                    <tr valign="middle">
-                        <td style="vertical-align: middle;">{iteration.cycle}</td>
-                        <td style="vertical-align: middle;">{elementData.question}</td>
-                        <td style="vertical-align: middle;"><f:format.raw>{elementData.reponse}</f:format.raw></td>
-                    </tr>
-                </f:for>
-            </f:for>
-            </tbody>
-        </table>
-    </f:section>
-
-    <f:section name="Main">
-
-        <div class="faq">
-            <f:for each="{faq}" as="element" iteration="iteration">
-                <f:for each="{element}" key="elementType" as="elementData">
-                    <div class="full-width faq-item {f:if(condition:'{iteration.isOdd}',then:'highlight')}">
-                        <div class="container">
-                            <div class="row">
-                                <div class="edito {f:if(condition:'{elementData.open}',else:'panel-close')}">
-                                    <h3>{elementData.question}</h3>
-                                    <div class="content collapse {f:if(condition:'{elementData.open}',then:'show')}">
-                                        <f:format.html>{elementData.reponse}</f:format.html>
-                                    </div>
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-                </f:for>
-            </f:for>
-        </div>
-
-
-    </f:section>
-
-</div>

+ 0 - 76
ot_templating/Resources/Private/Templates/Content/Modern/Carousel.html

@@ -1,76 +0,0 @@
-<f:comment><!-- Widget flux par Opentalent: Carousel --></f:comment>
-<f:comment><!-- Require: https://kenwheeler.github.io/slick/ --></f:comment>
-
-{namespace v=FluidTYPO3\Vhs\ViewHelpers}
-{namespace flux=FluidTYPO3\Flux\ViewHelpers}
-
-<div xmlns="http://www.w3.org/1999/xhtml"
-     xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
-     xmlns:v="http://fedext.net/ns/vhs/ViewHelpers"
-     xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
-
-    <f:layout name="{settings.template}/CustomContent"/>
-
-    <f:section name="Configuration">
-        <flux:form id="Carousel"
-                   label="Carrousel"
-                   description="Insérez un carrousel d'images"
-                   extensionName="OtTemplating"
-        >
-            <flux:form.option.group value="fce" />
-            <flux:form.option.icon value="EXT:ot_templating/Resources/Public/Icons/opentalent-144x144.png" />
-
-            <flux:field.input name="width" eval="trim" default="600" label="Largeur (en pixels)"/>
-            <flux:field.input name="height" eval="trim" default="400" label="Hauteur (en pixels)"/>
-            <flux:field.checkbox name="crop" label="Rogner les images trop grandes ?" default="0"/>
-
-            <flux:field.inline.fal name="images" minItems="2" maxItems="24"/>
-
-        </flux:form>
-    </f:section>
-
-    <f:section name="Preview">
-        <p>Carrousel</p>
-
-        <div class="be-carousel-preview">
-            <f:for each="{v:content.resources.fal(field: 'images', uid: '{record.uid}')}"
-                   as="image"
-                   iteration="iterator">
-
-                <f:image treatIdAsReference="1"
-                         src="{image.id}"
-                         title="{image.title}"
-                         alt="{image.alternative}"
-                         class="be-carousel-img-preview"
-                         maxWidth="128"
-                         maxHeight="128"
-                />
-
-            </f:for>
-        </div>
-    </f:section>
-
-    <f:section name="Main">
-
-        <div class="center-carousel">
-            <div class="carousel" style="max-width:{width}px; max-height:{height}px">
-                <f:for each="{v:content.resources.fal(field: 'images', uid: '{record.uid}')}"
-                       as="image"
-                       iteration="iterator">
-                    <div style="height: {height}px">
-                        <f:image treatIdAsReference="1"
-                                 src="{image.id}"
-                                 title="{image.title}"
-                                 alt="{image.alternative}"
-                                 class="carousel-img"
-                                 width="{width}"
-                                 maxHeight="{height}{f:if(condition: crop, then: 'c')}"
-                        />
-                    </div>
-                </f:for>
-            </div>
-        </div>
-
-    </f:section>
-
-</div>

+ 0 - 30
ot_templating/Resources/Private/Templates/Content/Modern/FCE50-50.html

@@ -1,30 +0,0 @@
-<f:comment><!-- Widget flux par Site N'Go: : Container à 2 colonnes --></f:comment>
-
-{namespace v=FluidTYPO3\Vhs\ViewHelpers}
-{namespace flux=FluidTYPO3\Flux\ViewHelpers}
-
-<f:layout name="CustomContent" />
-
-<f:section name="Configuration">
-    <flux:form id="FCE50-50"
-               label="Conteneur 50/50"
-               description="Container à deux colonnes"
-               extensionName="OtTemplating"
-    >
-        <flux:form.option.group value="fce" />
-        <flux:form.option.icon value="EXT:ot_templating/Resources/Public/Icons/opentalent-144x144.png" />
-    </flux:form>
-    <flux:grid>
-        <flux:grid.row>
-            <flux:grid.column name="contentLeft" label="Colonne gauche" colPos="0"/>
-            <flux:grid.column name="contentRight" label="Colonne droite" colPos="1"/>
-        </flux:grid.row>
-    </flux:grid>
-</f:section>
-
-<f:section name="Main">
-    <div class="fce-2col row">
-        <div class="col"><flux:content.render area="contentLeft" /></div>
-        <div class="col"><flux:content.render area="contentRight" /></div>
-    </div>
-</f:section>

+ 0 - 79
ot_templating/Resources/Private/Templates/Content/Modern/Faq.html

@@ -1,79 +0,0 @@
-<f:comment><!-- Widget flux par Site N'Go: FAQ --></f:comment>
-
-{namespace v=FluidTYPO3\Vhs\ViewHelpers}
-{namespace flux=FluidTYPO3\Flux\ViewHelpers}
-
-<div xmlns="http://www.w3.org/1999/xhtml"
-     xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
-     xmlns:v="http://fedext.net/ns/vhs/ViewHelpers"
-     xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
-
-    <f:layout name="CustomContent"/>
-
-    <f:section name="Configuration">
-        <flux:form id="Faq"
-                   label="F.A.Q"
-                   description="Concevez votre section 'Foire aux Questions'"
-                   extensionName="OtTemplating"
-        >
-            <flux:form.option.group value="fce" />
-            <flux:form.option.icon value="EXT:ot_templating/Resources/Public/Icons/opentalent-144x144.png" />
-
-            <flux:form.section name="faq">
-                <flux:form.object name="item" label="Question">
-                    <flux:field.input name="question" label="Question"/>
-                    <flux:field.text name="reponse" label="Réponse" defaultExtras="richtext[]:rte_transform[mode=ts_css]"/>
-                    <flux:field.checkbox name="open" label="Dépliée ?"/>
-                </flux:form.object>
-            </flux:form.section>
-        </flux:form>
-    </f:section>
-
-    <f:section name="Preview">
-        <table style="width: 100%;" class="table table-condensed table-hover">
-            <thead>
-            <tr>
-                <th>#</th>
-                <th>Question</th>
-                <th>Réponse</th>
-            </tr>
-            </thead>
-            <tbody>
-            <f:for each="{faq}" as="element" iteration="iteration">
-                <f:for each="{element}" key="elementType" as="elementData">
-                    <tr valign="middle">
-                        <td style="vertical-align: middle;">{iteration.cycle}</td>
-                        <td style="vertical-align: middle;">{elementData.question}</td>
-                        <td style="vertical-align: middle;"><f:format.raw>{elementData.reponse}</f:format.raw></td>
-                    </tr>
-                </f:for>
-            </f:for>
-            </tbody>
-        </table>
-    </f:section>
-
-    <f:section name="Main">
-
-        <div class="faq">
-            <f:for each="{faq}" as="element" iteration="iteration">
-                <f:for each="{element}" key="elementType" as="elementData">
-                    <div class="full-width faq-item {f:if(condition:'{iteration.isOdd}',then:'highlight')}">
-                        <div class="container">
-                            <div class="row">
-                                <div class="edito {f:if(condition:'{elementData.open}',else:'panel-close')}">
-                                    <h3>{elementData.question}</h3>
-                                    <div class="content collapse {f:if(condition:'{elementData.open}',then:'show')}">
-                                        <f:format.html>{elementData.reponse}</f:format.html>
-                                    </div>
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-                </f:for>
-            </f:for>
-        </div>
-
-
-    </f:section>
-
-</div>

+ 5 - 0
ot_templating/ext_localconf.php

@@ -36,3 +36,8 @@ $GLOBALS['TYPO3_CONF_VARS']['LOG']['Opentalent']['OtTemplating']['writerConfigur
         ]
     ]
 ];
+
+
+// Temp patch for https://www.gitmemory.com/issue/FluidTYPO3/vhs/1675/663826916
+if(!defined("PATH_site")) { define("PATH_site", \TYPO3\CMS\Core\Core\Environment::getPublicPath() . '/'); }
+