-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add new content element wizard
- Loading branch information
Showing
8 changed files
with
71 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
namespace Fab\RssDisplay\Backend; | ||
|
||
/* | ||
* This file is part of the Fab/RssDisplay project under GPLv2 or later. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.md file that was distributed with this source code. | ||
*/ | ||
|
||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | ||
|
||
/** | ||
* Class that adds the wizard icon. | ||
*/ | ||
class Wizard | ||
{ | ||
|
||
/** | ||
* Processing the wizard items array | ||
* | ||
* @param array $wizardItems : The wizard items | ||
* @return array | ||
* @throws \BadFunctionCallException | ||
*/ | ||
public function proc($wizardItems) | ||
{ | ||
$wizardItems['plugins_tx_rssdisplay_pi1'] = array( | ||
'icon' => ExtensionManagementUtility::extRelPath('rss_display') . 'ext_icon.png', #'Resources/Public/Images/RssDisplay.png', | ||
'title' => $this->getLanguageService()->sL('LLL:EXT:rss_display/Resources/Private/Language/locallang.xlf:wizard.title'), | ||
'description' => $this->getLanguageService()->sL('LLL:EXT:rss_display/Resources/Private/Language/locallang.xlf:wizard.description'), | ||
'params' => '&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=rssdisplay_pi1' | ||
); | ||
|
||
return $wizardItems; | ||
} | ||
|
||
/** | ||
* @return \TYPO3\CMS\Lang\LanguageService | ||
*/ | ||
protected function getLanguageService() | ||
{ | ||
return $GLOBALS['LANG']; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters