... | ... |
@@ -92,7 +92,7 @@ $GLOBALS['TL_DCA']['tl_vr_modal'] = array |
92 | 92 |
'palettes' => array |
93 | 93 |
( |
94 | 94 |
'__selector__' => array(''), |
95 |
- 'default' => '{title_legend},title;{config_legend},modal_title,delay,show_once;{publish_legend},published,start,stop' |
|
95 |
+ 'default' => '{title_legend},title;{config_legend},modal_title,borderless,delay,show_once;{publish_legend},published,start,stop' |
|
96 | 96 |
), |
97 | 97 |
'subpalettes' => array |
98 | 98 |
( |
... | ... |
@@ -144,6 +144,13 @@ $GLOBALS['TL_DCA']['tl_vr_modal'] = array |
144 | 144 |
'eval' => array('doNotCopy'=>true, 'tl_class'=>'w50 m12'), |
145 | 145 |
'sql' => "char(1) NOT NULL default '1'" |
146 | 146 |
), |
147 |
+ 'borderless' => array |
|
148 |
+ ( |
|
149 |
+ 'exclude' => true, |
|
150 |
+ 'inputType' => 'checkbox', |
|
151 |
+ 'eval' => array('tl_class'=>'w50 m12'), |
|
152 |
+ 'sql' => "char(1) NOT NULL default ''" |
|
153 |
+ ), |
|
147 | 154 |
'published' => array |
148 | 155 |
( |
149 | 156 |
'exclude' => true, |
... | ... |
@@ -23,6 +23,8 @@ $GLOBALS['TL_LANG']['tl_vr_modal']['delay'][0] = 'Anzeigeverzögerung'; |
23 | 23 |
$GLOBALS['TL_LANG']['tl_vr_modal']['delay'][1] = 'Die Zeit, bis das Pop-Up nach dem vollständigen Laden der Seite geöffnet wird.'; |
24 | 24 |
$GLOBALS['TL_LANG']['tl_vr_modal']['show_once'][0] = 'Nur einmal pro Session'; |
25 | 25 |
$GLOBALS['TL_LANG']['tl_vr_modal']['show_once'][1] = 'Das PopUp wird nur einmal wärend der Browser-Sitzung angezeigt.'; |
26 |
+$GLOBALS['TL_LANG']['tl_vr_modal']['borderless'][0] = 'Randlos'; |
|
27 |
+$GLOBALS['TL_LANG']['tl_vr_modal']['borderless'][1] = 'Das PopUp wird ohne Rand angezeigt. Sinnvoll, wenn z.B. nur ein Bild als Popup zum Einsatz kommt'; |
|
26 | 28 |
$GLOBALS['TL_LANG']['tl_vr_modal']['published'][0] = 'Veröffentlichen'; |
27 | 29 |
$GLOBALS['TL_LANG']['tl_vr_modal']['published'][1] = 'Aktiviert oder deaktiviert das PopUp.'; |
28 | 30 |
$GLOBALS['TL_LANG']['tl_vr_modal']['start'][0] = 'Anzeigen ab'; |
... | ... |
@@ -4,11 +4,11 @@ |
4 | 4 |
var signpost; |
5 | 5 |
|
6 | 6 |
signpost = new jBox('Modal', { |
7 |
- title: '{{ (modal_configuration.modal_title) ?: '' }}', |
|
7 |
+ {{ (modal_configuration.modal_title) ? 'title: \'' ~ modal_configuration.modal_title ~ '\',' : '' }} |
|
8 | 8 |
content: $('#modal-content-{{ modal_configuration.id }}').html(), |
9 |
- closeButton: 'title', |
|
9 |
+ closeButton: '{{ (modal_configuration.modal_title) ? 'title' : 'box' }}', |
|
10 | 10 |
width: 650, |
11 |
- theme: 'DurbachLight'{% if not modal_configuration.show_once is empty %}, |
|
11 |
+ theme: '{{ (modal_configuration.borderless) ? 'Borderless' : '' }}'{% if not modal_configuration.show_once is empty %}, |
|
12 | 12 |
onClose: function() { |
13 | 13 |
localStorage.setItem('popState-{{ modal_configuration.id }}',Date.now()); |
14 | 14 |
sessionStorage.setItem('popState-{{ modal_configuration.id }}','shown'); |