[BUGFIX] Correct old naming "Text w/image" into "Text & Images"
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / static / v4.2 / setup.txt
1 # ***************************************************************************
2 # Notice: "styles." (and "temp.") objects are UNSET after template parsing!
3 # Use "lib." for persisting storage of objects.
4 # ***************************************************************************
5
6 # Clear out any constants in this reserved room!
7 styles.content >
8
9 # get content
10 styles.content.get = CONTENT
11 styles.content.get {
12 table = tt_content
13 select.orderBy = sorting
14 select.where = colPos=0
15 select.languageField = sys_language_uid
16 }
17
18 # get content, left
19 styles.content.getLeft < styles.content.get
20 styles.content.getLeft.select.where = colPos=1
21
22 # get content, right
23 styles.content.getRight < styles.content.get
24 styles.content.getRight.select.where = colPos=2
25
26 # get content, margin
27 styles.content.getBorder < styles.content.get
28 styles.content.getBorder.select.where = colPos=3
29
30 # get news
31 styles.content.getNews < styles.content.get
32 styles.content.getNews.select.pidInList = {$styles.content.getNews.newsPid}
33
34 # Edit page object:
35 styles.content.editPanelPage = COA
36 styles.content.editPanelPage {
37 10 = EDITPANEL
38 10 {
39 allow = toolbar,move,hide
40 label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.page
41 label.wrap = |&nbsp;<b>%s</b>
42 }
43 }
44
45
46
47
48
49
50
51
52
53
54
55 # *********************************************************************
56 # "lib." objects are preserved from unsetting after template parsing
57 # *********************************************************************
58
59 # Creates persistent ParseFunc setup for non-HTML content. This is recommended to use (as a reference!)
60 lib.parseFunc {
61 makelinks = 1
62 makelinks.http.keep = {$styles.content.links.keep}
63 makelinks.http.extTarget = {$styles.content.links.extTarget}
64 makelinks.mailto.keep = path
65 tags {
66 link = TEXT
67 link {
68 current = 1
69 typolink.parameter.data = parameters : allParams
70 typolink.extTarget = {$styles.content.links.extTarget}
71 typolink.target = {$styles.content.links.target}
72 parseFunc.constants =1
73 }
74 }
75 allowTags = {$styles.content.links.allowTags}
76 denyTags = *
77 sword = <span class="csc-sword">|</span>
78 constants = 1
79
80 nonTypoTagStdWrap.HTMLparser = 1
81 nonTypoTagStdWrap.HTMLparser {
82 keepNonMatchedTags = 1
83 htmlSpecialChars = 2
84 }
85 }
86
87 # good old parsefunc in "styles.content.parseFunc" is created for backwards compatibility. Don't use it, just ignore.
88 styles.content.parseFunc < lib.parseFunc
89
90 # Creates persistent ParseFunc setup for RTE content (which is mainly HTML) based on the "ts_css" transformation.
91 lib.parseFunc_RTE < lib.parseFunc
92 lib.parseFunc_RTE {
93 // makelinks >
94 # Processing <table> and <blockquote> blocks separately
95 externalBlocks = table, blockquote, ol,ul, div
96 externalBlocks {
97 # The blockquote content is passed into parseFunc again...
98 blockquote.stripNL=1
99 blockquote.callRecursive=1
100 blockquote.callRecursive.tagStdWrap.HTMLparser = 1
101 blockquote.callRecursive.tagStdWrap.HTMLparser.tags.blockquote.overrideAttribs = style="margin-bottom:0;margin-top:0;"
102
103 ol.stripNL=1
104 ol.stdWrap.parseFunc = < lib.parseFunc
105
106 ul.stripNL=1
107 ul.stdWrap.parseFunc = < lib.parseFunc
108
109 table.stripNL=1
110 table.stdWrap.HTMLparser = 1
111 table.stdWrap.HTMLparser.tags.table.fixAttrib.class {
112 default = contenttable
113 always = 1
114 list = contenttable
115 }
116 table.stdWrap.HTMLparser.keepNonMatchedTags = 1
117 table.HTMLtableCells=1
118 table.HTMLtableCells {
119 default.callRecursive=1
120 addChr10BetweenParagraphs=1
121 }
122 div.stripNL = 1
123 div.callRecursive = 1
124 }
125 nonTypoTagStdWrap.encapsLines {
126 encapsTagList = p,pre,h1,h2,h3,h4,h5,h6
127 remapTag.DIV = P
128 nonWrappedTag = P
129 innerStdWrap_all.ifBlank = &nbsp;
130 addAttributes.P.class = bodytext
131 addAttributes.P.class.setOnly=blank
132 }
133 nonTypoTagStdWrap.HTMLparser = 1
134 nonTypoTagStdWrap.HTMLparser {
135 keepNonMatchedTags = 1
136 htmlSpecialChars = 2
137 }
138 }
139
140
141 # Content header:
142 lib.stdheader = COA
143 lib.stdheader {
144
145 # Create align style-attribute for <Hx> tags
146 2 = LOAD_REGISTER
147 2.headerStyle.field = header_position
148 2.headerStyle.required = 1
149 2.headerStyle.noTrimWrap = | style="text-align:|;"|
150
151 # Create class="csc-firstHeader" attribute for <Hx> tags
152 3 = LOAD_REGISTER
153 3.headerClass = csc-firstHeader
154 3.headerClass.if.value=1
155 3.headerClass.if.equals.data = cObj:parentRecordNumber
156 3.headerClass.noTrimWrap = | class="|"|
157
158 # Date format:
159 5 = TEXT
160 5.field = date
161 5.if.isTrue.field = date
162 5.strftime = %x
163 5.wrap = <p class="csc-header-date">|</p>
164 5.prefixComment = 2 | Header date:
165
166 # This CASE cObject renders the header content:
167 # currentValue is set to the header data, possibly wrapped in link-tags.
168 10 = CASE
169 10.setCurrent {
170 field = header
171 htmlSpecialChars = 1
172 typolink.parameter.field = header_link
173 }
174 10.key.field = header_layout
175 10.key.ifEmpty = {$content.defaultHeaderType}
176 10.key.ifEmpty.override.data = register: defaultHeaderType
177
178 10.1 = TEXT
179 10.1.current = 1
180 10.1.dataWrap = <h1{register:headerStyle}{register:headerClass}>|</h1>
181
182 10.2 < .10.1
183 10.2.dataWrap = <h2{register:headerStyle}{register:headerClass}>|</h2>
184
185 10.3 < .10.1
186 10.3.dataWrap = <h3{register:headerStyle}{register:headerClass}>|</h3>
187
188 10.4 < .10.1
189 10.4.dataWrap = <h4{register:headerStyle}{register:headerClass}>|</h4>
190
191 10.5 < .10.1
192 10.5.dataWrap = <h5{register:headerStyle}{register:headerClass}>|</h5>
193
194 # Pops the used registers off the stack:
195 98 = RESTORE_REGISTER
196 99 = RESTORE_REGISTER
197
198 # Post-processing:
199 stdWrap.fieldRequired = header
200 stdWrap.if {
201 equals.field = header_layout
202 value = 100
203 negate = 1
204 }
205
206 stdWrap.editIcons = tt_content : header, [header_layout | header_position], [header_link|date]
207 stdWrap.editIcons.beforeLastTag = 1
208 stdWrap.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.header
209
210 stdWrap.dataWrap = <div class="csc-header csc-header-n{cObj:parentRecordNumber}">|</div>
211 stdWrap.prefixComment = 2 | Header:
212 }
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228 #******************************************************
229 # Including library for processing of some elements:
230 #******************************************************
231 includeLibs.tx_cssstyledcontent_pi1 = EXT:css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
232
233
234 #**********************************
235 # tt_content is started
236 #**********************************
237 tt_content >
238 tt_content = CASE
239 tt_content.key.field = CType
240 tt_content.stdWrap {
241
242 spaceBefore.field = spaceBefore
243 spaceAfter.field = spaceAfter
244 space = {$content.space}
245
246 innerWrap.cObject = CASE
247 innerWrap.cObject {
248 key.field = section_frame
249
250 1 = TEXT
251 1.value = <div class="csc-frame csc-frame-invisible">|</div>
252
253 5 = TEXT
254 5.value = <div class="csc-frame csc-frame-rulerBefore"></div>|
255
256 6 = TEXT
257 6.value = |<div class="csc-frame csc-frame-rulerAfter"></div>
258
259 10 = TEXT
260 10.value = <div class="csc-frame csc-frame-indent">|</div>
261
262 11 = TEXT
263 11.value = <div class="csc-frame csc-frame-indent3366">|</div>
264
265 12 = TEXT
266 12.value = <div class="csc-frame csc-frame-indent6633">|</div>
267
268 20 = TEXT
269 20.value = <div class="csc-frame csc-frame-frame1">|</div>
270
271 21 = TEXT
272 21.value = <div class="csc-frame csc-frame-frame2">|</div>
273 }
274
275 innerWrap2 = | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/pi1/locallang.xml:label.toTop}</a></p>
276 innerWrap2.insertData = 1
277 innerWrap2.fieldRequired = linkToTop
278
279 dataWrap = <a id="c{field:uid}"></a> |
280
281 prepend = TEXT
282 prepend.dataWrap = <a id="c{field:_LOCALIZED_UID}"></a>
283 prepend.if.isTrue.field = _LOCALIZED_UID
284
285 editPanel = 1
286 editPanel {
287 allow = move,new,edit,hide,delete
288 line = 5
289 label = %s
290 onlyCurrentPid = 1
291 previewBorder = 4
292 edit.displayRecord = 1
293 }
294
295 prefixComment = 1 | CONTENT ELEMENT, uid:{field:uid}/{field:CType}
296
297 }
298
299
300
301 # *****************
302 # CType: header
303 # *****************
304 # See Object path "lib.stdheader"
305 tt_content.header = COA
306 tt_content.header {
307 10 = < lib.stdheader
308
309 20 = TEXT
310 20 {
311 field = subheader
312 required = 1
313
314 dataWrap = <p class="csc-subheader csc-subheader-{field:layout}">|</p>
315 htmlSpecialChars = 1
316
317 editIcons = tt_content:subheader,layout
318 editIcons.beforeLastTag = 1
319 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.subheader
320
321 prefixComment = 2 | Subheader:
322 }
323 }
324
325
326
327 # *****************
328 # CType: text
329 # *****************
330 tt_content.text = COA
331 tt_content.text {
332 10 = < lib.stdheader
333
334 20 = TEXT
335 20 {
336 field = bodytext
337 required = 1
338
339 parseFunc = < lib.parseFunc_RTE
340
341 editIcons = tt_content:bodytext, rte_enabled
342 editIcons.beforeLastTag = 1
343 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.bodytext
344
345 prefixComment = 2 | Text:
346 }
347 }
348
349
350
351 # *****************
352 # CType: image
353 # *****************
354 # (also used for rendering 'textpic' type):
355 tt_content.image = COA
356 tt_content.image.10 = < lib.stdheader
357 tt_content.image.20 = USER
358 tt_content.image.20 {
359 userFunc = tx_cssstyledcontent_pi1->render_textpic
360
361 # Image source
362 imgList.field = image
363 imgPath = uploads/pics/
364
365 # Single image rendering
366 imgObjNum = 1
367 1 {
368 file.import.current = 1
369 file.width.field = imagewidth
370 imageLinkWrap = 1
371 imageLinkWrap {
372 bodyTag = <body style="margin:0; background:#fff;">
373 wrap = <a href="javascript:close();"> | </a>
374 width = {$styles.content.imgtext.linkWrap.width}
375 height = {$styles.content.imgtext.linkWrap.height}
376 effects = {$styles.content.imgtext.linkWrap.effects}
377
378 JSwindow = 1
379 JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
380
381 enable.field = image_zoom
382 enable.ifEmpty.typolink.parameter.field = image_link
383 enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
384 enable.ifEmpty.typolink.returnLast = url
385
386 typolink.parameter.field = image_link
387 typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
388 typolink.target = {$styles.content.links.target}
389 typolink.extTarget = {$styles.content.links.extTarget}
390 }
391
392 altText = TEXT
393 altText {
394 field = altText
395 stripHtml = 1
396 split.token.char = 10
397 split.token.if.isTrue = {$styles.content.imgtext.imageTextSplit}
398 split.returnKey.data = register : IMAGE_NUM_CURRENT
399 }
400
401 titleText < .altText
402 titleText.field = titleText
403
404 longdescURL < .altText
405 longdescURL.field = longdescURL
406
407 emptyTitleHandling = {$styles.content.imgtext.emptyTitleHandling}
408 titleInLink = {$styles.content.imgtext.titleInLink}
409 titleInLinkAndImg = {$styles.content.imgtext.titleInLinkAndImg}
410 }
411
412 textPos.field = imageorient
413 maxW = {$styles.content.imgtext.maxW}
414 maxW.override.data = register:maxImageWidth
415 maxWInText = {$styles.content.imgtext.maxWInText}
416 maxWInText.override.data = register:maxImageWidthInText
417
418 equalH.field = imageheight
419
420 image_compression.field = image_compression
421 image_effects.field = image_effects
422
423 noRows.field = image_noRows
424
425 cols.field = imagecols
426 border.field = imageborder
427
428 caption {
429 1 = TEXT
430 1 {
431 field = imagecaption
432 required = 1
433 parseFunc =< lib.parseFunc
434 br = 1
435 split.token.char = 10
436 split.token.if.isPositive = {$styles.content.imgtext.imageTextSplit} + {$styles.content.imgtext.captionSplit}
437 split.returnKey.data = register : IMAGE_NUM_CURRENT
438 }
439 }
440 # captionSplit is deprecated, use imageTextSplit instead
441 captionSplit = {$styles.content.imgtext.captionSplit}
442 captionAlign.field = imagecaption_position
443 # caption/alttext/title/longdescURL splitting
444 imageTextSplit = {$styles.content.imgtext.imageTextSplit}
445
446 borderCol = {$styles.content.imgtext.borderColor}
447 borderThick = {$styles.content.imgtext.borderThick}
448 colSpace = {$styles.content.imgtext.colSpace}
449 rowSpace = {$styles.content.imgtext.rowSpace}
450 textMargin = {$styles.content.imgtext.textMargin}
451
452 borderSpace = {$styles.content.imgtext.borderSpace}
453 separateRows = {$styles.content.imgtext.separateRows}
454 addClasses =
455 addClassesImage =
456 addClassesImage.ifEmpty = csc-textpic-firstcol csc-textpic-lastcol
457 addClassesImage.override = csc-textpic-firstcol |*| |*| csc-textpic-lastcol
458 addClassesImage.override.if {
459 isGreaterThan.field = imagecols
460 value = 1
461 }
462
463 #
464 imageStdWrap.dataWrap = <div class="csc-textpic-imagewrap" style="width:{register:totalwidth}px;"> | </div>
465 imageStdWrapNoWidth.wrap = <div class="csc-textpic-imagewrap"> | </div>
466
467 # if noRows is set, wrap around each column:
468 imageColumnStdWrap.dataWrap = <div class="csc-textpic-imagecolumn" style="width:{register:columnwidth}px;"> | </div>
469
470 layout = CASE
471 layout {
472 key.field = imageorient
473 # above-center
474 default = TEXT
475 default.value = <div class="csc-textpic csc-textpic-center csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
476 # above-right
477 1 = TEXT
478 1.value = <div class="csc-textpic csc-textpic-right csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
479 # above-left
480 2 = TEXT
481 2.value = <div class="csc-textpic csc-textpic-left csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div>
482 # below-center
483 8 = TEXT
484 8.value = <div class="csc-textpic csc-textpic-center csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div>
485 # below-right
486 9 = TEXT
487 9.value = <div class="csc-textpic csc-textpic-right csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div>
488 # below-left
489 10 = TEXT
490 10.value = <div class="csc-textpic csc-textpic-left csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div>
491 # intext-right
492 17 = TEXT
493 17.value = <div class="csc-textpic csc-textpic-intext-right###CLASSES###">###IMAGES######TEXT###</div>
494 # intext-left
495 18 = TEXT
496 18.value = <div class="csc-textpic csc-textpic-intext-left###CLASSES###">###IMAGES######TEXT###</div>
497 # intext-right-nowrap
498 25 = TEXT
499 25.value = <div class="csc-textpic csc-textpic-intext-right-nowrap###CLASSES###">###IMAGES###<div style="margin-right:{register:rowWidthPlusTextMargin}px;">###TEXT###</div></div><div class="csc-textpic-clear"><!-- --></div>
500 25.insertData = 1
501 # intext-left-nowrap
502 26 = TEXT
503 26.value = <div class="csc-textpic csc-textpic-intext-left-nowrap###CLASSES###">###IMAGES###<div style="margin-left:{register:rowWidthPlusTextMargin}px;">###TEXT###</div></div><div class="csc-textpic-clear"><!-- --></div>
504 26.insertData = 1
505 }
506
507 rendering {
508 dl {
509 imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"> | </div>
510 imageLastRowStdWrap.dataWrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last" style="width:{register:rowwidth}px;"> | </div>
511 noRowsStdWrap.wrap =
512 oneImageStdWrap.dataWrap = <dl class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </dl>
513 imgTagStdWrap.wrap = <dt> | </dt>
514 editIconsStdWrap.wrap = <dd> | </dd>
515 caption {
516 required = 1
517 wrap = <dd class="csc-textpic-caption"> | </dd>
518 }
519 }
520 ul {
521 imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"><ul> | </ul></div>
522 imageLastRowStdWrap.dataWrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last" style="width:{register:rowwidth}px;"><ul> | </ul></div>
523 noRowsStdWrap.wrap = <ul> | </ul>
524 oneImageStdWrap.dataWrap = <li class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </li>
525 imgTagStdWrap.wrap =
526 editIconsStdWrap.wrap = <div> | </div>
527 caption.wrap = <div class="csc-textpic-caption"> | </div>
528 }
529 div {
530 imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"> | </div>
531 imageLastRowStdWrap.dataWrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last" style="width:{register:rowwidth}px;"> | </div>
532 noRowsStdWrap.wrap =
533 oneImageStdWrap.dataWrap = <div class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </div>
534 imgTagStdWrap.wrap = <div> | </div>
535 editIconsStdWrap.wrap = <div> | </div>
536 caption.wrap = <div class="csc-textpic-caption"> | </div>
537 }
538 }
539 renderMethod = dl
540
541 editIcons = tt_content : image [imageorient|imagewidth|imageheight], [imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compression|image_effects|image_frames],imagecaption[imagecaption_position]
542 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.images
543
544 caption.editIcons = tt_content : imagecaption[imagecaption_position]
545 caption.editIcons.beforeLastTag=1
546 caption.editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.caption
547
548 stdWrap.prefixComment = 2 | Image block:
549 }
550
551
552
553 # *****************
554 # CType: textpic
555 # *****************
556 tt_content.textpic = COA
557 tt_content.textpic {
558 10 = COA
559 10.if.value = 25
560 10.if.isLessThan.field = imageorient
561 10.10 = < lib.stdheader
562
563 20 = < tt_content.image.20
564 20 {
565 text.10 = COA
566 text.10 {
567 if.value = 24
568 if.isGreaterThan.field = imageorient
569 10 = < lib.stdheader
570 10.stdWrap.dataWrap = <div class="csc-textpicHeader csc-textpicHeader-{field:imageorient}">|</div>
571 }
572 text.20 = < tt_content.text.20
573 text.wrap = <div class="csc-textpic-text"> | </div>
574 }
575 }
576
577
578
579 # *****************
580 # CType: bullet
581 # *****************
582 tt_content.bullets = COA
583 tt_content.bullets {
584 10 = < lib.stdheader
585
586 20 = TEXT
587 20 {
588 field = bodytext
589 trim = 1
590 split{
591 token.char = 10
592 cObjNum = |*|1|| 2|*|
593 1.current = 1
594 1.parseFunc =< lib.parseFunc
595 1.wrap = <li class="odd">|</li>
596
597 2.current = 1
598 2.parseFunc =< lib.parseFunc
599 2.wrap = <li class="even">|</li>
600 }
601 dataWrap = <ul class="csc-bulletlist csc-bulletlist-{field:layout}">|</ul>
602 editIcons = tt_content: bodytext, [layout]
603 editIcons.beforeLastTag = 1
604 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.bullets
605
606 prefixComment = 2 | Bullet list:
607 }
608 }
609
610
611
612 # *****************
613 # CType: table
614 # *****************
615 # Rendered by a PHP function specifically written to handle CE tables. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
616 tt_content.table = COA
617 tt_content.table {
618 10 = < lib.stdheader
619
620 20 = USER
621 20.userFunc = tx_cssstyledcontent_pi1->render_table
622 20.field = bodytext
623
624 20.color {
625 default =
626 1 = #EDEBF1
627 2 = #F5FFAA
628 }
629 20.tableParams_0 {
630 border =
631 cellpadding =
632 cellspacing =
633 }
634 20.tableParams_1 {
635 border =
636 cellpadding =
637 cellspacing =
638 }
639 20.tableParams_2 {
640 border =
641 cellpadding =
642 cellspacing =
643 }
644 20.tableParams_3 {
645 border =
646 cellpadding =
647 cellspacing =
648 }
649 20.innerStdWrap.wrap = |
650 20.innerStdWrap.parseFunc = < lib.parseFunc
651
652 20.stdWrap {
653 editIcons = tt_content: cols, bodytext, [layout], [table_bgColor|table_border|table_cellspacing|table_cellpadding]
654 editIcons.beforeLastTag = 1
655 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.table
656
657 prefixComment = 2 | Table:
658 }
659 }
660
661
662 # *****************
663 # CType: uploads
664 # *****************
665 # Rendered by a PHP function specifically written to handle CE filelists. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php
666 tt_content.uploads = COA
667 tt_content.uploads {
668 10 = < lib.stdheader
669
670 20 = USER
671 20.userFunc = tx_cssstyledcontent_pi1->render_uploads
672 20.field = media
673
674 20 {
675 # Rendering for each file (e.g. rows of the table) as a cObject
676 itemRendering = COA
677 itemRendering {
678 wrap = <tr class="tr-odd tr-first">|</tr> |*| <tr class="tr-even">|</tr> || <tr class="tr-odd">|</tr> |*|
679
680 10 = TEXT
681 10.data = register:linkedIcon
682 10.wrap = <td class="csc-uploads-icon">|</td>
683 10.if.isPositive.field = layout
684
685 20 = COA
686 20.wrap = <td class="csc-uploads-fileName">|</td>
687 20.1 = TEXT
688 20.1 {
689 data = register:linkedLabel
690 wrap = <p>|</p>
691 }
692 20.2 = TEXT
693 20.2 {
694 data = register:description
695 wrap = <p class="csc-uploads-description">|</p>
696 required = 1
697 htmlSpecialChars = 1
698 }
699
700 30 = TEXT
701 30.if.isTrue.field = filelink_size
702 30.data = register:fileSize
703 30.wrap = <td class="csc-uploads-fileSize">|</td>
704 30.bytes = 1
705 30.bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
706 }
707 }
708
709 20.color {
710 default =
711 1 = #EDEBF1
712 2 = #F5FFAA
713 }
714 20.tableParams_0 {
715 border =
716 cellpadding =
717 cellspacing =
718 }
719 20.tableParams_1 {
720 border =
721 cellpadding =
722 cellspacing =
723 }
724 20.tableParams_2 {
725 border =
726 cellpadding =
727 cellspacing =
728 }
729 20.tableParams_3 {
730 border =
731 cellpadding =
732 cellspacing =
733 }
734
735 20.linkProc {
736 target = _blank
737 jumpurl = {$styles.content.uploads.jumpurl}
738 jumpurl.secure = {$styles.content.uploads.jumpurl_secure}
739 jumpurl.secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes}
740 removePrependedNumbers = 1
741
742 iconCObject = IMAGE
743 iconCObject.file.import.data = register : ICON_REL_PATH
744 iconCObject.file.width = 150
745 }
746
747 20.filesize {
748 bytes = 1
749 bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
750 }
751
752 20.stdWrap {
753 editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size, imagecaption
754 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.filelist
755
756 prefixComment = 2 | File list:
757 }
758 }
759
760
761 # ******************
762 # CType: multimedia
763 # ******************
764 tt_content.multimedia = COA
765 tt_content.multimedia {
766 10 = < lib.stdheader
767
768 20 = MULTIMEDIA
769 20.file.field = multimedia
770 20.file.wrap = uploads/media/
771 20.file.listNum = 0
772 20.params.field = bodytext
773
774 20.stdWrap {
775 editIcons = tt_content: multimedia, bodytext
776 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.multimedia
777
778 prefixComment = 2 | Multimedia element:
779 }
780 }
781
782
783 # ******************
784 # CType: mailform
785 # ******************
786 tt_content.mailform = COA
787 tt_content.mailform.10 = < lib.stdheader
788 tt_content.mailform.20 = FORM
789 tt_content.mailform.20 {
790 accessibility = 1
791 noWrapAttr=1
792 formName = mailform
793 dontMd5FieldNames = 1
794 layout = <div class="csc-mailform-field">###LABEL### ###FIELD###</div>
795 labelWrap.wrap = |
796 commentWrap.wrap = |
797 radioWrap.wrap = |<br />
798 radioWrap.accessibilityWrap = <fieldset###RADIO_FIELD_ID###><legend>###RADIO_GROUP_LABEL###</legend>|</fieldset>
799 REQ = 1
800 REQ.labelWrap.wrap = |
801 COMMENT.layout = <div class="csc-mailform-label">###LABEL###</div>
802 RADIO.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-radio">###FIELD###</span></div>
803 LABEL.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-label">###FIELD###</span></div>
804 target = {$styles.content.mailform.target}
805 goodMess = {$styles.content.mailform.goodMess}
806 badMess = {$styles.content.mailform.badMess}
807 redirect.field = pages
808 redirect.listNum = 0
809 recipient.field = subheader
810 data.field = bodytext
811 locationData = 1
812
813 params.radio = class="csc-mailform-radio"
814 params.check = class="csc-mailform-check"
815 params.submit = class="csc-mailform-submit"
816
817 stdWrap.wrap = <fieldset class="csc-mailform"> | </fieldset>
818 stdWrap {
819 editIcons = tt_content: bodytext, pages, subheader
820 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.form
821
822 prefixComment = 2 | Mail form inserted:
823 }
824 }
825
826
827 # ******************
828 # CType: search
829 # ******************
830 tt_content.search = COA
831 tt_content.search.10 = < lib.stdheader
832 # Result:
833 tt_content.search.20 = SEARCHRESULT
834 tt_content.search.20 {
835 allowedCols = pages.title-subtitle-keywords-description : tt_content.header-bodytext-imagecaption : tt_address.name-title-address-email-company-city-country : tt_links.title-note-note2-url : tt_board.subject-message-author-email : tt_calender.title-note : tt_products.title-note-itemnumber
836 languageField.tt_content = sys_language_uid
837 renderObj = COA
838 renderObj {
839
840 10 = TEXT
841 10.field = pages_title
842 10.htmlSpecialChars = 1
843 10.typolink {
844 parameter.field = uid
845 target = {$styles.content.searchresult.resultTarget}
846 additionalParams.data = register:SWORD_PARAMS
847 additionalParams.required = 1
848 additionalParams.wrap = &no_cache=1
849 }
850 10.htmlSpecialChars = 1
851 10.wrap = <h3 class="csc-searchResultHeader">|</h3>
852
853 20 = COA
854 20 {
855 10 = TEXT
856 10.field = tt_content_bodytext
857 10.stripHtml = 1
858 10.htmlSpecialChars = 1
859 }
860 20.stdWrap.crop = 200 | ...
861 20.stdWrap.wrap = <p class="csc-searchResult">|</p>
862 }
863
864 layout = COA
865 layout {
866 wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT###
867
868 10 = TEXT
869 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.resultRange
870 10.wrap = <td class="csc-searchResultRange"><p>|</p></td>
871
872 20 = TEXT
873 20.value = ###PREV###&nbsp;&nbsp;&nbsp;###NEXT###
874 20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td>
875 }
876
877 noResultObj = COA
878 noResultObj {
879 10 = TEXT
880 10.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.emptySearch
881 10.wrap = <h3 class="csc-noSearchResultMsg">|</h3>
882 }
883
884 next = TEXT
885 next.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultNext
886
887 prev = TEXT
888 prev.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchResultPrev
889
890 target = {$styles.content.searchresult.target}
891 range = 20
892
893 stdWrap.prefixComment = 2 | Search result:
894 }
895
896 # Form:
897 tt_content.search.30 < tt_content.mailform.20
898 tt_content.search.30 {
899 goodMess = {$styles.content.searchform.goodMess}
900 redirect >
901 recipient >
902 data >
903 dataArray {
904 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchWord
905 10.type = sword=input
906 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchIn
907 20.type = scols=select
908 20.valueArray {
909 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.headersKeywords
910 10.value = pages.title-subtitle-keywords-description:tt_content.header
911 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.pageContent
912 20.value = tt_content.header-bodytext-imagecaption
913 }
914 30.type = stype=hidden
915 30.value = L0
916 40.type = submit=submit
917 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:search.searchButton
918 }
919 type.field = pages
920 type.listNum = 0
921 locationData = HTTP_POST_VARS
922 no_cache = 1
923
924 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-searchform"> | </table>
925 stdWrap {
926 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.search
927
928 prefixComment = 2 | Search form inserted:
929 }
930 }
931
932
933 # ******************
934 # CType: login
935 # ******************
936 tt_content.login < tt_content.mailform
937 tt_content.login.10 = < lib.stdheader
938 tt_content.login.20 {
939 goodMess = {$styles.content.loginform.goodMess}
940 redirect >
941 recipient >
942 data >
943 dataArray {
944 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.username
945 10.type = *user=input
946 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.password
947 20.type = *pass=password
948 30.type = logintype=hidden
949 30.value = login
950 40.type = submit=submit
951 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.login
952 }
953 type.field = pages
954 type.listNum = 0
955 target = {$styles.content.loginform.target}
956 locationData = 0
957 hiddenFields.pid = TEXT
958 hiddenFields.pid {
959 value = {$styles.content.loginform.pid}
960 override.field = pages
961 override.listNum = 1
962 }
963
964 stdWrap.wrap = <div class="csc-loginform"> | </div>
965 stdWrap {
966 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.login
967
968 prefixComment = 2 | Login/Logout form:
969 }
970 }
971 [loginUser = *]
972 tt_content.login.20 {
973 dataArray >
974 dataArray {
975 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.username
976 10.label.wrap = |&nbsp;<!--###USERNAME###-->
977 30.type = logintype=hidden
978 30.value = logout
979 40.type = submit=submit
980 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.xml:login.logout
981 }
982 }
983 [global]
984
985
986 # ******************
987 # CType: splash
988 # ******************
989 # Deprecated element.
990 # Still here for backwards compliance with plugins using the "text box" type.
991 tt_content.splash = CASE
992 tt_content.splash.key.field = splash_layout
993 tt_content.splash.stdWrap {
994 prefixComment = 2 | Textbox inserted (Deprecated)
995 }
996 tt_content.splash.default = COA
997 tt_content.splash.default {
998 20 = CTABLE
999 20 {
1000 c.1 = < tt_content.text
1001 lm.1 = IMAGE
1002 lm.1.file {
1003 import = uploads/pics/
1004 import.field = image
1005 import.listNum = 0
1006 maxW.field = imagewidth
1007 maxW.ifEmpty = 200
1008 }
1009 cMargins = 30,0,0,0
1010 }
1011 }
1012 tt_content.splash.1 < tt_content.splash.default
1013 tt_content.splash.1.20.lm.1.file >
1014 tt_content.splash.1.20.lm.1.file = GIFBUILDER
1015 tt_content.splash.1.20.lm.1.file {
1016 XY = [10.w]+10,[10.h]+10
1017 backColor = {$content.splash.bgCol}
1018 backColor.override.data = register:pageColor
1019 format = jpg
1020 5 = BOX
1021 5.dimensions = 3,3,[10.w],[10.h]
1022 5.color = #333333
1023 7 = EFFECT
1024 7.value = blur=99|blur=99|blur=99|blur=99|blur=99|blur=99|blur=99
1025 10 = IMAGE
1026 10.file {
1027 import = uploads/pics/
1028 import.field = image
1029 import.listNum = 0
1030 maxW.field = imagewidth
1031 maxW.ifEmpty = 200
1032 }
1033 }
1034 // The image frames are not available unless TypoScript code from styles.content.imgFrames.x is provided manually:
1035 tt_content.splash.2 < tt_content.splash.default
1036 #tt_content.splash.2.20.lm.1.file.m < styles.content.imgFrames.1
1037 tt_content.splash.3 < tt_content.splash.default
1038 #tt_content.splash.3.20.lm.1.file.m < styles.content.imgFrames.2
1039
1040 // From plugin.postit1, if included:
1041 tt_content.splash.20 = < plugin.postit1
1042
1043
1044
1045 # ****************
1046 # CType: menu
1047 # ****************
1048 tt_content.menu = COA
1049 tt_content.menu {
1050 10 = < lib.stdheader
1051
1052 20 = CASE
1053 20 {
1054 key.field = menu_type
1055
1056 # "Menu of these pages"
1057 default = HMENU
1058 default {
1059 special = list
1060 special.value.field = pages
1061 wrap = <ul class="csc-menu csc-menu-def">|</ul>
1062 1 = TMENU
1063 1 {
1064 target = {$PAGE_TARGET}
1065 NO.wrapItemAndSub = <li>|</li>
1066 NO.ATagTitle.field = description // title
1067 }
1068 }
1069
1070 # "Menu of subpages to these pages"
1071 1 < .default
1072 1 {
1073 special = directory
1074 wrap = <ul class="csc-menu csc-menu-1">|</ul>
1075 }
1076
1077 # "Sitemap - liststyle"
1078 2 = HMENU
1079 2 {
1080 wrap = <div class="csc-sitemap">|</div>
1081 1 = TMENU
1082 1 {
1083 target = {$PAGE_TARGET}
1084 expAll = 1
1085 wrap = <ul>|</ul>
1086 NO {
1087 stdWrap.htmlSpecialChars = 1
1088 wrapItemAndSub = <li>|</li>
1089 ATagTitle.field = description // title
1090 }
1091 }
1092 2 < .1
1093 3 < .1
1094 4 < .1
1095 5 < .1
1096 6 < .1
1097 7 < .1
1098 }
1099
1100 # "Section index (pagecontent w/Index checked - liststyle)"
1101 3 < styles.content.get
1102 3 {
1103 wrap = <ul class="csc-menu csc-menu-3">|</ul>
1104 select.andWhere = sectionIndex<>0
1105 select.pidInList.override.field = pages
1106 renderObj = TEXT
1107 renderObj {
1108 fieldRequired = header
1109 trim = 1
1110 field = header
1111 htmlSpecialChars = 1
1112 wrap = <li class="csc-section">|</li>
1113 typolink.parameter.field = pid
1114 typolink.section.field = uid
1115 }
1116 }
1117
1118 # "Menu of subpages to these pages (with abstract)"
1119 4 < .1
1120 4 {
1121 wrap = <dl class="csc-menu csc-menu-4">|</dl>
1122 1.NO {
1123 wrapItemAndSub >
1124 linkWrap = <dt>|</dt>
1125 after {
1126 data = field : abstract // field : description // field : subtitle
1127 required = 1
1128 htmlSpecialChars = 1
1129 wrap = <dd>|</dd>
1130 }
1131 ATagTitle.field = description // title
1132 }
1133 }
1134
1135 # "Recently updated pages"
1136 5 < .default
1137 5 {
1138 wrap = <ul class="csc-menu csc-menu-5">|</ul>
1139 special = updated
1140 special {
1141 maxAge = 3600*24*7
1142 excludeNoSearchPages = 1
1143 }
1144 }
1145
1146 # "Related pages (based on keywords)"
1147 6 < .default
1148 6 {
1149 wrap = <ul class="csc-menu csc-menu-6">|</ul>
1150 special = keywords
1151 special {
1152 excludeNoSearchPages = 1
1153 }
1154 }
1155
1156 # "Menu of subpages to these pages + sections - liststyle"
1157 7 < .1
1158 7 {
1159 wrap = <ul class="csc-menu csc-menu-7">|</ul>
1160 1.expAll = 1
1161 2 < .1
1162 2 {
1163 sectionIndex = 1
1164 sectionIndex.type = header
1165 wrap = <ul>|</ul>
1166 NO.wrapItemAndSub = <li class="csc-section">|</li>
1167 }
1168 }
1169 }
1170
1171 20.stdWrap {
1172 editIcons = tt_content: menu_type, pages
1173 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.menuSitemap
1174
1175 prefixComment = 2 | Menu/Sitemap element:
1176 }
1177 }
1178
1179
1180
1181 # ****************
1182 # CType: shortcut
1183 # ****************
1184 # Should be a complete copy from the old static template "content (default)"
1185 tt_content.shortcut = COA
1186 tt_content.shortcut {
1187 20 = CASE
1188 20.key.field = layout
1189 20.0= RECORDS
1190 20.0 {
1191 source.field = records
1192 tables = {$content.shortcut.tables}
1193 # THESE are OLD plugins. Modern plugins registers themselves automatically!
1194 }
1195 20.1= RECORDS
1196 20.1 {
1197 source.field = records
1198 tables = {$content.shortcut.tables}
1199 }
1200
1201 20.stdWrap {
1202 editIcons = tt_content: records
1203 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.recordList
1204
1205 prefixComment = 2 | Inclusion of other records (by reference):
1206 }
1207 }
1208
1209
1210 # ****************
1211 # CType: list
1212 # ****************
1213 # Should be a complete copy from the old static template "content (default)" (except "lib.stdheader")
1214 tt_content.list = COA
1215 tt_content.list {
1216 10 = < lib.stdheader
1217
1218 20 = CASE
1219 20.key.field = list_type
1220
1221 20.stdWrap {
1222 editIcons = tt_content: list_type, layout, select_key, pages [recursive]
1223 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.plugin
1224
1225 prefixComment = 2 | Plugin inserted:
1226 }
1227 }
1228
1229
1230 # ****************
1231 # CType: script
1232 # ****************
1233 # OBSOLETE! Please make extensions instead. The "script" content element was meant for these custom purposes in the past. Today extensions will do the job better.
1234 tt_content.script = TEXT
1235 tt_content.script {
1236 value =
1237
1238 prefixComment = 2 | Script element (Deprecated)
1239 }
1240
1241
1242 # ****************
1243 # CType: div
1244 # ****************
1245 tt_content.div = TEXT
1246 tt_content.div {
1247 value =
1248 prefixComment = 2 | Div element
1249 }
1250
1251
1252 # ****************
1253 # CType: html
1254 # ****************
1255 # This truely IS a content object, launched from inside the PHP class of course.
1256 # Should be a complete copy from the old static template "content (default)"
1257 tt_content.html = TEXT
1258 tt_content.html {
1259 field = bodytext
1260
1261 editIcons = tt_content:bodytext
1262 editIcons.beforeLastTag = 1
1263 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.html
1264
1265 prefixComment = 2 | Raw HTML content:
1266 }
1267
1268
1269 # ****************
1270 # Default error msg:
1271 # ****************
1272 tt_content.default = TEXT
1273 tt_content.default {
1274 field = CType
1275 wrap = <p style="background-color: yellow;"><b>ERROR:</b> Content Element type "|" has no rendering definition!</p>
1276
1277 prefixComment = 2 | Unknown element message:
1278 }
1279
1280 # *********************************************************************
1281 # ACCESSIBILTY MODE
1282 # *********************************************************************
1283
1284
1285
1286
1287
1288
1289
1290 plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE (
1291 /* Captions */
1292 DIV.csc-textpic-caption-c .csc-textpic-caption { text-align: center; }
1293 DIV.csc-textpic-caption-r .csc-textpic-caption { text-align: right; }
1294 DIV.csc-textpic-caption-l .csc-textpic-caption { text-align: left; }
1295
1296 /* Needed for noRows setting */
1297 DIV.csc-textpic DIV.csc-textpic-imagecolumn { float: left; display: inline; }
1298
1299 /* Border just around the image */
1300 {$styles.content.imgtext.borderSelector} {
1301 border: {$styles.content.imgtext.borderThick}px solid {$styles.content.imgtext.borderColor};
1302 padding: {$styles.content.imgtext.borderSpace}px {$styles.content.imgtext.borderSpace}px;
1303 }
1304
1305 DIV.csc-textpic-imagewrap { padding: 0; }
1306
1307 DIV.csc-textpic IMG { border: none; }
1308
1309 /* DIV: This will place the images side by side */
1310 DIV.csc-textpic DIV.csc-textpic-imagewrap DIV.csc-textpic-image { float: left; }
1311
1312 /* UL: This will place the images side by side */
1313 DIV.csc-textpic DIV.csc-textpic-imagewrap UL { list-style: none; margin: 0; padding: 0; }
1314 DIV.csc-textpic DIV.csc-textpic-imagewrap UL LI { float: left; margin: 0; padding: 0; }
1315
1316 /* DL: This will place the images side by side */
1317 DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image { float: left; }
1318 DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DT { float: none; }
1319 DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DD { float: none; }
1320 DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DD IMG { border: none; } /* FE-Editing Icons */
1321 DL.csc-textpic-image { margin: 0; }
1322 DL.csc-textpic-image DT { margin: 0; display: inline; }
1323 DL.csc-textpic-image DD { margin: 0; }
1324
1325 /* Clearer */
1326 DIV.csc-textpic-clear { clear: both; }
1327
1328 /* Margins around images: */
1329
1330 /* Pictures on left, add margin on right */
1331 DIV.csc-textpic-left DIV.csc-textpic-imagewrap .csc-textpic-image,
1332 DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap .csc-textpic-image,
1333 DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap .csc-textpic-image {
1334 display: inline; /* IE fix for double-margin bug */
1335 margin-right: {$styles.content.imgtext.colSpace}px;
1336 }
1337
1338 /* Pictures on right, add margin on left */
1339 DIV.csc-textpic-right DIV.csc-textpic-imagewrap .csc-textpic-image,
1340 DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap .csc-textpic-image,
1341 DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap .csc-textpic-image {
1342 display: inline; /* IE fix for double-margin bug */
1343 margin-left: {$styles.content.imgtext.colSpace}px;
1344 }
1345
1346 /* Pictures centered, add margin on left */
1347 DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image {
1348 display: inline; /* IE fix for double-margin bug */
1349 margin-left: {$styles.content.imgtext.colSpace}px;
1350 }
1351 DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image .csc-textpic-caption { margin: 0; }
1352 DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image IMG { margin: 0; }
1353
1354 /* Space below each image (also in-between rows) */
1355 DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image { margin-bottom: {$styles.content.imgtext.rowSpace}px; }
1356 DIV.csc-textpic-equalheight DIV.csc-textpic-imagerow { margin-bottom: {$styles.content.imgtext.rowSpace}px; display: block; }
1357 DIV.csc-textpic DIV.csc-textpic-imagerow { clear: both; }
1358
1359 /* No margins around the whole image-block */
1360 DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-firstcol { margin-left: 0px !important; }
1361 DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-lastcol { margin-right: 0px !important; }
1362
1363 /* Add margin from image-block to text (in case of "Text & Images") */
1364 DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap,
1365 DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap {
1366 margin-right: {$styles.content.imgtext.textMargin}px !important;
1367 }
1368 DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap,
1369 DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap {
1370 margin-left: {$styles.content.imgtext.textMargin}px !important;
1371 }
1372
1373 /* Positioning of images: */
1374
1375 /* Above */
1376 DIV.csc-textpic-above DIV.csc-textpic-text { clear: both; }
1377
1378 /* Center (above or below) */
1379 DIV.csc-textpic-center { text-align: center; /* IE-hack */ }
1380 DIV.csc-textpic-center DIV.csc-textpic-imagewrap { margin: 0 auto; }
1381 DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image { text-align: left; /* Remove IE-hack */ }
1382 DIV.csc-textpic-center DIV.csc-textpic-text { text-align: left; /* Remove IE-hack */ }
1383
1384 /* Right (above or below) */
1385 DIV.csc-textpic-right DIV.csc-textpic-imagewrap { float: right; }
1386 DIV.csc-textpic-right DIV.csc-textpic-text { clear: right; }
1387
1388 /* Left (above or below) */
1389 DIV.csc-textpic-left DIV.csc-textpic-imagewrap { float: left; }
1390 DIV.csc-textpic-left DIV.csc-textpic-text { clear: left; }
1391
1392 /* Left (in text) */
1393 DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap { float: left; }
1394
1395 /* Right (in text) */
1396 DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap { float: right; }
1397
1398 /* Right (in text, no wrap around) */
1399 DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap { float: right; clear: both; }
1400 /* Hide from IE5-mac. Only IE-win sees this. \*/
1401 * html DIV.csc-textpic-intext-right-nowrap .csc-textpic-text { height: 1%; }
1402 /* End hide from IE5/mac */
1403
1404 /* Left (in text, no wrap around) */
1405 DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap { float: left; clear: both; }
1406 /* Hide from IE5-mac. Only IE-win sees this. \*/
1407 * html DIV.csc-textpic-intext-left-nowrap .csc-textpic-text { height: 1%; }
1408 /* End hide from IE5/mac */
1409
1410 DIV.csc-textpic DIV.csc-textpic-imagerow-last { margin-bottom: 0; }
1411
1412 /* Browser fixes: */
1413
1414 /* Fix for unordered and ordered list with image "In text, left" */
1415 .csc-textpic-intext-left ol, .csc-textpic-intext-left ul {padding-left: 40px; overflow: auto; height: 1%; }
1416 )
1417
1418