Skip to content

Commit 78d1ddf

Browse files
author
Matteo Bonaker
committed
Compatibility to TYPO3 8.7
1 parent 488b772 commit 78d1ddf

24 files changed

+196
-20
lines changed

Classes/Miscellaneous/TtNewsUserFunctions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ public function getImageForTTnews($paramArray, $conf) {
9393

9494
// define the file
9595
if ($row['tx_imagecycle_activate']) {
96-
$image = $pObj->local_cObj->IMAGE($lConf[$imageConf]);
96+
$image = $pObj->local_cObj->cObjGetSingle('IMAGE', $lConf[$imageConf]);
9797
$caption = $pObj->local_cObj->stdWrap($image, $lConf['captionWrap.']);
9898
$theImgCode .= $pObj->local_cObj->stdWrap($caption, $lConf['itemWrap.']);
9999
} else {
100-
$theImgCode .= $pObj->local_cObj->IMAGE($lConf[$imageConf]).$pObj->local_cObj->stdWrap($imgsCaptions[$cc], $lConf['caption_stdWrap.']);
100+
$theImgCode .= $pObj->local_cObj->cObjGetSingle('IMAGE', $lConf[$imageConf]).$pObj->local_cObj->stdWrap($imgsCaptions[$cc], $lConf['caption_stdWrap.']);
101101
}
102102
}
103103
$cc ++;

Classes/Plugin/CoinSlider.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/***************************************************************
3+
* Copyright notice
4+
*
5+
* (c) 2017, a7digital GmbH
6+
*
7+
* This script is part of the TYPO3 project. The TYPO3 project is
8+
* free software; you can redistribute it and/or modify
9+
* it under the terms of the GNU General Public License as published by
10+
* the Free Software Foundation; either version 2 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* The GNU General Public License can be found at
14+
* http://www.gnu.org/copyleft/gpl.html.
15+
*
16+
* This script is distributed in the hope that it will be useful,
17+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
* GNU General Public License for more details.
20+
*
21+
* This copyright notice MUST APPEAR in all copies of the script!
22+
***************************************************************/
23+
24+
namespace TYPO3Extension\Imagecycle\Plugin;
25+
26+
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
27+
28+
require_once(ExtensionManagementUtility::extPath('imagecycle').'pi3/class.tx_imagecycle_pi3.php');
29+
30+
class CoinSlider extends \tx_imagecycle_pi3 {
31+
32+
}

Classes/Plugin/CrossSlider.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/***************************************************************
3+
* Copyright notice
4+
*
5+
* (c) 2017, a7digital GmbH
6+
*
7+
* This script is part of the TYPO3 project. The TYPO3 project is
8+
* free software; you can redistribute it and/or modify
9+
* it under the terms of the GNU General Public License as published by
10+
* the Free Software Foundation; either version 2 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* The GNU General Public License can be found at
14+
* http://www.gnu.org/copyleft/gpl.html.
15+
*
16+
* This script is distributed in the hope that it will be useful,
17+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
* GNU General Public License for more details.
20+
*
21+
* This copyright notice MUST APPEAR in all copies of the script!
22+
***************************************************************/
23+
24+
namespace TYPO3Extension\Imagecycle\Plugin;
25+
26+
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
27+
28+
require_once(ExtensionManagementUtility::extPath('imagecycle').'pi3/class.tx_imagecycle_pi4.php');
29+
30+
class CrossSlider extends \tx_imagecycle_pi4 {
31+
32+
}

Classes/Plugin/ImageCycle.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/***************************************************************
3+
* Copyright notice
4+
*
5+
* (c) 2017, a7digital GmbH
6+
*
7+
* This script is part of the TYPO3 project. The TYPO3 project is
8+
* free software; you can redistribute it and/or modify
9+
* it under the terms of the GNU General Public License as published by
10+
* the Free Software Foundation; either version 2 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* The GNU General Public License can be found at
14+
* http://www.gnu.org/copyleft/gpl.html.
15+
*
16+
* This script is distributed in the hope that it will be useful,
17+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
* GNU General Public License for more details.
20+
*
21+
* This copyright notice MUST APPEAR in all copies of the script!
22+
***************************************************************/
23+
24+
namespace TYPO3Extension\Imagecycle\Plugin;
25+
26+
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
27+
28+
require_once(ExtensionManagementUtility::extPath('imagecycle').'pi3/class.tx_imagecycle_pi1.php');
29+
30+
class ImageCycle extends \tx_imagecycle_pi1 {
31+
32+
}

Classes/Plugin/NivoSlider.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/***************************************************************
3+
* Copyright notice
4+
*
5+
* (c) 2017, a7digital GmbH
6+
*
7+
* This script is part of the TYPO3 project. The TYPO3 project is
8+
* free software; you can redistribute it and/or modify
9+
* it under the terms of the GNU General Public License as published by
10+
* the Free Software Foundation; either version 2 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* The GNU General Public License can be found at
14+
* http://www.gnu.org/copyleft/gpl.html.
15+
*
16+
* This script is distributed in the hope that it will be useful,
17+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
* GNU General Public License for more details.
20+
*
21+
* This copyright notice MUST APPEAR in all copies of the script!
22+
***************************************************************/
23+
24+
namespace TYPO3Extension\Imagecycle\Plugin;
25+
26+
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
27+
28+
require_once(ExtensionManagementUtility::extPath('imagecycle').'pi3/class.tx_imagecycle_pi3.php');
29+
30+
class NivoSlider extends \tx_imagecycle_pi3 {
31+
32+
}

Classes/Plugin/SliceBox.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/***************************************************************
3+
* Copyright notice
4+
*
5+
* (c) 2017, a7digital GmbH
6+
*
7+
* This script is part of the TYPO3 project. The TYPO3 project is
8+
* free software; you can redistribute it and/or modify
9+
* it under the terms of the GNU General Public License as published by
10+
* the Free Software Foundation; either version 2 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* The GNU General Public License can be found at
14+
* http://www.gnu.org/copyleft/gpl.html.
15+
*
16+
* This script is distributed in the hope that it will be useful,
17+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
* GNU General Public License for more details.
20+
*
21+
* This copyright notice MUST APPEAR in all copies of the script!
22+
***************************************************************/
23+
24+
namespace TYPO3Extension\Imagecycle\Plugin;
25+
26+
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
27+
28+
require_once(ExtensionManagementUtility::extPath('imagecycle').'pi3/class.tx_imagecycle_pi5.php');
29+
30+
class SliceBox extends \tx_imagecycle_pi5 {
31+
32+
}

Configuration/TCA/Overrides/pages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
)
7979
);
8080

81-
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempColumns, 1);
81+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempColumns);
8282
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', '--div--;LLL:EXT:imagecycle/locallang_db.xml:pages.tx_imagecycle_div, tx_imagecycle_mode;;;;3-3-3, tx_imagecycle_damimages, tx_imagecycle_damcategories, tx_imagecycle_images, tx_imagecycle_hrefs, tx_imagecycle_captions, tx_imagecycle_effect, tx_imagecycle_stoprecursion');
8383

8484
$GLOBALS['TCA']['pages']['ctrl']['requestUpdate'] .= ($GLOBALS['TCA']['pages']['ctrl']['requestUpdate'] ? ',' : ''). 'tx_imagecycle_mode';

Configuration/TCA/Overrides/pages_language_overlay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
)
7979
);
8080

81-
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages_language_overlay', $tempColumns, 1);
81+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages_language_overlay', $tempColumns);
8282
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages_language_overlay', '--div--;LLL:EXT:imagecycle/locallang_db.xml:pages.tx_imagecycle_div, tx_imagecycle_mode;;;;3-3-3, tx_imagecycle_damimages, tx_imagecycle_damcategories, tx_imagecycle_images, tx_imagecycle_hrefs, tx_imagecycle_captions, tx_imagecycle_effect, tx_imagecycle_stoprecursion');
8383

8484
$GLOBALS['TCA']['pages_language_overlay']['ctrl']['requestUpdate'] .= ($GLOBALS['TCA']['pages_language_overlay']['ctrl']['requestUpdate'] ? ',' : ''). 'tx_imagecycle_mode';

Configuration/TCA/Overrides/tt_content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
),
2525
);
2626

27-
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumns, 1);
27+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumns);
2828
$GLOBALS['TCA']['tt_content']['palettes']['tx_imagecycle'] = array(
2929
'showitem' => 'tx_imagecycle_activate,tx_imagecycle_duration',
3030
'canNotCollapse' => 1,

Configuration/TCA/Overrides/tt_news.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('imagecycle', 'static/tt_news/', 'Image-Cycle for tt_news - Cycle');
2828
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('imagecycle', 'static/tt_news/nivoslider/', 'Image-Cycle for tt_news - Nivo');
29-
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_news', $tempColumns, 1);
29+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_news', $tempColumns);
3030
$GLOBALS['TCA']['tt_news']['palettes']['tx_imagecycle'] = array(
3131
'showitem' => 'tx_imagecycle_activate,tx_imagecycle_duration',
3232
'canNotCollapse' => 1,

0 commit comments

Comments
 (0)