Ver código fonte

le_campus.yaml

ouidade 3 anos atrás
pai
commit
af967cdbb7

+ 145 - 0
user/themes/lecampus/blueprints/le_campus.yaml

@@ -0,0 +1,145 @@
+extends@: default
+
+form:
+  fields:
+    tabs:
+      fields:
+        content:
+          fields:
+            header.entete:
+              type: fieldset
+              title: Texte en-tête
+              help: Écriver le texte qui sera affiché dans le bandeau d'en-tête
+              text: Écriver le texte qui sera affiché dans le bandeau d'en-tête
+              fields:
+                header.entete.text:
+                  type: text
+                  label: Texte
+
+            header.features:
+              name: Icones
+              type: list
+              label: Icones
+              style: vertical
+              size: large
+
+              fields:
+                .text:
+                  type: text
+                  label: Text
+                .icon:
+                  type: file
+                  label: Icone
+                  destination: 'user/themes/lecampus/images/icones'
+                  multiple: false
+                  filesize: 2
+                  accept:
+                    - image/*
+
+      fields:
+        blog:
+          type: tab
+          title: Blog Item
+
+          fields:
+
+            header_options:
+              type: section
+              title: Header Options
+              underline: true
+
+            header.continue_link:
+              type: toggle
+              toggleable: true
+              label: DF Style Link
+              help: Daring Fireball style title link
+              highlight: 1
+              options:
+                1: PLUGIN_ADMIN.ENABLED
+                0: PLUGIN_ADMIN.DISABLED
+              validate:
+                type: bool
+
+            header.header_image:
+              type: toggle
+              toggleable: true
+              label: Display Header Image
+              help: Enabled displaying of a header image
+              highlight: 1
+              options:
+                1: PLUGIN_ADMIN.ENABLED
+                0: PLUGIN_ADMIN.DISABLED
+
+            header.header_image_file:
+              type: text
+              toggleable: true
+              label: Image File
+              help: image filename that exists in the page folder. If not provided, will use the first image found.
+              placeholder: For example: myimage.jpg
+
+            header.header_image_width:
+              type: text
+              toggleable: true
+              label: Image Width
+              size: small
+              help: Header width in px
+              placeholder: Default is 900
+              validate:
+                type: int
+                min: 0
+                max: 5000
+
+            header.header_image_height:
+              type: text
+              toggleable: true
+              label: Image Height
+              size: small
+              help: Header height in px
+              placeholder: Default is 300
+              validate:
+                type: int
+                min: 0
+                max: 5000
+
+            summary:
+              type: section
+              title: Summary
+              underline: true
+
+            header.summary.enabled:
+              type: toggle
+              toggleable: true
+              label: Summary
+              highlight: 1
+              options:
+                1: PLUGIN_ADMIN.ENABLED
+                0: PLUGIN_ADMIN.DISABLED
+
+            header.summary.format:
+              type: select
+              toggleable: true
+              label: Format
+              classes: fancy
+              options:
+                'short': 'Use the first occurence of delimter or size'
+                'long': 'Summary delimiter will be ignored'
+
+            header.summary.size:
+              type: text
+              toggleable: true
+              label: Size
+              classes: large
+              placeholder: 300
+              validate:
+                type: int
+                min: 1
+
+            header.summary.delimiter:
+              type: text
+              toggleable: true
+              label: Summary delimiter
+              classes: large
+              placeholder: ===
+
+          import@:
+            type: partials/blog-bits

+ 0 - 38
user/themes/lecampus/blueprints/modular/section-nos-valeurs.yaml

@@ -1,38 +0,0 @@
-title: Section lieux
-'@extends': default
-
-form:
-  fields:
-    tabs:
-      fields:
-        content:
-          fields:
-            header.media_order:
-              label: Page Media (first one will be displayed next to your content)
-
-            header.section:
-              type: fieldset
-              title: Nos valeurs
-              underline: true
-              fields:
-                header.list:
-                  name: Les lieux à découvrir
-                  type: list
-                  style: vertical
-                  btnLabel: "Ajouter une valeur"
-                  fields:
-                    .section-thumbnail:
-                      type: section
-                      title: Nos Valeurs
-                      underline: true
-                    .title:
-                      type: text
-                      label: Titre
-                    .text:
-                      type: markdown
-                      label: description
-                    .img_thumb:
-                      type: filepicker
-                      folder: '@self'
-                      preview_images: true
-                      label: Selectionner le document