Browse code

Allow restricting the available content elements for articles using article layouts

Benjamin Roth authored on13/07/2016 10:18:11
Showing1 changed files
... ...
@@ -28,6 +28,10 @@ $GLOBALS['TL_LANG']['tl_article_layouts']['bgStyle'][0] = 'Custom inline CSS cod
28 28
 $GLOBALS['TL_LANG']['tl_article_layouts']['bgStyle'][1] = 'Here you can define a custom inline CSS code to be used for the background image. ##bg_image## will be replaced with the image path.';
29 29
 $GLOBALS['TL_LANG']['tl_article_layouts']['useHelper'][0] = 'Additional content wrapper';
30 30
 $GLOBALS['TL_LANG']['tl_article_layouts']['useHelper'][1] = 'Inserts an additional content wrapper within the inside container.';
31
+$GLOBALS['TL_LANG']['tl_article_layouts']['restrictContentElements'][0] = 'Restrict article content elements';
32
+$GLOBALS['TL_LANG']['tl_article_layouts']['restrictContentElements'][1] = 'Allows to restrict the available content elements in the article.';
33
+$GLOBALS['TL_LANG']['tl_article_layouts']['allowedElements'][0] = 'Allowed content elements';
34
+$GLOBALS['TL_LANG']['tl_article_layouts']['allowedElements'][1] = 'Only selected content elements are available in the article.';
31 35
 
32 36
 /**
33 37
  * Legends
... ...
@@ -35,3 +39,4 @@ $GLOBALS['TL_LANG']['tl_article_layouts']['useHelper'][1] = 'Inserts an addition
35 39
 $GLOBALS['TL_LANG']['tl_article_layouts']['title_legend'] = 'Title';
36 40
 $GLOBALS['TL_LANG']['tl_article_layouts']['content_legend'] = 'Content settings';
37 41
 $GLOBALS['TL_LANG']['tl_article_layouts']['image_legend'] = 'Image settings';
42
+$GLOBALS['TL_LANG']['tl_article_layouts']['expert_legend'] = 'Expert settings';
Browse code

Initial commit

Benjamin Roth authored on13/07/2016 09:17:47
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,37 @@
1
+<?php
2
+
3
+/**
4
+ * ArtLayout for Contao
5
+ *
6
+ * Copyright (c) 2016 Benjamin Roth
7
+ *
8
+ * @link    http://www.esales-media.de
9
+ * @license commercial
10
+ */
11
+
12
+/**
13
+ * Fields
14
+ */
15
+$GLOBALS['TL_LANG']['tl_article_layouts']['title'][0] = 'Title';
16
+$GLOBALS['TL_LANG']['tl_article_layouts']['title'][1] = 'Title of the layout';
17
+$GLOBALS['TL_LANG']['tl_article_layouts']['alias'][0] = 'Alias';
18
+$GLOBALS['TL_LANG']['tl_article_layouts']['alias'][1] = 'The alias is used for CSS classes.';
19
+$GLOBALS['TL_LANG']['tl_article_layouts']['maxWidth'][0] = 'Restrict width';
20
+$GLOBALS['TL_LANG']['tl_article_layouts']['maxWidth'][1] = 'Restricts the content width to a globally CSS defined value.';
21
+$GLOBALS['TL_LANG']['tl_article_layouts']['center'][0] = 'Center content';
22
+$GLOBALS['TL_LANG']['tl_article_layouts']['center'][1] = 'Use a centered text alignment.';
23
+$GLOBALS['TL_LANG']['tl_article_layouts']['showBackgroundImage'][0] = 'Background image';
24
+$GLOBALS['TL_LANG']['tl_article_layouts']['showBackgroundImage'][1] = 'Allows the selection of an background image in the article settings.';
25
+$GLOBALS['TL_LANG']['tl_article_layouts']['bgImageSize'][0] = 'Image size';
26
+$GLOBALS['TL_LANG']['tl_article_layouts']['bgImageSize'][1] = 'Here you can set the image dimensions and the resize mode.';
27
+$GLOBALS['TL_LANG']['tl_article_layouts']['bgStyle'][0] = 'Custom inline CSS code';
28
+$GLOBALS['TL_LANG']['tl_article_layouts']['bgStyle'][1] = 'Here you can define a custom inline CSS code to be used for the background image. ##bg_image## will be replaced with the image path.';
29
+$GLOBALS['TL_LANG']['tl_article_layouts']['useHelper'][0] = 'Additional content wrapper';
30
+$GLOBALS['TL_LANG']['tl_article_layouts']['useHelper'][1] = 'Inserts an additional content wrapper within the inside container.';
31
+
32
+/**
33
+ * Legends
34
+ */
35
+$GLOBALS['TL_LANG']['tl_article_layouts']['title_legend'] = 'Title';
36
+$GLOBALS['TL_LANG']['tl_article_layouts']['content_legend'] = 'Content settings';
37
+$GLOBALS['TL_LANG']['tl_article_layouts']['image_legend'] = 'Image settings';