* ADD Made wraps for related items configurable
authorjocrau <jocrau@735d13b6-9817-0410-8766-e36946ffe9aa>
Sat, 8 Nov 2008 13:33:52 +0000 (13:33 +0000)
committerBastian Bringenberg <spam@bastian-bringenberg.de>
Thu, 4 Dec 2014 23:56:05 +0000 (00:56 +0100)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/contagged/trunk@13932 735d13b6-9817-0410-8766-e36946ffe9aa

pi1/class.tx_contagged_pi1.php
static/setup.txt

index 8796b36..609b479 100644 (file)
@@ -251,10 +251,10 @@ class tx_contagged_pi1 extends tslib_pibase {
                                        $typolinkConf = $this->typolinkConf;
                                        $typolinkConf['additionalParams'] .= '&' . $this->prefixId . '[key]=' . $key;
                                        $typolinkConf['parameter.']['wrap'] = "|,".$GLOBALS['TSFE']->type;
-                                       $relatedCode .= '<div>' . $this->local_cObj->typoLink($relatedTerm['term'], $typolinkConf) . '</div>';                                  
+                                       $relatedCode .= $this->local_cObj->stdWrap($this->local_cObj->typoLink($relatedTerm['term'], $typolinkConf), $this->conf['related.']['single.']['stdWrap.']);                                   
                                }
                        }
-                       return $this->local_cObj->wrap(trim($relatedCode), $this->conf['related.']['wrapIfAny']);
+                       return $this->local_cObj->stdWrap(trim($relatedCode), $this->conf['related.']['stdWrap.']);
                } else {
                        return NULL;
                }
@@ -274,7 +274,7 @@ class tx_contagged_pi1 extends tslib_pibase {
                                $imagesConf['image.']['file'] = 'uploads/pics/' . $image;
                                $imagesCode .= $this->local_cObj->IMAGE($imagesConf['image.']) . $this->local_cObj->stdWrap($imagesCaption[$key], $this->conf['images.']['caption.']['stdWrap.']);
                        }
-                       return $this->local_cObj->wrap(trim($imagesCode), $this->conf['images.']['wrapIfAny']);
+                       return $this->local_cObj->stdWrap(trim($imagesCode), $this->conf['images.']['stdWrap.']);
                } else {
                        return NULL;
                }
index dde9dbc..3c74183 100644 (file)
@@ -38,9 +38,9 @@ plugin.tx_contagged {
        addBackLinkDescription = {$contagged.addBackLinkDescription}
        
        images {
-               wrapIfAny = <div class="tx-contagged-pi1-images">|</div>
-               caption.stdWrap.wrap = <div class="tx-contagged-pi1-imagecaption"> | </div>
-           caption.stdWrap.trim=1
+               stdWrap.wrap = <div class="tx-contagged-images">|</div>
+               caption.stdWrap.wrap = <div class="tx-contagged-imagecaption"> | </div>
+           caption.stdWrap.trim = 1
                single.image {
                        file.maxW = {$contagged.singleMaxW}
                        file.maxH = {$contagged.singleMaxH}
@@ -59,6 +59,11 @@ plugin.tx_contagged {
                }
        }
        
+       related {
+               stdWrap.wrap = <div class="tx-contagged-related">|</div>
+               single.stdWrap.wrap = <div>|</div>
+       }
+       
        pagebrowser {
                results_at_a_time = {$contagged.results_at_a_time}
                maxPages = {$contagged.maxPages}