浏览代码

https://assistance.opentalent.fr/browse/V8-1707

Olivier Massot 4 年之前
父节点
当前提交
c14a59efab
共有 25 个文件被更改,包括 530 次插入0 次删除
  1. 100 0
      ot_templating/Classes/ViewHelpers/Members/GetPresidentViewHelper.php
  2. 89 0
      ot_templating/Resources/Private/Layouts/Classic/Legal.html
  3. 95 0
      ot_templating/Resources/Private/Layouts/Modern/Legal.html
  4. 18 0
      ot_templating/Resources/Private/Templates/Page/Legal.html
  5. 22 0
      ot_templating/Resources/Public/assets/Classic/style/classic-blue.css
  6. 0 0
      ot_templating/Resources/Public/assets/Classic/style/classic-blue.css.map
  7. 22 0
      ot_templating/Resources/Public/assets/Classic/style/classic-green.css
  8. 0 0
      ot_templating/Resources/Public/assets/Classic/style/classic-green.css.map
  9. 22 0
      ot_templating/Resources/Public/assets/Classic/style/classic-grey.css
  10. 0 0
      ot_templating/Resources/Public/assets/Classic/style/classic-grey.css.map
  11. 22 0
      ot_templating/Resources/Public/assets/Classic/style/classic-light-blue.css
  12. 0 0
      ot_templating/Resources/Public/assets/Classic/style/classic-light-blue.css.map
  13. 22 0
      ot_templating/Resources/Public/assets/Classic/style/classic-light-red.css
  14. 0 0
      ot_templating/Resources/Public/assets/Classic/style/classic-light-red.css.map
  15. 22 0
      ot_templating/Resources/Public/assets/Classic/style/classic-orange.css
  16. 0 0
      ot_templating/Resources/Public/assets/Classic/style/classic-orange.css.map
  17. 22 0
      ot_templating/Resources/Public/assets/Classic/style/classic-purple.css
  18. 0 0
      ot_templating/Resources/Public/assets/Classic/style/classic-purple.css.map
  19. 22 0
      ot_templating/Resources/Public/assets/Classic/style/classic-red.css
  20. 0 0
      ot_templating/Resources/Public/assets/Classic/style/classic-red.css.map
  21. 23 0
      ot_templating/Resources/Public/assets/Classic/style/module/_legal.scss
  22. 0 0
      ot_templating/Resources/Public/assets/Classic/style/style.css
  23. 0 0
      ot_templating/Resources/Public/assets/Classic/style/style.css.map
  24. 2 0
      ot_templating/Resources/Public/assets/Classic/style/style.scss
  25. 27 0
      ot_templating/Resources/Public/assets/Modern/style/custom.css

+ 100 - 0
ot_templating/Classes/ViewHelpers/Members/GetPresidentViewHelper.php

@@ -0,0 +1,100 @@
+<?php
+
+namespace Opentalent\OtTemplating\ViewHelpers\Members;
+
+use FluidTYPO3\Vhs\Traits\TemplateVariableViewHelperTrait;
+use Opentalent\OtCore\ViewHelpers\OtAbstractViewHelper;
+use Opentalent\OtCore\Domain\Repository\MemberRepository;
+use Opentalent\OtCore\Exception\ApiRequestException;
+
+/**
+ *   This view helper give access to an array named according to the 'as' variable
+ *   and which contains the CA members of the structure classed by role
+ *
+ *     {namespace ot=Opentalent\OtTemplating\ViewHelpers}
+ *
+ *     <ot:members.getPresident as="president" organizationId="{settings.organizationId}">
+ *          <f:debug>{president}</f:debug>
+ *     </ot:members.getAllCa>
+ *
+ * @package Opentalent\OtTemplating\ViewHelpers
+ */
+class GetPresidentViewHelper extends OtAbstractViewHelper {
+
+    use TemplateVariableViewHelperTrait;
+
+    /**
+     * >> Required to prevent typo3 to escape the html output
+     * @var boolean
+     */
+    protected $escapeOutput = false;
+
+    /**
+     * @var MemberRepository
+     *
+     */
+    protected $memberRepository;
+
+    /**
+     * -- This method is expected by Fluid --
+     * Declares the viewhelper's parameters
+     */
+    public function initializeArguments()
+    {
+        $this->registerArgument(
+            'as',
+            'string',
+            'Name of the returned array',
+            true
+        );
+        $this->registerArgument(
+            'organizationId',
+            'integer',
+            'Id of the current structure',
+            true
+        );
+    }
+
+    /**
+     * -- This method is expected by Fluid --
+     * Renders the content as html
+     *
+     * @return string
+     * @throws \GuzzleHttp\Exception\GuzzleException
+     * @throws \Opentalent\OtTemplating\Exception\ApiRequestException
+     */
+    public function render()
+    {
+        // Get current settings
+        $as = $this->arguments['as'];
+        $organizationId = $this->arguments['organizationId'];
+
+        // Get members of the structure (only CA members)
+        try {
+            $collection = $this->memberRepository->findByOrganizationId($organizationId, true);
+            $members = $collection->getMembers();
+        } catch (ApiRequestException $e) {
+            $this->logger->error(sprintf('API Error: %s', $e->getMessage()));
+            $members = [];
+        }
+
+        $president = null;
+        foreach ($members as $member) {
+            if ($member->getMission() == 'PRESIDENT') {
+                $president = $member;
+                break;
+            }
+        }
+
+        $variables = [$as => $president];
+        return $this->renderChildrenWithVariables($variables);
+    }
+
+    /**
+     * @param MemberRepository $memberRepository
+     */
+    public function injectMemberRepository(MemberRepository $memberRepository)
+    {
+        $this->memberRepository = $memberRepository;
+    }
+}

+ 89 - 0
ot_templating/Resources/Private/Layouts/Classic/Legal.html

@@ -0,0 +1,89 @@
+{namespace ot=Opentalent\OtTemplating\ViewHelpers}
+{namespace formvh=TYPO3\CMS\Form\ViewHelpers}
+
+<f:comment><!-- Special layout for the Contact page --></f:comment>
+<f:layout name="Legal" />
+
+<f:comment><!-- Render the header defined in partial/header.html--></f:comment>
+<f:render partial="Classic/Header" arguments="{_all}" />
+
+<div class="main">
+
+    <f:comment><!-- Central column --></f:comment>
+    <div class="content">
+        <div class="ot-legal">
+            <h2>Mentions légales</h2>
+
+            <section>
+                <p>
+                    Ce site est mis à disposition de: <strong>{settings.structureName}</strong><br>
+                    par la Société <strong>2IOpenService</strong> dans le cadre de sa gamme <strong>Opentalent</strong>
+                </p>
+
+                <ot:members.getPresident as="president" organizationId="{settings.organizationId}">
+                    <f:if condition="{president}">
+                        <p>
+                            Directeur de publication: {president.fullName}
+                        </p>
+                    </f:if>
+                </ot:members.getPresident>
+            </section>
+
+            <h4>Hébergeur</h4>
+
+            <section>
+                <div>
+                    <div>VIA NUMERICA</div>
+                    <div>Technopole d'Archamps</div>
+                    <div>231, rue Douglas Engelbert</div>
+                    <div>74160 ARCHAMPS</div>
+                    <div>Tel : +33 (0) 458 02 01 13</div>
+                    <div><b><a href="http://www.via-numerica.net" target="_blank" class="moz-txt-link-abbreviated">www.via-numerica.net</a></b></div>
+                </div>
+            </section>
+
+            <h4>Propriété intellectuelle</h4>
+
+            <section>
+                <p>
+                    La société 2IOpenService est créatrice du design du site et détient tous les droits de propriété intellectuelle
+                    afférents à ses différents éléments, notamment mais sans que cela ne soit exhaustif: la charte graphique, les textes,
+                    la base de données, les logiciels et images placés dans les cadres non modifiables. Elle détient également
+                    les droits relatifs aux pages telles que générées par Opentalent et mises à la disposition des sites
+                    des structures et fédérations.
+                </p>
+                <p>
+                    2IOpenService ne gère en rien la propriété des droits existant sur les contenus mis en ligne par les structures
+                    ou fédérations, qui en ont la propriété.
+                </p>
+                <p>
+                    La marque Opentalent a été déposée auprès de l’INPI par la société 2IOpenService le 19 avril 2009 sous le numéro 3991145.
+                </p>
+                <p>
+                    Il est formellement interdit à toute personne de porter atteinte aux droits détenus par la société
+                    2IOpenService, et notamment de copier tout ou partie du site Internet, de ses éléments ou de la marque.
+                </p>
+                <p>
+                    Les marques et logos des partenaires et autres entités apparaissant sur le site sont leur propriété et doivent,
+                    en tant que tels, être respectés.
+                </p>
+            </section>
+
+            <h4>En cas de problème ou de litige:</h4>
+
+            <section>
+                <div>
+                    <div>2IOpenService</div>
+                    <div>SARL au capital de 46050,00 €</div>
+                    <div>SIRET n° 504 653 122 000 52 | TVA n° FR62504653122</div>
+                    <div>Établissement : 217, Rue Raoul Follereau - 74300 Cluses</div>
+                    <div>Téléphone : 09 72 12 60 17</div>
+                </div>
+            </section>
+        </div>
+    </div>
+
+</div>
+
+<f:comment><!-- Render the footer defined in partial/footer.html--></f:comment>
+<f:render partial="Classic/Footer" />

+ 95 - 0
ot_templating/Resources/Private/Layouts/Modern/Legal.html

@@ -0,0 +1,95 @@
+{namespace v=FluidTYPO3\Vhs\ViewHelpers}
+{namespace ot=Opentalent\OtTemplating\ViewHelpers}
+
+<f:comment><!-- Special layout for the Members page --></f:comment>
+<f:layout name="Legal" />
+
+<section class="t-container st-effect-3">
+    <div class="wrapper">
+        <f:comment><!-- Render the header defined in partial/header.html--></f:comment>
+        <f:render partial="Modern/Header" arguments="{_all}" />
+
+        <section class="page-section-ptb data-table mb-50 mt-50">
+            <div class="container">
+                <div class="row">
+                    <div class="col-lg-12 col-md-12">
+
+                        <div class="ot-legal">
+                            <h3>Mentions légales</h3>
+
+                            <section>
+                                <p>
+                                    Ce site est mis à disposition de: <strong>{settings.structureName}</strong><br>
+                                    par la Société <strong>2IOpenService</strong> dans le cadre de sa gamme <strong>Opentalent</strong>
+                                </p>
+
+                                <ot:members.getPresident as="president" organizationId="{settings.organizationId}">
+                                    <f:if condition="{president}">
+                                        <p>
+                                            Directeur de publication: {president.fullName}
+                                        </p>
+                                    </f:if>
+                                </ot:members.getPresident>
+                            </section>
+
+                            <h4>Hébergeur</h4>
+
+                            <section>
+                                <div>
+                                    <div>VIA NUMERICA</div>
+                                    <div>Technopole d'Archamps</div>
+                                    <div>231, rue Douglas Engelbert</div>
+                                    <div>74160 ARCHAMPS</div>
+                                    <div>Tel : +33 (0) 458 02 01 13</div>
+                                    <div><b><a href="http://www.via-numerica.net" target="_blank" class="moz-txt-link-abbreviated">www.via-numerica.net</a></b></div>
+                                </div>
+                            </section>
+
+                            <h4>Propriété intellectuelle</h4>
+
+                            <section>
+                                <p>
+                                    La société 2IOpenService est créatrice du design du site et détient tous les droits de propriété intellectuelle
+                                    afférents à ses différents éléments, notamment mais sans que cela ne soit exhaustif: la charte graphique, les textes,
+                                    la base de données, les logiciels et images placés dans les cadres non modifiables. Elle détient également
+                                    les droits relatifs aux pages telles que générées par Opentalent et mises à la disposition des sites
+                                    des structures et fédérations.
+                                </p>
+                                <p>
+                                    2IOpenService ne gère en rien la propriété des droits existant sur les contenus mis en ligne par les structures
+                                    ou fédérations, qui en ont la propriété.
+                                </p>
+                                <p>
+                                    La marque Opentalent a été déposée auprès de l’INPI par la société 2IOpenService le 19 avril 2009 sous le numéro 3991145.
+                                </p>
+                                <p>
+                                    Il est formellement interdit à toute personne de porter atteinte aux droits détenus par la société
+                                    2IOpenService, et notamment de copier tout ou partie du site Internet, de ses éléments ou de la marque.
+                                </p>
+                                <p>
+                                    Les marques et logos des partenaires et autres entités apparaissant sur le site sont leur propriété et doivent,
+                                    en tant que tels, être respectés.
+                                </p>
+                            </section>
+
+                            <h4>En cas de problème ou de litige:</h4>
+
+                            <section>
+                                <div>
+                                    <div>2IOpenService</div>
+                                    <div>SARL au capital de 46050,00 €</div>
+                                    <div>SIRET n° 504 653 122 000 52 | TVA n° FR62504653122</div>
+                                    <div>Établissement : 217, Rue Raoul Follereau - 74300 Cluses</div>
+                                    <div>Téléphone : 09 72 12 60 17</div>
+                                </div>
+                            </section>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </section>
+
+        <f:comment><!-- Render the footer defined in partial/footer.html--></f:comment>
+        <f:render partial="Modern/Footer" />
+    </div>
+</section>

+ 18 - 0
ot_templating/Resources/Private/Templates/Page/Legal.html

@@ -0,0 +1,18 @@
+{namespace flux=FluidTYPO3\Flux\ViewHelpers}
+{namespace v=FluidTYPO3\Vhs\ViewHelpers}
+{namespace ot=Opentalent\OtTemplating\ViewHelpers}
+
+<f:comment><!-- uses the layout Legal, defined in layouts/[templateName]/Legal.html --></f:comment>
+<f:layout name="{ot:template.current()}/Legal" />
+
+<f:section name='Configuration'>
+    <flux:form id="legal" label="Gabarit Mentions légales" extensionName="Opentalent.OtTemplating">
+    </flux:form>
+
+    <!-- Backend layout grid -->
+    <flux:grid>
+        <flux:grid.row>
+        </flux:grid.row>
+    </flux:grid>
+</f:section>
+

+ 22 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-blue.css

@@ -1714,6 +1714,28 @@ form button[type=submit]:hover {
   margin-bottom: 12px;
   margin-bottom: 12px;
 }
 }
 
 
+.ot-legal {
+  width: 60%;
+  margin: 0 20%;
+}
+
+.ot-legal h4 {
+  margin: 2em 0 1em 0;
+  font-weight: 600;
+}
+
+.ot-legal section {
+  padding: 0 2em;
+}
+
+.ot-legal strong {
+  color: #2b2b2b;
+}
+
+.ot-legal p {
+  text-align: justify;
+}
+
 .faq-item .content {
 .faq-item .content {
   color: #262626;
   color: #262626;
   padding: 0 2em;
   padding: 0 2em;

文件差异内容过多而无法显示
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-blue.css.map


+ 22 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-green.css

@@ -1714,6 +1714,28 @@ form button[type=submit]:hover {
   margin-bottom: 12px;
   margin-bottom: 12px;
 }
 }
 
 
+.ot-legal {
+  width: 60%;
+  margin: 0 20%;
+}
+
+.ot-legal h4 {
+  margin: 2em 0 1em 0;
+  font-weight: 600;
+}
+
+.ot-legal section {
+  padding: 0 2em;
+}
+
+.ot-legal strong {
+  color: #2b2b2b;
+}
+
+.ot-legal p {
+  text-align: justify;
+}
+
 .faq-item .content {
 .faq-item .content {
   color: #262626;
   color: #262626;
   padding: 0 2em;
   padding: 0 2em;

文件差异内容过多而无法显示
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-green.css.map


+ 22 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-grey.css

@@ -1714,6 +1714,28 @@ form button[type=submit]:hover {
   margin-bottom: 12px;
   margin-bottom: 12px;
 }
 }
 
 
+.ot-legal {
+  width: 60%;
+  margin: 0 20%;
+}
+
+.ot-legal h4 {
+  margin: 2em 0 1em 0;
+  font-weight: 600;
+}
+
+.ot-legal section {
+  padding: 0 2em;
+}
+
+.ot-legal strong {
+  color: #2b2b2b;
+}
+
+.ot-legal p {
+  text-align: justify;
+}
+
 .faq-item .content {
 .faq-item .content {
   color: #262626;
   color: #262626;
   padding: 0 2em;
   padding: 0 2em;

文件差异内容过多而无法显示
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-grey.css.map


+ 22 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-light-blue.css

@@ -1714,6 +1714,28 @@ form button[type=submit]:hover {
   margin-bottom: 12px;
   margin-bottom: 12px;
 }
 }
 
 
+.ot-legal {
+  width: 60%;
+  margin: 0 20%;
+}
+
+.ot-legal h4 {
+  margin: 2em 0 1em 0;
+  font-weight: 600;
+}
+
+.ot-legal section {
+  padding: 0 2em;
+}
+
+.ot-legal strong {
+  color: #2b2b2b;
+}
+
+.ot-legal p {
+  text-align: justify;
+}
+
 .faq-item .content {
 .faq-item .content {
   color: #262626;
   color: #262626;
   padding: 0 2em;
   padding: 0 2em;

文件差异内容过多而无法显示
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-light-blue.css.map


+ 22 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-light-red.css

@@ -1714,6 +1714,28 @@ form button[type=submit]:hover {
   margin-bottom: 12px;
   margin-bottom: 12px;
 }
 }
 
 
+.ot-legal {
+  width: 60%;
+  margin: 0 20%;
+}
+
+.ot-legal h4 {
+  margin: 2em 0 1em 0;
+  font-weight: 600;
+}
+
+.ot-legal section {
+  padding: 0 2em;
+}
+
+.ot-legal strong {
+  color: #2b2b2b;
+}
+
+.ot-legal p {
+  text-align: justify;
+}
+
 .faq-item .content {
 .faq-item .content {
   color: #262626;
   color: #262626;
   padding: 0 2em;
   padding: 0 2em;

文件差异内容过多而无法显示
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-light-red.css.map


+ 22 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-orange.css

@@ -1714,6 +1714,28 @@ form button[type=submit]:hover {
   margin-bottom: 12px;
   margin-bottom: 12px;
 }
 }
 
 
+.ot-legal {
+  width: 60%;
+  margin: 0 20%;
+}
+
+.ot-legal h4 {
+  margin: 2em 0 1em 0;
+  font-weight: 600;
+}
+
+.ot-legal section {
+  padding: 0 2em;
+}
+
+.ot-legal strong {
+  color: #2b2b2b;
+}
+
+.ot-legal p {
+  text-align: justify;
+}
+
 .faq-item .content {
 .faq-item .content {
   color: #262626;
   color: #262626;
   padding: 0 2em;
   padding: 0 2em;

文件差异内容过多而无法显示
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-orange.css.map


+ 22 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-purple.css

@@ -1714,6 +1714,28 @@ form button[type=submit]:hover {
   margin-bottom: 12px;
   margin-bottom: 12px;
 }
 }
 
 
+.ot-legal {
+  width: 60%;
+  margin: 0 20%;
+}
+
+.ot-legal h4 {
+  margin: 2em 0 1em 0;
+  font-weight: 600;
+}
+
+.ot-legal section {
+  padding: 0 2em;
+}
+
+.ot-legal strong {
+  color: #2b2b2b;
+}
+
+.ot-legal p {
+  text-align: justify;
+}
+
 .faq-item .content {
 .faq-item .content {
   color: #262626;
   color: #262626;
   padding: 0 2em;
   padding: 0 2em;

文件差异内容过多而无法显示
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-purple.css.map


+ 22 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-red.css

@@ -1714,6 +1714,28 @@ form button[type=submit]:hover {
   margin-bottom: 12px;
   margin-bottom: 12px;
 }
 }
 
 
+.ot-legal {
+  width: 60%;
+  margin: 0 20%;
+}
+
+.ot-legal h4 {
+  margin: 2em 0 1em 0;
+  font-weight: 600;
+}
+
+.ot-legal section {
+  padding: 0 2em;
+}
+
+.ot-legal strong {
+  color: #2b2b2b;
+}
+
+.ot-legal p {
+  text-align: justify;
+}
+
 .faq-item .content {
 .faq-item .content {
   color: #262626;
   color: #262626;
   padding: 0 2em;
   padding: 0 2em;

文件差异内容过多而无法显示
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/classic-red.css.map


+ 23 - 0
ot_templating/Resources/Public/assets/Classic/style/module/_legal.scss

@@ -0,0 +1,23 @@
+
+
+.ot-legal {
+  width: 60%;
+  margin: 0 20%;
+}
+
+.ot-legal h4 {
+  margin: 2em 0 1em 0;
+  font-weight: 600;
+}
+
+.ot-legal section {
+  padding: 0 2em;
+}
+
+.ot-legal strong {
+  color: #2b2b2b;
+}
+
+.ot-legal p {
+  text-align: justify;
+}

文件差异内容过多而无法显示
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/style.css


文件差异内容过多而无法显示
+ 0 - 0
ot_templating/Resources/Public/assets/Classic/style/style.css.map


+ 2 - 0
ot_templating/Resources/Public/assets/Classic/style/style.scss

@@ -96,9 +96,11 @@ $warning-font-color: #ffffff !default;
 "module/_forms",
 "module/_forms",
 "module/_news",
 "module/_news",
 "module/_contact",
 "module/_contact",
+"module/_legal",
 "module/_faq",
 "module/_faq",
 "module/_fce-2col",
 "module/_fce-2col",
 "module/_errpages",
 "module/_errpages",
 "module/_pagination",
 "module/_pagination",
 "module/_noscript",
 "module/_noscript",
 "_states";
 "_states";
+

+ 27 - 0
ot_templating/Resources/Public/assets/Modern/style/custom.css

@@ -1135,6 +1135,33 @@ Sitemap page
     color: #8c8c8c;
     color: #8c8c8c;
 }
 }
 
 
+/*============================
+Legal template
+============================*/
+
+.ot-legal {
+    width: 60%;
+    margin: 0 20%;
+}
+
+.ot-legal h3, .ot-legal h4 {
+    margin: 2em 0 1em 0;
+    font-weight: 600;
+}
+
+.ot-legal section {
+    padding: 0 2em;
+}
+
+.ot-legal strong {
+    color: #2b2b2b;
+}
+
+.ot-legal p {
+    text-align: justify;
+}
+
+
 /*============================
 /*============================
 Error pages (404, 403...)
 Error pages (404, 403...)
 ============================*/
 ============================*/

部分文件因为文件数量过多而无法显示