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