Olivier Massot 5 gadi atpakaļ
vecāks
revīzija
6e4b22865d

+ 12 - 0
ot_templating/Classes/Domain/Model/Event.php

@@ -1121,4 +1121,16 @@ class Event extends AbstractEntity
         }
     }
 
+    /**
+     * Returns a external url to get more informations
+     * about an event (child-structures events only)
+     */
+    public function getInfosLink() {
+        if (preg_match('#^((https?|ftp)://(\S*?\.\S*?))([\s)\[\]{},;"\':<]|\.\s|$)$#i', $this->getUrl()) == 1) {
+            return $this->getUrl();
+        } else {
+            return 'https://' . $this->getSubdomain() . '.opentalent.fr';
+        }
+    }
+
 }

+ 0 - 7
ot_templating/Configuration/TypoScript/setup.txt

@@ -2,25 +2,18 @@
 # TODO: prévoir les fallbacks no-script (menu, donors)
 # TODO: viewhelpers - intégrer une gestion d'erreur, en particulier pour ce qui touche aux appels à l'api
 
-# -- MODERN template
-# TODO: corriger pbm quand pas de carrousel (les menus ne se voient plus)
-# TODO: corriger pbm quand trop d'élément dans le menu
-
 # -- après déploiement beta
 # TODO: DEPRECATION V10 corriger les appels ` $this->forward('...');`, `\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(` et `\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(`
 # TODO: Placer tous les mots utilisés dans le fichier de traduction
 # TODO: obtenir les infos suivantes via l'API: is_network, email, name, twitter, logo, network_logo, network_name, network_url
-# TODO: créer deux ou trois layouts supplémentaires
 # TODO: filtrer les pages sans contenu (en option dans les constants?)
 # TODO: rédiger une doc dev
 # TODO: Rédiger une doc utilisateurs
 # TODO: permettre de mettre en avant des évènements (appraissent plus longtemps à l'avance)
-# TODO: tester les widgets
 # TODO: ajouter un plugin "réseaux sociaux"
 # TODO: tester l'intégration matomo
 # TODO: permettre d'ajouter du contenu de type fichier
 # TODO: permettre d'ajouter du contenu de type vidéos
-# TODO: carroussel: ne pas redimensionner les photos mais les rogner
 # TODO: ajouter une recherche fulltext sur le site
 # TODO: créer un module de personnalisation du site
 # TODO: Faire des sites de demo / de test pour chaque thème avec un compte bidon mais représentatif

+ 1 - 1
ot_templating/Resources/Private/Layouts/Classic/3Col.html

@@ -24,7 +24,7 @@
     <f:comment><!-- Right column --></f:comment>
     <div class="rightcol">
         <div class="content">
-            <f:comment><!-- defines the content of the rightcol section (right column) --></f:comment>
+            <f:comment><!-- render the content of the rightcol section (right column) --></f:comment>
             <f:render section="Rightcol" />
         </div>
     </div>

+ 1 - 1
ot_templating/Resources/Private/Layouts/Classic/StructuresEvents.html

@@ -95,7 +95,7 @@
                                 </div>
                             </div>
 
-                            <a href="{event.url}" target="_blank" class="event-see">
+                            <a href="{event.infosLink}" target="_blank" class="event-see">
                                 <i class="fa fa-plus" style="margin-right: 5px;"></i>
                                 <span>Plus d'infos</span>
                             </a>

+ 6 - 0
ot_templating/Resources/Private/Layouts/Modern/3Col.html

@@ -14,6 +14,12 @@
                     <div class="col-sm-12 mt-30">
                         <f:comment><!-- render the content of the content section (middle column) --></f:comment>
                         <f:render section="Content" />
+
+                        <f:comment><!-- render the content of the leftcol section (left column) --></f:comment>
+                        <f:render section="Leftcol" />
+
+                        <f:comment><!-- render the content of the rightcol section (right column) --></f:comment>
+                        <f:render section="Rightcol" />
                     </div>
                 </div>
             </div>

+ 1 - 1
ot_templating/Resources/Private/Layouts/Modern/StructuresEvents.html

@@ -97,7 +97,7 @@
                                                 </div>
                                             </div>
 
-                                            <a href="{event.url}" target="_blank" class="event-see">
+                                            <a href="{event.infosLink}" target="_blank" class="event-see">
                                                 <i class="fa fa-plus" style="margin-right: 5px;"></i>
                                                 <span>Plus d'infos</span>
                                             </a>

+ 0 - 1
ot_templating/Resources/Private/Partials/Modern/Donors.html

@@ -21,7 +21,6 @@
                             </h2>
                         </div>
                     </div>
-                    {f:if(condition: '{settings.staticDonors}==1', then: '<h1>Hello</h1>')}
                     <div class="col-lg-12 col-md-12">
                         <div class="clients-list partners-list grayscale">
                             <div class="{f:if(condition: '{settings.staticDonors}==0', then: 'owl-carousel')}"

+ 25 - 8
ot_templating/Resources/Public/assets/Modern/style/custom.css

@@ -44,7 +44,6 @@
         padding: 0 !important;
     }
     .button.black:hover, .button.black.active, .button.black:focus {
-        background: #555555;
         background-color: #555555;
         border-color: #555555;
     }
@@ -861,6 +860,25 @@ Structures page
     font-weight: bold;
 }
 
+/*============================
+Members page
+============================*/
+
+.team-round {
+    height: 330px;
+    width: 240px;
+    display: flex;
+    flex-direction: column;
+}
+
+.team .team-photo {
+    flex: 1;
+    display: flex;
+    flex-direction: column;
+    justify-content: center;
+}
+
+
 /*============================
 Sitemap page
 ============================*/
@@ -890,12 +908,12 @@ Sitemap page
     color: #979797;
 }
 
-/*   prevents iframe to oversize the content width*/
-iframe {
-    width: 100%;
-    height: auto;
-    max-width: 560px;
-}
+/*!*   prevents iframe to oversize the content width*!*/
+/*iframe {*/
+/*    width: 100%;*/
+/*    height: auto;*/
+/*    max-width: 560px;*/
+/*}*/
 
 /*============================
 Media queries
@@ -943,7 +961,6 @@ Media queries
         height: auto;
     }
 
-/*    Members */