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